/* ============================================================
   EduPortal India — Modern Redesign
   Typeface: Inter (body) + Bricolage Grotesque (display)
   Palette:  Deep Indigo + Amber + Slate grays
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,600;12..96,700;12..96,800&family=Inter:ital,opsz,wght@0,14..32,300;0,14..32,400;0,14..32,500;0,14..32,600;1,14..32,400&display=swap');

:root {
  --ink:        #0d1117;
  --ink-2:      #3b4351;
  --ink-3:      #6b7585;
  --surface:    #ffffff;
  --surface-2:  #f7f8fa;
  --surface-3:  #eef0f4;
  --border:     #e3e6ed;
  --border-2:   #cdd1db;

  --brand:      #3b48e0;
  --brand-dk:   #2c37bb;
  --brand-lt:   #eef0fb;
  --accent:     #f59e0b;
  --accent-dk:  #d97706;
  --accent-lt:  #fffbeb;
  --success:    #16a34a;
  --danger:     #dc2626;
  --teal:       #0891b2;

  --radius-sm:  6px;
  --radius:     10px;
  --radius-lg:  14px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --shadow:     0 4px 12px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.05);
  --shadow-lg:  0 12px 32px rgba(0,0,0,.10), 0 3px 8px rgba(0,0,0,.06);

  --font-head: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Inter', sans-serif;
  --t: 180ms ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { font-family: var(--font-body); color: var(--ink); background: var(--surface-2); line-height: 1.6; -webkit-font-smoothing: antialiased; font-size: 16px; }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }
img   { max-width: 100%; display: block; }
input, select, textarea, button { font-family: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Topbar ────────────────────────────────────────── */
.topbar { background: var(--ink); color: #8b929e; font-size: .8rem; padding: .45rem 0; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.topbar-inner i { margin-right: .3rem; color: #6b7585; }
.topbar-right { display: flex; gap: 1.25rem; align-items: center; }
.topbar-right a { color: #8b929e; transition: color var(--t); }
.topbar-right a:hover { color: #ffffff; }
.btn-top-cta { background: var(--accent); color: var(--ink) !important; padding: .25rem .85rem; border-radius: 20px; font-weight: 600; font-size: .78rem; }
.btn-top-cta:hover { background: var(--accent-dk); }

/* ── Navbar ────────────────────────────────────────── */
.navbar { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 999; box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.nav-logo { display: flex; align-items: center; gap: .6rem; }
.logo-icon { background: var(--brand); color: #fff; width: 34px; height: 34px; border-radius: var(--radius-sm); display: grid; place-items: center; font-size: .9rem; }
.logo-text { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--ink); letter-spacing: -.02em; }
.nav-links { display: flex; gap: .1rem; align-items: center; }
.nav-links > li { position: relative; }
.nav-links a { display: block; padding: .45rem .8rem; border-radius: var(--radius-sm); font-size: .875rem; font-weight: 500; color: var(--ink-2); transition: background var(--t), color var(--t); }
.nav-links a:hover, .nav-links a.active { background: var(--surface-2); color: var(--brand); }
.nav-links a i { font-size: .65rem; margin-left: .2rem; opacity: .6; }
.dropdown { display: none; position: absolute; top: calc(100% + 6px); left: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); min-width: 195px; box-shadow: var(--shadow-lg); padding: .4rem; z-index: 200; }
.has-dropdown:hover .dropdown { display: block; animation: fadeDown .15s ease; }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.dropdown li a { padding: .5rem .85rem; border-radius: var(--radius-sm); font-size: .85rem; color: var(--ink-2); }
.dropdown li a:hover { background: var(--surface-2); color: var(--brand); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .4rem; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ── Buttons ───────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: .45rem; padding: .6rem 1.4rem; border-radius: var(--radius); font-weight: 600; font-size: .9rem; cursor: pointer; border: 1.5px solid transparent; transition: all var(--t); white-space: nowrap; }
.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-dk); border-color: var(--brand-dk); }
.btn-accent  { background: var(--accent); color: var(--ink); border-color: var(--accent); font-weight: 700; }
.btn-accent:hover { background: var(--accent-dk); border-color: var(--accent-dk); }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--border-2); }
.btn-outline:hover { border-color: var(--brand); background: var(--brand-lt); }

