:root{
  --bg:#050814;
  --bg2:#0b1026;

  --text:#e9eeff;
  --muted:#b5c0ff;

  --accent:#7c5cff;
  --accent2:#22d3ee;

  --shadow: 0 18px 60px rgba(0,0,0,.55);
  --radius:18px;
  --max:1100px;

  --ring: 0 0 0 3px rgba(124,92,255,.35);

  --border: rgba(255,255,255,.10);
  --border2: rgba(255,255,255,.14);
  --glass: rgba(255,255,255,.05);
  --glass2: rgba(255,255,255,.08);

  --t: 140ms ease;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth; background-color:#050814}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(124,92,255,.35), transparent 55%),
    radial-gradient(900px 500px at 20% 10%, rgba(34,211,238,.25), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  min-height:100vh;
  overflow-x:hidden;
}

a{color:inherit}
img{max-width:100%; height:auto}

/* =========================================
   Starfield
========================================= */
.stars, .stars::before, .stars::after{
  position:fixed;
  inset:0;
  content:"";
  pointer-events:none;
  background-image:
    radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,.55), transparent 50%),
    radial-gradient(1px 1px at 100px 80px, rgba(255,255,255,.45), transparent 50%),
    radial-gradient(2px 2px at 220px 140px, rgba(255,255,255,.35), transparent 50%),
    radial-gradient(1px 1px at 340px 40px, rgba(255,255,255,.35), transparent 50%),
    radial-gradient(1px 1px at 480px 160px, rgba(255,255,255,.35), transparent 50%),
    radial-gradient(2px 2px at 620px 120px, rgba(255,255,255,.25), transparent 50%),
    radial-gradient(1px 1px at 760px 90px, rgba(255,255,255,.35), transparent 50%),
    radial-gradient(2px 2px at 880px 150px, rgba(255,255,255,.30), transparent 50%),
    radial-gradient(1px 1px at 980px 60px, rgba(255,255,255,.25), transparent 50%);
  background-size: 1000px 220px;
  opacity:.35;
  animation: drift 70s linear infinite;
}
.stars::before{opacity:.22; filter: blur(.2px); animation-duration: 110s;}
.stars::after{opacity:.15; filter: blur(.6px); animation-duration: 160s;}
@keyframes drift{from{transform:translateY(0)} to{transform:translateY(240px)}}

/* =========================================
   Layout wrapper
========================================= */
.wrap{max-width:var(--max); margin:0 auto; padding:0 18px;}

/* =========================================
   Header
========================================= */
header{
  position:sticky;
  top:0;
  z-index:20;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(5,8,20,.82), rgba(5,8,20,.44));
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 0;
  flex-wrap: nowrap;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  min-width: 200px;
  flex-shrink: 0;
}
.logo{
  width:40px;
  height:40px;
  background: transparent url('logo.png?v=2') center/contain no-repeat;
}
.brand strong{font-size:14px; letter-spacing:.3px}
.brand span{display:block; font-size:12px; color:var(--muted)}

/* Desktop nav links */
.links{
  display:flex;
  gap:18px;
  align-items:center;
  flex: 1 1 auto;
  justify-content:center;
}
.links a{
  text-decoration:none;
  color: rgba(233,238,255,.92);
  font-size:13px;
  padding:8px 10px;
  border-radius:12px;
  border: 1px solid transparent;
  transition: background var(--t), border-color var(--t), transform var(--t);
}
.links a:hover{
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  transform: translateY(-1px);
}

/* =========================================
   Buttons
========================================= */
.cta{
  display:flex;
  gap:10px;
  align-items:center;
  flex: 0 0 auto;
}
.btn{
  border: 1px solid var(--border2);
  background: var(--glass);
  color:var(--text);
  padding:10px 12px;
  border-radius: 14px;
  text-decoration:none;
  font-size:13px;
  cursor:pointer;
  transition: transform var(--t), background var(--t), border-color var(--t), box-shadow var(--t);
  user-select:none;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.22);
  background: var(--glass2);
}
.btn:focus{outline:none; box-shadow: var(--ring)}
.btn.primary{
  border-color: rgba(124,92,255,.55);
  background: linear-gradient(135deg, rgba(124,92,255,.82), rgba(34,211,238,.56));
  box-shadow: 0 16px 40px rgba(124,92,255,.22);
}

