/* ==========================================================================
   Apati.VPN — Liquid Glassmorphism Design System (waseworm.ru aesthetic)
   ========================================================================== */

:root {
  --vpn-liquid-ink: #f7f6f4;
  --vpn-liquid-muted: #a3a19e;
  --vpn-liquid-line: rgba(255, 255, 255, 0.12);
  --vpn-liquid-frost: rgba(30, 29, 28, 0.45);
  --vpn-liquid-frost-soft: rgba(20, 20, 20, 0.25);
  --vpn-accent: #ffffff;
  --vpn-accent-rgb: 255, 255, 255;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  background: #121212;
  color: var(--vpn-liquid-ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Tasteful, fluid scroll reveal (moderate & clean) */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Ambient Video Backdrop (waseworm.ru exact) */
.video-backdrop {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  contain: layout paint;
  background: #121212;
  z-index: 0;
}

.video-backdrop__frame {
  position: absolute;
  top: 61%;
  left: 50%;
  width: min(100%, 108dvh);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 48%, #000 58%, #000 76%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 48%, #000 58%, #000 76%, transparent 100%);
  filter: grayscale(1) invert(1) brightness(0.76) contrast(0.86);
}

.video-backdrop__poster,
.video-backdrop__film {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 50%;
}

.video-backdrop:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18, 18, 18, 0.85) 0%, rgba(18, 18, 18, 0.2) 20%, transparent 45%);
}

@media (max-width: 640px) {
  .video-backdrop__frame {
    top: 47%;
    left: 50%;
    width: min(84dvh, 190vw);
    max-width: none;
    transform: translate(-51%, -50%);
  }
}

/* Authentic Apple Flag Images */
.apple-flag {
  display: inline-block;
  width: 19px;
  height: 19px;
  vertical-align: -3px;
  object-fit: contain;
  border-radius: 3px;
}

.apple-flag--lg {
  width: 26px;
  height: 26px;
  vertical-align: -5px;
}

/* 2x2 Square Cluster for Country Flags */
.flags-square-cluster {
  display: inline-grid;
  grid-template-columns: repeat(2, 9px);
  grid-template-rows: repeat(2, 9px);
  gap: 2px;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  box-sizing: border-box;
  flex-shrink: 0;
  vertical-align: middle;
}

.flags-square-cluster .apple-flag-mini {
  width: 8.5px;
  height: 8.5px;
  display: block;
  object-fit: contain;
  border-radius: 1px;
}

/* Page Layout */
.vpn-liquid-page {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  box-sizing: border-box;
}

.vpn-liquid-layout {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 20px 60px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  box-sizing: border-box;
}

/* Header */
.vpn-liquid-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.vpn-liquid-glass-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  border-radius: 40px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 8px 24px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  padding: 4px 6px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.vpn-liquid-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 14px 4px 8px;
  text-decoration: none;
  color: #fff;
}

.vpn-liquid-brand h1 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
}

.vpn-liquid-brand-dot {
  color: #ce2824;
  font-weight: 800;
}

.vpn-liquid-brand-divider {
  width: 1px;
  height: 14px;
  background: var(--vpn-liquid-line);
}

.vpn-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.vpn-liquid-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.vpn-liquid-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--vpn-liquid-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
}

.vpn-liquid-nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.vpn-liquid-nav-link.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 768px) {
  .vpn-liquid-header {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }
  .vpn-liquid-nav {
    overflow-x: auto;
    max-width: 100%;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .vpn-liquid-nav::-webkit-scrollbar {
    display: none;
  }
  .vpn-liquid-nav-link {
    padding: 6px 10px;
    font-size: 12px;
    white-space: nowrap;
  }
}

/* Glass Card / Surface */
.vpn-glass-card {
  position: relative;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(30, 29, 28, 0.55) 0%, rgba(18, 18, 18, 0.45) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 20px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  padding: 32px 36px;
  box-sizing: border-box;
}

/* Central Console */
.vpn-liquid-console {
  border-radius: 32px;
  border-color: rgba(255, 255, 255, 0.16);
}

.vpn-liquid-console-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 44px;
  align-items: center;
}

