/* ═══════════════════════════════════════════════
   XBIT — SHARED STYLES
   Used by: all pages
═══════════════════════════════════════════════ */

/* ── RESET & ROOT VARIABLES ── */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:     #050510;
  --bg2:    #08081a;
  --card:   rgba(255,255,255,0.03);
  --border: rgba(255,255,255,0.07);
  --white:  #ffffff;
  --gray:   rgba(255,255,255,0.5);
  --gray2:  rgba(255,255,255,0.25);
  --gray3:  rgba(255,255,255,0.08);
  --purple: #7c6af7;
  --purple2:rgba(100,80,220,0.7);
  --green:  #4ade80;
  --red:    #f87171;
  --blue:   #7c6af7;
  --teal:   #2dd4bf;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── DEMO ENVIRONMENT INDICATOR ── */
.demo-env-banner {
  background: linear-gradient(90deg, rgba(124, 106, 247, 0.12) 0%, rgba(56, 189, 248, 0.1) 100%);
  border-bottom: 1px solid rgba(124, 106, 247, 0.2);
  color: rgba(255, 255, 255, 0.85);
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  z-index: 1001;
  letter-spacing: 0.2px;
}
.demo-env-badge {
  background: rgba(124, 106, 247, 0.25);
  border: 1px solid rgba(124, 106, 247, 0.5);
  color: #c4b5fd;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

/* ── BACKGROUND CANVAS ── */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── LOADER — Web3 Cyber Orbital Core ── */
#loader, #loader2 {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 48%, rgba(20, 16, 48, 0.95) 0%, #04040c 75%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px);
}
#loader.out, #loader2.out {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

.ld-ring-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ld-ring-wrap::before {
  content: '';
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 106, 247, 0.25) 0%, rgba(56, 189, 248, 0.08) 50%, transparent 70%);
  filter: blur(12px);
  animation: ld-pulse-glow 2s ease-in-out infinite alternate;
}

.ld-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.06);
  border-top-color: #7c6af7;
  border-right-color: #38bdf8;
  animation: ld-spin 1.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
  box-shadow: 0 0 16px rgba(124, 106, 247, 0.4);
}
.ld-ring::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 14px 4px rgba(56, 189, 248, 0.9);
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
}

.ld-ring:nth-child(2) {
  inset: 14px;
  border: 1.5px dashed rgba(124, 106, 247, 0.35);
  border-bottom: 2px solid #a78bfa;
  animation: ld-spin-rev 2s linear infinite;
  box-shadow: none;
}
.ld-ring:nth-child(2)::after {
  width: 6px;
  height: 6px;
  background: #7c6af7;
  box-shadow: 0 0 12px 3px rgba(124, 106, 247, 0.9);
  top: auto;
  bottom: -3px;
  left: 50%;
}

.ld-logo {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: ld-float 2.5s ease-in-out infinite alternate;
}
.ld-logo svg {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 0 20px rgba(124, 106, 247, 0.85)) drop-shadow(0 0 6px rgba(255,255,255,0.8));
}
.ld-logo span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3.5px;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 6px;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
}

.ld-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  font-family: 'JetBrains Mono', monospace;
}
.ld-counter #ld-prev, .ld-counter #ld-next { display: none; }
.ld-counter .cur {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  background: linear-gradient(135deg, #ffffff, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  min-width: 44px;
  text-align: center;
  text-shadow: 0 0 20px rgba(124, 106, 247, 0.5);
}
.ld-counter::after {
  content: '%';
  font-size: 14px;
  font-weight: 600;
  color: #7c6af7;
  margin-left: -4px;
}

.ld-progress-bar {
  width: 160px;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  margin-top: 14px;
  overflow: hidden;
  position: relative;
}
.ld-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #7c6af7, #38bdf8, #10b981);
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.8);
  transition: width 0.08s ease;
}

.ld-dots {
  display: flex;
  gap: 6px;
  margin-top: 14px;
  align-items: center;
}
.ld-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transition: all 0.2s ease;
}
.ld-dots span.on {
  background: #7c6af7;
  box-shadow: 0 0 8px #7c6af7;
  transform: scale(1.3);
}

