/* =====================================================
   RESET
===================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  min-width: 0; /* Critical: prevents flex items from overflowing */
}

/* Improve touch interactions on mobile */
a, button, input, textarea, select {
  -webkit-tap-highlight-color: rgba(210, 248, 152, 0.2);
}

button, a {
  touch-action: manipulation;
}

/* =====================================================
   VARIABLES
===================================================== */
:root {
  --bg: #0A0A0A;
  --surface: #1A1A1A;
  --text: #FCFCFC;
  --muted: #94A3B8;
  --border: #2D2D2D;

  --lime: #D2F898;
  --yellow: #F6F930;
  
  /* Mobile-friendly sizing */
  --touch-target: 44px;
  --mobile-padding: 20px;
}

/* =====================================================
   BASE SCROLL
===================================================== */
html {
  height: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "JetBrains Mono", monospace;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
  
  /* Safe area for notched devices */
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

/* =====================================================
   LAYOUT
===================================================== */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;
  overflow-x: hidden;
  width: 100%;
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--mobile-padding);
  }
}

/* =====================================================
   FIXED HEADER
===================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;

  height: 88px;
  background: rgba(10, 10, 10, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);

  transition: height 0.25s ease;
  overflow: visible;
}

.site-header.compact {
  height: 64px;
}

.site-header .container {
  overflow: visible;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  overflow: visible;
}

/* =====================================================
   BRAND
===================================================== */
.brand {
  display: inline-flex;
  align-items: baseline;
  text-decoration: none;

  font-family: "JetBrains Mono", monospace;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: 28px;

  transition: font-size 0.25s ease;
}

.site-header.compact .brand {
  font-size: 20px;
}

.brand-the { color: var(--muted); }
.brand-level { color: var(--lime); }
.brand-dot,
.brand-app { color: var(--yellow); }

/* =====================================================
   NAVIGATION
===================================================== */
.nav {
  display: flex; /* Show on desktop */
  align-items: center;
  gap: 3px;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
  row-gap: 4px;
}

/* Mobile menu header - hidden on desktop */
.mobile-menu-header {
  display: none;
}

/* Hamburger menu button (hidden by default) */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  padding: 8px;
  transition: all 0.3s ease;
}

