/* ============================================================
   PINMAX.CLOUD — DESIGN SYSTEM & STYLESHEET
   Clean, cinematic, responsive SaaS styling
   ============================================================ */

/* ------------------------------------------------------------
   1. COLOR SYSTEM & CSS CUSTOM PROPERTIES
   ------------------------------------------------------------ */
:root {
  /* Brand palette */
  --bg-deep: #061923;
  --bg-navy: #09283B;
  --bg-blue: #103D59;
  --primary: #1F6FC4;
  --primary-hover: #2D82DA;
  --accent: #F4B21B;
  --accent-hover: #FFC43D;
  --white: #F7F9FC;
  --card: rgba(247, 249, 252, 0.96);
  --card-soft: rgba(225, 231, 238, 0.62);
  --text-dark: #202B35;
  --text-muted: #607080;
  --border: rgba(92, 111, 128, 0.22);
  --shadow: rgba(0, 0, 0, 0.32);

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Layout tokens */
  --nav-max-width: 1160px;
  --card-max-width: 800px;
  --border-radius-card: 14px;
  --border-radius-pill: 9999px;
  --border-radius-input: 8px;

  /* Transitions */
  --transition-fast: 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-entrance: 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ------------------------------------------------------------
   2. GLOBAL RESETS & BASE STYLES
   ------------------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  background-color: var(--bg-deep);
  color: var(--white);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Accessible focus ring */
:focus-visible {
  outline: 2px solid var(--primary-hover);
  outline-offset: 3px;
}

button, input, select, textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ------------------------------------------------------------
   3. BACKGROUND & ATMOSPHERE LAYERS
   ------------------------------------------------------------ */
.atmosphere-container {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

/* Layer 1 & 2: Mountain landscape + dark navy overlay */
.bg-parallax {
  position: absolute;
  inset: -20px;
  background:
    linear-gradient(rgba(4, 18, 29, 0.48), rgba(3, 10, 15, 0.72)),
    url("../assets/background-mountains.svg");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  transition: transform 0.15s ease-out;
}

/* Layer 3 & 5: Atmospheric glow & soft edge vignette */
.bg-parallax::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 65% 45% at 50% 18%, rgba(31, 111, 196, 0.24), transparent 70%),
    radial-gradient(circle at center, transparent 40%, rgba(3, 10, 15, 0.55) 100%);
}

/* Layer 4: Star particles canvas */
#starCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ------------------------------------------------------------
   4. NAVIGATION
   ------------------------------------------------------------ */
.header-nav {
  position: relative;
  z-index: 20;
  width: min(var(--nav-max-width), calc(100% - 48px));
  height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand Logo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.brand:hover {
  opacity: 0.92;
}

.brand-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 8px rgba(31, 111, 196, 0.45));
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #FFFFFF;
}

.brand-subtitle {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #92B7D8;
  margin-top: 3px;
  text-transform: uppercase;
}

/* Desktop Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  color: #D3E0EA;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  position: relative;
  padding: 6px 0;
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-link:hover {
  color: #FFFFFF;
}

/* Smooth left-to-right animated 2px underline */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-hover);
  box-shadow: 0 0 8px rgba(45, 130, 218, 0.6);
  border-radius: 1px;
  transition: width var(--transition-fast);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-chevron {
  width: 13px;
  height: 13px;
  opacity: 0.75;
  transition: transform var(--transition-fast);
}

.nav-link:hover .nav-chevron {
  transform: translateY(1px);
  opacity: 1;
}

/* Mobile Hamburger Button */
.menu-toggle-btn {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  color: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.menu-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
}

.menu-toggle-btn img,
.menu-toggle-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

/* Mobile Navigation Drawer */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 18, 29, 0.72);
  backdrop-filter: blur(8px);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
}

.mobile-nav-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100%;
  background: rgba(9, 32, 47, 0.97);
  backdrop-filter: blur(18px);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
  border-left: 1px solid rgba(92, 111, 128, 0.3);
  z-index: 100;
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
  display: flex;
  flex-direction: column;
  padding: 24px 28px;
}

.mobile-drawer.is-active {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
}