@keyframes ld-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes ld-spin-rev { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }
@keyframes ld-pulse-glow { 0% { opacity: 0.5; transform: scale(0.95); } 100% { opacity: 1; transform: scale(1.1); } }
@keyframes ld-float { 0% { transform: translateY(0px); } 100% { transform: translateY(-3px); } }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  background: rgba(5,5,16,0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 2.5px;
  font-weight: 400;
  text-transform: uppercase;
  text-decoration: none;
  color: white;
}
.nav-logo svg { width: 26px; height: 26px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--gray);
}
.nav-links a { color: inherit; text-decoration: none; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: white; }

.nav-item { position: relative; padding: 8px 14px; cursor: pointer; transition: color .2s; }
.nav-item:hover { color: white; }
.nav-item-label { display: flex; align-items: center; gap: 5px; }
.nav-chevron { font-size: 8px; opacity: 0.5; transition: transform .25s; }
.nav-item:hover .nav-chevron { transform: rotate(180deg); opacity: 0.8; }

.nav-dropdown {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(8px);
  opacity: 0; visibility: hidden;
  background: rgba(12,12,28,0.95); backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 16px;
  padding: 20px 8px; min-width: 280px;
  transition: opacity .25s, transform .25s, visibility .25s;
  pointer-events: none;
}
.nav-item:hover .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.nav-dropdown.wide { min-width: 340px; }

.dd-cat { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,0.3); padding: 8px 16px 6px; margin-top: 6px; }
.dd-cat:first-child { margin-top: 0; }
.dd-item {
  display: flex; align-items: flex-start; gap: 14px; padding: 10px 16px; border-radius: 10px;
  text-decoration: none; color: white; transition: background .2s;
}
.dd-item:hover { background: rgba(255,255,255,0.06); }
.dd-icon {
  width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.1); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px;
}
.dd-icon svg { width: 16px; height: 16px; stroke: rgba(255,255,255,0.55); fill: none; stroke-width: 1.5; }
.dd-title { font-size: 13px; font-weight: 400; margin-bottom: 3px; }
.dd-desc { font-size: 11px; color: var(--gray); line-height: 1.4; }
.dd-divider { height: 1px; background: rgba(255,255,255,0.06); margin: 6px 16px; }

.nav-right { display: flex; align-items: center; gap: 14px; }

.btn-login {
  background: none;
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.8);
  font-size: 12.5px;
  padding: 9px 22px;
  border-radius: 50px;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: border-color .2s, color .2s;
}
.btn-login:hover, .btn-login.active { border-color: rgba(255,255,255,0.6); color: white; }

.btn-signup {
  background: rgba(90,70,200,0.55);
  border: 1px solid rgba(124,106,247,0.45);
  color: white;
  font-size: 12.5px;
  padding: 9px 22px;
  border-radius: 50px;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  backdrop-filter: blur(12px);
  transition: background .2s;
}
.btn-signup:hover { background: rgba(124,106,247,0.7); }

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(8,8,26,0.95);
  border: 1px solid rgba(124,106,247,0.35);
  border-radius: 50px;
  padding: 12px 24px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: all .4s;
  z-index: 999;
  backdrop-filter: blur(12px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err  { border-color: rgba(248,113,113,0.4); }

/* ── FADE-IN SCROLL REVEAL ── */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.fade-in.vis { opacity: 1; transform: none; }

/* ── SHARED FOOTER (full version — used on about & other long pages) ── */
footer {
  background: rgba(14, 14, 32, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 40px 48px 26px;
}
.ft-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}
.ft-brand { display: flex; flex-direction: column; gap: 18px; }
.ft-logo { display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: 2.5px; font-weight: 400; text-transform: uppercase; }
.ft-logo svg { width: 26px; height: 26px; }
.ft-tagline { font-size: 12.5px; color: var(--gray2); line-height: 1.65; }
.ft-socials { display: flex; gap: 10px; }
.ft-soc {
  width: 30px; height: 30px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--gray);
  transition: border-color .2s, color .2s;
}
.ft-soc:hover { border-color: rgba(255,255,255,0.5); color: white; }
.ft-soc svg { width: 13px; height: 13px; fill: currentColor; }
.ft-col h4 { font-size: 12.5px; font-weight: 400; color: rgba(255,255,255,0.5); margin-bottom: 16px; }
.ft-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ft-col ul li a { font-size: 12.5px; color: rgba(255,255,255,0.3); text-decoration: none; transition: color .2s; }
.ft-col ul li a:hover { color: white; }
.ft-bot {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 20px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--gray2);
}
.ft-green { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px #4ade80; display: inline-block; margin-right: 6px; }

/* Simple footer variant (markets, exchange, etc.) */
.ft-links { display: flex; gap: 24px; }
.ft-links a { color: inherit; text-decoration: none; transition: color .2s; }
.ft-links a:hover { color: white; }

/* ── FLOATING CRYPTO TAGS ── */
.float-tags {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.ftag {
  position: absolute;
  font-size: 11px;
  color: rgba(255,255,255,0.14);
  letter-spacing: 2px;
  font-weight: 300;
  animation: floatUp linear infinite;
  filter: blur(0.5px);
}
@keyframes floatUp {
  0%   { transform: translateY(0);      opacity: 0; }
  10%  { opacity: 0.8; }
  90%  { opacity: .5; }
  100% { transform: translateY(-100vh); opacity: 0; }
}

/* ── SCROLL PROGRESS BAR ── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--purple), var(--teal));
  z-index: 9998;
  transition: width .1s linear;
  pointer-events: none;
}

/* ── BACK TO TOP ── */
#back-to-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 40px; height: 40px;
  background: rgba(124,106,247,0.15);
  border: 1px solid rgba(124,106,247,0.35);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--purple);
  opacity: 0; transform: translateY(12px);
  transition: opacity .3s, transform .3s, background .2s;
  z-index: 200;
  pointer-events: none;
}
#back-to-top svg { width: 18px; height: 18px; }
#back-to-top.visible { opacity: 1; transform: none; pointer-events: auto; }
#back-to-top:hover { background: rgba(124,106,247,0.3); }

