/* Nasty Letters — Main Stylesheet
   Palette: Navy #0F1F3D · Gold #C9A84C · Paper #F7F6F2 · Slate #4A5568 · Crimson #C0392B · Green #1E7E5E
   Fonts: Playfair Display (display) · Inter (body)
*/

/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:        #0F1F3D;
  --navy-light:  #1A3260;
  --gold:        #C9A84C;
  --gold-light:  #E8D5A3;
  --paper:       #F7F6F2;
  --white:       #FFFFFF;
  --slate:       #4A5568;
  --slate-light: #718096;
  --crimson:     #C0392B;
  --green:       #1E7E5E;
  --border:      #DDD8CE;
  --radius:      6px;
  --shadow:      0 2px 12px rgba(15,31,61,.10);
  --shadow-lg:   0 8px 32px rgba(15,31,61,.14);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--paper);
  color: var(--navy);
  line-height: 1.6;
  font-size: 16px;
}

h1,h2,h3,h4 { font-family: 'Playfair Display', serif; line-height: 1.2; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.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; }

/* ── Navigation ────────────────────────────────────────────────────────────── */
.nav {
  background: var(--navy);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-brand {
  display: flex; align-items: center; gap: .5rem;
  color: var(--gold); font-size: 1.2rem;
  text-decoration: none;
}
.brand-icon { font-size: 1.4rem; }
.brand-text { font-family: 'Playfair Display', serif; }
.brand-text strong { color: var(--gold); }
.brand-text { color: var(--white); }

.nav-menu { display: flex; align-items: center; gap: .25rem; }
.nav-link {
  color: rgba(255,255,255,.8); padding: .5rem .85rem; border-radius: var(--radius);
  font-size: .875rem; font-weight: 500; transition: all .15s; text-decoration: none;
}
.nav-link:hover { background: rgba(255,255,255,.1); color: var(--white); text-decoration: none; }
.nav-cta {
  background: var(--gold); color: var(--navy) !important; margin-left: .25rem;
  font-weight: 600;
}
.nav-cta:hover { background: #b8943d; }
.nav-user-info { display: flex; align-items: center; gap: .5rem; padding: 0 .5rem; }
.nav-username { color: var(--gold-light); font-size: .85rem; }
.tag-manager {
  background: rgba(201,168,76,.2); color: var(--gold); border: 1px solid rgba(201,168,76,.4);
  font-size: .68rem; font-weight: 600; padding: .2rem .5rem; border-radius: 100px;
  text-transform: uppercase; letter-spacing: .05em;
}
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; }
.nav-toggle span { display:block; width:22px; height:2px; background:#fff; margin:4px 0; border-radius:2px; transition:.2s; }

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.btn-primary {
  background: var(--gold); color: var(--navy); border: none;
  padding: .75rem 1.75rem; border-radius: var(--radius);
  font-weight: 600; font-size: .95rem; cursor: pointer;
  font-family: 'Inter', sans-serif; transition: all .2s; display: inline-block;
  text-decoration: none;
}
.btn-primary:hover { background: #b8943d; transform: translateY(-1px); text-decoration: none; color: var(--navy); }

.btn-outline {
  background: none; border: 2px solid rgba(255,255,255,.5); color: var(--white);
  padding: .75rem 1.75rem; border-radius: var(--radius);
  font-weight: 500; font-size: .95rem; cursor: pointer;
  font-family: 'Inter', sans-serif; transition: all .2s; display: inline-block;
  text-decoration: none;
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); text-decoration: none; color: var(--white); }

.btn-outline-dark {
  background: none; border: 1.5px solid var(--border); color: var(--slate);
  padding: .65rem 1.4rem; border-radius: var(--radius);
  font-size: .875rem; font-weight: 500; cursor: pointer; text-decoration: none;
  display: inline-block; transition: all .2s; font-family: inherit;
}
.btn-outline-dark:hover { border-color: var(--navy); color: var(--navy); text-decoration: none; }

.btn-gold { background: var(--gold); color: var(--navy); border: none; }
.btn-gold:hover { background: #b8943d; }
.btn-sm-p { padding: .5rem 1rem; font-size: .85rem; border-radius: var(--radius); cursor: pointer; font-family: inherit; font-weight: 600; }
.btn-sm-link { color: var(--gold); font-size: .85rem; font-weight: 500; }
.btn-sm-link:hover { text-decoration: underline; }

/* ── Flash messages ─────────────────────────────────────────────────────────── */
.flash {
  padding: .85rem 1.25rem; font-size: .9rem; display: flex;
  align-items: center; justify-content: space-between;
}
.flash-success { background: #ecfdf5; color: #065f46; border-bottom: 2px solid #6ee7b7; }
.flash-error   { background: #fef2f2; color: #991b1b; border-bottom: 2px solid #fca5a5; }
.flash-close { background: none; border: none; cursor: pointer; font-size: 1.1rem; color: inherit; opacity: .6; }
.flash-close:hover { opacity: 1; }

.alert { padding: .8rem 1rem; border-radius: var(--radius); font-size: .875rem; margin-bottom: 1.25rem; }
.alert-error   { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }
.alert-success { background: #ecfdf5; border: 1px solid #6ee7b7; color: #065f46; }

/* ── Hero ───────────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 65%, #1e3a6e 100%);
  color: var(--white); padding: 5rem 2rem 4rem; position: relative; overflow: hidden;
}
.hero::before {
  content: '§'; position: absolute; font-size: 30rem; font-family: 'Playfair Display', serif;
  color: rgba(201,168,76,.04); top: -5rem; right: -3rem; line-height: 1; pointer-events: none;
}
.hero-inner {
  max-width: 1100px; margin: 0 auto; display: grid;
  grid-template-columns: 1fr 340px; gap: 4rem; align-items: center;
}
.hero-eyebrow { font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; color: var(--gold); font-weight: 600; margin-bottom: 1rem; }
.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero-sub { color: rgba(255,255,255,.75); font-size: 1.05rem; margin-bottom: 2rem; line-height: 1.7; font-weight: 300; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.hero-trust { font-size: .8rem; color: rgba(255,255,255,.5); }

.hero-visual { display: flex; flex-direction: column; gap: .75rem; }
.hero-card {
  background: rgba(255,255,255,.08); border: 1px solid rgba(201,168,76,.25);
  border-radius: 10px; padding: 1rem 1.25rem; backdrop-filter: blur(8px);
}
.hero-card p { font-size: .875rem; color: rgba(255,255,255,.8); margin: .35rem 0 .15rem; }
.hero-card span:last-child { font-size: .78rem; color: rgba(255,255,255,.5); }

/* ── Status seals ───────────────────────────────────────────────────────────── */
.status-seal {
  display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .75rem;
  border-radius: 100px; font-size: .75rem; font-weight: 600; letter-spacing: .04em; white-space: nowrap;
}
.seal-new      { background: #EFF6FF; color: #1D4ED8; border: 1px solid #BFDBFE; }
.seal-review   { background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; }
.seal-action   { background: #FFF7ED; color: #9A3412; border: 1px solid #FED7AA; }
.seal-resolved { background: #F0FDF4; color: var(--green); border: 1px solid #BBF7D0; }
.seal-closed   { background: #F8FAFC; color: var(--slate); border: 1px solid var(--border); }

/* ── Stats band ─────────────────────────────────────────────────────────────── */
.stats-band { background: var(--white); border-bottom: 1px solid var(--border); }
.stats-inner { max-width: 900px; margin: 0 auto; display: flex; }
.stat { flex: 1; padding: 1.75rem 1.5rem; text-align: center; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat-num { font-family: 'Playfair Display', serif; font-size: 2.1rem; color: var(--navy); font-weight: 700; }
.stat-lbl { font-size: .75rem; color: var(--slate-light); text-transform: uppercase; letter-spacing: .08em; margin-top: .25rem; }

/* ── Sections ───────────────────────────────────────────────────────────────── */
.section { padding: 5rem 2rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-inner.two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: start; }
.section-sub { color: var(--slate); margin-top: .5rem; margin-bottom: 2rem; font-size: 1.05rem; }
.eyebrow { font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; color: var(--gold); font-weight: 600; margin-bottom: .75rem; }
.bg-navy { background: var(--navy); }
.bg-paper { background: var(--paper); }

/* ── Step cards ─────────────────────────────────────────────────────────────── */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1.5rem; margin-top: 3rem; }
.step-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 2rem 1.5rem;
}
.step-num { font-family: 'Playfair Display', serif; font-size: 3rem; color: var(--gold-light); line-height: 1; margin-bottom: 1rem; }
.step-card h3 { margin-bottom: .5rem; }
.step-card p { font-size: .875rem; color: var(--slate); line-height: 1.6; }

/* ── Case types ─────────────────────────────────────────────────────────────── */
.case-types-section { padding: 5rem 2rem; background: var(--white); }
.types-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.type-card {
  border: 1px solid var(--border); border-radius: 8px; padding: 1.75rem 1.5rem; background: var(--paper);
  display: block; text-decoration: none; color: inherit; transition: all .2s;
}
.type-card:hover { border-color: var(--gold); box-shadow: 0 4px 20px rgba(201,168,76,.12); transform: translateY(-2px); text-decoration: none; color: inherit; }
.type-icon { font-size: 2rem; margin-bottom: .75rem; display: block; }
.type-card h3 { font-size: 1rem; margin-bottom: .35rem; }
.type-card p { font-size: .8rem; color: var(--slate); line-height: 1.5; }
.type-more { display: block; margin-top: .75rem; color: var(--gold); font-size: .82rem; font-weight: 500; }

/* ── Know your rights ───────────────────────────────────────────────────────── */
.rights-list { margin: 1.25rem 0; list-style: none; display: flex; flex-direction: column; gap: .75rem; }
.rights-list li { padding-left: 0; font-size: .9rem; line-height: 1.6; }
.rights-aside { display: flex; flex-direction: column; gap: 1rem; }
.info-box {
  background: var(--white); border: 1px solid var(--border); border-radius: 8px;
  padding: 1.5rem; border-left: 4px solid var(--gold);
}
.info-box h4 { margin-bottom: .75rem; font-size: 1rem; }
.info-box ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.info-box li { font-size: .875rem; color: var(--slate); }
.info-box li strong { color: var(--navy); }
.info-note { font-size: .78rem; color: var(--slate-light); margin-top: .75rem; }

/* ── Info cards (speeding section) ─────────────────────────────────────────── */
.info-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(230px,1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.info-card { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 1.5rem; }
.info-card h4 { font-size: .95rem; margin-bottom: .5rem; }
.info-card p { font-size: .85rem; color: var(--slate); line-height: 1.6; }

/* ── Debt section ───────────────────────────────────────────────────────────── */
.debt-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(230px,1fr)); gap: 1.5rem; }
.debt-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 8px; padding: 1.5rem; }
.debt-card h4 { color: var(--gold); font-size: .95rem; margin-bottom: .5rem; }
.debt-card p { font-size: .83rem; color: rgba(255,255,255,.7); line-height: 1.6; }

/* ── Pricing ────────────────────────────────────────────────────────────────── */
.pricing-grid { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.price-card {
  background: var(--white); border: 1.5px solid var(--border); border-radius: 10px;
  padding: 2rem 1.5rem; flex: 1 1 240px; max-width: 300px; position: relative;
}
.price-card-featured { border-color: var(--gold); box-shadow: 0 4px 24px rgba(201,168,76,.2); }
.popular-badge {
  background: var(--gold); color: var(--navy); font-size: .72rem; font-weight: 700;
  padding: .25rem .75rem; border-radius: 100px; text-transform: uppercase; letter-spacing: .06em;
  display: inline-block; margin-bottom: .75rem;
}
.price-name { font-weight: 600; font-size: .875rem; color: var(--slate-light); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .25rem; }
.price-amount { font-family: 'Playfair Display', serif; font-size: 2.4rem; color: var(--navy); margin-bottom: .25rem; }
.price-period { font-size: 1rem; font-family: 'Inter', sans-serif; color: var(--slate-light); }
.price-features { list-style: none; margin: 1.25rem 0 1.5rem; display: flex; flex-direction: column; gap: .5rem; }
.price-features li { font-size: .85rem; color: var(--slate); }
.pricing-note { text-align: center; font-size: .8rem; color: var(--slate-light); margin-top: 2rem; }

/* ── Testimonials ───────────────────────────────────────────────────────────── */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.testi-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 8px;
  padding: 1.75rem; border-left: 4px solid var(--gold);
}
.testi-card p { font-size: .9rem; color: var(--slate); line-height: 1.7; font-style: italic; }
.testi-card footer { margin-top: 1rem; font-style: normal; }
.testi-card footer strong { color: var(--navy); font-size: .875rem; display: block; }
.testi-card footer span { font-size: .78rem; color: var(--slate-light); }

/* ── CTA section ────────────────────────────────────────────────────────────── */
.cta-section {
  background: var(--navy); color: var(--white); padding: 5rem 2rem; text-align: center;
}
.cta-section h2 { color: var(--white); margin-bottom: .75rem; }
.cta-section p { color: rgba(255,255,255,.7); font-size: 1.05rem; }

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.site-footer { background: var(--navy); color: rgba(255,255,255,.7); padding: 4rem 2rem 0; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; }
.footer-brand p { font-size: .82rem; margin-top: .75rem; line-height: 1.6; }
.footer-brand .brand-icon { font-size: 1.4rem; }
.footer-links h4 { color: var(--white); font-family: 'Inter', sans-serif; font-size: .85rem; font-weight: 600; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-links a { display: block; color: rgba(255,255,255,.6); font-size: .85rem; margin-bottom: .5rem; transition: color .15s; }
.footer-links a:hover { color: var(--gold); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.5rem 0; max-width: 1100px; margin: 0 auto; font-size: .78rem; color: rgba(255,255,255,.4); }

/* ── Auth pages ──────────────────────────────────────────────────────────────── */
.auth-wrap { min-height: calc(100vh - 64px); display: flex; align-items: center; justify-content: center; padding: 2rem; }
.auth-wrap-wide .auth-card { max-width: 540px; }
.auth-card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 2.5rem; width: 100%; max-width: 420px; box-shadow: var(--shadow-lg); }
.auth-logo { text-align: center; margin-bottom: 1.5rem; font-size: 1.2rem; }
.auth-logo a { text-decoration: none; font-family: 'Playfair Display', serif; color: var(--navy); }
.auth-title { font-size: 1.5rem; margin-bottom: .35rem; text-align: center; }
.auth-sub { font-size: .875rem; color: var(--slate); margin-bottom: 1.75rem; text-align: center; }
.auth-alt { font-size: .83rem; color: var(--slate); text-align: center; margin-top: 1.25rem; }

/* ── Forms ───────────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; font-weight: 500; color: var(--navy); margin-bottom: .4rem; }
.label-link { font-size: .78rem; color: var(--gold); font-weight: 400; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: .7rem .9rem; border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: 'Inter', sans-serif; font-size: .9rem; color: var(--navy); background: var(--paper);
  transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--gold); background: var(--white); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-hint { font-size: .75rem; color: var(--slate-light); margin-top: .3rem; display: block; }
.form-section-title { font-size: 1.1rem; color: var(--navy); margin-bottom: 1.25rem; padding-top: .5rem; font-family: 'Playfair Display', serif; }
.form-divider { border: none; border-top: 1px solid var(--border); margin: 1.75rem 0; }
.form-actions { display: flex; gap: .75rem; justify-content: flex-end; align-items: center; margin-top: 1.5rem; }
.form-legal { font-size: .75rem; color: var(--slate-light); text-align: center; margin-top: 1rem; line-height: 1.5; }
.req { color: var(--crimson); }
.form-btn { width: 100%; background: var(--navy); color: var(--white); border: none; padding: .85rem; border-radius: var(--radius); font-size: .95rem; font-weight: 600; cursor: pointer; font-family: 'Inter', sans-serif; transition: background .2s; margin-top: .5rem; }
.form-btn:hover { background: var(--navy-light); }
.form-btn-gold { background: var(--gold); color: var(--navy); }
.form-btn-gold:hover { background: #b8943d; }

/* Plan selector */
.plan-selector { display: flex; flex-direction: column; gap: .75rem; }
.plan-opt { display: flex; align-items: center; gap: .75rem; border: 1.5px solid var(--border); border-radius: var(--radius); padding: .9rem 1rem; cursor: pointer; transition: all .15s; }
.plan-opt input[type="radio"] { accent-color: var(--gold); }
.plan-opt-active { border-color: var(--gold); background: rgba(201,168,76,.06); }
.plan-name { font-weight: 600; font-size: .9rem; }
.plan-price { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--gold); }
.plan-desc { font-size: .78rem; color: var(--slate); margin-left: auto; }

.stripe-note { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--slate-light); margin: 1rem 0; }
.stripe-badge { background: #635BFF; color: #fff; font-size: .72rem; font-weight: 700; padding: .25rem .6rem; border-radius: 4px; flex-shrink: 0; }

/* ── Dashboard layout ───────────────────────────────────────────────────────── */
.dashboard-body { background: var(--paper); }
.dash-layout { display: flex; min-height: calc(100vh - 64px); }
.sidebar { width: 240px; background: var(--white); border-right: 1px solid var(--border); flex-shrink: 0; padding: 1.5rem 0; display: flex; flex-direction: column; }
.sidebar-user { padding: 1rem 1.25rem 1.25rem; border-bottom: 1px solid var(--border); margin-bottom: 1rem; display: flex; align-items: center; gap: .75rem; }
.sidebar-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--gold-light); color: var(--navy); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; font-family: 'Playfair Display', serif; flex-shrink: 0; }
.sidebar-name { font-weight: 600; font-size: .875rem; color: var(--navy); }
.sidebar-plan { font-size: .75rem; color: var(--slate-light); }
.sidebar-nav { padding: 0 .75rem; display: flex; flex-direction: column; gap: .15rem; flex: 1; }
.sidebar-link {
  display: flex; align-items: center; gap: .6rem; padding: .6rem .75rem; border-radius: var(--radius);
  font-size: .875rem; color: var(--slate); transition: all .15s; text-decoration: none; font-weight: 500;
}
.sidebar-link:hover { background: var(--paper); color: var(--navy); text-decoration: none; }
.sidebar-link.active { background: rgba(201,168,76,.1); color: var(--navy); }
.sidebar-link span { width: 18px; text-align: center; }
.sidebar-link-danger { color: var(--crimson); margin-top: auto; }
.sidebar-link-danger:hover { background: #fef2f2; color: var(--crimson); }
.sidebar-divider { border: none; border-top: 1px solid var(--border); margin: .5rem 0; }
.badge { background: var(--crimson); color: #fff; font-size: .65rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 100px; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; margin-left: auto; }

.dash-main { flex: 1; padding: 2rem; overflow-y: auto; min-width: 0; }
.dash-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 2rem; gap: 1rem; flex-wrap: wrap; }
.dash-header h1 { font-size: 1.5rem; margin-bottom: .2rem; }
.dash-header p { font-size: .875rem; color: var(--slate); }

/* ── Card ────────────────────────────────────────────────────────────────────── */
.card { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 1.5rem; box-shadow: var(--shadow); margin-bottom: 1rem; }
.card-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }
.card-header-row h2 { font-size: 1.1rem; }

/* ── Case cards ──────────────────────────────────────────────────────────────── */
.case-card { display: block; text-decoration: none; color: inherit; transition: all .2s; }
.case-card:hover { border-color: var(--gold); box-shadow: 0 4px 20px rgba(201,168,76,.12); transform: translateY(-1px); text-decoration: none; color: inherit; }
.case-card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1rem; gap: 1rem; }
.case-ref { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--slate-light); font-family: 'Playfair Display', serif; margin-bottom: .2rem; }
.case-title { font-weight: 600; color: var(--navy); font-size: 1rem; }
.case-meta { display: flex; gap: 1.25rem; flex-wrap: wrap; font-size: .8rem; color: var(--slate); margin-top: .75rem; }

/* ── Docket progress bar — signature element ────────────────────────────────── */
.docket-bar { display: flex; align-items: flex-start; margin: 1.25rem 0; }
.docket-step { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; min-width: 0; }
.docket-connector { position: absolute; top: 14px; right: 50%; width: 100%; height: 2px; background: var(--border); z-index: 0; }
.docket-step.done .docket-connector { background: var(--navy); }
.docket-step.current .docket-connector { background: linear-gradient(to right, var(--navy), var(--gold)); }
.docket-dot {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border);
  background: var(--white); display: flex; align-items: center; justify-content: center;
  z-index: 1; font-size: .65rem; font-weight: 700; color: var(--slate-light); position: relative;
  transition: all .3s;
}
.docket-step.done .docket-dot { background: var(--navy); border-color: var(--navy); color: var(--white); }
.docket-step.current .docket-dot { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.docket-label { font-size: .67rem; margin-top: .4rem; color: var(--slate-light); text-align: center; max-width: 65px; line-height: 1.3; }
.docket-step.done .docket-label { color: var(--navy); }
.docket-step.current .docket-label { color: var(--gold); font-weight: 600; }

/* ── Case detail page ────────────────────────────────────────────────────────── */
.breadcrumb { margin-bottom: 1rem; font-size: .83rem; }
.breadcrumb a { color: var(--slate); }
.breadcrumb a:hover { color: var(--navy); }
.case-page-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1.5rem; gap: 1rem; flex-wrap: wrap; }
.case-page-header h1 { font-size: 1.4rem; margin-bottom: .2rem; }
.case-detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 1.25rem; margin-bottom: 1.5rem; }
.case-detail-grid > div label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--slate-light); margin-bottom: .25rem; }
.case-description { font-size: .9rem; line-height: 1.8; color: var(--slate); white-space: pre-wrap; }

