/* ===================================================================
   LegalLink Design System — shared.css
   Colors, typography, components reused across all mockup pages
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@600;700;800&family=Noto+Sans+Telugu:wght@400;600;700;800&display=swap');

/* Telugu body font override */
:lang(te), .te-page { font-family: 'Noto Sans Telugu', 'Inter', sans-serif; }
.te-page .nav-logo, .te-page h1, .te-page h2, .te-page h3 { font-family: 'Noto Sans Telugu', 'Poppins', sans-serif; }

/* ── CSS Variables ─────────────────────────────────────────────── */
:root {
  --blue-900: #0D2644;
  --blue-800: #1B3A6B;
  --blue-700: #1E4080;
  --blue-500: #2563EB;
  --blue-100: #DBEAFE;
  --blue-50:  #EFF6FF;

  --gold-600: #C47A0A;
  --gold-500: #E8860A;
  --gold-400: #F59E0B;
  --gold-100: #FEF3C7;
  --gold-50:  #FFFBEB;

  --green-700: #15803D;
  --green-500: #22C55E;
  --green-100: #DCFCE7;

  --red-600:  #DC2626;
  --red-100:  #FEE2E2;

  --gray-900: #111827;
  --gray-800: #1F2937;
  --gray-700: #374151;
  --gray-600: #4B5563;
  --gray-500: #6B7280;
  --gray-400: #9CA3AF;
  --gray-200: #E5E7EB;
  --gray-100: #F3F4F6;
  --gray-50:  #F9FAFB;
  --white:    #FFFFFF;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --shadow:    0 2px 8px rgba(0,0,0,.10);
  --shadow-md: 0 4px 16px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.14);

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;

  --font-body: 'Inter', sans-serif;
  --font-head: 'Poppins', sans-serif;

  --nav-h: 64px;
}

/* ── Reset & Base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--gray-50);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Topnav ─────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  display: flex; align-items: center;
  padding: 0 24px;
  gap: 24px;
  box-shadow: var(--shadow-sm);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head);
  font-size: 20px; font-weight: 700;
  color: var(--blue-800);
  flex-shrink: 0;
}
.nav-logo-icon {
  width: 36px; height: 36px;
  background: var(--blue-800);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 18px;
}
.nav-logo span { color: var(--gold-500); }
.nav-links {
  display: flex; align-items: center; gap: 4px;
  flex: 1;
}
.nav-link {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 14px; font-weight: 500;
  color: var(--gray-600);
  transition: all .15s;
}
.nav-link:hover, .nav-link.active {
  background: var(--blue-50); color: var(--blue-700);
}
.nav-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px;
  background: var(--red-600); color: var(--white);
  font-size: 10px; font-weight: 700;
  border-radius: var(--radius-full);
  margin-left: 4px; padding: 0 4px;
}
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-avatar {
  width: 36px; height: 36px; border-radius: var(--radius-full);
  background: var(--blue-100); color: var(--blue-800);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; border: 2px solid var(--blue-200, #BFDBFE);
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px; font-weight: 600;
  transition: all .15s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue-800); color: var(--white);
}
.btn-primary:hover { background: var(--blue-700); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-gold {
  background: var(--gold-500); color: var(--white);
}
.btn-gold:hover { background: var(--gold-600); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline {
  border: 1.5px solid var(--blue-800); color: var(--blue-800); background: transparent;
}
.btn-outline:hover { background: var(--blue-50); }
.btn-ghost {
  color: var(--gray-600); background: transparent;
}
.btn-ghost:hover { background: var(--gray-100); color: var(--gray-900); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: var(--radius-lg); }
.btn-block { width: 100%; }
.btn-icon { padding: 8px; border-radius: var(--radius-sm); }

/* ── Cards ───────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-body { padding: 20px; }
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-100);
  display: flex; align-items: center; justify-content: space-between;
}
.card-title { font-size: 16px; font-weight: 700; color: var(--gray-900); }
.card-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--gray-100);
  background: var(--gray-50);
}

/* ── Badges ──────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 12px; font-weight: 600;
}
.badge-blue   { background: var(--blue-100); color: var(--blue-700); }
.badge-gold   { background: var(--gold-100); color: var(--gold-600); }
.badge-green  { background: var(--green-100); color: var(--green-700); }
.badge-red    { background: var(--red-100); color: var(--red-600); }
.badge-gray   { background: var(--gray-100); color: var(--gray-700); }
.badge-dark   { background: var(--blue-900); color: var(--white); }

/* ── Stars ───────────────────────────────────────────────────────── */
.stars { display: inline-flex; gap: 2px; color: var(--gold-400); font-size: 14px; }
.stars-sm { font-size: 12px; }

