/* ==========================================================================
   OraEntrep — Design Tokens & Global Styles
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500&display=swap');

:root{
  /* Color -- exact brand palette only */
  --navy-primary:#0B3D91;
  --navy-secondary:#1E3A8A;
  --navy-tint:rgba(11,61,145,.08);
  --navy-tint-strong:rgba(11,61,145,.16);
  --ink:#111111;
  --body:#374151;
  --muted:#6B7280;
  --bg:#FFFFFF;
  --bg-alt:#F9FAFB;
  --border:#E5E7EB;

    /* ================================
   MOBILE WIDTH FIX
    ================================ */

    html,
    body{
      width:100%;
      max-width:100%;
      overflow-x:hidden;
    }

    *,
    *::before,
    *::after{
      box-sizing:border-box;
    }

  /* Elevation -- neutral, no color tint / no gradients */
  --shadow-sm: 0 2px 8px rgba(17,17,17,.06);
  --shadow-md: 0 10px 30px rgba(17,17,17,.08);
  --shadow-lg: 0 24px 60px rgba(17,17,17,.12);

  /* Radius */
  --r-lg:20px;
  --r-md:14px;
  --r-sm:10px;
  --r-pill:999px;

  /* Type */
  --font-display:'Fraunces', Georgia, serif;
  --font-body:'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:'JetBrains Mono', monospace;

  /* Motion */
  --ease: cubic-bezier(.22,.8,.32,1);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--body);
  background:var(--bg);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{
  font-family:var(--font-display);
  color:var(--ink);
  margin:0 0 .5em;
  letter-spacing:-.01em;
  line-height:1.15;
}
h1{ font-weight:600; }
p{ margin:0 0 1em; }
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
button{ font-family:inherit; cursor:pointer; }
ul{ margin:0; padding:0; list-style:none; }

:focus-visible{
  outline:2px solid var(--navy-primary);
  outline-offset:3px;
}

.container{
  width:100%;
  max-width:1180px;
  margin:0 auto;
  padding:0 24px;
}

.eyebrow{
  font-family:var(--font-mono);
  font-size:.72rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--navy-primary);
  font-weight:500;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-weight:600;
  font-size:.95rem;
  padding:13px 24px;
  border-radius:var(--r-pill);
  border:1px solid transparent;
  transition:transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
  white-space:nowrap;
}
.btn-primary{
  background:var(--navy-primary);
  color:#fff;
  box-shadow:0 8px 20px rgba(11,61,145,.22);
}
.btn-primary:hover{ background:var(--navy-secondary); transform:translateY(-1px); box-shadow:0 12px 26px rgba(11,61,145,.28); }
.btn-secondary{
  background:#fff;
  color:var(--navy-primary);
  border-color:var(--border);
}
.btn-secondary:hover{ border-color:var(--navy-secondary); color:var(--navy-secondary); transform:translateY(-1px); }
.btn-ghost{
  background:transparent;
  color:var(--body);
}
.btn-ghost:hover{ color:var(--navy-primary); }
.btn-block{ width:100%; }
.btn-lg{ padding:16px 32px; font-size:1.02rem; }
.btn-sm{ padding:9px 16px; font-size:.85rem; }
.btn:disabled{ opacity:.5; cursor:not-allowed; transform:none !important; }

/* ---------- Nav ---------- */
.site-header{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(255,255,255,.85);
  backdrop-filter:saturate(180%) blur(14px);
  border-bottom:1px solid var(--border);
}
.nav{
  width:100%;
  max-width:1180px;
  margin:0 auto;
  padding:16px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:nowrap;
  min-width:0;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  flex-shrink:0;
  white-space:nowrap;
  font-family:var(--font-display);
  font-weight:600;
  font-size:1.12rem;
  color:var(--ink);
}  
.brand .logo {
  width: 30px;
  height: 30px;
  max-width: 30px;
  max-height: 30px;
  flex: 0 0 30px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  background: var(--navy-tint);
}
.nav-links{
  display:flex;
  align-items:center;
  gap:36px;
}
.nav-links a{
  font-size:.92rem;
  font-weight:500;
  color:var(--body);
  position:relative;
  padding:6px 0;
  transition:color .15s;
}
.nav-links a:hover{ color:var(--navy-primary); }
.nav-links a.active{ color:var(--ink); }
.nav-links a.active::after{
  content:'';
  position:absolute;
  left:0; right:0; bottom:-2px;
  height:2px;
  background:var(--navy-primary);
  border-radius:2px;
}
.nav-actions{
  display:flex;
  align-items:center;
  gap:14px;
}

