/* ==========================================================================
   Components — CTA button, inputs, countdown, badges, cards, divider
   ========================================================================== */

/* CTA button — VERSUS logo embossed style */
.cta-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  background: linear-gradient(180deg, #FFD54F 0%, #FFC107 15%, #F5A623 40%, #E68A00 70%, #CC7700 100%);
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-top-color: rgba(255, 230, 150, 0.6);
  border-bottom-color: rgba(120, 60, 0, 0.5);
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 200, 0.5),
    inset 0 -2px 3px rgba(100, 50, 0, 0.3),
    0 4px 12px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(245, 158, 11, 0.2);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.25) 45%, rgba(255,255,255,0.1) 55%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.cta-btn:hover::before {
  transform: translateX(100%);
}

.cta-btn:hover {
  background: linear-gradient(180deg, #FFE082 0%, #FFD54F 15%, #FFC107 40%, #F5A623 70%, #E68A00 100%);
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 200, 0.6),
    inset 0 -2px 4px rgba(100, 50, 0, 0.35),
    0 6px 20px rgba(0, 0, 0, 0.4),
    0 0 35px rgba(245, 158, 11, 0.4),
    0 0 60px rgba(245, 158, 11, 0.1);
}

/* Email input */
.email-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

select.email-input option {
  background: #0f1729;
  color: #fff;
}

.email-input:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
  background: rgba(255, 255, 255, 0.08);
}

/* Countdown boxes */
.countdown-box {
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.countdown-box:hover {
  box-shadow:
    0 0 20px rgba(59, 130, 246, 0.2),
    0 0 40px rgba(59, 130, 246, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Platform badges */
.platform-badge {
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.platform-badge:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow:
    0 0 15px rgba(59, 130, 246, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Advantage cards */
.advantage-card {
  position: relative;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.25rem;
  padding: 1.75rem 1.5rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.advantage-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1.25rem;
  padding: 1px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.5), rgba(245, 158, 11, 0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.advantage-card:hover::before {
  opacity: 1;
}

.advantage-card:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-4px);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.35),
    0 0 40px rgba(59, 130, 246, 0.1);
}

/* Advantage icons */
.advantage-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  position: relative;
}

.advantage-icon::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 18px;
  background: inherit;
  opacity: 0.2;
  filter: blur(12px);
  z-index: -1;
}

.advantage-icon.icon-blue { background: rgba(59, 130, 246, 0.18); }
.advantage-icon.icon-amber { background: rgba(245, 158, 11, 0.18); }
.advantage-icon.icon-emerald { background: rgba(16, 185, 129, 0.18); }
.advantage-icon.icon-violet { background: rgba(139, 92, 246, 0.18); }
.advantage-icon.icon-rose { background: rgba(244, 63, 94, 0.18); }
.advantage-icon.icon-cyan { background: rgba(6, 182, 212, 0.18); }

/* TCG game cards */
.tcg-card {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tcg-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(59, 130, 246, 0.1);
}

.tcg-card img {
  filter: brightness(1.05);
  transition: filter 0.3s ease;
}

.tcg-card:hover img {
  filter: brightness(1.1);
}

/* Store owner CTA card */
.store-cta-card {
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(59, 130, 246, 0.06) 50%, rgba(16, 185, 129, 0.04) 100%);
  border: 1px solid rgba(16, 185, 129, 0.15);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.store-cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  padding: 1px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.4), rgba(59, 130, 246, 0.3), rgba(16, 185, 129, 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.store-cta-card:hover::before {
  opacity: 1;
}

.store-cta-card:hover {
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(59, 130, 246, 0.08) 50%, rgba(16, 185, 129, 0.06) 100%);
  transform: translateY(-3px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(16, 185, 129, 0.1);
}

.store-cta-btn {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.12) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
  box-shadow:
    0 0 20px rgba(16, 185, 129, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.store-cta-btn:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.3) 0%, rgba(16, 185, 129, 0.18) 100%);
  border-color: rgba(16, 185, 129, 0.5);
  color: #a7f3d0;
  box-shadow:
    0 0 30px rgba(16, 185, 129, 0.2),
    0 0 60px rgba(16, 185, 129, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Divider line */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(59,130,246,0.3) 50%, transparent 100%);
}

/* ==========================================================================
   Franchise checkbox (signup page)
   ========================================================================== */

.franchise-check {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
}

.franchise-check:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
}

.franchise-check.franchise-checked {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.08);
}

/* ==========================================================================
   Plan radio cards (signup page)
   ========================================================================== */

.plan-radio {
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.plan-radio-active {
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.06);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.08);
}

.plan-radio-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  position: relative;
  transition: all 0.2s ease;
}

.plan-radio-active .plan-radio-dot {
  border-color: #3b82f6;
}

.plan-radio-active .plan-radio-dot::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

.plan-radio-dot.disabled {
  border-color: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Language selector — Glassmorphism dropdown
   ========================================================================== */

.lang-selector {
  position: relative;
  display: inline-flex;
  z-index: 50;
}

.lang-btn {
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-flex-direction: row;
  flex-direction: row;
  -webkit-align-items: center;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 13px;
  letter-spacing: 0.05em;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.35),
    0 0 20px rgba(59, 130, 246, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.lang-flag {
  width: 20px !important;
  height: 15px !important;
  min-width: 20px;
  max-width: 20px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  display: block;
}

.lang-code {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.12em;
}

.lang-chevron {
  opacity: 0.5;
  transition: transform 0.25s ease;
}

/* Dropdown panel */
.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0.95);
  min-width: 170px;
  padding: 6px;
  border-radius: 14px;
  background: #0e1726;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(59, 130, 246, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
}

.lang-dropdown.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) scale(1);
}

/* Dropdown options */
.lang-option {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: row;
  flex-direction: row;
  -webkit-align-items: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  white-space: nowrap;
}

.lang-option:hover {
  background: rgba(59, 130, 246, 0.12);
  color: rgba(255, 255, 255, 0.95);
}

.lang-option.active {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
}

.lang-option.active::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3b82f6;
  margin-left: auto;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

.lang-option-flag {
  width: 24px !important;
  height: 18px !important;
  min-width: 24px;
  max-width: 24px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  display: block;
}

.lang-option-label {
  font-size: 13px;
  font-weight: 500;
}
