:root{
  --bg:#0b0d10;
  --panel:#11151a;
  --muted:#9fa7b6;
  --text:#edf2ff;
  --brand:#7c5cff;
  --brand2:#45d6b6;
  --border:#1b2230;
  --radius-lg:20px;
  --radius-md:16px;
  --radius-pill:999px;
  --accent-warm:#ffb86b;
  --accent-soft:#ff9f7a;
}

*{
  box-sizing:border-box;
}

html,body{
  height:100%;
}

body{
  margin:0;
  font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;
  font-size:16px;
  line-height:1.6;
  background:
    radial-gradient(1200px 800px at 80% -10%, rgba(124,92,255,.18), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(255,184,107,.12), transparent 60%),
    var(--bg);
  color:var(--text);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  padding:18px 0 32px;
  min-height:100vh;
}

/* Global */
main,header,footer{
  width:100%;
}

.container{
  width:min(1100px,92vw);
  margin:0 auto;
}

/* ========== TOP BAR ========== */

.top{
  width:min(1100px,92vw);
  margin:0 auto 16px;
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  justify-content:flex-start;
}

.logo{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:700;
  font-size:20px;
}

.logo .dot{
  width:12px;
  height:12px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--brand),var(--brand2));
  box-shadow:0 0 0 2px rgba(124,92,255,.14);
}

/* Auth cluster: visible but calmer */
.auth-controls{
  display:flex;
  align-items:center;
  gap:8px;
  padding:4px 8px;
  border-radius:999px;
  background:#05070a;
  border:1px solid rgba(56,68,84,.7);
}

.auth-btn{
  padding:6px 10px;
  font-size:11px;
  border-radius:999px;
  border:1px solid rgba(124,92,255,.32);
  background:#05070a;
  color:#e5e9f5;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  box-shadow:none;
}

.auth-btn-main{
  padding:7px 14px;
  font-size:11px;
  font-weight:600;
  background:transparent;
  color:var(--brand2);
  border:1px solid rgba(124,92,255,.6);
  box-shadow:none;
}

.auth-btn.primary{
  background:linear-gradient(135deg,var(--brand),var(--brand2));
  color:#050608;
  border:none;
}
.auth-btn.ghost{
  background:transparent;
}
.auth-btn:hover{
  opacity:.9;
}

/* Top nav: lighter + smaller so hero wins */
.top-nav{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-left:auto;
}

/* “Prompt engine: Live” pill — thinner, softer */
.badge{
  display:inline-flex;
  align-items:center;
  gap:5px;
  font-size:10px;
  color:var(--accent-warm);
  padding:4px 9px;
  border-radius:var(--radius-pill);
  border:1px solid rgba(255,184,107,.22);
  background:#05070a;
  box-shadow:none;
}

.status-dot{
  width:5px;
  height:5px;
  border-radius:50%;
  background:var(--accent-warm);
  box-shadow:none;
}

/* Nav links: subtle, secondary */
.top-link{
  font-size:11px;
  color:var(--muted);
  text-decoration:none;
  padding:2px 0;
  border-bottom:1px solid transparent;
  opacity:.85;
}
.top-link:hover{
  border-bottom-color:var(--accent-soft);
  opacity:1;
}
.top-link-muted{
  color:var(--muted);
}

.soon-pill{
  font-size:10px;
  padding:2px 6px;
  margin-left:4px;
  border-radius:8px;
  background:rgba(124,92,255,.16);
  color:var(--brand);
}

/* ========== HERO / MAIN CARD ========== */

.hero{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:22px 20px 18px;
  margin-bottom:26px;
  box-shadow:0 16px 36px rgba(0,0,0,.42);
}

/* Slightly calmer H1 so textarea dominates */
.hero-title{
  margin:0 0 8px;
  font-size:clamp(30px,3.4vw,40px);
  line-height:1.08;
  font-weight:800;
  letter-spacing:-0.01em;
}

.hero-subtitle{
  margin:0 0 16px;
  color:var(--muted);
  font-size:16px;
  line-height:1.7;
  max-width:640px;
}

/* Backwards compatibility */
.hero h1{
  margin:0 0 8px;
}
.sub{
  margin:0 0 14px;
  color:var(--muted);
  line-height:1.7;
  max-width:640px;
  font-size:16px;
}

/* Built for chips — a bit softer so they don’t compete */
.who-for{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px;
  margin-bottom:14px;
}