.nav-user{
  display:flex;
  align-items:center;
  flex-shrink:0;
  margin-left:0;
}
.nav-toggle{
  display:none;
  flex-shrink:0;
  background:none;
  border:none;
  width:34px;
  height:34px;
  align-items:center;
  justify-content:center;
  margin-left:auto;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content:''; display:block; width:20px; height:2px; background:var(--ink);
  position:relative; transition:.2s;
}
.nav-toggle span::before{ position:absolute; top:-6px; }
.nav-toggle span::after{ position:absolute; top:6px; }

@media (max-width:860px){
  .nav{
  padding-left:16px;
  padding-right:16px;
}

  .nav-links{
  position:absolute;
  top:100%;
  left:0;
  right:0;
  width:100%;
  max-width:100vw;
  background:#fff;
  border-bottom:1px solid var(--border);
  flex-direction:column;
  align-items:flex-start;
  gap:0;
  padding:8px 24px 18px;
  display:none;
}
  .nav-links.open{ display:flex; }
  .nav-links a{ width:100%; padding:12px 0; border-bottom:1px solid var(--border); }
  .nav-links a:last-child{ border-bottom:none; }

  .nav-toggle{
  display:flex;
  flex-shrink:0;
  margin-left:auto;
}

.nav-user{
  display:flex;
  align-items:center;
  flex-shrink:0;
  margin-left:8px;
}
  .nav-actions .btn-secondary{ display:none; }
}

/* ---------- Sections ---------- */
.section{ padding:88px 0; }
.section-alt{ background:var(--bg-alt); }
.section-tight{ padding:56px 0; }

/* ---------- Cards ---------- */
.card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--r-lg);
  box-shadow:var(--shadow-sm);
}

/* ---------- Hero ---------- */
.hero{
  padding:64px 0 88px;
}
.hero-grid{
  display:grid;
  grid-template-columns:.85fr 1.15fr;
  gap:48px;
  align-items:start;
}
.hero-grid > div:first-child{
  padding-top:12px;
  position:sticky;
  top:100px;
}
@media (max-width:860px){
  .hero-grid > div:first-child{ position:static; }
}
.hero h1{
  font-size:clamp(2.3rem, 4vw, 3.4rem);
  max-width:14ch;
}
.hero-sub{
  font-size:1.08rem;
  max-width:46ch;
  color:var(--body);
}
.hero-actions{
  display:flex; align-items:center; gap:18px; flex-wrap:wrap;
  margin-top:8px;
}
.trust-text{
  font-size:.85rem; color:var(--muted); margin-top:14px;
}

.hero-generator{
  position:relative;
}

/* Tag used on generated/guide cards (e.g. "Service · Online") */
.tag-pill{
  display:inline-block; font-size:.72rem; font-weight:600; letter-spacing:.02em;
  color:var(--navy-primary); background:var(--navy-tint); padding:4px 10px; border-radius:var(--r-pill);
  margin-bottom:10px;
}

/* ---------- Score Gauge (signature element) ---------- */
.gauge{ position:relative; width:64px; height:64px; flex-shrink:0; }
.gauge svg{ width:100%; height:100%; transform:rotate(-90deg); }
.gauge circle{ fill:none; stroke-width:6; }
.gauge .track{ stroke:var(--border); }
.gauge .value{ stroke:var(--navy-primary); stroke-linecap:round; transition:stroke-dashoffset 1s var(--ease); }
.gauge-num{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-weight:600; font-size:1rem; color:var(--ink);
}
.gauge.sm{ width:46px; height:46px; }
.gauge.sm .gauge-num{ font-size:.8rem; }
.gauge.lg{ width:88px; height:88px; }
.gauge.lg .gauge-num{ font-size:1.3rem; }