/* =========================================
   Signed-in user badge
========================================= */
.userBadge{
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: rgba(233,238,255,.92);
  font-size:12px;
  max-width: 310px;
  cursor: pointer;
  transition: background var(--t), border-color var(--t);
}
.userBadge:hover{
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
}
.userDot{
  width:8px; height:8px; border-radius:999px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 0 6px rgba(124,92,255,.14);
  flex: 0 0 auto;
}
.userEmail{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  max-width: 220px;
}
.userBadge .pill{
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.12);
  flex: 0 0 auto;
}

/* =========================================
   Hero
========================================= */
.hero{padding: 64px 0 34px;}
.heroGrid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 26px;
  align-items: start;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: rgba(233,238,255,.95);
  font-size:12px;
  letter-spacing:.2px;
}
.dot{
  width:8px; height:8px; border-radius:50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 0 6px rgba(124,92,255,.14);
}
h1{
  margin: 16px 0 10px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.03;
  letter-spacing: -1px;
}
.sub{
  margin: 0 0 18px;
  color: rgba(181,192,255,.92);
  font-size: 16px;
  line-height: 1.65;
  max-width: 54ch;
}
.heroActions{display:flex; gap:10px; flex-wrap:wrap; margin-top:18px;}

/* =========================================
   KPIs
========================================= */
.kpis{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:10px;
  margin-top:22px;
}
.kpi{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  border-radius: var(--radius);
  padding: 12px;
  transition: transform var(--t), background var(--t), border-color var(--t);
}
.kpi:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
}
.kpi b{display:block; font-size:16px}
.kpi span{display:block; margin-top:4px; font-size:12px; color: var(--muted)}

/* =========================================
   Side panel
========================================= */
.panel{
  border:1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.03));
  border-radius: 22px;
  padding: 16px;
  box-shadow: var(--shadow);
  position:relative;
  overflow:hidden;
}
.panel::before{
  content:"";
  position:absolute;
  inset:-40%;
  background:
    radial-gradient(circle at 60% 40%, rgba(124,92,255,.25), transparent 60%),
    radial-gradient(circle at 30% 70%, rgba(34,211,238,.18), transparent 60%);
  transform: rotate(12deg);
}
.panel > *{position:relative}
.panel h2{margin:2px 0 6px; font-size:15px; letter-spacing:.2px}

.fact{
  margin: 10px 0 14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  border-radius: 16px;
  padding: 12px;
  transition: background var(--t), border-color var(--t), transform var(--t);
}
.fact:hover{
  border-color: rgba(255,255,255,.18);
  background: rgba(0,0,0,.22);
  transform: translateY(-1px);
}
.fact p{margin:0; font-size:13px; color: rgba(233,238,255,.92); line-height:1.6}
.fact small{display:block; margin-top:8px; color: rgba(181,192,255,.85)}

.miniRow{display:flex; gap:10px; flex-wrap:wrap;}
.pill{
  font-size:12px;
  padding: 8px 16px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  transition: background var(--t), border-color var(--t), transform var(--t);
  min-width: 90px;
  text-align: center;
}
.pill:hover{
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  transform: translateY(-1px);
}

/* =========================================
   Sections
========================================= */
section{padding: 30px 0;}
.sectionTitle{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:14px;
  margin: 8px 0 16px;
}
.sectionTitle h3{margin:0; font-size:18px}
.sectionTitle p{margin:0; color: var(--muted); font-size:13px}