/* ── Form elements ───────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--gray-700); }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 14px; font-family: inherit;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-hint { font-size: 12px; color: var(--gray-500); }

/* ── Search bar ─────────────────────────────────────────────────── */
.search-bar {
  display: flex; align-items: center;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.search-bar input {
  flex: 1; border: none; outline: none;
  padding: 14px 20px;
  font-size: 15px; font-family: inherit;
  color: var(--gray-800);
}
.search-bar input::placeholder { color: var(--gray-400); }
.search-bar .search-divider {
  width: 1px; height: 28px; background: var(--gray-200);
}
.search-bar .search-btn {
  margin: 6px;
  padding: 10px 24px;
  background: var(--gold-500); color: var(--white);
  border-radius: var(--radius-full);
  font-weight: 700; font-size: 14px;
  border: none; cursor: pointer;
  transition: background .15s;
}
.search-bar .search-btn:hover { background: var(--gold-600); }

/* ── Stats row ───────────────────────────────────────────────────── */
.stats-row {
  display: flex; gap: 0;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
}
.stat-item {
  flex: 1; padding: 20px;
  text-align: center;
  border-right: 1px solid var(--gray-200);
}
.stat-item:last-child { border-right: none; }
.stat-value {
  font-size: 28px; font-weight: 800; font-family: var(--font-head);
  color: var(--blue-800);
}
.stat-label { font-size: 12px; color: var(--gray-500); margin-top: 2px; }

/* ── Avatar ──────────────────────────────────────────────────────── */
.avatar {
  border-radius: var(--radius-full); object-fit: cover;
  background: var(--blue-100);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--blue-800);
  flex-shrink: 0;
}
.avatar-sm  { width: 32px; height: 32px; font-size: 12px; }
.avatar-md  { width: 48px; height: 48px; font-size: 18px; }
.avatar-lg  { width: 72px; height: 72px; font-size: 28px; }
.avatar-xl  { width: 100px; height: 100px; font-size: 36px; }

/* ── Layout helpers ──────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.page-body { min-height: calc(100vh - var(--nav-h)); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-4  { gap: 4px; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }

.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }

.text-xs   { font-size: 11px; }
.text-sm   { font-size: 13px; }
.text-base { font-size: 15px; }
.text-lg   { font-size: 17px; }
.text-xl   { font-size: 20px; }
.text-2xl  { font-size: 24px; }
.text-3xl  { font-size: 30px; }
.fw-5 { font-weight: 500; }
.fw-6 { font-weight: 600; }
.fw-7 { font-weight: 700; }
.fw-8 { font-weight: 800; }
.text-muted  { color: var(--gray-500); }
.text-blue   { color: var(--blue-700); }
.text-gold   { color: var(--gold-500); }
.text-green  { color: var(--green-700); }
.text-red    { color: var(--red-600); }
.text-dark   { color: var(--gray-900); }
.text-center { text-align: center; }

/* ── Pill tag ────────────────────────────────────────────────────── */
.tag {
  display: inline-flex; align-items: center;
  padding: 4px 10px;
  background: var(--gray-100); color: var(--gray-700);
  border-radius: var(--radius-full);
  font-size: 12px; font-weight: 500;
}
.tag-blue { background: var(--blue-50); color: var(--blue-700); }