/* ---------- Generator ---------- */
.generator-card{
  padding:40px;
  box-shadow:var(--shadow-md);
}
.generator-head{ text-align:left; max-width:640px; margin-bottom:28px; }
.form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px 24px;
}
.field{ display:flex; flex-direction:column; gap:8px; }
.field.full{ grid-column:1 / -1; }
.field label{ font-size:.85rem; font-weight:600; color:var(--ink); }
.field .hint{ font-size:.78rem; color:var(--muted); margin-top:-4px; }
.field input[type=text],
.field input[type=email],
.field input[type=password],
.field select{
  border:1px solid var(--border);
  background:#fff;
  border-radius:var(--r-sm);
  padding:12px 14px;
  font-size:.94rem;
  color:var(--ink);
  font-family:inherit;
  transition:border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus{
  border-color:var(--navy-primary);
  box-shadow:0 0 0 4px var(--navy-tint);
  outline:none;
}
.chip-group{ display:flex; flex-wrap:wrap; gap:10px; }
.chip{
  border:1px solid var(--border);
  background:#fff;
  padding:10px 16px;
  border-radius:var(--r-pill);
  font-size:.85rem;
  font-weight:500;
  color:var(--body);
  transition:.15s;
}
.chip:hover{ border-color:var(--navy-secondary); }
.chip.selected{
  background:var(--navy-primary);
  border-color:var(--navy-primary);
  color:#fff;
}
.generator-submit{ margin-top:30px; display:flex; align-items:center; gap:18px; flex-wrap:wrap; }

/* ---------- Results ---------- */
#results{ margin-top:56px; }
.results-head{ display:flex; align-items:baseline; justify-content:space-between; margin-bottom:24px; flex-wrap:wrap; gap:8px;}
.results-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(320px,1fr));
  gap:24px;
}
.opp-card{
  padding:28px;
  display:flex;
  flex-direction:column;
  opacity:0;
  transform:translateY(16px);
  animation:rise .55s var(--ease) forwards;
}
@keyframes rise{ to{ opacity:1; transform:translateY(0); } }
.opp-head{ display:flex; align-items:center; gap:16px; margin-bottom:6px; }
.opp-head h3{ font-size:1.2rem; margin:0; }
.opp-why{ font-size:.92rem; color:var(--body); margin:10px 0 16px; }
.opp-meta{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px 16px;
  padding:16px 0;
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
  margin-bottom:16px;
}
.meta-item .k{ font-size:.72rem; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); margin-bottom:2px; }
.meta-item .v{ font-size:.88rem; font-weight:600; color:var(--ink); }
.opp-steps{ font-size:.88rem; margin-bottom:20px; }
.opp-steps li{ display:flex; gap:10px; margin-bottom:8px; }
.step-num{
  width:20px; height:20px; border-radius:50%;
  background:var(--navy-tint); color:var(--navy-primary);
  font-size:.7rem; font-weight:700; display:flex; align-items:center; justify-content:center;
  flex-shrink:0; margin-top:1px;
}
.opp-actions{ margin-top:auto; display:flex; gap:10px; }

/* ---------- Favorites ---------- */
.fav-card{ padding:24px; display:flex; flex-direction:column; gap:12px; }
.fav-top{ display:flex; justify-content:space-between; align-items:center; }
.fav-date{ font-size:.76rem; color:var(--muted); }
.fav-summary{ font-size:.9rem; color:var(--body); }
.fav-actions{ display:flex; gap:10px; margin-top:auto; }
.empty-state{
  text-align:center; padding:80px 24px; border:1px dashed var(--border); border-radius:var(--r-lg);
  color:var(--muted);
}
.empty-state h3{ color:var(--ink); }

/* ---------- Guide ---------- */
.guide-hero{ padding:56px 0 20px; }
.guide-score-row{ display:flex; align-items:center; gap:18px; margin-bottom:8px; }
.guide-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(300px,1fr));
  gap:22px;
  margin-top:16px;
}
.guide-section{ padding:26px; }
.guide-section h3{ font-size:1.05rem; display:flex; align-items:center; gap:10px; }
.guide-section h3 .tag{
  font-family:var(--font-mono); font-size:.68rem; color:var(--navy-primary); background:var(--navy-tint);
  padding:2px 8px; border-radius:var(--r-pill);
}
.check-list li{ display:flex; gap:10px; font-size:.9rem; margin-bottom:8px; align-items:flex-start; }
.check-list li::before{ content:'☐'; color:var(--navy-secondary); }
.timeline-item{ border-left:2px solid var(--navy-tint); padding-left:16px; margin-bottom:16px; position:relative; }
.timeline-item::before{ content:''; position:absolute; left:-5px; top:2px; width:8px; height:8px; border-radius:50%; background:var(--navy-primary); }
.timeline-item .t-label{ font-size:.76rem; font-weight:700; color:var(--navy-primary); text-transform:uppercase; letter-spacing:.05em; }