.mobile-close-btn {
  background: none;
  border: none;
  color: #B2C7D9;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-close-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

.mobile-drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-drawer-links a {
  font-size: 1.1rem;
  font-weight: 600;
  color: #E2ECF4;
  padding: 10px 0;
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.mobile-drawer-links a:hover {
  color: var(--primary-hover);
  padding-left: 6px;
}

/* ------------------------------------------------------------
   5. HERO SECTION
   ------------------------------------------------------------ */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 10;
}

.hero {
  text-align: center;
  padding: 68px 24px 36px;
  max-width: 920px;
  opacity: 0;
  transform: translateY(18px);
  animation: heroEntrance var(--transition-entrance) forwards;
}

.hero-title {
  font-size: clamp(32px, 3vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  color: #FFFFFF;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
  letter-spacing: -0.02em;
}

.hero-title .divider-dot {
  color: var(--accent);
  opacity: 0.95;
  margin: 0 8px;
  font-weight: 400;
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(15px, 1.3vw, 17px);
  color: #B4C7D7;
  font-weight: 400;
  margin-top: 14px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

/* ------------------------------------------------------------
   6. EMAIL CREATION CARD
   ------------------------------------------------------------ */
.email-card-section {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0 20px 48px;
}

.email-card {
  width: min(var(--card-max-width), 100%);
  background: var(--card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--border-radius-card);
  box-shadow: 0 22px 60px var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  padding: 36px 32px 32px;
  color: var(--text-dark);
  opacity: 0;
  transform: translateY(20px);
  animation: cardEntrance var(--transition-entrance) 0.15s forwards;
}

/* Single Creation Row */
.creation-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  position: relative;
}

.input-group {
  display: flex;
  flex: 1;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--border-radius-input);
  background: #F0F3F6;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) inset;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.input-group:focus-within {
  border-color: var(--primary);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(31, 111, 196, 0.16);
}

.prefix-input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 16px;
  border: none;
  background: transparent;
  color: var(--text-dark);
  font-size: 15px;
  font-weight: 500;
  outline: none;
}

.prefix-input::placeholder {
  color: var(--text-muted);
  opacity: 0.75;
}

.domain-suffix-badge {
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  background: #E5ECF2;
  color: #384A59;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-left: 1px solid var(--border);
  border-top-right-radius: calc(var(--border-radius-input) - 1px);
  border-bottom-right-radius: calc(var(--border-radius-input) - 1px);
  white-space: nowrap;
  user-select: none;
}