/* =========================================
   Cards
========================================= */
.grid3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.card{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  border-radius: var(--radius);
  padding: 14px;
  min-height: 140px;
  transition: transform var(--t), border-color var(--t), background var(--t), box-shadow var(--t);
}
.card:hover{
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  box-shadow: 0 10px 30px rgba(0,0,0,.20);
}
.card b{display:flex; align-items:center; gap:10px; font-size:14px}
.icon{
  width:34px; height:34px;
  border-radius: 14px;
  background: rgba(124,92,255,.20);
  border: 1px solid rgba(124,92,255,.45);
  display:grid; place-items:center;
  font-weight:700;
}
.card p{margin:10px 0 0; color: rgba(181,192,255,.92); font-size:13px; line-height:1.65}

/* =========================================
   Missions + FAQ lists
========================================= */
.twoCol{display:grid; grid-template-columns: 1fr 1fr; gap: 12px;}
.list{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  border-radius: var(--radius);
  padding: 14px;
  transition: transform var(--t), border-color var(--t), background var(--t);
}
.list:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
}
.list h4{margin:0 0 10px; font-size:14px}
.list ul{margin:0; padding-left: 18px; color: rgba(181,192,255,.92); font-size:13px; line-height:1.8}

/* =========================================
   Pricing
========================================= */
.pricing{display:grid; grid-template-columns: repeat(3, 1fr); gap: 12px;}
.plan{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  border-radius: 22px;
  padding: 16px;
  position:relative;
  overflow:hidden;
  transition: transform var(--t), border-color var(--t), background var(--t), box-shadow var(--t);
}
.plan:hover{
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.055);
}
.plan.featured{
  border-color: rgba(124,92,255,.55);
  background: linear-gradient(180deg, rgba(124,92,255,.18), rgba(255,255,255,.04));
  box-shadow: 0 16px 55px rgba(124,92,255,.18);
}
.tag{
  position:absolute;
  top:12px; right:12px;
  font-size:11px;
  padding:6px 8px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
}
.price{font-size:28px; margin: 10px 0 4px; letter-spacing:-.5px}
.per{font-size:12px; color: var(--muted)}
.plan ul{margin: 12px 0 0; padding-left: 18px; color: rgba(181,192,255,.92); font-size:13px; line-height:1.85}

/* =========================================
   Footer
========================================= */
footer{
  padding: 26px 0 46px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(181,192,255,.85);
  font-size: 12px;
}
.footGrid{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}

/* =========================================
   Drawer (smooth slide)
========================================= */
.drawer{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.45);
  z-index:50;

  /* keep mounted so animation works */
  display:block;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition: opacity 180ms ease, visibility 180ms ease;
}
.drawer.open{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

.drawerPanel{
  position:absolute;
  top:0; right:0;
  width:min(340px, 92vw);
  height:100%;
  background: rgba(8,12,28,.92);
  border-left: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(12px);
  padding: 16px;
  display:flex;
  flex-direction:column;
  gap:8px;

  transform: translateX(14px);
  transition: transform 220ms ease;
}
.drawer.open .drawerPanel{transform: translateX(0);}

.drawerPanel a{
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  text-decoration:none;
  transition: background var(--t), border-color var(--t), transform var(--t);
}
.drawerPanel a:hover,
.drawerPanel button.drawerLink:hover{
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.05);
  transform: translateY(-1px);
}

/* Drawer cart button - matches other drawer links */
.drawerCartBtn{
  width: 100%;
  text-align: left;
  background: transparent;
  color: var(--text);
  font-size: inherit;
  cursor: pointer;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
}
.drawerCartCount{
  background: linear-gradient(135deg, rgba(124,92,255,.95), rgba(34,211,238,.85));
  color: white;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 999px;
  min-width: 18px;
  text-align: center;
}

/* Drawer divider */
.drawerDivider{
  border: none;
  border-top: 1px solid rgba(255,255,255,.10);
  margin: 8px 0;
}