@media (max-width: 840px) {
  .vpn-liquid-console-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.vpn-liquid-access-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--vpn-liquid-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.vpn-liquid-number {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}

.vpn-liquid-number > span:first-child {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -2.5px;
  line-height: 1;
  color: #fff;
}

.vpn-liquid-number-unit {
  font-size: 26px;
  font-weight: 600;
  color: var(--vpn-liquid-muted);
}

.vpn-liquid-spec-line {
  margin-top: 14px;
  font-size: 14px;
  color: var(--vpn-liquid-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.vpn-liquid-spec-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  color: #e5e5e5;
}

/* Period / Plan Picker */
.vpn-liquid-period-picker {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  background: rgba(0, 0, 0, 0.25);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 500px) {
  .vpn-liquid-period-picker {
    grid-template-columns: repeat(3, 1fr);
    border-radius: 20px;
  }
}

.vpn-liquid-period-btn {
  border: 0;
  background: transparent;
  color: var(--vpn-liquid-muted);
  padding: 9px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.vpn-liquid-period-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.vpn-liquid-period-btn.is-selected {
  background: #fff;
  color: #121212;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.18);
  transform: scale(1.02);
}

/* Action Area */
.vpn-liquid-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vpn-liquid-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.vpn-liquid-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  color: #fff;
}

.vpn-liquid-price small {
  font-size: 14px;
  font-weight: 500;
  color: var(--vpn-liquid-muted);
}

/* Liquid Primary Button */
.liquid-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.05) 100%);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 650;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35), 0 8px 24px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1), 
              background 0.22s ease, 
              border-color 0.22s ease, 
              box-shadow 0.26s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.liquid-button:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.09) 100%);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.45), 0 12px 30px rgba(0, 0, 0, 0.5);
}

.liquid-button:active {
  transform: translateY(0.5px) scale(0.988);
  transition-duration: 0.1s;
}

.liquid-button--gold {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15), 0 8px 25px rgba(0, 0, 0, 0.35);
}

.liquid-button--gold:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25), 0 12px 35px rgba(0, 0, 0, 0.45);
}

.liquid-button--primary {
  background: #fff;
  color: #121212;
  border-color: #fff;
  font-weight: 700;
}

.liquid-button--primary:hover {
  background: #f4f4f5;
  color: #000;
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.25);
}

/* Fineprint */
.vpn-fineprint {
  font-size: 11px;
  color: var(--vpn-liquid-muted);
  text-align: center;
  line-height: 1.4;
}

/* Cards Grid */
.vpn-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.vpn-card-sub {
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.vpn-card-sub:hover {
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

/* Lottie sticker container */
.lottie-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  vertical-align: middle;
}

.lottie-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Headings */
.section-title-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.section-title {
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -0.8px;
  color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-desc {
  font-size: 14px;
  color: var(--vpn-liquid-muted);
  margin: 4px 0 0 0;
}

/* Apps Grid */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.app-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s, border-color 0.15s;
}

.app-chip:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
}

.app-chip img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

/* Tariff Grid Styling */
.tariff-glass-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 26px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(28, 27, 26, 0.6) 0%, rgba(18, 18, 18, 0.5) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s, box-shadow 0.2s;
}

.tariff-glass-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.tariff-glass-card--popular {
  border-color: rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, rgba(38, 36, 33, 0.7) 0%, rgba(22, 21, 20, 0.6) 100%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.28), 0 14px 44px rgba(0, 0, 0, 0.55);
}

.tariff-glass-card--vip {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15), 0 14px 44px rgba(0, 0, 0, 0.4);
}

.tariff-glass-card--vip:hover {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25), 0 20px 50px rgba(0, 0, 0, 0.5);
}

.tariff-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
}

.tariff-badge--gold {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.tariff-features-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
  color: #d1d0ce;
}

.tariff-features-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tariff-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 14px;
}

.tariff-price-main {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -1.2px;
  color: #fff;
}

.tariff-price-period {
  font-size: 13.5px;
  color: var(--vpn-liquid-muted);
}

/* Bundle Section */
.bundle-glass-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

@media (max-width: 860px) {
  .bundle-glass-panel {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.bundle-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (max-width: 480px) {
  .bundle-options-grid {
    grid-template-columns: 1fr;
  }
}

.bundle-option-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.bundle-option-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.bundle-option-card.is-selected {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

.bundle-country-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: #fff;
}

/* Addons: Whitelists & Dedicated Nodes */
.addon-glass-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
}

.addon-glass-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Steps / Setup */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.step-card {
  padding: 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

/* FAQ Accordion */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  overflow: hidden;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  cursor: pointer;
  user-select: none;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  transition: background 0.2s ease, color 0.2s ease;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.03);
}