.who-label{
  font-size:10px;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.12em;
}

.who-chip{
  font-size:11px;
  padding:3px 9px;
  border-radius:var(--radius-pill);
  border:1px solid rgba(124,92,255,.18);
  color:#d7e0ff;
  background:#05070a;
  opacity:.9;
}

/* ========== INPUT AREA ========== */

.input-block{
  display:flex;
  gap:14px;
  background:#05070a;
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  padding:14px;
  align-items:flex-start;
  margin-bottom:14px;
}

.input-left{
  flex:1;
  display:flex;
  flex-direction:column;
  gap:6px;
}

.input-right{
  display:flex;
  flex-direction:column;
  gap:8px;
  align-items:flex-start;
  width:230px;
}

/* Clear “paste here” label above textarea */
.input-label{
  font-size:13px;
  color:var(--accent-warm);
  font-weight:600;
  letter-spacing:.02em;
}

/* Main textarea — remains the star */
textarea{
  flex:1;
  min-height:120px;
  max-height:40vh;
  resize:vertical;
  background:#05070a;
  color:var(--text);
  border:1px solid var(--border);
  border-radius:14px;
  padding:10px 11px;
  outline:none;
  font-size:16px;
  line-height:1.6;
  font-weight:500;
  box-shadow:0 10px 26px rgba(0,0,0,.8);
  transition:border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

textarea::placeholder{
  color:var(--muted);
  font-weight:600;
}

textarea:focus{
  border-color:var(--brand2);
  box-shadow:0 0 0 1px rgba(69,214,182,.16), 0 14px 32px rgba(0,0,0,.9);
  background:#060910;
}

/* Steps copy next to button */
.steps{
  display:flex;
  flex-direction:column;
  gap:2px;
  margin:0;
  font-size:12px;
  color:var(--muted);
  line-height:1.6;
}
.step{
  white-space:nowrap;
}

/* Primary button – keep strong gradient (primary action) */
.btn-primary{
  cursor:pointer;
  border:none;
  font-weight:700;
  border-radius:12px;
  padding:12px 22px;
  background:linear-gradient(135deg,var(--brand),var(--brand2));
  color:#050608;
  font-size:15px;
  box-shadow:0 12px 26px rgba(124,92,255,.35);
  white-space:nowrap;
}
.btn-primary:active{
  transform:translateY(1px);
  box-shadow:0 6px 16px rgba(0,0,0,.45);
}

/* Legacy .btn */
.btn{
  cursor:pointer;
  border:none;
  font-weight:700;
  border-radius:12px;
  padding:11px 18px;
  background:linear-gradient(135deg,var(--brand),var(--brand2));
  color:#0b0d10;
  font-size:14px;
  box-shadow:0 10px 24px rgba(124,92,255,.35);
  white-space:nowrap;
}
.btn:active{
  transform:translateY(1px);
  box-shadow:0 5px 14px rgba(0,0,0,.4);
}

/* ========== PRESETS (HTML removed; styles kept harmless) ========== */

.preset-label{
  margin:2px 0 2px;
  font-size:12px;
  color:var(--muted);
}

.chips{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:0;
}

.chip{
  font-size:12px;
  color:#c9d3dc;
  border:1px solid #2a3542;
  background:rgba(10,13,18,.98);
  padding:7px 12px;
  border-radius:var(--radius-pill);
  cursor:pointer;
  transition:all .16s ease-out;
}
.chip:hover{
  border-color:var(--accent-soft);
  box-shadow:0 0 10px rgba(255,159,122,.18);
  transform:translateY(-1px);
}

/* ========== OUTPUT PANEL ========== */

/* More breathing room between input & output */
.panel{
  margin-top:18px;
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  padding:16px 14px 14px;
}

.panel-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:6px;
}

.panel h3{
  margin:0;
  font-size:12px;
  color:var(--accent-warm);
  letter-spacing:.16em;
  text-transform:uppercase;
}

.panel-subcopy{
  margin:0 0 8px;
  font-size:13px;
  color:var(--muted);
  line-height:1.6;
  font-weight:400;
}