/* ── Divider ─────────────────────────────────────────────────────── */
.divider { height: 1px; background: var(--gray-200); margin: 16px 0; }

/* ── Progress bar ────────────────────────────────────────────────── */
.progress { height: 8px; background: var(--gray-200); border-radius: var(--radius-full); overflow: hidden; }
.progress-bar { height: 100%; background: var(--blue-800); border-radius: var(--radius-full); transition: width .4s; }
.progress-bar.gold { background: var(--gold-500); }
.progress-bar.green { background: var(--green-500); }

/* ── Timeline ────────────────────────────────────────────────────── */
.timeline { position: relative; padding-left: 24px; }
.timeline::before {
  content: ''; position: absolute; left: 8px; top: 0; bottom: 0;
  width: 2px; background: var(--gray-200);
}
.timeline-item { position: relative; padding-bottom: 20px; }
.timeline-item::before {
  content: ''; position: absolute; left: -20px; top: 4px;
  width: 12px; height: 12px;
  border-radius: var(--radius-full);
  background: var(--blue-800);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--blue-200, #BFDBFE);
}
.timeline-item.done::before { background: var(--green-500); box-shadow: 0 0 0 2px var(--green-100); }
.timeline-item.pending::before { background: var(--gray-300); box-shadow: 0 0 0 2px var(--gray-100); }

/* ── Step indicator ──────────────────────────────────────────────── */
.steps { display: flex; align-items: center; }
.step { display: flex; align-items: center; flex: 1; }
.step-circle {
  width: 32px; height: 32px; border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.step.active .step-circle  { background: var(--blue-800); color: var(--white); }
.step.done .step-circle    { background: var(--green-500); color: var(--white); }
.step.pending .step-circle { background: var(--gray-200); color: var(--gray-500); }
.step-label { margin-left: 8px; font-size: 13px; font-weight: 600; }
.step.active .step-label  { color: var(--blue-800); }
.step.done .step-label    { color: var(--green-700); }
.step.pending .step-label { color: var(--gray-400); }
.step-line { flex: 1; height: 2px; background: var(--gray-200); margin: 0 8px; }
.step-line.done { background: var(--green-500); }

/* ── Alert / Notice ──────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  display: flex; align-items: flex-start; gap: 10px;
}
.alert-blue  { background: var(--blue-50); color: var(--blue-700); border: 1px solid var(--blue-100); }
.alert-gold  { background: var(--gold-50); color: var(--gold-600); border: 1px solid var(--gold-100); }
.alert-green { background: var(--green-100); color: var(--green-700); border: 1px solid #BBF7D0; }
.alert-red   { background: var(--red-100); color: var(--red-600); border: 1px solid #FECACA; }

/* ── Footer ──────────────────────────────────────────────────────── */
.site-footer {
  background: var(--blue-900); color: rgba(255,255,255,.7);
  padding: 48px 0 24px;
  margin-top: 80px;
}
.footer-logo { font-family: var(--font-head); font-size: 22px; font-weight: 700; color: var(--white); }
.footer-logo span { color: var(--gold-400); }
.footer-tagline { font-size: 13px; margin-top: 6px; color: rgba(255,255,255,.5); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: var(--white); margin-bottom: 16px; letter-spacing: .5px; text-transform: uppercase; }
.footer-col a  { display: block; font-size: 14px; color: rgba(255,255,255,.6); margin-bottom: 10px; transition: color .15s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; font-size: 12px; }

/* ── Sidebar layout ──────────────────────────────────────────────── */
.layout-sidebar {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - var(--nav-h));
}
.sidebar {
  background: var(--white);
  border-right: 1px solid var(--gray-200);
  padding: 24px 16px;
  position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}