/* ── COOKIE CONSENT ── */
#cookie-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9000;
  background: rgba(8,8,26,0.97);
  border-top: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
  padding: 18px 48px;
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.22,.68,0,1.2);
}
#cookie-bar.visible { transform: translateY(0); }
.ck-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.ck-text { flex: 1; font-size: 12.5px; color: var(--gray); line-height: 1.6; display: flex; align-items: flex-start; gap: 10px; }
.ck-text svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; stroke: var(--gray2); }
.ck-text a { color: white; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.2); }
.ck-text a:hover { border-color: white; }
.ck-actions { display: flex; gap: 10px; flex-shrink: 0; }
.ck-decline { background: none; border: 1px solid rgba(255,255,255,0.15); color: var(--gray); font-size: 12.5px; padding: 9px 20px; border-radius: 50px; cursor: pointer; font-family: inherit; transition: border-color .2s, color .2s; }
.ck-decline:hover { border-color: rgba(255,255,255,0.35); color: white; }
.ck-accept { background: rgba(124,106,247,0.85); border: none; color: white; font-size: 12.5px; padding: 9px 22px; border-radius: 50px; cursor: pointer; font-family: inherit; transition: background .2s; }
.ck-accept:hover { background: var(--purple); }
@media(max-width:768px) {
  #cookie-bar { padding: 16px 20px; }
  .ck-inner { flex-direction: column; gap: 14px; }
  .ck-actions { width: 100%; justify-content: flex-end; }
}

/* ── HAMBURGER BUTTON ── */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
  flex-direction: column;
  gap: 5px;
  z-index: 101;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: rgba(255,255,255,0.75);
  transition: transform .3s, opacity .3s;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── MOBILE NAV OVERLAY (CRYSTAL CLEAR & HIGH CONTRAST) ── */
#mobile-nav {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: #060713;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  overflow: hidden;
}
#mobile-nav.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mob-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #060713;
  flex-shrink: 0;
}
.mob-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 2px;
  font-weight: 600;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
}
.mob-nav-logo svg { width: 26px; height: 26px; }
.mob-nav-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: background 0.18s;
}
.mob-nav-close:active { background: rgba(255, 255, 255, 0.15); }