/* Drawer user info */
.drawerUserInfo{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  margin-bottom: 8px;
}
.drawerUserEmail{
  font-size: 13px;
  color: rgba(230,235,255,.85);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.drawerUserPlan{
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(124,92,255,.20);
  border: 1px solid rgba(124,92,255,.35);
  color: rgba(230,235,255,.95);
}

/* Drawer Get Pro button - styled like header */
.drawerGetPro{
  background: linear-gradient(135deg, rgba(124,92,255,.25), rgba(34,211,238,.20)) !important;
  border-color: rgba(124,92,255,.35) !important;
  font-weight: 500;
  text-align: center !important;
}

/* =========================================
   Accessibility
========================================= */
.sr-only{
  position:absolute;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* Make anything with data-go feel clickable */
[data-go]{cursor:pointer}

/* Keyboard focus ring for data-go items */
[data-go]:focus{
  outline:none;
  box-shadow: var(--ring);
  border-radius: inherit;
}

/* =========================================
   Auth pages only
========================================= */
.authWrap{max-width:520px; margin:0 auto;}
.authTitle{margin:0 0 6px; font-size:18px;}
.authSub{margin:0 0 14px; color: rgba(181,192,255,.92); font-size:13px; line-height:1.65;}

.field{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.22);
  color: var(--text);
}
.field:focus{outline:none; box-shadow: var(--ring);}

.formRow{display:grid; gap:10px; margin-top:10px;}
.formActions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  margin-top:12px;
}

.linkBtn{
  text-decoration:none;
  color: rgba(181,192,255,.92);
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
}
.linkBtn:hover{border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.03);}