.menu-toggle:hover {
  border-color: var(--lime);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  margin: 3px 0;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.nav-link {
  text-decoration: none;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(11px, 1.8vw, 12px);
  letter-spacing: 0.01em;
  padding: 8px 12px;
  border-radius: 6px;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link.active {
  color: var(--text);
  border: 1px solid var(--border);
  background: rgba(26, 26, 26, 0.9);
}

/* =====================================================
   HEADER ACTIONS
===================================================== */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.divider {
  width: 1px;
  height: 18px;
  background: var(--border);
  margin: 0 8px;
}

.subtle {
  opacity: 0.95;
}

/* Language dropdown button */
.lang-dropdown {
  display: flex;
  align-items: center;
}

.lang-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 34px;
  transition: border-color 0.2s ease;
}

.lang-toggle:hover {
  border-color: var(--lime);
}

.btn-signup {
  text-decoration: none;
  font-size: clamp(11px, 1.8vw, 12px);
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--text);
  height: 34px;
  display: flex;
  align-items: center;
  transition: border-color 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-signup:hover {
  border-color: var(--lime);
}

/* =====================================================
   MAIN + SNAP (SAFE MODE)
===================================================== */
main {
  padding-top: 88px;
  scroll-snap-type: y proximity;
}

/* =====================================================
   TYPOGRAPHY
===================================================== */
h1, h2, h3 {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 26px;
  margin-bottom: 14px;
}

/* =====================================================
   HERO
===================================================== */
.hero {
  min-height: calc(100vh - 88px);
  padding: 120px 0 80px;
  overflow: visible;
}

.hero-title {
  font-size: 44px;
  line-height: 1.12;
  max-width: 820px;
}

.hero-sub {
  margin-top: 18px;
  max-width: 720px;
  color: var(--muted);
  font-size: 13px;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}

@media (max-width: 768px) {
  .hero {
    min-height: calc(100vh - 64px);
    padding: 80px 0 60px;
  }
  
  .hero-title {
    font-size: 32px;
    line-height: 1.2;
  }
  
  .hero-sub {
    font-size: 14px;
    margin-top: 16px;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
    text-align: center;
  }
}

.app-download {
  margin-top: 32px;
  text-align: left;
}

.app-download-text {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 12px;
}

.app-store-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.app-store-badges a {
  display: inline-block;
  transition: opacity 0.2s ease;
}

.app-store-badges a:hover {
  opacity: 0.8;
}

.app-store-badges img {
  display: block;
  height: 40px;
  width: auto;
}

.btn-primary {
  background: var(--lime);
  color: #000;
  text-decoration: none;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn-primary:not(:disabled):hover {
  opacity: 0.92;
}

.btn-primary:disabled {
  background: #262626;
  color: var(--muted);
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-primary:not(:disabled) {
  cursor: pointer;
}

.btn-secondary {
  color: var(--muted);
  text-decoration: none;
  font-size: clamp(11px, 1.8vw, 12px);
  padding: 10px 10px;
  white-space: normal;
  overflow-wrap: break-word;
  text-align: center;
}

.btn-secondary:hover {
  color: var(--text);
}

.hero-meta {
  margin-top: 18px;
  color: var(--muted);
  font-size: 11px;
}

.mono {
  color: var(--text);
  opacity: 0.9;
}

/* =====================================================
   HERO GRID + NEWS
===================================================== */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
}

.hero-main {
  max-width: 760px;
  min-width: 0;
}

.hero-news {
  min-width: 320px;
  max-width: 360px;
}

.hero-news-list {
  display: flex;
  flex-direction: column;
}

.hero-news-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-news-note {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

.news-card {
  background: rgba(26, 26, 26, 0.6);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 20px;
  margin-bottom: 14px;
}

.news-card h4 {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.news-card .news-content {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

.news-card time {
  font-size: 11px;
  color: var(--muted);
  opacity: 0.8;
}

.news-card.muted {
  opacity: 0.6;
}

/* =====================================================
   PANELS (SNAP TARGETS)
===================================================== */
.panel {
  min-height: calc(100vh - 88px);
  padding: 80px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);

  scroll-snap-align: start;
  scroll-margin-top: 88px;
}

@media (max-width: 768px) {
  .panel {
    min-height: auto;
    padding: 60px 0;
    scroll-margin-top: 64px;
  }
}

/* =====================================================
   VIDEO
===================================================== */
.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}


/* =====================================================
   INLINE LINKS
===================================================== */
.inline-link {
  color: var(--lime);
  text-decoration: none;
  border-bottom: 1px solid rgba(210, 248, 152, 0.35);
}

.inline-link:hover {
  border-bottom-color: rgba(210, 248, 152, 0.9);
}

/* =====================================================
   FOOTER
===================================================== */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer-inner {
  display: grid;
  gap: 14px;
}

.footer-brand {
  font-family: "JetBrains Mono", monospace;
  font-weight: 500;
  font-size: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column; /* ⬅ THIS IS THE KEY */
  gap: 8px;
}


.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  align-items: center;
}

.footer-legal a,
.footer-link-btn {
  color: var(--muted);
  text-decoration: none;
  font-size: 11px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s;
}

.footer-legal a:hover,
.footer-link-btn:hover {
  color: var(--lime);
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 11px;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-note {
  color: var(--muted);
  font-size: 11px;
  max-width: 900px;
}

/* =====================================================
   FOOTER SOCIALS
===================================================== */
.footer-socials-row {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.footer-socials {
  display: flex;
  gap: 14px;
}

.footer-socials a {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  opacity: 0.75;
}

.footer-socials a:hover {
  color: var(--text);
  opacity: 1;
}

.footer-socials svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* =====================================================
   LANGUAGE DROPDOWN
===================================================== */
.lang-dropdown {
  position: relative;
  z-index: 1010;
}

.lang-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(10px, 1.5vw, 11px);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  touch-action: manipulation;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.lang-toggle:hover,
.lang-toggle:active {
  color: var(--text);
  border-color: var(--lime);
}

.lang-menu {
  position: fixed;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  list-style: none;
  padding: 6px 0;
  min-width: max-content;
  max-width: min(90vw, 200px);
  display: none;
  z-index: 1011;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  pointer-events: auto;
  /* Position calculated dynamically by JS */
}

.lang-menu.open {
  display: block;
}

.lang-menu li {
  padding: 8px 14px;
  font-size: clamp(11px, 1.8vw, 12px);
  cursor: pointer;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lang-menu li:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

/* =====================================================
   GOOGLE TRANSLATE (HIDDEN)
===================================================== */
.gt-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

body {
  top: 0 !important;
}

/* =====================================================
   MOBILE
===================================================== */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* Header adjustments */
  .site-header {
    height: 64px;
  }
  
  .header-inner {
    gap: 12px;
  }
  
  /* Brand smaller on mobile */
  .brand {
    font-size: 20px;
    order: 0;
    flex-shrink: 0;
    min-width: fit-content;
  }
  
  /* Show hamburger menu */
  .menu-toggle {
    display: flex;
    order: 1;
    flex-shrink: 0;
    margin-left: auto;
  }
  
  /* Mobile navigation - overlay */
  .nav {
    display: flex;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    z-index: 998;
    justify-content: flex-start;
  }
  
  /* Show mobile menu header on mobile */
  .mobile-menu-header {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
  }
  
  .mobile-menu-header .btn-signup {
    flex: 1;
    padding: 12px 16px;
    font-size: 13px;
    text-align: center;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .mobile-menu-header .lang-dropdown {
    flex: 1;
  }
  
  .mobile-menu-header .lang-toggle {
    width: 100%;
    min-height: 44px;
    padding: 12px 16px;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }
  
  /* Hide desktop header actions and lang dropdown on mobile */
  .header-actions,
  .header-inner > .lang-dropdown {
    display: none !important;
  }
  
  .nav.active {
    max-height: 500px;
    opacity: 1;
    visibility: visible;
  }
  
  .nav-link {
    display: block;
    padding: 12px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
    text-align: left;
  }
  
  .nav-link:last-child {
    border-bottom: none;
  }
  
  /* Main content */
  main {
    padding-top: 64px;
  }
  
  /* Panels and sections */
  .panel {
    padding: 60px 0;
  }
  
  /* Typography */
  h2 {
    font-size: 24px;
  }
  
  h3 {
    font-size: 18px;
  }
  
  /* Buttons - make touch-friendly */
  .btn-primary,
  .btn-secondary,
  .btn {
    min-height: var(--touch-target);
    font-size: 14px;
    padding: 12px 20px;
  }
  
  /* Form fields - larger for mobile */
  .form-field input,
  .form-field textarea,
  .form-field select {
    font-size: 16px; /* Prevents iOS zoom */
    min-height: var(--touch-target);
    padding: 12px 14px;
  }
  
  /* Checkbox rows - mobile friendly */
  .checkbox-row {
    gap: 12px;
    margin-bottom: 18px;
    font-size: 14px;
    align-items: flex-start;
  }
  
  .checkbox-row label {
    gap: 12px;
    align-items: center;
  }
  
  .checkbox-row input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    flex-shrink: 0;
  }
  
  .checkbox-row span {
    line-height: 1.6;
  }
  
  /* Form field checkbox rows - ensure proper alignment on mobile */
  .form-field.checkbox-row {
    gap: 12px;
  }
  
  .form-field.checkbox-row label {
    gap: 12px;
    align-items: center;
  }
  
  .form-field.checkbox-row input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    flex-shrink: 0;
  }
  
  .form-field.checkbox-row span {
    line-height: 1.6;
  }
  
  /* App store badges */
  .app-store-badges {
    justify-content: center;
  }
  
  .app-store-badges img {
    height: 36px;
  }
  
  /* Grids and flexible layouts */
  .how-grid,
  .grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  /* Video wrapper */
  .video-wrapper {
    border-radius: 8px;
  }
  
  /* News cards */
  .news-card {
    padding: 16px;
  }
  
  .news-card h4 {
    font-size: 16px;
  }
  
  /* FAQ items */
  .faq-item {
    padding: 16px;
  }
  
  .faq-question {
    font-size: 15px;
  }
  
  .faq-answer {
    font-size: 14px;
    line-height: 1.6;
  }
  
  /* Footer */
  .footer-inner {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 12px;
  }
}

/* Extra small devices (phones, less than 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  .header-inner {
    gap: 8px;
  }
  
  .hero-title {
    font-size: 28px;
  }
  
  .brand {
    font-size: 16px;
  }
  
  h2 {
    font-size: 22px;
  }
  
  .btn-primary,
  .btn-secondary {
    font-size: clamp(12px, 2.5vw, 13px);
    padding: 12px 16px;
    letter-spacing: 0;
  }
}


.btn-account {
  text-decoration: none;
  font-size: clamp(11px, 1.8vw, 12px);
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.btn-account:hover {
  border-color: var(--lime);
}

#verifyGate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
}

.verify-card {
  max-width: 420px;
  padding: 32px;
  background: #111;
  border: 1px solid #2d2d2d;
  border-radius: 14px;
  text-align: center;
}

.verify-card h1 {
  margin-top: 0;
  font-size: 22px;
}

.verify-card p {
  margin: 12px 0 20px;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.6;
}

/* =====================================================
   FORMS (CONTACT + BUG REPORT)
===================================================== */

.form-card form,
.form-card {
  display: block;
  max-width: 100%;
  overflow-x: hidden;
}

.form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.form-field.checkbox-row {
  flex-direction: row;
  align-items: flex-start;
  gap: 0;
  justify-content: flex-start;
  max-width: 100%;
  overflow-x: hidden;
}

.form-field label {
  font-size: 14px;
  margin-bottom: 6px;
  color: #e5e7eb;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.form-field.checkbox-row label {
  margin-bottom: 0;
  display: inline-flex;
  align-items: flex-start;
  gap: 4px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  width: 100%;
  flex: 1;
}

.form-field.checkbox-row input[type="checkbox"] {
  margin: 0;
  margin-top: 4px;
  width: 18px;
  height: 18px;
  padding: 0;
  flex: 0 0 auto;
  cursor: pointer;
}

.form-field.checkbox-row span {
  line-height: 1.45;
  word-wrap: break-word;
  overflow-wrap: break-word;
  letter-spacing: 0;
  flex: 1;
  max-width: 100%;
}

.form-field.checkbox-row span span,
.form-field.checkbox-row span a {
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  display: inline;
  max-width: 100%;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 10px 12px;
  background: #0a0a0a;
  border: 1px solid #2d2d2d;
  border-radius: 6px;
  color: #fcfcfc;
  font-family: Inter, sans-serif;
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-card .btn-primary {
  margin-top: 8px;
}

.form-card {
  margin-top: 24px;
}

.form-card > .form-field:first-child {
  margin-top: 20px;
}

/* Legal acceptance checkboxes */
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
}

.checkbox-row label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  width: 100%;
}

.checkbox-row input,
.checkbox-row input[type="checkbox"] {
  margin: 0;
  margin-top: 2px;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.checkbox-row span {
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
  flex: 1;
}

/* =====================================================
   🍪 COOKIE CONSENT BANNER
===================================================== */

.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  padding: 20px 0;
  animation: slideUp 0.3s ease-out;
}

.cookie-banner.show {
  display: flex !important;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-banner-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-banner-content {
  flex: 1;
  min-width: 280px;
}

.cookie-banner-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--lime);
}

.cookie-banner-text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.cookie-link {
  color: var(--lime);
  text-decoration: underline;
  transition: opacity 0.2s;
}

.cookie-link:hover {
  opacity: 0.8;
}

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn-cookie {
  padding: 8px 16px;
  font-size: clamp(11px, 1.8vw, 12px);
  font-weight: 600;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: fit-content;
}

.btn-cookie:hover {
  background: var(--border);
  border-color: var(--text);
}

.btn-cookie.reject {
  border-color: #EF4444;
  color: #EF4444;
}

.btn-cookie.reject:hover {
  background: rgba(239, 68, 68, 0.1);
}

.btn-cookie.preferences {
  border-color: var(--muted);
}

.btn-cookie.accept {
  background: var(--lime);
  color: var(--bg);
  border-color: var(--lime);
}

.btn-cookie.accept:hover {
  background: #C5E878;
  border-color: #C5E878;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner-actions {
    justify-content: stretch;
  }

  .btn-cookie {
    flex: 1 1 auto;
    text-transform: none;
    font-size: 11px;
    letter-spacing: 0;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    padding: 10px 14px;
    line-height: 1.3;
    min-height: var(--touch-target);
  }
}