/* Copy button — keep strong, it’s a primary action */
.btn-copy{
  cursor:pointer;
  padding:10px 18px;
  font-size:12px;
  border-radius:var(--radius-pill);
  border:none;
  background:linear-gradient(135deg,var(--brand),var(--brand2));
  color:#050608;
  display:inline-flex;
  align-items:center;
  gap:8px;
  flex-shrink:0;
  font-weight:600;
  box-shadow:0 10px 26px rgba(124,92,255,.4);
  transition:all .16s ease-out;
}
.btn-copy:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 32px rgba(0,0,0,.85);
  opacity:.97;
}
.btn-copy:active{
  transform:translateY(0);
  box-shadow:0 8px 20px rgba(0,0,0,.8);
}

/* ========== CHAT / DEFAULT EXAMPLE ========== */

.chat{
  display:flex;
  flex-direction:column;
  gap:10px;
  max-height:52vh;
  overflow-y:auto;
  padding-right:4px;
}

.bubble{
  max-width:100%;
  padding:10px 11px;
  border-radius:14px;
  line-height:1.6;
  font-size:14px;
}

.bubble.ai{
  background:#0e141b;
  border:1px solid #203044;
}

.bubble.user{
  background:#141a22;
  border:1px solid #243246;
}

.example-label{
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.14em;
  color:var(--muted);
  margin-bottom:4px;
}

/* Optimized prompt example block */
.prompt-block{
  margin-top:2px;
  padding:10px 10px;
  background:var(--panel);
  border-radius:10px;
  border:1px solid var(--border);
  font-family:SFMono-Regular,Menlo,Monaco,Consolas,monospace;
  font-size:13px;
  line-height:1.7;
  white-space:pre-wrap;
  word-wrap:break-word;
}

/* ========== HOW IT WORKS ========== */

.section-title{
  margin:0 0 4px;
  font-size:21px;
  font-weight:700;
}

.section-sub{
  margin:0 0 14px;
  font-size:15px;
  color:var(--muted);
  line-height:1.7;
}

.how{
  margin-bottom:26px;
}

.how-steps{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}

.how-step{
  flex:1 1 0;
  min-width:220px;
  padding:12px 12px 11px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(9,11,16,.96);
}

.how-step h3{
  margin:2px 0 4px;
  font-size:15px;
}

.how-step p{
  margin:0;
  font-size:14px;
  color:var(--muted);
  line-height:1.7;
}

.how-icon{
  width:20px;
  height:20px;
  border-radius:6px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:11px;
  background:linear-gradient(135deg,var(--brand),var(--accent-warm));
  color:#050608;
}

/* ========== EXAMPLES SECTION ========== */

.examples{
  margin-bottom:24px;
}

.example-pair{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:12px;
}

.example-card{
  flex:1 1 0;
  min-width:260px;
  padding:11px 11px 10px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(8,10,14,.98);
}

.example-tag{
  display:inline-block;
  padding:4px 9px;
  font-size:10px;
  border-radius:8px;
  background:rgba(156,163,175,.16);
  color:#aeb6c4;
  text-transform:uppercase;
  letter-spacing:.12em;
  margin-bottom:4px;
}

.example-tag.bad{
  background:rgba(156,163,175,.22);
  color:#f3f4f6;
}

.example-tag.good{
  background:rgba(124,92,255,.2);
  color:var(--accent-warm);
}

.example-card p{
  margin:0;
  font-size:14px;
  line-height:1.7;
  color:#d1d8e2;
}

/* ========== PRICING / TRUST TEXT ========== */

.pricing-note{
  margin-bottom:14px;
  font-size:14px;
  color:var(--muted);
  line-height:1.7;
}

.trust-line{
  margin:0 0 6px;
}

.pricing-line{
  margin:0;
}

/* ========== FOOTER ========== */

.foot{
  width:min(1100px,92vw);
  margin:18px auto 0;
  padding-top:10px;
  border-top:1px solid rgba(56,68,84,.6);
  color:var(--muted);
  font-size:13px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
}

.foot-links{
  display:inline-flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.link{
  color:#cfd9e3;
  text-decoration:none;
  border-bottom:1px dotted #39485a;
}
.link:hover{
  border-bottom-style:solid;
}

/* ========== RESPONSIVE (general) ========== */

@media (max-width:860px){
  .input-block{
    flex-direction:column;
  }
  .input-right{
    width:100%;
    align-items:flex-start;
  }
  .steps{
    flex-direction:row;
    flex-wrap:wrap;
    gap:6px;
  }
  .example-pair{
    flex-direction:column;
  }
  .how-steps{
    flex-direction:column;
  }
}

/* ========== AUTH UI ========== */

.auth-user{
  font-size:11px;
  color:var(--muted);
  max-width:160px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.auth-plan{
  font-size:11px;
  padding:5px 10px;
  border-radius:var(--radius-pill);
  background:#05070a;
  border:1px solid rgba(124,92,255,.5);
  color:var(--brand2);
  display:inline-flex;
  align-items:center;
  gap:6px;
  white-space:nowrap;
}

/* Modal backdrop */
.auth-modal-backdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.6);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:60;
}