.faq-chevron {
  display: inline-block;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
  color: var(--vpn-liquid-muted);
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
  color: #fff;
}

.faq-answer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 22px;
  font-size: 14px;
  line-height: 1.6;
  color: #c4c2bf;
  border-top: 1px solid transparent;
  transition: max-height 0.38s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.28s ease, 
              padding 0.38s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.28s ease;
}

.faq-item.is-open .faq-answer {
  max-height: 260px;
  opacity: 1;
  padding: 14px 22px 20px 22px;
  border-top-color: rgba(255, 255, 255, 0.05);
}

/* Footer */
.vpn-liquid-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 24px 32px;
  border-radius: 28px;
  background: rgba(20, 20, 20, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: var(--vpn-liquid-muted);
}

@media (max-width: 600px) {
  .vpn-liquid-footer {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
}

/* Floating Duck Mascot Avatar */
.duck-mascot-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.duck-mascot-pill span {
  font-size: 12px;
  font-weight: 550;
  color: #d8d6d2;
}

/* Custom Tariff Builder */
.builder-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr);
  gap: 36px;
  align-items: start;
}

@media (max-width: 860px) {
  .builder-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.builder-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.builder-group:last-child {
  margin-bottom: 0;
}

.builder-group-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  font-weight: 600;
  color: var(--vpn-liquid-muted);
}

.builder-group-val {
  font-size: 16px;
  font-weight: 750;
  color: #fff;
}

.builder-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.builder-pill {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--vpn-liquid-muted);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.builder-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transform: translateY(-1px);
}

.builder-pill.is-active {
  background: #fff;
  color: #121212;
  border-color: #fff;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.18);
  transform: scale(1.02);
}

.builder-range-wrap {
  width: 100%;
  margin-top: 6px;
}

.builder-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  outline: none;
  cursor: pointer;
}

.builder-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  border: 2px solid #1a1a1a;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease;
}

.builder-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.25);
}

.builder-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  border: 2px solid #1a1a1a;
}

/* Builder Summary Receipt */
.builder-receipt {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Order Modal & Protocol Selector (TZ.txt Implementation)
   ========================================================================== */

.order-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 10, 12, 0.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.order-modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.order-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: rgba(22, 22, 26, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  transform: scale(0.95) translateY(14px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.order-modal-overlay.is-active .order-modal-dialog {
  transform: scale(1) translateY(0);
}

.order-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.order-modal-title {
  font-size: 18px;
  font-weight: 750;
  color: #fff;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.order-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--vpn-liquid-muted);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 18px;
  line-height: 1;
}

.order-modal-close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  transform: scale(1.06);
}

.order-modal-body {
  padding: 24px 28px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.order-modal-body::-webkit-scrollbar {
  width: 6px;
}
.order-modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}

/* Modal Tariff Banner */
.modal-plan-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
}

.modal-plan-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #facc15;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-plan-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.4px;
}

.modal-plan-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 12.5px;
  color: var(--vpn-liquid-muted);
  margin-top: 4px;
}

.modal-plan-price-wrap {
  text-align: right;
}

.modal-plan-price {
  font-size: 28px;
  font-weight: 850;
  color: #fff;
  letter-spacing: -0.5px;
}

.modal-plan-period {
  font-size: 13px;
  color: var(--vpn-liquid-muted);
}

/* Protocols Section */
.modal-protocols-sec {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-sec-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-sec-title {
  font-size: 15px;
  font-weight: 750;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-sec-desc {
  font-size: 13px;
  color: var(--vpn-liquid-muted);
  line-height: 1.45;
}

/* Protocol Grid */
.protocols-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

/* Apple 3D Emojis & Stars */
.apple-emoji {
  display: inline-block;
  width: 20px;
  height: 20px;
  vertical-align: -3px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.apple-emoji--sm {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
}

.apple-emoji--md {
  width: 22px;
  height: 22px;
  vertical-align: -4px;
}

.apple-emoji--badge {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.45));
}

.apple-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.apple-star {
  display: inline-block;
  width: 13px;
  height: 13px;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(250, 204, 21, 0.45));
}