/* Fix form checkbox alignment on mobile */
@media (max-width: 768px) {
  .form-field.checkbox-row label {
    align-items: center !important;
    gap: 12px;
  }
  
  .form-field.checkbox-row input[type="checkbox"] {
    margin: 0 !important;
    margin-top: 0 !important;
    width: 20px;
    height: 20px;
  }
  
  .form-field.checkbox-row span {
    line-height: 1.6;
  }
}

/* =====================================================
   🍪 COOKIE PREFERENCES MODAL
===================================================== */

.cookie-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10001;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  overflow-y: auto;
}

.cookie-modal.show {
  display: flex !important;
}

.cookie-modal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.cookie-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid var(--border);
}

.cookie-modal-header h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--lime);
}

.cookie-modal-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
}

.cookie-modal-close:hover {
  background: var(--border);
  color: var(--text);
}

.cookie-modal-body {
  padding: 24px;
  flex: 1;
  overflow-y: auto;
}

.cookie-category {
  margin-bottom: 24px;
  border: none;
  padding: 0;
}

.cookie-category:last-child {
  margin-bottom: 0;
}

.cookie-category-title {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.cookie-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--lime);
}

.cookie-checkbox:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.cookie-category-description {
  font-size: 12px;
  color: var(--muted);
  margin-left: 30px;
  line-height: 1.5;
}