/* Modal box */
.auth-modal{
  width:min(520px,96vw);
  padding:26px 24px 20px;
  border-radius:24px;
  background:
    radial-gradient(220px 220px at 0% 0%, rgba(124,92,255,.16), transparent),
    radial-gradient(220px 220px at 100% 0%, rgba(255,184,107,.10), transparent),
    #05070a;
  border:1px solid rgba(69,82,104,.95);
  box-shadow:0 26px 70px rgba(0,0,0,.9);
  position:relative;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.auth-title{
  margin:0 0 4px;
  font-size:24px;
  font-weight:700;
  letter-spacing:-0.01em;
}

.auth-subtitle{
  margin:0 0 14px;
  font-size:13px;
  color:var(--muted);
  line-height:1.7;
}

.auth-label{
  display:flex;
  flex-direction:column;
  gap:4px;
  margin-bottom:10px;
  font-size:11px;
  color:var(--muted);
}

.auth-input{
  padding:10px 11px;
  border-radius:12px;
  border:1px solid #283343;
  background:#020308;
  color:var(--text);
  font-size:13px;
  transition:border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.auth-input:focus{
  outline:none;
  border-color:var(--brand2);
  box-shadow:0 0 0 1px rgba(69,214,182,.18);
  background:#05070f;
}

.auth-actions{
  display:flex;
  gap:8px;
  margin:8px 0 2px;
}

.auth-close{
  position:absolute;
  top:10px;
  right:12px;
  width:22px;
  height:22px;
  border-radius:999px;
  border:none;
  background:rgba(9,11,16,.98);
  color:var(--muted);
  font-size:16px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:all .16s ease;
}
.auth-close:hover{
  background:rgba(124,92,255,.2);
  color:#fff;
}

.auth-note{
  margin:6px 0 0;
  font-size:10px;
  color:var(--muted);
  line-height:1.6;
}

/* Auth Google */
.auth-btn-google{
  width:100%;
  justify-content:center;
  margin-top:2px;
  padding:9px 10px;
  border-radius:12px;
  border:1px solid rgba(148,163,253,.55);
  background:#05070a;
  font-size:12px;
  font-weight:500;
  box-shadow:0 10px 26px rgba(0,0,0,.7);
}
.auth-btn-google:hover{
  background:#0b0f16;
  border-color:var(--brand2);
}
.google-icon{
  width:16px;
  height:16px;
  border-radius:4px;
  display:inline-block;
  background:
    conic-gradient(from 0deg,
      #ea4335 0deg 90deg,
      #fbbc05 90deg 180deg,
      #34a853 180deg 270deg,
      #4285f4 270deg 360deg);
  position:relative;
}
.google-icon::after{
  content:"G";
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:10px;
  font-weight:700;
  color:#fff;
}

/* ========== ACCOUNT SIDEBAR ========== */

/* Flatter, quieter so it doesn’t compete with hero */
.account-sidebar{
  position:fixed;
  left:18px;
  top:78px;
  bottom:24px;
  width:260px;
  padding:14px 12px;
  border-radius:22px;
  background:#05070a;
  border:1px solid rgba(56,68,84,.9);
  box-shadow:0 18px 40px rgba(0,0,0,.7);
  display:flex;
  flex-direction:column;
  gap:10px;
  z-index:40;
  backdrop-filter:blur(8px);
}

.account-sidebar-header{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.account-sidebar-label{
  font-size:9px;
  text-transform:uppercase;
  letter-spacing:.18em;
  color:var(--muted);
  opacity:.9;
}

.account-sidebar-email{
  font-size:13px;
  color:#e5e9f5;
  font-weight:600;
  word-break:break-all;
}

.account-sidebar-plan-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px 8px;
  margin-top:4px;
}

/* Tier pill softened */
.account-sidebar-plan{
  font-size:11px;
  padding:6px 11px;
  border-radius:var(--radius-pill);
  background:#05070a;
  border:1px solid rgba(124,92,255,.6);
  color:var(--brand2);
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-weight:500;
}

.account-sidebar-plan::before{
  content:"";
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--brand2);
  box-shadow:0 0 6px var(--brand2);
}

.account-sidebar-usage{
  font-size:10px;
  color:var(--muted);
  font-weight:500;
}

.account-sidebar-section{
  margin-top:8px;
}

.account-sidebar-section .account-sidebar-label{
  font-size:9px;
  margin-bottom:3px;
}

.account-sidebar-list{
  list-style:none;
  padding:0;
  margin:4px 0 0;
  display:flex;
  flex-direction:column;
  gap:5px;
  font-size:11px;
  color:#9fa7b6;
  overflow-y:auto;
}

/* history pill: compact, utility feel */
.account-sidebar-list li{
  padding:6px 8px;
  border-radius:12px;
  background:#05070d;
  border:1px solid rgba(40,51,67,.95);
  max-height:34px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  display:flex;
  align-items:center;
  gap:6px;
  box-shadow:0 8px 18px rgba(0,0,0,.65);
  position:relative;
  cursor:pointer;
}

.account-sidebar-list li::before{
  content:"↗";
  position:absolute;
  right:8px;
  top:5px;
  font-size:8px;
  color:rgba(148,163,253,.9);
}

/* New prompt in sidebar: smaller & neutral (not competing with primary CTAs) */
.account-new-prompt-btn{
  margin-top:6px;
  padding:7px 11px;
  font-size:10px;
  border-radius:var(--radius-pill);
  background:#05070a;
  border:1px solid rgba(124,92,255,.5);
  color:var(--brand2);
  box-shadow:none;
  align-self:flex-start;
}

/* Hide sidebar entirely on small screens */
@media (max-width:860px){
  .account-sidebar{
    display:none !important;
  }
}

/* When sidebar is active on desktop, shift main content so nothing sits under it */
@media (min-width:860px){
  body.sidebar-active .top{
    margin-left:330px;
    margin-right:auto;
  }

  body.sidebar-active .hero.container,
  body.sidebar-active .how.container,
  body.sidebar-active .examples.container,
  body.sidebar-active .pricing-note.container{
    margin-left:330px;
  }

  body.sidebar-active .foot{
    margin-left:330px;
    margin-right:auto;
  }
}

/* ========== LEGACY PRICING GRID (KEPT) ========== */

.pricing-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
  gap:14px;
  margin-top:10px;
}

.pricing-card{
  padding:12px 12px 10px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(8,10,14,.98);
  display:flex;
  flex-direction:column;
  gap:6px;
}

.pricing-card h3{
  margin:0;
  font-size:16px;
  font-weight:600;
}

.price{
  margin:0;
  font-size:18px;
  font-weight:700;
}

.pricing-desc{
  margin:0;
  font-size:12px;
  color:var(--muted);
}

.pricing-list{
  margin:4px 0 6px;
  padding-left:16px;
  font-size:11px;
  color:var(--muted);
}

.pricing-btn{
  margin-top:auto;
  padding:7px 10px;
  border-radius:10px;
  border:1px solid rgba(124,92,255,.4);
  background:#05070a;
  color:#e5e9f5;
  font-size:11px;
  cursor:pointer;
}

.pricing-btn.primary{
  background:linear-gradient(135deg,var(--brand),var(--brand2));
  color:#050608;
  border:none;
  box-shadow:0 8px 22px rgba(124,92,255,.35);
}

/* ========== NEW: PLAN CARDS ========== */

.plans-row{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:16px;
  margin-top:14px;
}

.plan-card{
  position:relative;
  padding:14px 12px 12px;
  border-radius:16px;
  background:rgba(7,9,12,.98);
  border:1px solid var(--border);
  box-shadow:0 16px 32px rgba(0,0,0,.6);
  display:flex;
  flex-direction:column;
  gap:6px;
  overflow:hidden;
}

.plan-card:not(:first-child)::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at top right, rgba(124,92,255,.12), transparent 60%),
    radial-gradient(circle at bottom left, rgba(255,184,107,.10), transparent 70%);
  opacity:.8;
  pointer-events:none;
}