/* ---------- Auth pages ---------- */
.auth-wrap{
  min-height:calc(100vh - 300px);
  display:flex; align-items:center; justify-content:center;
  padding:60px 24px;
}
.auth-card{
  width:100%; max-width:420px;
  padding:40px 36px;
  box-shadow:var(--shadow-md);
}
.auth-brand{ display:flex; align-items:center; gap:10px; justify-content:center; margin-bottom:24px; }
.auth-brand .logo {
  width: 30px !important;
  height: 30px !important;
  max-width: 30px !important;
  max-height: 30px !important;
  flex: 0 0 30px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}
.auth-card h1{ font-size:1.5rem; text-align:center; }
.auth-sub{ text-align:center; font-size:.9rem; margin-bottom:26px; }
.auth-form{ display:flex; flex-direction:column; gap:16px; }
.auth-foot{ text-align:center; font-size:.86rem; margin-top:20px; color:var(--muted); }
.auth-links{ display:flex; justify-content:space-between; font-size:.82rem; margin-top:-6px;}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.about-card {
  padding: 36px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-card {
  padding: 40px 36px;
  text-align: center;
}

@media (max-width: 760px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-card {
    min-height: auto;
    padding: 28px;
  }

  .contact-card {
    padding: 32px 24px;
  }
}

/* ---------- Footer ---------- */
.site-footer{
  background:var(--navy-secondary);
  color:rgba(255,255,255,.85);
  padding:56px 0 28px;
  margin-top:60px;
}
.footer-top{
  display:flex; justify-content:space-between; align-items:flex-start; gap:40px; flex-wrap:wrap;
  padding-bottom:36px; border-bottom:1px solid rgba(255,255,255,.12);
}
.footer-brand .brand{ color:#fff; }
.footer-tag{ font-size:.85rem; color:rgba(255,255,255,.65); max-width:280px; margin-top:10px; }
.footer-cols{ display:flex; gap:56px; flex-wrap:wrap; }
.footer-col h4{ color:#fff; font-family:var(--font-body); font-size:.82rem; text-transform:uppercase; letter-spacing:.06em; margin-bottom:14px; }
.footer-col a{ display:block; font-size:.88rem; color:rgba(255,255,255,.75); margin-bottom:10px; transition:color .15s; }
.footer-col a:hover{ color:#fff; }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center; padding-top:24px; flex-wrap:wrap; gap:12px;
}
.footer-copy{ font-size:.8rem; color:rgba(255,255,255,.55); }
.social-icons{ display:flex; gap:14px; }
.social-icons a{
  width:34px; height:34px; border-radius:50%; background:rgba(255,255,255,.06);
  display:flex; align-items:center; justify-content:center; color:rgba(255,255,255,.85);
}
.social-icons a:hover{ background:rgba(255,255,255,.14); color:#fff; }

@media (max-width:760px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero-preview{ order:-1; }
  .form-grid{ grid-template-columns:1fr; }
  .about-grid{ grid-template-columns:1fr; }
  .opp-meta{ grid-template-columns:1fr 1fr; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; }
}

/* ==========================================================================
   Profile / Account page + nav profile dropdown
   Built entirely from existing tokens (colors, radius, shadow, spacing,
   typography) — no new palette or framework introduced.
   ========================================================================== */

/* ---------- Avatar ---------- */
.avatar{
  display:inline-flex; align-items:center; justify-content:center;
  border-radius:50%;
  background:var(--navy-primary);
  color:#fff;
  font-family:var(--font-display);
  font-weight:600;
  flex-shrink:0;
}
.avatar-sm{ width:34px; height:34px; font-size:.82rem; }
.avatar-lg{ width:76px; height:76px; font-size:1.6rem; }

/* ---------- Nav profile dropdown ---------- */
.nav-user{ position:relative; }
.profile-menu{ position:relative; }
.avatar-btn{
  background:none; border:none; padding:0; line-height:0;
  border-radius:50%;
  transition:box-shadow .15s;
}
.avatar-btn:hover, .avatar-btn[aria-expanded="true"]{
  box-shadow:0 0 0 3px var(--navy-tint);
}
.profile-dropdown{
  position:absolute; top:calc(100% + 12px); right:0;
  min-width:190px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--r-md);
  box-shadow:var(--shadow-md);
  padding:8px;
  display:none;
  flex-direction:column;
  gap:2px;
  z-index:120;
}
.profile-dropdown.open{ display:flex; }
.profile-dropdown a,
.profile-dropdown button{
  display:block;
  width:100%;
  text-align:left;
  background:none;
  border:none;
  font-family:inherit;
  font-size:.88rem;
  font-weight:500;
  color:var(--body);
  padding:10px 12px;
  border-radius:var(--r-sm);
  transition:background .15s, color .15s;
}
.profile-dropdown a:hover,
.profile-dropdown button:hover{
  background:var(--navy-tint);
  color:var(--navy-primary);
}
.profile-dropdown .dropdown-logout{ color:#B42318; }
.profile-dropdown .dropdown-logout:hover{ background:#FEF3F2; color:#B42318; }

@media (max-width:860px){

  .profile-dropdown{
    position:absolute;
    top:calc(100% + 12px);
    right:0;
    box-shadow:var(--shadow-md);
    border:1px solid var(--border);
    padding:8px;
    margin-top:0;
    min-width:190px;
    background:#fff;
  }

  .nav-user{
    width:auto;
  }
}

/* ---------- Profile page header ---------- */
.profile-header{ padding:56px 0 8px; }
.profile-header-row{ display:flex; align-items:center; gap:20px; flex-wrap:wrap; }
.profile-header-text h1{ margin-bottom:4px; }
.profile-header-text p{ margin:0; color:var(--body); }

/* ---------- Profile content grid ---------- */
.profile-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
  margin-top:16px;
}
.profile-grid .card.full{ grid-column:1 / -1; }
.profile-card{ padding:32px; }
.profile-card h3{ font-size:1.05rem; margin-bottom:18px; }

.profile-row{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:16px 0;
  border-top:1px solid var(--border);
}
.profile-row:first-of-type{ border-top:none; padding-top:0; }
.profile-row .row-label{ font-size:.76rem; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); margin-bottom:4px; }
.profile-row .row-value{ font-size:.96rem; font-weight:600; color:var(--ink); }
.profile-row .row-sub{ font-size:.82rem; color:var(--muted); margin-top:2px; }

.status-pill{
  display:inline-flex; align-items:center; gap:6px;
  font-size:.76rem; font-weight:600;
  padding:5px 12px;
  border-radius:var(--r-pill);
}
.status-pill.status-good{ background:#ECFDF3; color:#1F8A5C; }
.status-pill.status-pending{ background:var(--navy-tint); color:var(--navy-primary); }
.status-pill.status-muted{ background:var(--bg-alt); color:var(--muted); }

/* ---------- Usage / progress bar ---------- */
.usage-top{ display:flex; align-items:baseline; justify-content:space-between; margin-bottom:10px; }
.usage-count{ font-family:var(--font-display); font-size:1.05rem; color:var(--ink); font-weight:600; }
.progress-track{
  width:100%; height:10px;
  background:var(--bg-alt);
  border:1px solid var(--border);
  border-radius:var(--r-pill);
  overflow:hidden;
}
.progress-fill{
  height:100%;
  background:var(--navy-primary);
  border-radius:var(--r-pill);
  transition:width .6s var(--ease);
}
.usage-note{ font-size:.82rem; color:var(--muted); margin-top:12px; }
.usage-plan-row{
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px;
  margin-top:22px; padding-top:22px; border-top:1px solid var(--border);
}


/* ---------- Danger zone ---------- */
.danger-zone {
  width: 100%;
  box-sizing: border-box;
  padding: 28px 30px 24px;
  border-color: #FDA29B;
  background: #FFFBFA;
}

.danger-zone h3 {
  margin: 0 0 20px;
  color: #B42318;
}

.danger-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 18px 0;
  border-top: 1px solid #FEE4E2;
}

.danger-row:first-of-type {
  border-top: none;
  padding-top: 0;
}

.danger-row .row-sub {
  font-size: .82rem;
  color: var(--muted);
  margin-top: 5px;
  max-width: 50ch;
  line-height: 1.5;
}

.danger-row .row-value {
  margin-bottom: 2px;
}

.btn-danger {
  background: #fff;
  color: #B42318;
  border: 1px solid #FDA29B;
}

.btn-danger:hover {
  background: #FEF3F2;
  border-color: #B42318;
  color: #B42318;
  transform: translateY(-1px);
}

.btn-danger-solid {
  background: #B42318;
  color: #fff;
}

.btn-danger-solid:hover {
  background: #932015;
  transform: translateY(-1px);
}

/* Mobile */
@media (max-width: 760px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-row,
  .danger-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .profile-row > *:last-child,
  .danger-row > *:last-child {
    align-self: flex-start;
  }

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

  .modal-actions .btn {
    width: 100%;
  }
}
/* ---------- Modal ---------- */
.modal-overlay{
  position:fixed; inset:0;
  background:rgba(17,17,17,.5);
  display:none;
  align-items:center; justify-content:center;
  padding:24px;
  z-index:200;
}
.modal-overlay.open{ display:flex; }
.modal-card{
  width:100%; max-width:440px;
  padding:32px;
  background:#fff;
  border-radius:var(--r-lg);
  box-shadow:var(--shadow-lg);
}
.modal-card h3{ margin-bottom:10px; }
.modal-card p{ color:var(--body); font-size:.92rem; }
.modal-actions{ display:flex; justify-content:flex-end; gap:12px; margin-top:24px; }

@media (max-width:760px){
  .profile-grid{ grid-template-columns:1fr; }
  .profile-row, .danger-row{ flex-direction:column; align-items:flex-start; gap:10px; }
  .profile-row > *:last-child, .danger-row > *:last-child{ align-self:flex-start; }
  .modal-actions{ flex-direction:column-reverse; }
  .modal-actions .btn{ width:100%; }
}

/* =================================
   COOKIE CONSENT — BOTTOM LEFT
================================= */

.cookie-banner {
    position: fixed;
    left: 20px;
    bottom: 20px;

    width: 360px;
    max-width: calc(100vw - 40px);

    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;

    padding: 20px;

    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);

    display: flex;
    gap: 14px;

    z-index: 99999;

    opacity: 0;
    visibility: hidden;
    transform: translateY(25px);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        visibility 0.3s ease;
}

/* Show popup */

.cookie-banner.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Cookie icon */

.cookie-icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: #f3f5f8;
    border-radius: 10px;

    font-size: 20px;
}

/* Content */

.cookie-content {
    flex: 1;
}

.cookie-content h3 {
    margin: 0 0 7px;

    color: #111111;

    font-size: 17px;
    font-weight: 700;
}

.cookie-content p {
    margin: 0 0 8px;

    color: #555555;

    font-size: 13px;
    line-height: 1.55;
}

.cookie-policy-link {
    display: inline-block;

    margin-bottom: 14px;

    color: #183b67;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;
}

.cookie-policy-link:hover {
    text-decoration: underline;
}

/* Buttons */

.cookie-actions {
    display: flex;
    gap: 8px;
}

.cookie-btn {
    border: none;
    border-radius: 9px;

    padding: 9px 13px;

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.cookie-btn:hover {
    transform: translateY(-1px);
}

.cookie-reject {
    background: #f1f2f4;
    color: #333333;
}

.cookie-accept {
    background: #183b67;
    color: #ffffff;
}

/* Mobile */

@media (max-width: 600px) {

    .cookie-banner {
        left: 12px;
        bottom: 12px;

        width: auto;
        max-width: none;

        right: 12px;

        padding: 17px;
    }

    .cookie-actions {
        width: 100%;
    }

    .cookie-btn {
        flex: 1;
    }
}

/* ====================================
    AUTH NAVIGATION VISIBILITY
=======================================

/* Hide logged-out user navigation */
.nav-user[hidden] {
  display: none !important;
}

/* Show logged-in user navigation */
.nav-user:not([hidden]) {
  display: flex;
}

[hidden] {
  display: none !important;
}

/* =========================================================
   PRICING CARDS
   ========================================================= */

.pricing-card {
  padding: 34px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: visible;
  transition: transform .2s ease, box-shadow .2s ease;
}

.pricing-card h2 {
  margin: 10px 0 4px;
}

.price-period {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}

.pricing-description {
  color: var(--muted);
  font-size: .85rem;
  margin-bottom: 22px;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: .9rem;
  color: var(--body);
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.pricing-features li {
  display: flex;
  gap: 8px;
}

.pricing-features li span {
  font-weight: 700;
}


/* ---------- Premium ---------- */

.pricing-card-premium {
  border: 1.5px solid #D6B35A;
  background: linear-gradient(
    180deg,
    #FFFDF6 0%,
    #FFFFFF 65%
  );
  box-shadow:
    0 10px 30px rgba(160, 125, 40, .12);
}

.pricing-card-premium .pricing-features li span {
  color: #B18A2E;
}

.pricing-card-premium .eyebrow {
  color: #9A7624;
}


/* ---------- Most Popular badge ---------- */

.pricing-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);

  padding: 6px 16px;

  background: #D6B35A;
  color: #3D3014;

  border: 1px solid #C39D43;
  border-radius: 999px;

  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;

  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(160, 125, 40, .18);
}


/* ---------- Premium button ---------- */

.premium-btn {
  margin-top: auto;
  background: #B18A2E;
  color: #fff;
  border: 1px solid #B18A2E;
}

.premium-btn:hover {
  background: #967324;
  border-color: #967324;
  transform: translateY(-1px);
}


/* ---------- Pro ---------- */

.pricing-card-pro {
  border: 1px solid #C9A84E;
  background: linear-gradient(
    180deg,
    #FCF8EA 0%,
    #FFFFFF 70%
  );
  box-shadow:
    0 8px 24px rgba(120, 90, 20, .08);
}

.pricing-card-pro .pricing-features li span {
  color: #9A7624;
}

.pricing-card-pro .eyebrow {
  color: #80621D;
}

.pro-btn {
  margin-top: auto;
  background: #2D2A24;
  color: #F7E8B0;
  border: 1px solid #2D2A24;
}

.pro-btn:hover {
  background: #171612;
  border-color: #171612;
  transform: translateY(-1px);
}

/* ---------- Contact page ---------- */

.contact-form-card {
  padding: 36px;
}

.contact-form-card .generator-head {
  margin-bottom: 26px;
}

.contact-form-card .generator-head h2 {
  margin-bottom: 8px;
}

.contact-form-card .generator-head p {
  margin: 0;
  color: var(--muted);
}

.contact-form-card textarea {
  width: 100%;
  min-height: 140px;
  box-sizing: border-box;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .contact-form-card {
    padding: 28px 22px;
  }
}

/* ---------- Legal pages ---------- */

.legal-card {
  padding: 44px;
}

.legal-card h3 {
  margin-top: 32px;
  margin-bottom: 10px;
}

.legal-card h3:first-of-type {
  margin-top: 28px;
}

.legal-card p {
  line-height: 1.7;
}

.legal-card ul {
  line-height: 1.6;
}

.legal-card a {
  color: var(--navy-primary);
  font-weight: 600;
}

@media (max-width: 760px) {
  .legal-card {
    padding: 28px 22px;
  }
}

.legal-list {
  list-style: disc;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
}

.terms-card {
  padding: 40px;
}

.terms-card h3 {
  margin-top: 30px;
  margin-bottom: 10px;
}

.terms-card h3:first-of-type {
  margin-top: 24px;
}

.terms-card p {
  line-height: 1.7;
  margin-bottom: 14px;
}

.terms-card .legal-list {
  margin: 14px 0 24px;
}

@media (max-width: 760px) {
  .terms-card {
    padding: 28px 22px;
  }
}

.cookie-policy-card {
  padding: 40px;
}

.cookie-policy-card h3 {
  margin-top: 30px;
  margin-bottom: 10px;
}

.cookie-policy-card h3:first-of-type {
  margin-top: 24px;
}

.cookie-policy-card p {
  line-height: 1.7;
}

@media (max-width: 760px) {
  .cookie-policy-card {
    padding: 28px 22px;
  }
}

.refund-policy-card {
  padding: 40px;
}

.refund-policy-card h3 {
  margin-top: 30px;
  margin-bottom: 10px;
}

.refund-policy-card h3:first-of-type {
  margin-top: 24px;
}

.refund-policy-card p {
  line-height: 1.7;
}

.refund-policy-card .legal-list {
  margin: 14px 0 24px;
}

@media (max-width: 760px) {
  .refund-policy-card {
    padding: 28px 22px;
  }
}