@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --font-sans: 'Outfit', sans-serif;

  /* Core Colors */
  --bg-base: #0a0b10;
  --bg-gradient-start: #11141e;
  --bg-gradient-end: #07080b;

  --surface: rgba(20, 24, 34, 0.6);
  --surface-hover: rgba(30, 36, 50, 0.8);
  --surface-active: rgba(40, 48, 68, 0.9);
  --surface-border: rgba(255, 255, 255, 0.08);
  --surface-border-highlight: rgba(255, 255, 255, 0.16);

  --primary: #4a90e2;
  /* A premium blue */
  --primary-glow: rgba(74, 144, 226, 0.4);
  --primary-gradient: linear-gradient(135deg, #4a90e2, #2962ff);

  --accent: #f5a623;
  --success: #34d399;
  --danger: #f87171;
  --warning: #fbbf24;

  /* Typography */
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Spacing & Radius */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px var(--primary-glow);
}

html {
  font-size: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

@media (max-width: 820px), (pointer: coarse) {
  .scroll-hidden {
    overflow: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .scroll-hidden::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--surface-border-highlight);
  border-radius: 10px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 0% 0%, rgba(74, 144, 226, 0.15), transparent 35%),
    radial-gradient(circle at 100% 0%, rgba(41, 98, 255, 0.1), transparent 35%),
    radial-gradient(circle at 50% 100%, rgba(74, 144, 226, 0.05), transparent 50%);
  z-index: -1;
  pointer-events: none;
}

.top-nav-container {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(10, 11, 16, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--surface-border);
}

.top-nav {
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.brand-logo {
  height: 26px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
}

.language-selector {
  font-weight: 700;
  font-size: 0.8125rem;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-full);
  cursor: pointer;
  list-style: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 4px;
  user-select: none;
}

.language-selector-label-short {
  display: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.language-selector::after {
  content: "▾";
  font-size: 0.625rem;
  opacity: 0.5;
}

.lang-dropdown {
  position: absolute;
  right: 0;
  top: 130%;
  background: rgba(15, 18, 25, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--surface-border-highlight);
  border-radius: var(--radius-md);
  padding: 8px;
  z-index: 200;
  min-width: 140px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lang-item {
  color: var(--text-secondary) !important;
  text-decoration: none !important;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.lang-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.lang-item-current {
  color: var(--primary);
  background: rgba(74, 144, 226, 0.08);
}

@media (max-width: 820px), (pointer: coarse) {
  .top-nav {
    padding: 14px 16px;
  }

  .language-selector {
    padding: 8px 12px;
    min-width: 0;
  }

  .language-selector-label-full {
    display: none;
  }

  .language-selector-label-short {
    display: inline;
  }
}

/* Layout Containers */
.app-container {
  max-width: 500px;
  margin: 0 auto;
  padding: 24px 20px 120px;
  min-height: calc(100vh - 60px);
}

.front-access-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 84px);
  padding-bottom: 24px;
}

.front-access-feedback {
  margin-bottom: 16px;
}

.front-access-panel {
  width: 100%;
  max-width: 34rem;
  margin-bottom: 0;
}

.front-access-kicker {
  margin-bottom: 0.75rem;
}

.front-access-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.glass-panel {
  background: var(--surface);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.glass-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--surface-border-highlight), transparent);
}

.glass-panel:hover {
  border-color: var(--surface-border-highlight);
  background: var(--surface-hover);
}

.bottom-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 11, 16, 0.9);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-top: 1px solid var(--surface-border-highlight);
  padding: 6px 10px calc(6px + var(--safe-area-inset-bottom, 0px));
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  height: 58px;
}

/* Glass Navigation Items */
.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.dock-item svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.dock-item:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.dock-item:hover svg {
  transform: translateY(-3px);
}

.dock-item.active {
  color: var(--primary);
  background: transparent;
}

.dock-item.active::after {
  content: "";
  position: absolute;
  bottom: 6px;
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  border: 1px solid transparent;
  text-decoration: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(41, 98, 255, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: var(--surface-border-highlight);
}

.btn-accent {
  background: linear-gradient(135deg, #ffb347, var(--accent));
  color: #16120a;
  box-shadow: 0 10px 28px rgba(245, 166, 35, 0.28);
}

.btn-claim-code {
  width: min(100%, 280px);
  min-height: 52px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 800;
}

.btn-claim-code svg {
  width: 18px;
  height: 18px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text-primary);
  font-size: 0.9375rem;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: rgba(74, 144, 226, 0.65);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.12);
}