.plan-name{
  font-size:11px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.14em;
  color:var(--muted);
}

.plan-price{
  font-size:20px;
  font-weight:700;
  color:var(--text);
}

.plan-features{
  list-style:none;
  margin:4px 0 6px;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:4px;
  font-size:13px;
  color:var(--muted);
}

.plan-features li{
  position:relative;
  padding-left:16px;
}
.plan-features li::before{
  content:"";
  position:absolute;
  left:4px;
  top:8px;
  width:5px;
  height:5px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--brand),var(--accent-warm));
  opacity:.9;
}

.plan-cta-note{
  margin-top:auto;
  font-size:11px;
  color:var(--muted);
  opacity:.85;
}

/* Upgrade buttons */
.plan-upgrade-btn{
  margin-top:8px;
  padding:9px 13px;
  border-radius:var(--radius-pill);
  border:1px solid rgba(124,92,255,.7);
  background:linear-gradient(135deg,var(--brand),var(--brand2));
  color:#050608;
  font-size:12px;
  font-weight:600;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  box-shadow:0 10px 26px rgba(124,92,255,.4);
  transition:all .16s ease-out;
}

.plan-upgrade-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 32px rgba(0,0,0,.75);
  opacity:.96;
}

.plan-upgrade-btn:active{
  transform:translateY(0);
  box-shadow:0 8px 20px rgba(0,0,0,.7);
}