.protocol-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.protocol-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.protocol-card.is-selected {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.protocol-card.is-locked {
  cursor: default;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.protocol-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

/* Protocol Icon Squircle Badge */
.protocol-icon-squircle {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.25s ease;
}

.protocol-card:hover .protocol-icon-squircle {
  transform: scale(1.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.protocol-card.is-selected .protocol-icon-squircle {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.15);
}

.protocol-card.is-locked .protocol-icon-squircle {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.1);
}

.protocol-checkbox-custom {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: 13px;
  font-weight: 900;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.protocol-card.is-selected .protocol-checkbox-custom {
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
}

.protocol-card.is-locked .protocol-checkbox-custom {
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
}

.protocol-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.protocol-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.protocol-name {
  font-size: 15px;
  font-weight: 750;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.protocol-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--vpn-liquid-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.protocol-tag--gold {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.protocol-tag--base {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.protocol-desc {
  font-size: 12.5px;
  color: var(--vpn-liquid-muted);
  line-height: 1.4;
}

.protocol-stats-table {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  font-size: 11.5px;
}

.protocol-stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.protocol-stat-label {
  color: var(--vpn-liquid-muted);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.protocol-stat-stars {
  display: inline-flex;
  align-items: center;
}

/* Simple Hint */
.modal-simple-hint {
  font-size: 13px;
  color: var(--vpn-liquid-muted);
  line-height: 1.45;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Fallback Architecture Box (from TZ.txt) */
.fallback-engine-box {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fallback-box-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.fallback-box-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fallback-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.fallback-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.fallback-chain-flow {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.fallback-node {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  color: #fff;
}

.fallback-node.is-active-node {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.fallback-arrow {
  color: rgba(255, 255, 255, 0.25);
  font-size: 12px;
}

.fallback-hint {
  font-size: 11.5px;
  color: var(--vpn-liquid-muted);
  line-height: 1.4;
}

/* Modal Footer */
.order-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.modal-footer-sum {
  display: flex;
  flex-direction: column;
}

.modal-footer-sum-label {
  font-size: 12px;
  color: var(--vpn-liquid-muted);
}

.modal-footer-sum-val {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.modal-footer-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 640px) {
  .order-modal-dialog {
    max-height: 94vh;
    border-radius: 22px;
  }
  .order-modal-header,
  .order-modal-body,
  .order-modal-footer {
    padding-left: 18px;
    padding-right: 18px;
  }
  .modal-plan-price-wrap {
    text-align: left;
  }
  .protocol-stats-table {
    display: none;
  }
  .order-modal-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .modal-footer-actions {
    flex-direction: column-reverse;
  }
  .modal-footer-actions .liquid-button {
    width: 100%;
  }
}

/* =========================================================================
   Post-Payment Success Screen & Lost-Link Alert Styles
   ========================================================================= */

.modal-success-stage {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px 28px;
  animation: modalFadeIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-success-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding-bottom: 6px;
}

.modal-success-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.05);
}

.modal-success-title {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin: 0;
}

.modal-order-tag {
  font-size: 13px;
  color: var(--vpn-liquid-muted);
}

.modal-order-tag strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #ffffff;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Link Box Card */
.modal-link-box {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.modal-link-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}

.modal-link-type-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--vpn-liquid-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-link-input-wrap {
  position: relative;
  width: 100%;
}

.modal-link-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f1f1f1;
  font-size: 12.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  outline: none;
  box-sizing: border-box;
  text-overflow: ellipsis;
}

.modal-link-input:focus {
  border-color: rgba(255, 255, 255, 0.35);
}

.modal-link-buttons {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 10px;
}

@media (max-width: 520px) {
  .modal-link-buttons {
    grid-template-columns: 1fr;
  }
}

/* CRITICAL WARNING BANNER FOR LOST LINK (Dark Monochromatic) */
.modal-lost-link-alert {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.lost-link-alert-icon {
  font-size: 20px;
  line-height: 1.2;
  flex-shrink: 0;
}

.lost-link-alert-content {
  font-size: 13px;
  line-height: 1.55;
  color: #d1d5db;
}

.lost-link-alert-content strong {
  display: block;
  font-size: 13.5px;
  font-weight: 750;
  color: #fff;
  margin-bottom: 4px;
}

.lost-link-alert-content a {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 700;
  transition: opacity 0.15s ease;
}

.lost-link-alert-content a:hover {
  opacity: 0.8;
}

/* Quick instruction steps */
.modal-steps-mini {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-step-mini-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--vpn-liquid-muted);
}

.modal-step-mini-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Whitelist custom note banner (Dark Monochromatic) */
.modal-whitelist-info-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e5e7eb;
  font-size: 13px;
  line-height: 1.45;
}

/* =========================================================================
   Payment Methods Selection & Interactive Payment Stage
   ========================================================================= */

.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
}

@media (max-width: 600px) {
  .payment-methods-grid {
    grid-template-columns: 1fr;
  }
}

.payment-method-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.10);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.payment-method-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
}

.payment-method-card.is-selected {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25), 0 8px 24px rgba(0, 0, 0, 0.35);
}

.payment-method-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: transparent;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.16s ease;
}

.payment-method-card.is-selected .payment-method-radio {
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
}

.payment-method-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.payment-method-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.payment-method-title {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
}

.payment-method-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.payment-method-desc {
  font-size: 11.5px;
  color: var(--vpn-liquid-muted);
  line-height: 1.35;
}

/* Contact Input Field */
.modal-contact-field-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-field-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--vpn-liquid-muted);
}