.cookie-modal-footer {
  display: flex;
  gap: 12px;
  padding: 24px;
  border-top: 1px solid var(--border);
  justify-content: flex-end;
  flex-wrap: wrap;
}

.cookie-modal-footer .btn {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
}

.cookie-modal-footer .btn-secondary {
  color: #EF4444;
  border-color: #EF4444;
}

.cookie-modal-footer .btn-secondary:hover {
  background: rgba(239, 68, 68, 0.1);
}

/* Accessibility */
.cookie-banner:focus-within {
  outline: 2px solid var(--lime);
  outline-offset: -2px;
}

.cookie-modal:focus-within {
  outline: 2px solid var(--lime);
  outline-offset: -2px;
}

/* =====================================================
   TOAST (FORMAL, TOP-CENTER)
===================================================== */
#toastContainer {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 640px;
  z-index: 10000;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(26, 26, 26, 0.96);
  color: var(--text);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  font-size: 13px;
  line-height: 1.5;
  display: none;
}

#toastContainer.toast-visible {
  display: block;
}
/* =====================================================
   NEWSLETTER SECTION
===================================================== */
.newsletter {
  min-height: auto;
  padding: 40px 0 !important;
  margin: 0 !important;
  border-top: none;
  background: transparent;
}

.newsletter-card {
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(26, 26, 26, 0.5);
  backdrop-filter: blur(8px);
  text-align: center;
  overflow-x: hidden;
  box-sizing: border-box;
}