.sidebar-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--radius);
  font-size: 14px; font-weight: 500; color: var(--gray-600);
  margin-bottom: 2px; transition: all .15s; cursor: pointer;
}
.sidebar-item:hover   { background: var(--gray-100); color: var(--gray-900); }
.sidebar-item.active  { background: var(--blue-50); color: var(--blue-800); font-weight: 600; }
.sidebar-item .icon   { font-size: 16px; width: 20px; text-align: center; }
.sidebar-section-label {
  font-size: 11px; font-weight: 700; color: var(--gray-400);
  letter-spacing: 1px; text-transform: uppercase;
  padding: 16px 12px 6px;
}
.main-content { padding: 32px; overflow-y: auto; background: var(--gray-50); }

/* ── Lawyer card (search result) ─────────────────────────────────── */
.lawyer-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex; gap: 16px;
  transition: box-shadow .2s, transform .2s;
  cursor: pointer;
}
.lawyer-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.lawyer-card.featured { border-color: var(--gold-400); box-shadow: 0 0 0 1px var(--gold-400); }
.lawyer-avatar-wrap { position: relative; flex-shrink: 0; }
.lawyer-online-dot {
  position: absolute; bottom: 2px; right: 2px;
  width: 12px; height: 12px;
  background: var(--green-500); border: 2px solid var(--white);
  border-radius: var(--radius-full);
}
.lawyer-meta { flex: 1; min-width: 0; }
.lawyer-name { font-size: 17px; font-weight: 700; color: var(--gray-900); }
.lawyer-area { font-size: 13px; color: var(--gray-500); margin-top: 2px; }
.lawyer-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.lawyer-stats { display: flex; gap: 20px; margin-top: 12px; }
.lawyer-stat-item { text-align: center; }
.lawyer-stat-val { font-size: 18px; font-weight: 700; color: var(--blue-800); }
.lawyer-stat-lbl { font-size: 11px; color: var(--gray-400); }
.lawyer-price-col { flex-shrink: 0; text-align: right; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.lawyer-price { font-size: 22px; font-weight: 800; color: var(--blue-900); font-family: var(--font-head); }
.lawyer-price-label { font-size: 11px; color: var(--gray-400); }

/* ── Verified tick ────────────────────────────────────────────────── */
.verified-tick {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  background: var(--blue-800); color: var(--white);
  border-radius: var(--radius-full);
  font-size: 10px; margin-left: 4px;
}

/* ── Section heading ──────────────────────────────────────────────── */
.section-head { margin-bottom: 24px; }
.section-head h2 {
  font-family: var(--font-head);
  font-size: 26px; font-weight: 700; color: var(--gray-900);
}
.section-head p { color: var(--gray-500); margin-top: 6px; font-size: 15px; }

/* ── Mobile Nav Hamburger ────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  padding: 8px; cursor: pointer;
  background: none; border: none; flex-shrink: 0;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--gray-700); border-radius: 2px; transition: all .2s;
}
.nav-mobile-drawer {
  display: none;
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--white); border-bottom: 2px solid var(--gray-200);
  box-shadow: var(--shadow-md); z-index: 99;
  padding: 12px 20px 20px; flex-direction: column; gap: 4px;
}
.nav-mobile-drawer a {
  display: block; padding: 10px 14px;
  font-size: 15px; font-weight: 500; color: var(--gray-700);
  border-radius: var(--radius);
}
.nav-mobile-drawer a:hover { background: var(--blue-50); color: var(--blue-700); }
.nav-mobile-drawer.open { display: flex; }

/* ── Mobile Bottom Tab Bar (dashboards) ─────────────────────────── */
.mobile-bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--white); border-top: 1px solid var(--gray-200);
  z-index: 100; padding: 6px 0 max(8px, env(safe-area-inset-bottom, 8px));
}
.mobile-bottom-nav nav {
  display: flex; justify-content: space-around; align-items: center;
}
.mobile-nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 4px 10px; font-size: 10px; font-weight: 600;
  color: var(--gray-500); cursor: pointer; text-decoration: none;
}
.mobile-nav-item i { font-size: 20px; }
.mobile-nav-item.active { color: var(--blue-800); }