.form-select {
  appearance: none;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.form-consent input[type="checkbox"] {
  margin-top: 0.2rem;
  accent-color: var(--primary);
}

.form-consent a {
  color: var(--primary-light);
  text-decoration: underline;
}

/* Plan Cards */
.plan-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding-bottom: 10px;
}

.plans-flow {
  display: grid;
  gap: 24px;
}

.plans-step {
  display: grid;
  gap: 20px;
}

.plans-step-header {
  display: grid;
  gap: 6px;
}

.plans-step-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.plans-step-header p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.plan-flow-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.plan-flow-actions-split {
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.plan-card {
  position: relative;
  display: flex;
  align-items: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.plan-card input[type="radio"],
.payment-card input[type="radio"] {
  display: none !important;
}

.plan-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--surface-border-highlight);
  transform: translateY(-2px);
}

.plan-card:has(input:checked) {
  background: rgba(74, 144, 226, 0.08);
  border-color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary), 0 8px 20px rgba(0, 0, 0, 0.2);
}

.plan-info {
  flex: 1;
  pointer-events: none;
}

.plan-info h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.plan-meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.plan-description {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.4;
}

ul.plan-description {
  padding-left: 18px;
  margin-bottom: 0;
}

.plan-description li + li {
  margin-top: 4px;
}

.plan-description-shell {
  margin-top: 8px;
}

.plan-description-shell .plan-description {
  margin-top: 0;
}

.plan-price {
  text-align: right;
  pointer-events: none;
}

.plan-price .amount {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  display: block;
}

.plan-price .currency {
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0.8;
}

.plan-summary-card {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.025);
}

.plan-summary-copy {
  flex: 1;
  min-width: 0;
}

.plan-summary-copy h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.plan-summary-price {
  min-width: 160px;
  text-align: right;
}

.plan-summary-promo {
  margin-top: 10px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.price-original {
  display: block;
  font-size: 0.8125rem;
  text-decoration: line-through;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.price-discounted {
  color: var(--success) !important;
}

/* Selection Indicator Dot */
.plan-card::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  margin-left: 16px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.plan-card:has(input:checked)::after {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

/* Payment Methods Grid */
.payment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.payment-card {
  position: relative;
  border: 1.5px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  background: rgba(255, 255, 255, 0.01);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 100px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.payment-card input[type="radio"] {
  display: none !important;
}

.payment-card:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--surface-border-highlight);
  transform: scale(1.02);
}

.payment-card:has(input:checked) {
  background: rgba(74, 144, 226, 0.1);
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(74, 144, 226, 0.2);
}

.payment-card.is-promo-eligible {
  border-color: rgba(52, 211, 153, 0.42);
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.18);
}

.payment-card.is-promo-disabled {
  opacity: 0.42;
  filter: grayscale(0.15);
  cursor: not-allowed;
}

.payment-card.is-promo-disabled:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.01);
  border-color: var(--surface-border);
}

.payment-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  pointer-events: none;
}

.payment-logo svg,
.payment-logo img {
  height: 28px;
  width: auto;
  max-width: 100%;
  overflow: visible;
  display: block;
  transition: transform 0.2s ease;
}

.payment-card:hover .payment-logo svg,
.payment-card:hover .payment-logo img {
  transform: translateY(-2px);
}

.payment-logo .label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.payment-card.pm-MB .payment-logo img,
.payment-card.pm-MBW .payment-logo img {
  height: auto;
  max-height: 2rem;
  width: min(100%, 7.125rem);
}


.payment-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--success);
  color: white;
  font-size: 0.625rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  z-index: 1;
}

.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* Typography & Headings */
.page-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  background: linear-gradient(to bottom, #fff, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 32px;
}

/* Animations */
.animate-fade-in {
  animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-slide-up {
  animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-pulse-glow {
  animation: pulseGlow 2s infinite;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 5px var(--primary-glow);
  }

  50% {
    box-shadow: 0 0 20px var(--primary-glow);
  }

  100% {
    box-shadow: 0 0 5px var(--primary-glow);
  }
}

.info-card {
  text-align: center;
  padding: 40px 24px;
}

.info-card svg {
  width: 64px;
  height: 64px;
  color: var(--primary);
  margin: 0 auto 24px;
  display: block;
  opacity: 0.9;
  filter: drop-shadow(0 0 15px var(--primary-glow));
}

.info-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.info-card-warning svg {
  color: var(--warning);
  filter: drop-shadow(0 0 15px rgba(251, 191, 36, 0.35));
}

.info-card-warning h3 {
  color: #fde68a;
}

.info-card-compact {
  margin-bottom: 0;
  padding: 24px 20px;
}

.info-card-compact svg {
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
}

/* Alerts */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid transparent;
}