.newsletter-card h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--lime);
}

.newsletter-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.newsletter-field {
  display: flex;
}

.newsletter-field input {
  flex: 1;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  transition: border-color 0.2s ease;
}

.newsletter-field input:focus {
  outline: none;
  border-color: var(--lime);
}

.newsletter-field input::placeholder {
  color: var(--muted);
}

.newsletter-consent {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  margin: 4px 0;
  max-width: 100%;
  width: 100%;
  overflow-wrap: break-word;
}

.newsletter-consent label {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  cursor: pointer;
  font-size: 12px;
  color: var(--text);
  margin: 0;
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  text-align: left;
}

.newsletter-consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--lime);
  flex-shrink: 0;
  margin-top: 2px;
}

.newsletter-consent label span {
  word-wrap: break-word;
  overflow-wrap: break-word;
  flex: 1;
  max-width: 100%;
}

.newsletter-consent label a {
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  display: inline;
}

.newsletter-form .btn-primary {
  margin-top: 4px;
  padding: 10px 20px;
  font-size: 13px;
}

.newsletter-form .form-message {
  font-size: 12px;
  padding: 8px;
  border-radius: 4px;
  margin-top: 4px;
  display: none;
}

.newsletter-form .form-message.success {
  display: block;
  background: rgba(210, 248, 152, 0.1);
  color: var(--lime);
  border: 1px solid rgba(210, 248, 152, 0.3);
}