/* ── Responsive: Tablet (≤1024px) ──────────────────────────────── */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .layout-sidebar { grid-template-columns: 200px 1fr; }
  .main-content { padding: 20px; }
  .stat-value { font-size: 22px; }
  .search-layout { grid-template-columns: 240px 1fr; }
  .profile-layout { grid-template-columns: 1fr 300px; }
  .booking-layout { grid-template-columns: 1fr 300px; }
}

/* ── Responsive: Mobile (≤768px) ────────────────────────────────── */
@media (max-width: 768px) {
  /* Nav */
  .nav { padding: 0 16px; gap: 10px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  /* Grids */
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }

  /* Stats row — 2×2 wrap */
  .stats-row { flex-wrap: wrap; }
  .stat-item {
    flex: 1 1 calc(50% - 1px);
    border-right: none !important;
    border-bottom: 1px solid var(--gray-200) !important;
  }
  .stat-item:nth-last-child(-n+2) { border-bottom: none !important; }

  /* Sidebar layout (dashboard pages) */
  .layout-sidebar { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .main-content { padding: 16px; padding-bottom: 88px; }
  .mobile-bottom-nav { display: block; }

  /* Container */
  .container { padding: 0 16px; }

  /* Named page layouts */
  .search-layout { grid-template-columns: 1fr; }
  .filters-panel { position: static; max-height: 0; overflow: hidden; transition: max-height .3s; }
  .filters-panel.open { max-height: 1000px; }
  .profile-layout { grid-template-columns: 1fr; }
  .booking-layout { grid-template-columns: 1fr; }

  /* Lawyer card */
  .lawyer-card { flex-direction: column; }
  .lawyer-price-col {
    flex-direction: row; align-items: center;
    justify-content: space-between; width: 100%;
  }
  .lawyer-stats { flex-wrap: wrap; gap: 12px; }

  /* Search result cards */
  .result-card { flex-direction: column; }
  .result-right {
    flex-direction: row; align-items: center;
    justify-content: space-between; min-width: 0; width: 100%;
  }
  .result-actions { flex-direction: row; gap: 8px; }
  .result-quick-stats { gap: 8px; flex-wrap: wrap; }

  /* Section headings */
  .section-head h2 { font-size: 22px; }
  .section-head.flex-between { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* Steps (shared component) */
  .steps { flex-wrap: wrap; gap: 6px; }
  .step-line { display: none; }

  /* Allow flex rows to wrap */
  .flex-between { flex-wrap: wrap; gap: 8px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* Buttons */
  .btn-lg { padding: 12px 20px; font-size: 15px; }

  /* Cards */
  .card-header { flex-wrap: wrap; gap: 8px; }

  /* Utility visibility */
  .hide-mobile { display: none !important; }
  .show-mobile { display: block !important; }
}

/* ── Responsive: Small Mobile (≤480px) ─────────────────────────── */
@media (max-width: 480px) {
  .nav-logo { font-size: 17px; }
  .nav-logo-icon { width: 30px; height: 30px; font-size: 15px; }

  .grid-4 { grid-template-columns: 1fr 1fr; }

  .stats-row { flex-direction: column !important; }
  .stat-item { flex: 1 1 100% !important; border-right: none !important; border-bottom: 1px solid var(--gray-200) !important; }
  .stat-item:last-child { border-bottom: none !important; }

  .footer-grid { grid-template-columns: 1fr; }

  .btn-lg { width: 100%; justify-content: center; }

  .section-head h2 { font-size: 20px; }

  .main-content { padding: 12px; padding-bottom: 88px; }

  .result-actions { flex-direction: column; }
  .result-right { flex-direction: column; align-items: flex-start; gap: 12px; }
}