.alert-success {
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.2);
  color: #6ee7b7;
}

.alert-error {
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.2);
  color: #fca5a5;
}

.checkout-page-shell {
  display: grid;
  gap: 24px;
  width: min(100%, 58rem);
  margin: 0 auto;
}

.checkout-page-header {
  display: grid;
  gap: 16px;
  align-items: start;
}

.checkout-page-eyebrow {
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
}

.checkout-page-copy {
  max-width: 58ch;
  margin-bottom: 0;
}

.checkout-stage-shell {
  display: grid;
  gap: 14px;
}

.checkout-status-copy {
  min-height: 1.5em;
  margin: 0;
  color: var(--text-secondary);
  text-align: center;
}

.checkout-stage {
  min-height: 560px;
  overflow: visible;
  border: 0;
  background: transparent;
}

.checkout-status-error {
  color: #fca5a5;
}

.daily-code-box {
  background: rgba(255, 255, 255, 0.02);
  border: 2px dashed var(--surface-border-highlight);
  border-radius: var(--radius-lg);
  padding: 30px;
  text-align: center;
}

.daily-code-shell {
  display: grid;
  gap: 18px;
}

.daily-code-reminder {
  margin-top: 0.25rem;
}

.daily-code-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.daily-code-stat {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--surface-border);
  background: rgba(255, 255, 255, 0.025);
  display: grid;
  gap: 6px;
}

.daily-code-stat strong {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text-primary);
}

.code-value {
  font-family: monospace;
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: 4px;
  color: var(--primary);
}

.pwa-banner {
  display: none;
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.2), rgba(41, 98, 255, 0.1));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.pwa-banner:not([hidden]) {
  display: flex;
}

.pwa-info h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #fff;
}

.pwa-info p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.pwa-btn {
  background: #fff;
  color: #000;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.pwa-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.modal-open {
  overflow: hidden;
}

.front-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 7, 12, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.front-modal {
  width: min(980px, 100%);
  height: min(82vh, 760px);
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-border-highlight);
  background: rgba(10, 14, 22, 0.94);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.front-confirm-modal {
  width: min(440px, 100%);
  height: auto;
  max-height: none;
  display: block;
}

.front-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--surface-border);
}

.front-modal-body {
  min-height: 0;
  overflow-y: auto;
  padding: 22px;
}

.front-confirm-modal .front-modal-body {
  overflow: visible;
}

.front-confirm-copy {
  margin: 0;
}

.front-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  width: 100%;
  flex-wrap: wrap;
}