/* ── Hero ──────────────────────────────────────────── */
.hero { background: var(--ink); color: #fff; padding: 5.5rem 0 4.5rem; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; right: 0; top: 0; width: 55%; height: 100%; background: radial-gradient(ellipse at 70% 50%, rgba(59,72,224,.3) 0%, transparent 65%); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 440px; gap: 4rem; align-items: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: .45rem; background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.25); color: #fbbf24; padding: .35rem .9rem; border-radius: 20px; font-size: .78rem; font-weight: 600; letter-spacing: .04em; margin-bottom: 1.4rem; }
.hero h1 { font-family: var(--font-head); font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 800; line-height: 1.1; letter-spacing: -.035em; margin-bottom: 1.2rem; }
.hero h1 em { color: #818cf8; font-style: normal; }
.hero-lead { color: #94a3b8; font-size: 1.05rem; line-height: 1.65; margin-bottom: 2rem; max-width: 480px; }
.hero-stats { display: flex; gap: 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.08); }
.hero-stat strong { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: #fff; display: block; letter-spacing: -.04em; }
.hero-stat span   { font-size: .78rem; color: #64748b; }

.search-card { background: var(--surface); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.search-card-head { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.4rem; }
.search-card-head .icon { background: var(--brand-lt); color: var(--brand); width: 34px; height: 34px; border-radius: var(--radius-sm); display: grid; place-items: center; font-size: .85rem; }
.search-card-head h3 { font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--ink); }
.search-form { display: flex; flex-direction: column; gap: .7rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.search-form select, .search-form input[type=text] { width: 100%; border: 1.5px solid var(--border); border-radius: var(--radius); padding: .65rem .95rem; font-size: .875rem; color: var(--ink); background: var(--surface-2); transition: border-color var(--t), box-shadow var(--t); }
.search-form select:focus, .search-form input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(59,72,224,.12); }
.btn-search { background: var(--brand); color: #fff; border: none; border-radius: var(--radius); padding: .75rem; font-size: .95rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: .5rem; transition: background var(--t), transform var(--t); }
.btn-search:hover { background: var(--brand-dk); transform: translateY(-1px); }

/* ── Sections ──────────────────────────────────────── */
.section     { padding: 5rem 0; }
.section-alt { background: var(--surface); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-label { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin-bottom: .6rem; }
.section-header h2 { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--ink); letter-spacing: -.03em; margin-bottom: .5rem; }
.section-header p  { color: var(--ink-3); max-width: 520px; margin: 0 auto; font-size: .95rem; }

/* ── Category cards ────────────────────────────────── */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.cat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem 1rem; text-align: center; transition: border-color var(--t), box-shadow var(--t), transform var(--t); text-decoration: none; color: var(--ink); display: block; }
.cat-card:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-3px); }
.cat-icon { font-size: 1.6rem; color: var(--brand); margin-bottom: .75rem; }
.cat-card h4   { font-size: .84rem; font-weight: 600; color: var(--ink); line-height: 1.35; }
.cat-card span { font-size: .75rem; color: var(--ink-3); }

/* ── College cards ─────────────────────────────────── */
.college-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(295px, 1fr)); gap: 1.25rem; }
.college-card { background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; transition: box-shadow var(--t), transform var(--t); display: flex; flex-direction: column; }
.college-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.college-banner { height: 130px; background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%); position: relative; }
.college-banner img { width: 100%; height: 100%; object-fit: cover; }
.college-type-badge { position: absolute; top: .7rem; left: .7rem; background: rgba(255,255,255,.92); color: var(--ink); font-size: .7rem; font-weight: 700; padding: .2rem .6rem; border-radius: 20px; letter-spacing: .02em; }
.college-logo-wrap { position: absolute; bottom: -18px; right: 1rem; width: 44px; height: 44px; background: var(--surface); border-radius: var(--radius-sm); border: 1.5px solid var(--border); display: grid; place-items: center; overflow: hidden; }
.college-body { padding: 1.4rem 1.2rem 1.2rem; flex: 1; display: flex; flex-direction: column; }
.college-name { font-family: var(--font-head); font-weight: 700; font-size: .97rem; color: var(--ink); margin-bottom: .4rem; line-height: 1.3; }
.college-meta { display: flex; gap: .6rem; flex-wrap: wrap; font-size: .775rem; color: var(--ink-3); margin-bottom: 1rem; flex: 1; }
.college-meta span i { color: var(--teal); margin-right: .2rem; }
.college-rating { display: flex; align-items: center; gap: .3rem; font-size: .8rem; font-weight: 600; color: var(--accent-dk); }
.college-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); padding-top: .9rem; margin-top: .75rem; }
.btn-sm { padding: .38rem .95rem; border-radius: var(--radius-sm); font-size: .8rem; font-weight: 600; cursor: pointer; border: 1.5px solid var(--border-2); color: var(--ink-2); background: transparent; transition: all var(--t); }
.btn-sm:hover, .btn-sm.filled { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-sm.accent { border-color: var(--accent); color: var(--accent-dk); background: var(--accent-lt); }
.btn-sm.accent:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }

/* ── Exam cards ────────────────────────────────────── */
.exam-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.exam-card { background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 1.4rem; display: flex; flex-direction: column; gap: .65rem; transition: box-shadow var(--t), transform var(--t); }
.exam-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.exam-badge { align-self: flex-start; font-size: .7rem; font-weight: 700; padding: .22rem .65rem; border-radius: 20px; letter-spacing: .03em; }
.exam-badge.national   { background: #ede9fe; color: #5b21b6; }
.exam-badge.state      { background: #e0f2fe; color: #075985; }
.exam-badge.university { background: #f0fdf4; color: #166534; }
.exam-title { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--ink); letter-spacing: -.02em; }
.exam-full  { font-size: .8rem; color: var(--ink-3); line-height: 1.4; }
.exam-info  { display: flex; flex-wrap: wrap; gap: .45rem; }
.exam-tag   { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .18rem .55rem; font-size: .75rem; color: var(--ink-2); }
.exam-date  { font-size: .8rem; color: var(--ink-3); display: flex; align-items: center; gap: .35rem; }
.exam-date i { color: var(--accent-dk); }
.btn-link   { color: var(--brand); font-size: .83rem; font-weight: 600; display: inline-flex; align-items: center; gap: .3rem; transition: color var(--t); }
.btn-link:hover { color: var(--brand-dk); }

/* ── Page hero ─────────────────────────────────────── */
.page-hero { background: var(--ink); color: #fff; padding: 3rem 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.page-hero h1 { font-family: var(--font-head); font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -.03em; }
.page-hero p  { color: #64748b; margin-top: .4rem; font-size: .95rem; }
.breadcrumb   { font-size: .78rem; color: #475569; margin-bottom: .65rem; }
.breadcrumb a { color: #475569; } .breadcrumb a:hover { color: #94a3b8; }

/* ── Filter bar ────────────────────────────────────── */
.filter-bar { background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 1.2rem 1.4rem; margin-bottom: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; align-items: flex-end; box-shadow: var(--shadow-sm); }
.filter-group { display: flex; flex-direction: column; gap: .3rem; flex: 1; min-width: 150px; }
.filter-group label { font-size: .72rem; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .07em; }
.filter-group select, .filter-group input { border: 1.5px solid var(--border); border-radius: var(--radius); padding: .6rem .85rem; font-size: .875rem; color: var(--ink); background: var(--surface-2); transition: border-color var(--t); }
.filter-group select:focus, .filter-group input:focus { outline: none; border-color: var(--brand); }

/* ── Forms ─────────────────────────────────────────── */
.form-card { background: var(--surface); border-radius: var(--radius-lg); padding: 2.5rem; border: 1px solid var(--border); max-width: 520px; margin: 0 auto; box-shadow: var(--shadow); }
.form-card h2 { font-family: var(--font-head); font-weight: 800; color: var(--ink); margin-bottom: .3rem; letter-spacing: -.03em; }
.form-card .subtitle { color: var(--ink-3); margin-bottom: 1.8rem; font-size: .88rem; }
.form-group { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1.1rem; }
.form-group label { font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.form-group input, .form-group select, .form-group textarea { border: 1.5px solid var(--border); border-radius: var(--radius); padding: .65rem .95rem; font-size: .9rem; color: var(--ink); background: var(--surface-2); transition: border-color var(--t), box-shadow var(--t); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(59,72,224,.1); background: var(--surface); }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.alert { padding: .8rem 1.1rem; border-radius: var(--radius); margin-bottom: 1.1rem; font-size: .875rem; display: flex; align-items: center; gap: .5rem; }
.alert-success { background: #f0fdf4; color: #14532d; border: 1px solid #bbf7d0; }
.alert-error   { background: #fef2f2; color: #7f1d1d; border: 1px solid #fecaca; }

/* ── Detail layout ─────────────────────────────────── */
.detail-layout { display: grid; grid-template-columns: 1fr 290px; gap: 2rem; padding: 2.5rem 0; }
.detail-sidebar { display: flex; flex-direction: column; gap: 1.1rem; }
.sidebar-card { background: var(--surface); border-radius: var(--radius-lg); padding: 1.4rem; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.sidebar-card h4 { font-family: var(--font-head); font-weight: 700; color: var(--ink); margin-bottom: 1rem; font-size: .95rem; letter-spacing: -.02em; }
.info-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.info-table td { padding: .5rem .25rem; border-bottom: 1px solid var(--border); }
.info-table tr:last-child td { border-bottom: none; }
.info-table td:first-child { color: var(--ink-3); font-weight: 500; width: 45%; }
.tabs { display: flex; gap: .25rem; margin-bottom: 1.5rem; border-bottom: 1.5px solid var(--border); }
.tab-btn { padding: .6rem 1.1rem; font-size: .85rem; font-weight: 600; cursor: pointer; border: none; background: none; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1.5px; transition: color var(--t), border-color var(--t); }
.tab-btn:hover { color: var(--ink); }
.tab-btn.active { color: var(--brand); border-bottom-color: var(--brand); }
.tab-pane { display: none; } .tab-pane.active { display: block; }

/* ── Pagination ────────────────────────────────────── */
.pagination { display: flex; justify-content: center; gap: .4rem; margin-top: 2.5rem; flex-wrap: wrap; }
.pagination a, .pagination span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius-sm); font-size: .875rem; font-weight: 600; border: 1.5px solid var(--border); color: var(--ink-2); background: var(--surface); transition: all var(--t); }
.pagination a:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-lt); }
.pagination .current { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ── Tables & badges ───────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
.data-table th { background: var(--surface-2); padding: .8rem 1rem; text-align: left; font-size: .73rem; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .07em; border-bottom: 1px solid var(--border); }
.data-table td { padding: .85rem 1rem; border-top: 1px solid var(--border); font-size: .875rem; color: var(--ink); }
.data-table tr:hover td { background: var(--surface-2); }
.badge { display: inline-block; padding: .18rem .6rem; border-radius: 20px; font-size: .72rem; font-weight: 700; letter-spacing: .02em; }
.badge-green  { background: #dcfce7; color: #14532d; }
.badge-orange { background: #fef9c3; color: #713f12; }
.badge-red    { background: #fee2e2; color: #7f1d1d; }
.badge-blue   { background: #dbeafe; color: #1e3a8a; }

/* ── CTA strip ─────────────────────────────────────── */
.cta-strip { background: var(--brand); padding: 4rem 0; text-align: center; color: #fff; position: relative; overflow: hidden; }
.cta-strip::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 120%, rgba(129,140,248,.35) 0%, transparent 60%); }
.cta-strip h2 { font-family: var(--font-head); font-size: 2.1rem; font-weight: 800; margin-bottom: .65rem; letter-spacing: -.03em; position: relative; }
.cta-strip p  { opacity: .75; margin-bottom: 1.75rem; font-size: 1rem; position: relative; }
.cta-strip .btn-cta { background: #fff; color: var(--brand); font-weight: 700; padding: .85rem 2rem; border-radius: var(--radius); display: inline-flex; align-items: center; gap: .5rem; font-size: .95rem; position: relative; transition: transform var(--t), box-shadow var(--t); }
.cta-strip .btn-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.25); }

/* ── Footer ────────────────────────────────────────── */
.footer { background: #080c14; color: #475569; padding: 3.5rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer-logo { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; color: #fff; margin-bottom: .75rem; letter-spacing: -.02em; display: flex; align-items: center; gap: .5rem; }
.footer-logo i { color: var(--accent); }
.footer-about { font-size: .86rem; line-height: 1.7; margin-bottom: 1.2rem; }
.footer-socials { display: flex; gap: .6rem; }
.footer-socials a { width: 34px; height: 34px; background: rgba(255,255,255,.06); border-radius: var(--radius-sm); display: grid; place-items: center; color: #64748b; font-size: .85rem; transition: background var(--t), color var(--t); }
.footer-socials a:hover { background: var(--brand); color: #fff; }
.footer-col h4 { font-family: var(--font-head); font-size: .88rem; font-weight: 700; color: #e2e8f0; margin-bottom: 1rem; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul li a { font-size: .85rem; color: #475569; transition: color var(--t); }
.footer-col ul li a:hover { color: #94a3b8; }
.footer-contact li { display: flex; align-items: flex-start; gap: .6rem; font-size: .85rem; margin-bottom: .7rem; }
.footer-contact i { color: var(--accent); margin-top: .15rem; font-size: .8rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); padding: 1.1rem 0; display: flex; justify-content: space-between; align-items: center; font-size: .8rem; flex-wrap: wrap; gap: .5rem; }
.footer-bottom a { color: #475569; } .footer-bottom a:hover { color: #94a3b8; }

/* ── Admin ─────────────────────────────────────────── */
.admin-layout { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--ink); }
.admin-sidebar .brand { padding: 1.25rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,.06); font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: #fff; letter-spacing: -.02em; display: flex; align-items: center; gap: .5rem; }
.admin-sidebar .brand i { color: var(--accent); }
.admin-sidebar nav a { display: flex; align-items: center; gap: .7rem; padding: .65rem 1.5rem; font-size: .86rem; font-weight: 500; color: #64748b; transition: background var(--t), color var(--t); }
.admin-sidebar nav a i { width: 16px; text-align: center; font-size: .85rem; }
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { background: rgba(255,255,255,.07); color: #e2e8f0; }
.admin-sidebar nav a.active { border-right: 2px solid var(--brand); }
.admin-main { background: var(--surface-2); }
.admin-topbar { background: var(--surface); padding: 1rem 2rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.admin-topbar h2 { font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1.05rem; letter-spacing: -.02em; }
.admin-content { padding: 2rem; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: var(--surface); border-radius: var(--radius-lg); padding: 1.4rem; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.stat-card .stat-icon { width: 40px; height: 40px; border-radius: var(--radius); display: grid; place-items: center; font-size: 1rem; margin-bottom: .85rem; }
.stat-card .stat-icon.blue   { background: #dbeafe; color: #1d4ed8; }
.stat-card .stat-icon.orange { background: #fef9c3; color: #b45309; }
.stat-card .stat-icon.teal   { background: #cffafe; color: #0e7490; }
.stat-card .stat-icon.green  { background: #dcfce7; color: #15803d; }
.stat-card h3 { font-family: var(--font-head); font-size: 1.8rem; font-weight: 800; color: var(--ink); letter-spacing: -.04em; line-height: 1; }
.stat-card p  { font-size: .8rem; color: var(--ink-3); margin-top: .2rem; }

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner    { grid-template-columns: 1fr; }
  .search-card   { max-width: 500px; }
  .detail-layout { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); border: 1px solid var(--border); padding: .75rem; box-shadow: var(--shadow); z-index: 999; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .dropdown { position: static; box-shadow: none; border: none; background: var(--surface-2); border-radius: var(--radius); padding: .25rem 0; }
  .has-dropdown:hover .dropdown { display: none; }
  .has-dropdown.open .dropdown  { display: block; }
  .form-row, .form-row-2 { grid-template-columns: 1fr; }
  .admin-layout  { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .footer-grid   { grid-template-columns: 1fr; }
  .hero-stats    { flex-wrap: wrap; gap: 1.25rem; }
  .section       { padding: 3.5rem 0; }
}