.modal-contact-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: #ffffff;
  font-size: 13.5px;
  outline: none;
  transition: all 0.18s ease;
}

.modal-contact-input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

/* =========================================================================
   Stage 2: Interactive Payment View
   ========================================================================= */

.modal-payment-stage {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px 28px;
  animation: modalFadeIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.payment-stage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.payment-stage-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.payment-stage-order {
  font-size: 12.5px;
  color: var(--vpn-liquid-muted);
}

.payment-stage-order strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.payment-stage-sum {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.8px;
  line-height: 1.15;
}

.payment-stage-plan {
  font-size: 12px;
  color: var(--vpn-liquid-muted);
}

.payment-timer-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 12px;
  color: #e5e7eb;
}

.payment-timer-badge strong {
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

/* SBP View */
.sbp-panel-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.sbp-qr-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.sbp-qr-frame {
  padding: 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.sbp-qr-plate {
  padding: 12px;
  border-radius: 14px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  min-height: 190px;
}

.sbp-qr-plate img,
.sbp-qr-plate canvas,
.sbp-qr-plate svg {
  display: block;
  width: 190px;
  height: 190px;
}

.sbp-qr-hint {
  font-size: 12px;
  color: var(--vpn-liquid-muted);
  text-align: center;
  max-width: 280px;
  line-height: 1.4;
}

.sbp-banks-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sbp-banks-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--vpn-liquid-muted);
  text-align: center;
}

.sbp-banks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.sbp-bank-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.16s ease;
}

.sbp-bank-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.sbp-bank-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Card Pay Box */
.card-pay-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card-requisites-card {
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-req-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-req-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.card-req-label {
  font-size: 12.5px;
  color: var(--vpn-liquid-muted);
}

.card-req-val {
  font-size: 13.5px;
  color: #ffffff;
  font-weight: 700;
}

.copy-mini-btn {
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.copy-mini-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.pay-instruction-note {
  font-size: 12px;
  color: var(--vpn-liquid-muted);
  line-height: 1.45;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px dashed rgba(255, 255, 255, 0.10);
}

/* Crypto Pay Box */
.crypto-pay-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.crypto-currency-selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.crypto-curr-tab {
  flex: 1;
  min-height: 38px;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: var(--vpn-liquid-muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}

.crypto-curr-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.crypto-curr-tab.is-active {
  color: #000;
  background: #ffffff;
  border-color: #ffffff;
}

.crypto-requisites-box {
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.crypto-amount-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--vpn-liquid-muted);
}

.crypto-amount-line strong {
  font-size: 18px;
  color: #ffffff;
  font-weight: 800;
}

.crypto-address-line {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.crypto-address-label {
  font-size: 11.5px;
  color: var(--vpn-liquid-muted);
}

.crypto-address-input-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
}

.crypto-address-input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, monospace;
  outline: none;
}

/* Telegram Pay Box */
.telegram-pay-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 0;
}

.telegram-info-card {
  padding: 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 440px;
}