.front-modal-close {
  width: 42px;
  height: 42px;
  border: 1px solid var(--surface-border-highlight);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.front-modal-close:hover {
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 720px) {
  .front-modal-backdrop {
    padding: 10px;
  }

  .front-modal {
    width: 100%;
    height: 88vh;
  }

  .front-confirm-modal {
    height: auto;
  }

  .front-modal-header {
    padding: 16px 18px;
  }
}

.front-content-shell {
  display: flex;
  justify-content: center;
  padding: 8px 0 112px;
}

.front-content-panel {
  width: min(100%, 920px);
}

.front-content-body {
  margin-top: 20px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.front-modal-content {
  margin-top: 0;
}

.front-content-body h2,
.front-content-body h3,
.front-content-body h4 {
  margin: 24px 0 12px;
  color: var(--text-primary);
}

.front-content-body p,
.front-content-body ul,
.front-content-body ol {
  margin: 0 0 14px;
}

.front-content-body ul,
.front-content-body ol {
  padding-left: 20px;
}

.front-content-body a {
  color: #8cc7ff;
}

.drink-action-wrapper {
  display: flex;
  justify-content: center;
  padding: 12px 0 8px;
}

.daily-code-claim-copy {
  margin: 4px auto 0;
  max-width: 32rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  text-align: center;
}

.code-timer {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

@media (max-width: 560px) {
  .checkout-page-header {
    align-items: start;
  }

  .checkout-stage {
    min-height: 420px;
  }

  .daily-code-meta {
    grid-template-columns: 1fr;
  }

  .code-value {
    font-size: 1.75rem;
    letter-spacing: 2px;
  }

  .plan-summary-card {
    flex-direction: column;
  }

  .plan-summary-price,
  .plan-flow-actions,
  .plan-flow-actions-split {
    width: 100%;
    text-align: left;
  }
}

.auth-recovery {
  display: flex;
  justify-content: center;
}

.auth-link,
.auth-switch-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.auth-link:hover,
.auth-switch-link:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--surface-border-highlight);
  transform: translateY(-1px);
}

.auth-switch {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.auth-switch-copy {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.promo-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: stretch;
}

.promo-apply-button {
  width: auto;
  min-width: 8rem;
  padding-inline: 1rem;
}

.promo-feedback {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.promo-feedback.is-success {
  color: #6ee7b7;
}

.promo-feedback.is-error {
  color: #fca5a5;
}

.info-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.info-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.info-label {
  color: var(--text-primary);
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--surface-border);
}

.info-link-list {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.info-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.info-link:hover {
  color: #ffffff;
  opacity: 0.88;
}

.info-link svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.info-link-compact {
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.875rem;
  font-weight: 600;
}

.info-legal-links {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--surface-border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact-cost {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.empty-state {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.front-panel-loading {
  min-height: 18rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.account-tab-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.account-tab-pill {
  appearance: none;
  border: 1px solid var(--surface-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  padding: 0.7rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 160ms ease;
}

.account-tab-pill.is-active {
  background: rgba(135, 180, 255, 0.18);
  border-color: rgba(135, 180, 255, 0.32);
  color: #fff;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(8, 10, 14, 0.78);
  backdrop-filter: blur(10px);
  z-index: 1200;
}

.spinner {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.14);
  border-top-color: var(--primary);
  animation: spin 0.9s linear infinite;
}

.feedback-stack {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1201;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: min(24rem, calc(100vw - 2rem));
}

.feedback-stack-floating {
  pointer-events: none;
}

.feedback-stack-floating > * {
  pointer-events: auto;
}

.front-connection-active {
  overflow: hidden;
}

.front-connection-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1305;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top, rgba(36, 82, 132, 0.18), transparent 42%),
    rgba(5, 7, 11, 0.92);
  backdrop-filter: blur(18px);
}

.front-connection-backdrop[hidden] {
  display: none !important;
}

.front-connection-screen {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 1rem;
  width: min(35rem, calc(100vw - 2rem));
  padding: 1.5rem;
  text-align: center;
}

.front-connection-logo {
  width: min(26.25rem, 82vw);
  max-height: 6.875rem;
  height: auto;
  object-fit: contain;
}

.front-connection-copy {
  margin: 0;
  color: #f4f7ff;
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  font-weight: 600;
  line-height: 1.45;
}

.front-connection-hint {
  margin: 0;
  color: rgba(214, 223, 242, 0.78);
  font-size: 0.92rem;
}

.feedback-banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(15, 18, 25, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-md);
}

.feedback-success {
  border-color: rgba(52, 211, 153, 0.25);
}

.feedback-error {
  border-color: rgba(248, 113, 113, 0.25);
}

.feedback-warning {
  border-color: rgba(251, 191, 36, 0.25);
}

.feedback-copy {
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 600;
}

.feedback-dismiss {
  background: transparent;
  border: 0;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.feedback-leaving {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mt-4 {
  margin-top: 1rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 820px), (pointer: coarse) {
  .app-container {
    max-width: none;
    padding: 20px 16px 132px;
  }

  .glass-panel {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin-bottom: 20px;
    overflow: visible;
  }

  .glass-panel::before {
    display: none;
  }

  .glass-panel:hover {
    border-color: transparent;
    background: transparent;
  }

  .bottom-dock {
    min-height: 52px;
    height: 52px;
    padding: 4px 12px calc(6px + var(--safe-area-inset-bottom, 0px));
  }

  .dock-item {
    gap: 4px;
    font-size: 0.6875rem;
    padding: 7px 12px;
  }

  .dock-item svg {
    width: 21px;
    height: 21px;
  }
}

@media (min-width: 480px) {
  .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .promo-row {
    grid-template-columns: 1fr;
  }

  .promo-apply-button {
    width: 100%;
  }

  .bottom-dock {
    height: auto;
    min-height: 58px;
  }
}