/* ── Tabs ────────────────────────────────────────────────────────────────────── */
.tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 1.5rem; }
.tab { padding: .65rem 1.25rem; font-size: .875rem; font-weight: 500; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; color: var(--slate); text-decoration: none; transition: all .15s; }
.tab:hover { color: var(--navy); text-decoration: none; }
.tab.active { color: var(--navy); border-bottom-color: var(--gold); font-weight: 600; }

/* ── Upload zone ─────────────────────────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--border); border-radius: 8px; padding: 2rem; text-align: center;
  cursor: pointer; transition: all .2s; background: var(--paper);
}
.upload-zone:hover, .upload-zone.drag { border-color: var(--gold); background: rgba(201,168,76,.04); }
.upload-icon { font-size: 2rem; margin-bottom: .5rem; }
.upload-label { font-size: .875rem; color: var(--slate); }
.upload-hint { font-size: .75rem; color: var(--slate-light); margin-top: .35rem; }

.file-list { display: flex; flex-direction: column; gap: .5rem; }
.file-item { display: flex; align-items: center; gap: .75rem; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: .6rem .9rem; font-size: .83rem; }
.file-icon { font-size: 1.1rem; flex-shrink: 0; }
.file-name { flex: 1; color: var(--navy); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.file-size { color: var(--slate-light); white-space: nowrap; }
.file-who { font-size: .72rem; white-space: nowrap; }
.file-date { font-size: .72rem; color: var(--slate-light); white-space: nowrap; }
.file-remove { background: none; border: none; color: var(--slate-light); cursor: pointer; font-size: 1rem; padding: 0 .2rem; }
.file-remove:hover { color: var(--crimson); }
.file-dl { color: var(--gold); font-size: 1rem; }

/* ── Update thread ───────────────────────────────────────────────────────────── */
.update-thread { display: flex; flex-direction: column; gap: 1rem; }
.update-msg { display: flex; gap: .75rem; }
.update-avatar { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; flex-shrink: 0; font-family: 'Playfair Display', serif; }
.avatar-manager { background: var(--navy); color: var(--gold); }
.avatar-consumer { background: var(--gold-light); color: var(--navy); }
.update-bubble { flex: 1; background: var(--paper); border: 1px solid var(--border); border-radius: 8px; padding: 1rem; min-width: 0; }
.bubble-manager { background: #EEF2FF; border-color: #C7D4F5; }
.update-meta { display: flex; justify-content: space-between; margin-bottom: .4rem; align-items: center; flex-wrap: wrap; gap: .35rem; }
.update-author { font-size: .82rem; font-weight: 600; color: var(--navy); display: flex; align-items: center; gap: .4rem; }
.update-time { font-size: .75rem; color: var(--slate-light); }
.update-text { font-size: .875rem; color: var(--slate); line-height: 1.6; }
.tag-manager-small { background: rgba(201,168,76,.15); color: var(--navy); border: 1px solid var(--gold-light); font-size: .65rem; font-weight: 600; padding: .15rem .45rem; border-radius: 100px; text-transform: uppercase; letter-spacing: .04em; }
.update-internal { opacity: .8; }
.internal-flag { font-size: .72rem; color: var(--slate-light); margin-bottom: .35rem; background: var(--paper); border: 1px dashed var(--border); padding: .2rem .5rem; border-radius: 4px; display: inline-block; }

.reply-box { margin-top: 1.5rem; }
.reply-box textarea { width: 100%; border: 1.5px solid var(--border); border-radius: var(--radius); padding: .75rem; font-family: 'Inter', sans-serif; font-size: .875rem; resize: vertical; min-height: 80px; background: var(--paper); }
.reply-box textarea:focus { outline: none; border-color: var(--gold); background: var(--white); }
.reply-actions { display: flex; justify-content: space-between; align-items: center; margin-top: .5rem; flex-wrap: wrap; gap: .5rem; }
.checkbox-label { display: flex; align-items: center; gap: .4rem; font-size: .83rem; color: var(--slate); cursor: pointer; }

/* ── Manager quick actions ───────────────────────────────────────────────────── */
.manager-quick-actions { margin-bottom: 1rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.quick-form { flex: 1 1 auto; }
.quick-row { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .875rem; }
.quick-row label { font-weight: 500; white-space: nowrap; }
.quick-row select { padding: .45rem .75rem; border: 1.5px solid var(--border); border-radius: var(--radius); font-family: inherit; font-size: .85rem; }

/* ── Stats row (manager) ─────────────────────────────────────────────────────── */
.stats-row { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.stat-chip {
  display: flex; flex-direction: column; align-items: center; padding: .75rem 1.25rem;
  background: var(--white); border: 1.5px solid var(--border); border-radius: 8px;
  text-decoration: none; transition: all .15s; cursor: pointer;
}
.stat-chip:hover { border-color: var(--chip-color, var(--gold)); text-decoration: none; }
.stat-chip-active { border-color: var(--chip-color, var(--gold)); background: rgba(0,0,0,.03); }
.stat-chip-num { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--chip-color, var(--navy)); font-weight: 700; }
.stat-chip-lbl { font-size: .72rem; color: var(--slate-light); white-space: nowrap; margin-top: .1rem; }

/* ── Search bar ──────────────────────────────────────────────────────────────── */
.search-bar { display: flex; gap: .5rem; margin-bottom: 1.25rem; align-items: center; flex-wrap: wrap; }
.search-input { flex: 1; min-width: 200px; padding: .65rem .9rem; border: 1.5px solid var(--border); border-radius: var(--radius); font-family: inherit; font-size: .875rem; background: var(--white); }
.search-input:focus { outline: none; border-color: var(--gold); }

/* ── Cases table ─────────────────────────────────────────────────────────────── */
.cases-table-wrap { padding: 0; overflow-x: auto; }
.cases-table { width: 100%; border-collapse: collapse; font-size: .83rem; }
.cases-table th { padding: .75rem 1rem; text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--slate-light); border-bottom: 2px solid var(--border); white-space: nowrap; background: var(--paper); }
.cases-table td { padding: .85rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.case-row:hover { background: rgba(201,168,76,.04); }
.row-urgent { background: #fffbeb; }
.consumer-cell { display: flex; flex-direction: column; }
.consumer-cell small { color: var(--slate-light); font-size: .75rem; }
.type-badge { background: var(--paper); border: 1px solid var(--border); border-radius: 100px; padding: .2rem .6rem; font-size: .72rem; font-weight: 500; white-space: nowrap; }
.unassigned { color: var(--slate-light); font-style: italic; }
code { font-family: 'Courier New', monospace; font-size: .82rem; background: var(--paper); padding: .1rem .3rem; border-radius: 3px; }

/* ── Pagination ──────────────────────────────────────────────────────────────── */
.pagination { display: flex; gap: .35rem; margin-top: 1rem; }
.page-btn { padding: .45rem .8rem; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: .83rem; text-decoration: none; color: var(--slate); background: var(--white); }
.page-btn:hover { border-color: var(--gold); color: var(--navy); text-decoration: none; }
.page-btn-active { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* ── Empty states ────────────────────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 3rem 1.5rem; }
.empty-icon { font-size: 3rem; margin-bottom: .75rem; }
.empty-state h3 { margin-bottom: .35rem; }
.empty-state p { font-size: .875rem; color: var(--slate); }
.empty-small { font-size: .83rem; color: var(--slate-light); font-style: italic; padding: 1rem 0; }

/* ── Tip box ──────────────────────────────────────────────────────────────────── */
.tip-box { background: #fffff0; border: 1px solid #d4c44a; border-radius: 8px; padding: 1.25rem 1.5rem; margin: 1.5rem 0; }
.tip-box h4 { font-size: .9rem; margin-bottom: .75rem; }
.tip { font-size: .82rem; line-height: 1.6; color: var(--slate); display: none; }

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .section-inner.two-col { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 700px) {
  .dash-layout { flex-direction: column; }
  .sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border); padding: .75rem 0; }
  .sidebar-nav { flex-direction: row; overflow-x: auto; padding: 0 .5rem; gap: .15rem; }
  .sidebar-label { display: none; }
  .sidebar-link { white-space: nowrap; flex-shrink: 0; }
  .form-row { grid-template-columns: 1fr; }
  .stats-band .stats-inner { flex-wrap: wrap; }
  .stat { min-width: 50%; }
  .nav-menu { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--navy); padding: 1rem; gap: .25rem; border-top: 1px solid rgba(255,255,255,.1); }
  .nav-menu.open { display: flex; }
  .nav-toggle { display: block; }
  .hero { padding: 3rem 1.5rem 2.5rem; }
  .cases-table th, .cases-table td { padding: .6rem .75rem; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .pricing-grid { flex-direction: column; align-items: stretch; }
  .price-card { max-width: 100%; }
}