/* Free card more low-key */
.plan-card:first-child{
  background:#05070a;
  box-shadow:0 10px 26px rgba(0,0,0,.6);
}
.plan-card:first-child .plan-price{
  color:var(--brand2);
}
.plan-card:first-child .plan-cta-note{
  font-size:11px;
}

@media (max-width:640px){
  .plans-row{
    gap:10px;
  }
  .plan-card{
    padding:12px 10px 10px;
  }
  .plan-price{
    font-size:18px;
  }
  .plan-features{
    font-size:12px;
  }
}

/* ========== LEGAL MODALS & INLINE LINKS ========== */

/* Inline links inside auth text (Terms/Privacy) */
.inline-link{
  background:none;
  border:none;
  padding:0;
  margin:0 2px;
  font-size:10px;
  color:var(--brand2);
  text-decoration:underline;
  text-decoration-thickness:0.06em;
  text-underline-offset:2px;
  cursor:pointer;
}
.inline-link:hover{
  color:var(--accent-warm);
}

/* Backdrop for legal modals */
.legal-modal-backdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.7);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:80;
}

/* Modal container */
.legal-modal{
  width:min(720px,96vw);
  max-height:82vh;
  padding:22px 22px 16px;
  border-radius:24px;
  background:
    radial-gradient(260px 260px at 0% 0%, rgba(124,92,255,.14), transparent),
    radial-gradient(260px 260px at 100% 0%, rgba(255,184,107,.10), transparent),
    #05070a;
  border:1px solid rgba(69,82,104,.95);
  box-shadow:0 30px 80px rgba(0,0,0,.95);
  display:flex;
  flex-direction:column;
  gap:8px;
  overflow-y:auto;
}

/* Close button (top-right “×”) */
.legal-close{
  position:absolute;
  top:10px;
  right:12px;
  width:22px;
  height:22px;
  border-radius:999px;
  border:none;
  background:rgba(9,11,16,.98);
  color:var(--muted);
  font-size:16px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:all .16s ease;
}
.legal-close:hover{
  background:rgba(124,92,255,.22);
  color:#fff;
}

/* Legal text styles */
.legal-modal h2{
  margin:0 0 4px;
  font-size:20px;
  font-weight:700;
  letter-spacing:-0.01em;
}

.legal-modal h3{
  margin:10px 0 4px;
  font-size:14px;
  font-weight:600;
  color:var(--accent-warm);
}

.legal-modal p{
  margin:0 0 6px;
  font-size:12px;
  color:var(--muted);
  line-height:1.7;
}

.legal-modal ul{
  margin:0 0 8px 16px;
  padding:0;
  font-size:12px;
  color:var(--muted);
  line-height:1.7;
}

.legal-note{
  font-size:10px;
  color:var(--muted);
  opacity:.9;
  margin-top:4px;
}

/* Mobile tweaks */
@media (max-width:600px){
  .legal-modal{
    padding:18px 14px 14px;
    border-radius:18px;
  }
  .legal-modal h2{
    font-size:18px;
  }
  .legal-modal p,
  .legal-modal ul{
    font-size:11px;
  }
}

/* Stripe Billing Portal: "Manage billing" button */
#manageBillingBtn{
  border-radius:var(--radius-pill);
  padding:6px 10px;
  font-size:10px;
}