.helper{margin-top:10px; color: rgba(181,192,255,.85); font-size:12px;}
.errorBox{margin-top:10px; color:#ffd1d1; font-size:12px;}
.okBox{margin-top:10px; color:#c9ffd7; font-size:12px;}

/* =========================================
   Responsive navbar rules
========================================= */
.menuBtn{display:none}

/* Large desktop - slightly more compact (1100px and below) */
@media (max-width: 1100px){
  .links{
    gap: 14px;
  }

  .links a{
    font-size: 13px;
    padding: 7px 9px;
  }
}

/* Smaller desktop windows (920px and below) */
@media (max-width: 920px){
  .heroGrid{grid-template-columns: 1fr;}
  .grid3{grid-template-columns: 1fr;}
  .twoCol{grid-template-columns: 1fr;}
  .pricing{grid-template-columns: 1fr;}

  /* Better spacing for tablets */
  h1{font-size: 32px; line-height: 1.25;}
  h2{font-size: 24px;}
  h3{font-size: 22px;}

  .hero{padding-top: 0 !important;}
  .heroActions{flex-direction: column; width: 100%;}
  .heroActions .btn{width: 100%; justify-content: center;}

  /* Navbar adjustments for smaller desktop windows */
  .brand{
    min-width: 180px;
  }

  .brand strong{
    font-size: 13px;
  }

  .links{
    gap: 12px;
  }

  .links a{
    font-size: 12px;
    padding: 7px 8px;
  }

  .cta{
    gap: 8px;
  }

  .btn{
    padding: 9px 12px;
    font-size: 13px;
  }
}

/* Medium screens - between tablet and mobile (between 920px and 720px) */
@media (max-width: 850px) and (min-width: 721px){
  /* Extra compact navbar for this range */
  .nav{
    gap: 10px;
  }

  .brand{
    min-width: 160px;
  }

  .brand span{
    display: none; /* Hide tagline on medium screens */
  }

  .links{
    gap: 8px;
  }

  .links a{
    font-size: 12px;
    padding: 6px 8px;
  }

  .cta{
    gap: 6px;
  }

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

  .cartBtn{
    padding: 8px 10px !important;
  }
}

@media (max-width: 720px){
  .links{display:none}
  .menuBtn{display:inline-flex}
  .kpis{display: none !important;}

  /* Keep header from overflowing */
  .brand{min-width: 0;}

  /* Mobile navbar improvements */
  .nav{
    padding: 16px 0 !important;
    gap: 10px;
  }

  /* Better CTA layout on mobile */
  .cta{
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    justify-content: flex-end;
  }

  /* Compact user badge on mobile */
  .userBadge{
    max-width: 100%;
    gap: 6px;
    padding: 6px 10px;
    font-size: 13px;
  }

  /* Hide userBadge on mobile - moved to drawer */
  .userBadge{
    display: none !important;
  }

  /* Hide cart button on mobile - moved to drawer */
  .cartBtn{
    display: none !important;
  }

  /* Navbar buttons on mobile - taller touch targets */
  .nav .btn{
    padding: 10px 12px !important;
    font-size: 13px !important;
    white-space: nowrap;
  }

  /* Menu button */
  .menuBtn{
    padding: 10px 14px !important;
  }

  /* Sign in button */
  #signInLink{
    padding: 10px 14px !important;
  }

  /* Get Pro button */
  #getProBtn{
    padding: 10px 14px !important;
    font-size: 13px !important;
  }

  /* Cart button on mobile */
  .nav .cartBtn{
    padding: 8px 10px !important;
    min-width: 42px !important;
  }

  /* Mobile typography - condensed but readable */
  h1{
    font-size: 24px !important;
    line-height: 1.25 !important;
    margin-bottom: 10px !important;
  }

  h2{font-size: 20px !important;}
  h3{font-size: 18px !important;}
  h4{font-size: 16px !important;}

  p.sub, .sub{
    font-size: 15px !important;
    line-height: 1.5 !important;
  }

  /* Condensed spacing - more edge padding on all pages */
  .wrap{
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  main.wrap{
    padding: 24px 20px 40px !important;
  }
  /* Nav padding is controlled by .nav rule, not .wrap */
  footer .wrap{
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  section{margin-top: 24px !important;}
  .hero{padding-top: 0 !important;}

  /* Hero improvements - condensed */
  .heroGrid{gap: 16px;}
  /* Hero buttons - side by side and compact on mobile */
  .heroActions{
    flex-direction: row;
    width: 100%;
    gap: 8px;
  }
  .heroActions .btn{
    flex: 1;
    justify-content: center;
    padding: 10px 12px !important;
    font-size: 13px;
    white-space: nowrap;
  }

  /* KPI cards - compact mobile layout */
  .kpi{
    padding: 12px !important;
    text-align: left;
  }
  .kpi b{font-size: 15px;}
  .kpi span{font-size: 12px;}

  /* Cards - compact spacing */
  .card{
    padding: 14px !important;
    border-radius: 12px !important;
  }
  .card b{font-size: 15px !important;}
  .card p{font-size: 13px !important; line-height: 1.45 !important;}

  /* Grid spacing - tighter */
  .grid3{gap: 10px;}

  /* Hide "What Teach Me Space is" panel on mobile */
  .hero .panel{
    display: none !important;
  }

  /* Section titles - tighter */
  .sectionTitle{
    flex-direction: column;
    align-items: flex-start !important;
    gap: 8px;
  }
  .sectionTitle h3{margin: 0;}
  .sectionTitle p{margin: 2px 0 0 0; font-size: 13px;}

  /* Pricing cards - condensed */
  .plan{
    padding: 16px !important;
    text-align: center;
  }
  .price{font-size: 32px !important;}
  .per{font-size: 12px;}
  .plan ul{text-align: left; font-size: 13px;}

  /* Pricing buttons - compact, not full width */
  .plan .btn{
    width: auto !important;
    padding: 10px 20px !important;
    font-size: 13px !important;
  }

  /* Button sizing */
  .btn{
    padding: 11px 16px !important;
    font-size: 14px;
  }

  /* Cart button - make it easier to tap */
  .cartBtn{
    padding: 11px 14px !important;
    min-width: 48px !important;
  }
  .cartCount{
    min-width: 18px;
    height: 18px;
    font-size: 11px;
    line-height: 18px;
  }

  /* Footer */
  .footGrid{
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .footGrid > div:last-child{
    justify-content: center;
  }

  /* Mini pills */
  .miniPill{
    font-size: 11px;
    padding: 6px 9px;
  }

  /* Search bar */
  .searchInput{
    font-size: 15px;
    padding: 13px 15px;
  }

  /* Reduce footer spacing */
  footer{margin-top: 20px !important;}

  /* Shopping cart modal - full width on mobile */
  .cartPanel{
    width: 100% !important;
    padding: 16px;
  }

  .cartHeader h2{font-size: 20px;}
  .cartHeader{padding-bottom: 14px;}

  .cartItem{
    padding: 14px !important;
    gap: 12px;
  }

  .cartItemImage{
    width: 64px !important;
    height: 64px !important;
  }

  .cartItemDetails h4{font-size: 15px !important;}
  .cartItemDetails p{font-size: 13px !important;}
  .cartItemPrice{font-size: 15px !important;}

  .cartTotal{font-size: 16px !important;}
  .cartTotalAmount{font-size: 24px !important;}

  .checkoutBtn{
    padding: 15px !important;
    font-size: 16px !important;
  }

  /* Mobile drawer improvements - more edge spacing */
  .drawerPanel{
    width: calc(100% - 24px) !important;
    max-width: 320px;
    padding: 20px;
    top: 12px !important;
    right: 12px !important;
    border-radius: 16px;
    height: calc(100% - 24px) !important;
  }

  .drawerLink{
    font-size: 15px !important;
    padding: 14px 16px !important;
  }

  .drawerPanel a{
    padding: 14px 16px;
  }

  .drawerCartBtn{
    padding: 14px 16px !important;
  }

  .drawerUserInfo{
    padding: 12px 14px;
  }
}

/* Extra small screens (360px and below) */
@media (max-width: 400px){
  h1{font-size: 22px !important;}
  h2{font-size: 18px !important;}
  h3{font-size: 16px !important;}

  .wrap{
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  main.wrap{
    padding: 20px 16px 36px !important;
  }

  /* Small screen navbar - still comfortable */
  .nav{
    padding: 14px 0 !important;
    gap: 8px;
  }

  .logo{width: 32px; height: 32px;}
  .brand strong{font-size: 15px;}

  /* Small screen buttons - maintain touch targets */
  .btn{
    padding: 9px 12px !important;
    font-size: 12px !important;
  }

  /* Navbar CTA buttons */
  .cta{
    gap: 6px;
  }

  .nav .btn{
    padding: 9px 11px !important;
    font-size: 12px !important;
  }

  .menuBtn{
    padding: 9px 12px !important;
  }

  #signInLink{
    padding: 9px 12px !important;
  }

  #getProBtn{
    padding: 9px 12px !important;
    font-size: 12px !important;
  }

  /* User badge - minimal */
  .userBadge{
    padding: 5px 8px;
    gap: 4px;
    font-size: 11px;
  }

  .userBadge #userPlan{
    font-size: 11px !important;
    padding: 4px 6px !important;
  }

  .cartBtn{
    padding: 10px 12px !important;
    min-width: 44px !important;
  }

  .heroActions .btn{
    padding: 8px 10px !important;
    font-size: 12px !important;
  }

  .card{padding: 12px !important;}
  .panel{padding: 12px !important;}
  .plan{padding: 14px !important;}

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

  /* Extra small drawer */
  .drawerPanel{
    padding: 16px;
    top: 8px !important;
    right: 8px !important;
    width: calc(100% - 16px) !important;
    height: calc(100% - 16px) !important;
  }
  .drawerLink{
    padding: 12px 14px !important;
  }
  .drawerPanel a{
    padding: 12px 14px;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  *{animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important;}
  html{scroll-behavior:auto;}
}
/* ========================================
   SHOPPING CART STYLES
   ======================================== */

/* Cart button in header */
.cartBtn{
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cartCount{
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(124,92,255,.95), rgba(34,211,238,.85));
  color: white;
  font-size: 11px;
  font-weight: 600;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(124,92,255,.35);
}

/* Cart modal */
.cartModal{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  z-index: 100;
  display: block;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 200ms ease, visibility 200ms ease;
  backdrop-filter: blur(4px);
}
.cartModal.open{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cartPanel{
  position: absolute;
  top: 0;
  right: 0;
  width: min(440px, 94vw);
  height: 100%;
  background: rgba(8,12,28,.98);
  border-left: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(20px);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateX(20px);
  transition: transform 250ms ease;
  overflow-y: auto;
}
.cartModal.open .cartPanel{
  transform: translateX(0);
}

.cartHeader{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.cartHeader h2{
  margin: 0;
  font-size: 20px;
  letter-spacing: .3px;
}

.cartItems{
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cartItem{
  padding: 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
}
.cartItemInfo{
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 10px;
  margin-bottom: 10px;
}
.cartItemName{
  font-size: 14px;
  font-weight: 500;
  color: rgba(230,235,255,.95);
}
.cartItemPrice{
  font-size: 14px;
  font-weight: 600;
  color: rgba(72,255,180,.95);
}
.cartItemActions{
  display: flex;
  align-items: center;
  gap: 8px;
}
.qtyBtn{
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(181,192,255,.08);
  border: 1px solid rgba(181,192,255,.14);
  color: rgba(230,235,255,.95);
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qtyBtn:hover{
  background: rgba(181,192,255,.12);
  border-color: rgba(181,192,255,.22);
}
.cartItemQty{
  min-width: 32px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
}
.removeBtn{
  margin-left: auto;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255,82,82,.12);
  border: 1px solid rgba(255,82,82,.25);
  color: rgba(255,180,180,.95);
  cursor: pointer;
  font-size: 12px;
}
.removeBtn:hover{
  background: rgba(255,82,82,.18);
  border-color: rgba(255,82,82,.35);
}

.emptyCart{
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(181,192,255,.75);
  font-size: 14px;
  padding: 40px 20px;
}

.cartFooter{
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.cartTotal{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 18px;
  font-weight: 600;
}
.cartTotalAmount{
  color: rgba(72,255,180,.95);
  font-size: 24px;
}
.checkoutBtn{
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(124,92,255,.95), rgba(34,211,238,.85));
  border: none;
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(124,92,255,.35);
  transition: all .2s ease;
}
.checkoutBtn:hover{
  box-shadow: 0 16px 40px rgba(124,92,255,.45);
  transform: translateY(-2px);
}

/* ========================================
   NAVBAR ORGANIZATION IMPROVEMENTS
   ======================================== */

/* Better CTA spacing and grouping */
.cta{
  display:flex;
  gap:12px;
  align-items:center;
  flex: 0 0 auto;
}

/* Cart button - icon only for cleaner look */
.cartBtn{
  position: relative;
  padding: 10px 12px !important;
  min-width: 44px;
  justify-content: center;
}
.cartBtn:hover{
  background: rgba(181,192,255,.12);
}

/* Visual separator before auth buttons */
.cta > .cartBtn{
  margin-right: 4px;
}

/* Sign in button - subtle */
.cta > a[href*="signin"]{
  opacity: 0.9;
}
.cta > a[href*="signin"]:hover{
  opacity: 1;
  background: rgba(181,192,255,.08);
}

/* Get Pro button - stands out */
#getProBtn{
  background: linear-gradient(135deg, rgba(124,92,255,.25), rgba(34,211,238,.20));
  border-color: rgba(124,92,255,.35);
  font-weight: 500;
}
#getProBtn:hover{
  background: linear-gradient(135deg, rgba(124,92,255,.35), rgba(34,211,238,.28));
  border-color: rgba(124,92,255,.45);
  box-shadow: 0 4px 16px rgba(124,92,255,.25);
}

/* User badge grouping */
.userBadge{
  margin-right: 4px;
}

@media (max-width: 720px){
  .cta{
    gap:8px;
    flex-wrap:wrap;
    justify-content:flex-end;
  }
  
  /* Keep cart button compact on mobile */
  .cartBtn{
    padding: 9px 11px !important;
  }
}