/* Payment Actions Footer */
.payment-actions-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 600px) {
  .payment-actions-footer {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .payment-actions-footer .liquid-button {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   Comprehensive Mobile & Tablet Responsive & Touch Scroll Optimization
   ========================================================================== */
html, body {
  overflow-x: hidden !important;
  width: 100% !important;
  min-height: 100% !important;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y pinch-zoom;
}

body.vpn-liquid-page-root {
  display: block !important;
  height: auto !important;
  min-height: 100vh !important;
  padding: 0 !important;
  background: #121212 !important;
}

/* Base resets to prevent horizontal overflow on mobile screens */
* {
  box-sizing: border-box;
}

img, video, svg {
  max-width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  .vpn-liquid-layout {
    padding: 16px 14px 48px !important;
    gap: 24px !important;
  }

  .vpn-liquid-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .vpn-liquid-header .vpn-liquid-glass-pill {
    width: 100% !important;
    justify-content: center !important;
  }

  .vpn-liquid-nav {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    width: 100% !important;
    padding: 4px 6px !important;
    gap: 6px !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .vpn-liquid-nav::-webkit-scrollbar {
    display: none;
  }

  .vpn-liquid-nav-link {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    font-size: 12px !important;
    padding: 6px 12px !important;
  }

  .vpn-glass-card {
    padding: 20px 16px !important;
    border-radius: 20px !important;
  }

  .vpn-liquid-console-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .vpn-liquid-number > span:first-child {
    font-size: 46px !important;
    letter-spacing: -1.5px !important;
  }

  .vpn-liquid-number-unit {
    font-size: 20px !important;
  }

  .vpn-liquid-spec-line {
    gap: 8px !important;
  }

  .vpn-liquid-spec-tag {
    font-size: 11px !important;
    padding: 4px 8px !important;
  }

  .vpn-liquid-period-picker {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 5px !important;
    border-radius: 16px !important;
  }

  .vpn-liquid-period-btn {
    padding: 8px 4px !important;
    font-size: 11px !important;
  }

  .vpn-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .tariff-glass-card {
    padding: 20px 16px !important;
    border-radius: 20px !important;
  }

  .tariff-price-main {
    font-size: 28px !important;
  }

  .apps-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .app-chip {
    padding: 8px 10px !important;
    font-size: 12px !important;
  }
}

@media (max-width: 480px) {
  .vpn-liquid-layout {
    padding: 12px 10px 40px !important;
  }

  .vpn-liquid-period-picker {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .apps-grid {
    grid-template-columns: 1fr !important;
  }

  .section-title {
    font-size: 20px !important;
  }

  .section-desc {
    font-size: 13px !important;
  }

  .vpn-liquid-price {
    font-size: 26px !important;
  }

  .liquid-button {
    font-size: 14px !important;
    padding: 12px 16px !important;
  }
}

/* ==========================================================================
   Order Modal Mobile Scroll & Footer Sticking Fix
   ========================================================================== */
#modal-checkout-stage {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.order-modal-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-y !important;
}

.order-modal-footer {
  flex-shrink: 0 !important;
  margin-top: 0 !important;
}

@media (max-width: 640px) {
  .order-modal-overlay {
    padding: 0 !important;
    align-items: flex-end !important;
  }

  .order-modal-dialog {
    width: 100% !important;
    max-width: 100% !important;
    height: 92vh !important;
    max-height: 92vh !important;
    border-radius: 24px 24px 0 0 !important;
    border-bottom: none !important;
  }

  .order-modal-header {
    padding: 16px 20px !important;
  }

  .order-modal-title {
    font-size: 16px !important;
  }

  .order-modal-body {
    padding: 16px 16px 20px !important;
    gap: 16px !important;
  }

  .modal-plan-banner {
    padding: 14px 16px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .modal-plan-banner > div:last-child {
    justify-content: space-between !important;
    width: 100% !important;
  }

  .protocols-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .protocol-card {
    padding: 12px 14px !important;
  }

  .order-modal-footer {
    padding: 14px 16px max(16px, env(safe-area-inset-bottom)) !important;
    background: rgba(18, 18, 22, 0.98) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.5) !important;
    gap: 12px !important;
  }

  .modal-footer-sum {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: baseline !important;
    width: 100% !important;
  }

  .modal-footer-sum-val {
    font-size: 22px !important;
  }

  .modal-footer-actions {
    width: 100% !important;
    gap: 8px !important;
  }

  .modal-footer-actions #modal-submit-order-btn {
    flex: 1 1 auto !important;
    min-height: 48px !important;
    font-size: 15px !important;
  }

  .modal-footer-actions #modal-cancel-btn {
    display: none !important;
  }
}