/* Buttons */
.btn {
  height: 46px;
  padding: 0 20px;
  border: none;
  border-radius: var(--border-radius-input);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.01em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary {
  background-color: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(31, 111, 196, 0.22);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(31, 111, 196, 0.35);
}

.btn-accent {
  background-color: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(244, 178, 27, 0.22);
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(244, 178, 27, 0.35);
}

.btn-secondary {
  background-color: #E2E8F0;
  color: var(--text-dark);
}

.btn-secondary:hover {
  background-color: #D6DFE8;
  transform: translateY(-2px);
}

/* Inline Validation Message */
.validation-message {
  min-height: 22px;
  font-size: 13px;
  font-weight: 500;
  margin: 6px 0 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity var(--transition-fast);
}

.validation-message.is-error {
  color: #D32F2F;
}

.validation-message.is-success {
  color: #198754;
}

/* Suffix Selector Section */
.suffix-section {
  margin-top: 10px;
}

.section-label {
  font-size: 13px;
  font-weight: 700;
  color: #435565;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.suffix-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.suffix-pill {
  border: 1px solid rgba(92, 111, 128, 0.18);
  border-radius: var(--border-radius-pill);
  padding: 8px 16px;
  background: rgba(225, 231, 238, 0.62);
  color: #334351;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}

.suffix-pill:hover {
  transform: translateY(-1px);
  background: rgba(210, 219, 228, 0.9);
  color: #1A242E;
}

.suffix-pill.is-active {
  background-color: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(31, 111, 196, 0.28);
}

.suffix-pill.is-active:hover {
  background-color: var(--primary-hover);
  color: #FFFFFF;
}

/* Tips Panel */
.tips-panel {
  margin-top: 28px;
  padding: 20px 22px;
  border-radius: 10px;
  background-color: var(--card-soft);
  border: 1px solid rgba(92, 111, 128, 0.12);
  font-size: 13px;
  line-height: 1.6;
  color: #556677;
}

.tips-title {
  font-size: 14px;
  font-weight: 750;
  color: var(--text-dark);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tips-list {
  padding-left: 20px;
  margin: 0;
}

.tips-list li {
  margin-bottom: 8px;
}

.tips-list li:last-child {
  margin-bottom: 0;
}

.tips-list a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tips-list a:hover {
  color: var(--primary-hover);
}

/* ------------------------------------------------------------
   7. FOOTER
   ------------------------------------------------------------ */
.site-footer {
  width: 100%;
  position: relative;
  z-index: 10;
  margin-top: auto;
  padding: 40px 24px 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(to bottom, transparent, rgba(4, 18, 29, 0.65));
}

.footer-container {
  width: min(var(--card-max-width), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-column h4 {
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links li,
.footer-links a,
.footer-text {
  color: #A9BCCB;
  font-size: 13.5px;
  line-height: 1.5;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #FFFFFF;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ------------------------------------------------------------
   8. FLOATING SUPPORT BUTTON (TELEGRAM)
   ------------------------------------------------------------ */
.floating-support-btn {
  position: fixed;
  bottom: 30px;
  right: 32px;
  z-index: 90;
  padding: 12px 22px;
  border-radius: var(--border-radius-pill);
  background: linear-gradient(135deg, #1E79C9 0%, #155E9E 100%);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.18) inset;
  color: #FFFFFF;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  animation: subtlePulse 5s infinite ease-in-out;
}

.floating-support-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(25, 115, 195, 0.48), 0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

.floating-support-btn img,
.floating-support-btn svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
}

/* ------------------------------------------------------------
   9. MODALS
   ------------------------------------------------------------ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 18, 29, 0.76);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
}

.modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  position: relative;
  width: min(460px, 100%);
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45);
  padding: 36px 32px;
  text-align: center;
  color: var(--text-dark);
  transform: scale(0.95) translateY(10px);
  transition: transform var(--transition-fast);
}

.modal-backdrop.is-open .modal-dialog {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(92, 111, 128, 0.1);
  border-radius: 50%;
  color: #607080;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(92, 111, 128, 0.2);
  color: #1A242E;
}

.modal-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(31, 111, 196, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-icon svg,
.modal-icon img {
  width: 28px;
  height: 28px;
}

.modal-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.modal-created-email {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  background: #F0F4F8;
  border: 1px solid rgba(92, 111, 128, 0.2);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 16px 0 24px;
  word-break: break-all;
  user-select: all;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.modal-actions .btn {
  flex: 1;
}

/* Custom Domain Modal Specifics */
.custom-domain-form {
  text-align: left;
  margin-top: 18px;
}

.custom-domain-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #4A5B6B;
  margin-bottom: 6px;
}

.custom-domain-input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 14px;
  background: #F4F6F9;
  font-size: 15px;
  color: var(--text-dark);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.custom-domain-input:focus {
  border-color: var(--primary);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(31, 111, 196, 0.14);
}

.custom-domain-note {
  font-size: 12.5px;
  color: #728495;
  margin: 10px 0 22px;
  line-height: 1.45;
}

/* ------------------------------------------------------------
   10. ANIMATIONS & KEYFRAMES
   ------------------------------------------------------------ */
@keyframes heroEntrance {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes subtlePulse {
  0%, 82%, 100% {
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.18) inset;
  }
  90% {
    box-shadow: 0 10px 30px rgba(45, 130, 218, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.35) inset;
  }
}

/* ------------------------------------------------------------
   11. RESPONSIVE BREAKPOINTS
   ------------------------------------------------------------ */
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .header-nav {
    height: 72px;
    width: calc(100% - 32px);
  }

  .nav-links {
    display: none;
  }

  .menu-toggle-btn {
    display: inline-flex;
  }

  .hero {
    padding: 44px 16px 28px;
  }

  .email-card {
    padding: 24px 20px;
    border-radius: 12px;
  }

  /* Vertical stack on mobile as requested */
  .creation-row {
    flex-direction: column;
    gap: 10px;
  }

  .input-group {
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .domain-suffix-badge {
    padding: 0 12px;
    font-size: 13.5px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .floating-support-btn {
    bottom: 20px;
    right: 20px;
    padding: 10px 18px;
    font-size: 12.5px;
  }

  .modal-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .suffix-pill {
    padding: 7px 13px;
    font-size: 12.5px;
  }

  .email-card {
    padding: 20px 16px;
  }
}

/* ------------------------------------------------------------
   12. ACCESSIBILITY & PREFERS-REDUCED-MOTION
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .bg-parallax {
    transform: none !important;
  }

  .floating-support-btn {
    animation: none !important;
  }
}

/* ------------------------------------------------------------
   13. SUBPAGES & SHARED COMPONENT STYLES
   ------------------------------------------------------------ */
.page-container {
  width: min(1040px, calc(100% - 36px));
  margin: 0 auto 60px;
  position: relative;
  z-index: 10;
  animation: cardEntrance var(--transition-entrance) 0.1s forwards;
}

.content-card {
  background: var(--card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--border-radius-card);
  box-shadow: 0 24px 64px var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  padding: 42px 38px;
  color: var(--text-dark);
  margin-bottom: 36px;
}

.page-header-block {
  text-align: center;
  padding: 50px 20px 36px;
  animation: heroEntrance var(--transition-entrance) forwards;
}

.page-header-block h1 {
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.45);
}

.page-header-block p {
  color: #B2C7D7;
  font-size: clamp(15px, 1.2vw, 17px);
  margin-top: 12px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* Plan / Pricing Cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 28px;
}

.plan-card {
  background: #FFFFFF;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.plan-card.is-popular {
  border: 2px solid var(--primary);
  box-shadow: 0 14px 40px rgba(31, 111, 196, 0.16);
}

.popular-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--primary);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(31, 111, 196, 0.3);
}

.plan-title {
  font-size: 1.25rem;
  font-weight: 750;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.plan-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  min-height: 40px;
  line-height: 1.45;
}

.plan-price-wrap {
  margin: 20px 0;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.plan-amount {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
}

.plan-period {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.plan-features-list {
  list-style: none;
  margin: 12px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.plan-features-list li {
  font-size: 13.5px;
  color: #384A59;
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-features-list li svg,
.plan-features-list li img {
  width: 17px;
  height: 17px;
  color: var(--primary);
  flex-shrink: 0;
}

/* Comparison Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin-top: 30px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background: #FFFFFF;
  font-size: 14px;
}

.data-table th,
.data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(92, 111, 128, 0.14);
}

.data-table th {
  background: #F1F4F8;
  color: var(--text-dark);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.data-table td {
  color: #384A59;
}

.data-table tr:last-child td {
  border-bottom: none;
}

/* Code & Snippet Blocks */
.code-container {
  background: #061923;
  border: 1px solid rgba(92, 111, 128, 0.3);
  border-radius: 10px;
  margin: 16px 0 24px;
  overflow: hidden;
}

.code-header {
  background: #09283B;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(92, 111, 128, 0.25);
}

.code-lang-label {
  font-size: 12px;
  font-weight: 700;
  color: #9EC0DC;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.code-copy-action {
  background: transparent;
  border: none;
  color: #A3C2DE;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition-fast);
}

.code-copy-action:hover {
  color: #FFFFFF;
}

.code-content {
  padding: 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.6;
  color: #E2ECF4;
  overflow-x: auto;
  white-space: pre;
}

/* Status Badges */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
}

.status-pill.success {
  background: rgba(25, 135, 84, 0.12);
  color: #198754;
}

.status-pill.primary {
  background: rgba(31, 111, 196, 0.12);
  color: var(--primary);
}

/* Dashboard Metrics Grid */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.metric-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.metric-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-dark);
}

.metric-subtext {
  font-size: 12px;
  color: #2E7D32;
  font-weight: 600;
}

/* Legal Document Styles */
.legal-body h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 28px 0 12px;
  letter-spacing: -0.01em;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body p {
  font-size: 14.5px;
  line-height: 1.7;
  color: #4A5B6B;
  margin-bottom: 16px;
}

.legal-body ul {
  padding-left: 24px;
  margin-bottom: 20px;
}

.legal-body li {
  font-size: 14.5px;
  line-height: 1.65;
  color: #4A5B6B;
  margin-bottom: 8px;
}

/* Language Dropdown Menu */
.language-selector-wrapper {
  position: relative;
}

.language-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 10px;
  background: rgba(9, 32, 47, 0.98);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(92, 111, 128, 0.35);
  border-radius: 10px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  padding: 8px 0;
  min-width: 150px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
}

.language-dropdown-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-dropdown-menu button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: #D6E3EE;
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.language-dropdown-menu button:hover {
  background: rgba(31, 111, 196, 0.25);
  color: #FFFFFF;
}

.language-dropdown-menu button.is-selected {
  color: var(--primary-hover);
  font-weight: 700;
}

/* Subpage Responsive */
@media (max-width: 960px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .metrics-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .content-card {
    padding: 24px 18px;
  }

  .metrics-row {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------
   14. CRYPTO CHECKOUT (USDT BEP-20) & ADMIN ENGINE
   ------------------------------------------------------------ */
.crypto-modal-dialog {
  max-width: 520px;
  text-align: left;
}

.crypto-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.crypto-title-group h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0;
  color: var(--text-dark);
}

.crypto-title-group p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.badge-bep20 {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #F3BA2F;
  color: #0B0E11;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 9999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.crypto-amount-banner {
  background: #F0F4F8;
  border: 1px solid rgba(31, 111, 196, 0.2);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.crypto-amount-label {
  font-size: 13px;
  font-weight: 600;
  color: #435565;
}

.crypto-amount-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.deposit-box {
  background: #F9FBFC;
  border: 1px dashed rgba(92, 111, 128, 0.35);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 20px;
}

.deposit-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}

.deposit-address-row {
  display: flex;
  gap: 8px;
}

.deposit-address-input {
  flex: 1;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0 12px;
  font-family: ui-monospace, monospace;
  font-size: 12.5px;
  color: #1A242E;
  font-weight: 600;
  height: 42px;
}

/* Quota Progress Bar */
.quota-meter-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 24px;
}

.quota-meter-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.quota-meter-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}

.quota-meter-count {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary);
}

.quota-bar-track {
  width: 100%;
  height: 10px;
  background: #E8EDF2;
  border-radius: 9999px;
  overflow: hidden;
}

.quota-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #1F6FC4 0%, #2D82DA 100%);
  border-radius: 9999px;
  transition: width 0.4s ease;
}

.quota-bar-fill.warning {
  background: #F4B21B;
}

.quota-bar-fill.danger {
  background: #D32F2F;
}

/* API Key Box */
.api-key-container {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #09283B;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 12px 0 20px;
  border: 1px solid rgba(92, 111, 128, 0.3);
}

.api-key-text {
  flex: 1;
  font-family: ui-monospace, monospace;
  font-size: 13.5px;
  color: #9EC0DC;
  letter-spacing: 0.05em;
  user-select: all;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Admin Tabs & Layout */
.admin-nav-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  overflow-x: auto;
}

.admin-tab-btn {
  background: transparent;
  border: none;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
}

.admin-tab-btn:hover {
  color: var(--text-dark);
}

.admin-tab-btn.is-active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.admin-panel-section {
  display: none;
}

.admin-panel-section.is-active {
  display: block;
}

.badge-order-status {
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-order-status.pending {
  background: rgba(244, 178, 27, 0.15);
  color: #B57F08;
}

.badge-order-status.approved {
  background: rgba(25, 135, 84, 0.15);
  color: #198754;
}

.badge-order-status.rejected {
  background: rgba(211, 47, 47, 0.15);
  color: #D32F2F;
}

/* ------------------------------------------------------------
   14. 18+ AGE VERIFICATION OVERLAY (PREMIUM CINEMATIC GATE)
   ------------------------------------------------------------ */
body.age-gate-locked {
  overflow: hidden !important;
  height: 100vh !important;
}

.age-gate-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: radial-gradient(circle at center, rgba(6, 25, 42, 0.94) 0%, rgba(2, 9, 15, 0.98) 100%);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.45s ease;
}

.age-gate-backdrop.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.age-gate-card {
  position: relative;
  width: min(520px, 100%);
  background: linear-gradient(180deg, rgba(13, 31, 51, 0.92) 0%, rgba(6, 20, 34, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.85),
              0 0 50px rgba(30, 121, 201, 0.25),
              0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  border-radius: 24px;
  padding: 44px 38px 38px;
  text-align: center;
  color: #FFFFFF;
  animation: ageCardEntrance 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  overflow: hidden;
}

@keyframes ageCardEntrance {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(24px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.age-gate-card::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 160px;
  background: radial-gradient(circle, rgba(30, 121, 201, 0.4) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.age-gate-badge-wrap {
  position: relative;
  width: 86px;
  height: 86px;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.age-gate-badge-glow {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #1E79C9, #00D2FF, #1E79C9);
  animation: rotateAgeGlow 6s linear infinite;
  opacity: 0.85;
  filter: blur(5px);
}

@keyframes rotateAgeGlow {
  100% {
    transform: rotate(360deg);
  }
}

.age-gate-badge {
  position: relative;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0A243A 0%, #031422 100%);
  border: 2px solid rgba(255, 255, 255, 0.28);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}

.age-gate-badge-number {
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, #FFFFFF 0%, #7BD6FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.age-gate-badge-text {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #8CCBFF;
  margin-top: 3px;
}

.age-gate-title {
  font-size: clamp(23px, 2.4vw, 29px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: 12px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.age-gate-description {
  font-size: 14.5px;
  line-height: 1.6;
  color: #A9BCCB;
  margin-bottom: 28px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.age-gate-description strong {
  color: #FFFFFF;
  font-weight: 700;
}

.age-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-age-confirm {
  width: 100%;
  height: 52px;
  border-radius: var(--border-radius-pill);
  background: linear-gradient(135deg, #1E79C9 0%, #00B4D8 100%);
  border: none;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 750;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 12px 30px rgba(0, 180, 216, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.35) inset;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn-age-confirm::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  animation: ageShimmerSweep 3.5s infinite ease-in-out;
}

@keyframes ageShimmerSweep {
  0% { left: -100%; }
  35% { left: 200%; }
  100% { left: 200%; }
}

.btn-age-confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 180, 216, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  filter: brightness(1.08);
}

.btn-age-confirm:active {
  transform: translateY(0);
}

.btn-age-exit {
  width: 100%;
  height: 44px;
  border-radius: var(--border-radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #8A9EAF;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-age-exit:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #D1DFEC;
  border-color: rgba(255, 255, 255, 0.22);
}

.age-gate-disclaimer {
  font-size: 11.5px;
  color: #5C7285;
  margin-top: 20px;
  line-height: 1.5;
}

.age-gate-disclaimer a {
  color: #8CCBFF;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================================
   14. ADSTERRA MONETIZATION & AD CONTAINERS
   Clean, responsive, non-intrusive container styling
   ============================================================ */
.pinmax-ad-wrapper {
  width: 100%;
  margin: 28px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  clear: both;
}

.pinmax-ad-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(14, 30, 48, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 14px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pinmax-ad-card.clean {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 4px;
}

.ad-tag-label {
  font-size: 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #5C7285;
  margin-bottom: 6px;
  font-weight: 600;
  user-select: none;
}

.ad-desktop-only {
  display: block;
}

.ad-mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .ad-desktop-only {
    display: none !important;
  }
  .ad-mobile-only {
    display: block !important;
  }
}

.pinmax-ad-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 28px 0;
}

@media (max-width: 720px) {
  .pinmax-ad-grid-2col {
    grid-template-columns: 1fr;
  }
}