.mob-nav-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mob-nav-sec { display: flex; flex-direction: column; gap: 8px; }
.mob-nav-sec-title {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  padding-left: 4px;
}
.mob-nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
@media (max-width: 380px) {
  .mob-nav-grid { grid-template-columns: 1fr; }
}
.mob-nav-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  text-decoration: none;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 500;
  transition: background 0.15s, border-color 0.15s;
}
.mob-nav-card:active, .mob-nav-card:hover {
  background: rgba(124, 106, 247, 0.15);
  border-color: rgba(124, 106, 247, 0.4);
  color: #ffffff;
}
.mob-nav-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9d8ff8;
  flex-shrink: 0;
}
.mob-nav-icon svg { width: 15px; height: 15px; stroke: #9d8ff8; fill: none; stroke-width: 2; }

.mob-nav-footer {
  padding: 14px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #060713;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}
.mob-nav-btn-row {
  display: flex;
  gap: 10px;
}
.mob-nav-btn {
  flex: 1;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.18s, transform 0.18s;
}
.mob-nav-btn-primary {
  background: linear-gradient(135deg, #7c6af7, #5c4ce3);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(124, 106, 247, 0.35);
}
.mob-nav-btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
}
.mob-nav-btn:active { transform: scale(0.98); }

/* ── RESPONSIVE ── */
@media(max-width: 960px) {
  nav { padding: 16px 20px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .ft-top { grid-template-columns: 1fr 1fr; }
}
@media(max-width: 600px) {
  nav { padding: 14px 18px; }
}

/* ═══════════════════════════════════════════════════
   SHARED — COMPREHENSIVE MOBILE SYSTEM
   Mobile ≤767px | Tablet 768–1023px
═══════════════════════════════════════════════════ */

/* ── Touch base ── */
a, button { touch-action: manipulation; }
body { overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; }

/* ── TABLET ── */
@media (max-width: 1023px) {
  nav { padding: 16px 24px; }
  .page { padding: 100px 24px 40px; align-items: center; }
  .auth-card { max-width: 480px; width: 100%; }
}

/* ── MOBILE ── */
@media (max-width: 767px) {
  html { font-size: 15px; }
  body { overflow-x: hidden; }

  /* Nav */
  nav {
    padding: 14px 18px;
    background: rgba(5,5,16,0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-right { gap: 8px; }
  .btn-login, .btn-signup {
    padding: 7px 14px;
    font-size: 12px;
    min-height: 36px;
  }

  /* Auth page centering */
  .page {
    padding: 80px 18px 40px;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
  }
  .auth-card {
    width: 100%;
    max-width: 100%;
    padding: 28px 20px;
    border-radius: 16px;
  }
  .auth-title { font-size: 22px; }
  .auth-sub { font-size: 13px; }

  /* Auth form inputs — prevent iOS zoom */
  .form-input {
    font-size: 16px !important;
    padding: 13px 16px;
    touch-action: manipulation;
  }
  input, select, textarea {
    font-size: 16px !important;
    touch-action: manipulation;
  }

  /* Social buttons — stack on very narrow */
  .social-row { gap: 10px; }
  .btn-social {
    min-height: 44px;
    font-size: 13px;
    touch-action: manipulation;
  }

  /* Submit button */
  .btn-primary[type="submit"] {
    min-height: 48px;
    font-size: 15px;
    touch-action: manipulation;
  }

  /* Code boxes (OTP) */
  .code-boxes { gap: 6px; justify-content: center; }
  .code-box {
    width: 42px !important;
    height: 52px !important;
    font-size: 20px !important;
    border-radius: 10px !important;
  }

  /* Plan select */
  .plan-select { flex-direction: column; gap: 10px; }
  .plan-opt { width: 100%; text-align: center; }

  /* Input row — stack on mobile */
  .input-row { flex-direction: column; }

  /* Steps indicator */
  .steps { gap: 0; }
  .step-line { flex: 1 !important; }

  /* Footer */
  footer { padding: 36px 18px 20px; }
  .ft-top { grid-template-columns: 1fr !important; gap: 28px; }
  .ft-bot { flex-direction: column; gap: 12px; text-align: center; }

  /* Mobile nav overlay links */
  .mobile-nav-link {
    font-size: 17px;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
  }
  .mobile-nav-buttons {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 12px;
  }
  .mobile-nav-buttons .btn-login,
  .mobile-nav-buttons .btn-signup {
    width: 200px;
    text-align: center;
    padding: 12px 28px;
    font-size: 14px;
    min-height: 44px;
  }

  /* Cookie bar */
  #cookie-bar { padding: 16px 18px; }
  .ck-inner { flex-direction: column; gap: 14px; }
  .ck-actions { width: 100%; justify-content: flex-end; }
  .ck-accept, .ck-decline {
    min-height: 40px;
    padding: 10px 20px;
    touch-action: manipulation;
  }

  /* Float tags hide on mobile */
  .float-tags { display: none; }
}

/* ── Landscape narrow phones ── */
@media (max-width: 767px) and (orientation: landscape) {
  .page { padding-top: 70px; }
  .auth-card { padding: 20px 18px; }
}
