:root {
  /* Baltic blue main tone (adjust if you have an exact hex) */
  --tb-blue: #6492ca;
  --tb-blue-dark: #204d85;
  --tb-dark: #6492ca;
}



/* Backdrop overlay */
.tb-popup-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Popup container */
.tb-popup {
  background: linear-gradient(135deg, var(--tb-blue) 0%, var(--tb-blue-dark) 55%, #204d85 100%);
  border-radius: 20px;
  width: min(420px, 90vw);
  padding: 22px;
  color: #ffffff;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Close button */
.tb-popup-close {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 26px;
  background: rgba(0, 0, 0, 0.3);
  border: none;
  color: #ffffff;
  cursor: pointer;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Header layout */
.tb-header {
  text-align: center;
}

.tb-logo-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.tb-logo-block {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tb-logo-block img {
  max-height: 105px;
  width: auto;
}

.tb-logo-text {
  font-size: 11px;
  line-height: 1.2;
  opacity: 0.9;
  text-align: left;
}

.tb-subtitle {
  margin: 8px 0 2px;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.95;
}

.tb-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.05em;
  margin: 2px 0 2px;
}

.tb-dates {
  font-size: 14px;
  opacity: 0.9;
  margin-top: 4px;
}

/* Center podium graphic */
.tb-center-graphic {
  margin-top: 18px;
  padding: 20px 0 10px;
  position: relative;
}

/* Glow behind podium */
.tb-podium-glow {
  position: absolute;
  left: 50%;
  top: 26px;
  transform: translateX(-50%);
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0, rgba(255, 255, 255, 0) 60%);
  opacity: 0.18;
  pointer-events: none;
}

/* Base platform */
.tb-podium-base {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: 260px;
  height: 34px;
  background: linear-gradient(180deg, #1e2534, #080b14);
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.7);
}

/* Podium columns */
.tb-podium {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 18px;
  align-items: flex-end;
  z-index: 1;
}

.tb-podium-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Ring on top of podium blocks */
.tb-podium-top-ring {
  width: 60px;
  height: 14px;
  border-radius: 999px;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.7), rgba(148, 163, 184, 0.4));
  margin-bottom: 4px;
  opacity: 0.9;
}

.tb-ring-main {
  width: 70px;
  height: 16px;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.4);
}

/* Podium blocks */
.tb-podium-block {
  width: 70px;
  height: 78px;
  border-radius: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111111;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.tb-tall {
  height: 96px;
}

.tb-podium-number {
  font-size: 30px;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.6);
}

/* Podium colors */
.tb-gold {
  background: linear-gradient(180deg, #ffeab0, #ffc933 65%, #f5b400 100%);
}

.tb-silver {
  background: linear-gradient(180deg, #f4f4f5, #c4c4c7 65%, #9ca3af 100%);
}

.tb-bronze {
  background: linear-gradient(180deg, #f6c39a, #e08b3b 65%, #b5641f 100%);
}

/* Buttons */
.tb-footer-buttons {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.tb-btn {
  flex: 1;
  padding: 12px;
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.7);
  font-size: 14px;
}


.tb-btn-secondary {
  background: transparent;
}

.tb-btn-primary:hover,
.tb-btn-secondary:hover {
  opacity: 0.87;
}

/* Mobile tweaks */
@media (max-width: 480px) {
  .tb-popup {
    padding: 18px;
  }

  .tb-podium-base {
    width: 220px;
  }
}