.newsletter-form .form-message.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

@media (max-width: 768px) {
  .newsletter {
    padding: 24px 16px;
  }

  .newsletter-card {
    padding: 20px;
    margin: 0 auto;
  }

  .newsletter-card h2 {
    font-size: 16px;
  }

  .newsletter-subtitle {
    font-size: 12px;
    margin-bottom: 12px;
  }
  
  .newsletter-consent label {
    font-size: 13px;
    gap: 6px;
    align-items: flex-start;
  }
  
  .newsletter-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
  }
}

/* =====================================================
   LANGUAGE-SPECIFIC ADJUSTMENTS
===================================================== */

/* German - longer compound words */
[lang="de"] .btn-cookie,
[lang="de"] .btn-primary,
[lang="de"] .btn-secondary,
[lang="de"] .btn-account {
  font-size: clamp(10px, 1.6vw, 11px);
  letter-spacing: 0;
  padding: 8px 12px;
}

[lang="de"] .nav-link {
  font-size: clamp(10px, 1.6vw, 11px);
  letter-spacing: 0;
}

/* Spanish - typically 20-30% longer */
[lang="es"] .btn-cookie {
  letter-spacing: 0;
}

/* Russian - Cyrillic renders wider */
[lang="ru"] .btn-cookie,
[lang="ru"] .btn-primary,
[lang="ru"] .nav-link {
  font-size: clamp(10px, 1.6vw, 11px);
  letter-spacing: 0;
}

/* Arabic - RTL support */
[lang="ar"] {
  direction: rtl;
}

[lang="ar"] .header-inner,
[lang="ar"] .header-actions,
[lang="ar"] .footer-nav {
  flex-direction: row-reverse;
}

[lang="ar"] .checkbox-row label {
  flex-direction: row-reverse;
}

/* Mobile: Remove uppercase for all long-word languages */
@media (max-width: 768px) {
  [lang="de"] .btn-cookie,
  [lang="es"] .btn-cookie,
  [lang="ru"] .btn-cookie,
  [lang="pt"] .btn-cookie {
    text-transform: none;
    font-size: 10px;
  }
}