@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Nunito:wght@700;800;900&display=swap');

/* ── CSS o'zgaruvchilari ────────────────────────────────── */
:root {
  --bg:       #f8fafc;
  --bg2:      #f1f5f9;
  --panel:    #ffffff;
  --panel2:   #f8fafc;
  --border:   #e2e8f0;
  --border2:  #cbd5e1;
  --text:     #0f172a;
  --text2:    #334155;
  --text3:    #64748b;
  --text4:    #94a3b8;
  --accent:   #16a34a;
  --accent2:  #15803d;
  --accent3:  #22c55e;
  --accentbg: #dcfce7;
  --accentbg2:#bbf7d0;
  --red:      #dc2626;
  --blue:     #2563eb;
  --orange:   #ea580c;
  --shadow:   0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.06);
  --shadow2:  0 4px 16px rgba(0,0,0,.1),  0 10px 32px rgba(0,0,0,.07);
  --r:        10px;
  --r2:       16px;
  --r3:       24px;
  --font:     'Inter', system-ui, -apple-system, sans-serif;
  --font2:    'Nunito', var(--font);
  --sidebar:  268px;
  --topbar:   64px;
}

html[data-theme="dark"] {
  --bg:       #0a0f1a;
  --bg2:      #0f1623;
  --panel:    #141b2d;
  --panel2:   #1a2340;
  --border:   rgba(255,255,255,.08);
  --border2:  rgba(255,255,255,.14);
  --text:     #f1f5f9;
  --text2:    #cbd5e1;
  --text3:    #94a3b8;
  --text4:    #64748b;
  --accentbg: rgba(22,163,74,.15);
  --accentbg2:rgba(22,163,74,.25);
  --shadow:   0 1px 3px rgba(0,0,0,.3), 0 4px 12px rgba(0,0,0,.25);
  --shadow2:  0 4px 16px rgba(0,0,0,.4), 0 10px 32px rgba(0,0,0,.3);
}

/* ── Reset ──────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 15px; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--accent); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent2); }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font: inherit; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 99px; }
::-webkit-scrollbar-track { background: transparent; }

/* ── Layout ─────────────────────────────────────────────── */
.ep-layout { display: flex; min-height: 100vh; }

/* ── Sidebar ─────────────────────────────────────────────── */
.ep-sidebar {
  width: var(--sidebar);
  flex-shrink: 0;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 200;
  background: var(--panel);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .28s cubic-bezier(.4,0,.2,1);
}

/* Logo */
.ep-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.ep-logo-mark {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font: 900 1.1rem var(--font2);
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(22,163,74,.3);
}
.ep-logo-text {
  font: 800 1.05rem var(--font2);
  color: var(--text);
  letter-spacing: -.02em;
}
.ep-logo:hover .ep-logo-text { color: var(--accent); }

/* Sidebar search */
.ep-s-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 14px;
  padding: 9px 12px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
}
.ep-s-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(22,163,74,.12); }
.ep-s-search svg { color: var(--text4); flex-shrink: 0; }
.ep-s-search input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-size: .85rem; }
.ep-s-search input::placeholder { color: var(--text4); }

/* Nav */
.ep-sidebar-scroll { flex: 1; overflow-y: auto; padding: 4px 10px 20px; }
.ep-nav-label {
  padding: 12px 8px 5px;
  font: 700 10.5px var(--font2);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text4);
}
.ep-nav { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.ep-nav-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text2);
  text-decoration: none;
  transition: all .15s;
}
.ep-nav-link:hover { background: var(--accentbg); color: var(--accent); text-decoration: none; }
.ep-nav-link[aria-current] { background: var(--accentbg); color: var(--accent2); font-weight: 700; }
.ep-icon { width: 20px; text-align: center; font-size: .9rem; flex-shrink: 0; }
.ep-badge {
  margin-left: auto;
  padding: 1px 7px;
  font: 700 10px var(--font2);
  letter-spacing: .08em;
  border-radius: 20px;
  background: var(--accent);
  color: #fff;
}

/* ── Overlay ─────────────────────────────────────────────── */
.ep-overlay { display: none; position: fixed; inset: 0; z-index: 199; background: rgba(0,0,0,.45); }
.ep-overlay.is-open { display: block; }

/* ── Body wrap ───────────────────────────────────────────── */
.ep-body {
  flex: 1;
  min-width: 0;
  margin-left: var(--sidebar);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Topbar ──────────────────────────────────────────────── */
.ep-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--topbar);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  background: rgba(248,250,252,.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
html[data-theme="dark"] .ep-topbar { background: rgba(10,15,26,.9); }

/* Hamburger */
.ep-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 8px;
  color: var(--text2);
  transition: background .15s;
}
.ep-menu-btn:hover { background: var(--bg2); }
.ep-menu-btn span { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: all .22s; }
.ep-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ep-menu-btn.open span:nth-child(2) { opacity: 0; }
.ep-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.ep-topbar-logo { font: 800 1rem var(--font2); color: var(--text); display: none; }

/* Topbar search */
.ep-t-search {
  flex: 1;
  max-width: 460px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.ep-t-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(22,163,74,.1); }
.ep-t-search svg { color: var(--text4); flex-shrink: 0; }
.ep-t-search input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-size: .875rem; }
.ep-t-search input::placeholder { color: var(--text4); }
.ep-t-search button {
  padding: 5px 14px;
  background: var(--accent);
  color: #fff;
  border-radius: 7px;
  font-size: .8rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: background .15s;
}
.ep-t-search button:hover { background: var(--accent2); }

.ep-topbar-right { margin-left: auto; display: flex; gap: 8px; }
.ep-theme-btn {
  padding: 8px;
  border-radius: 9px;
  color: var(--text3);
  transition: all .15s;
}
.ep-theme-btn:hover { background: var(--bg2); color: var(--text); }

/* ── Main ────────────────────────────────────────────────── */
.ep-main { flex: 1; padding-bottom: 40px; }

/* ── Breadcrumbs ─────────────────────────────────────────── */
.ep-breadcrumbs { padding: 12px 24px 0; }
.ep-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 6px; list-style: none; font-size: .78rem; }
.ep-breadcrumbs li { display: flex; align-items: center; gap: 6px; color: var(--text4); }
.ep-breadcrumbs li:not(:last-child)::after { content: '/'; opacity: .5; }
.ep-breadcrumbs a { color: var(--text3); transition: color .15s; }
.ep-breadcrumbs a:hover { color: var(--accent); }
.ep-breadcrumbs span { color: var(--text2); font-weight: 500; }

/* ── Hero ────────────────────────────────────────────────── */
.ep-hero {
  margin: 20px 24px 24px;
  padding: 28px 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent2) 80%);
  border-radius: var(--r2);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.ep-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23fff' fill-opacity='.04'%3E%3Ccircle cx='30' cy='30' r='15'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: .6;
}
.ep-hero-eyebrow {
  display: inline-block;
  padding: 3px 12px;
  background: rgba(255,255,255,.2);
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 10px;
  position: relative;
}
.ep-hero h1 {
  font: 900 1.9rem/1.15 var(--font2);
  letter-spacing: -.03em;
  margin-bottom: 8px;
  position: relative;
}
.ep-hero-sub {
  opacity: .88;
  font-size: .9rem;
  max-width: 560px;
  margin-bottom: 16px;
  position: relative;
}
.ep-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
}
.ep-hero-chips span {
  padding: 4px 12px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
}

/* ── Content wrap ────────────────────────────────────────── */
.ep-content-wrap { padding: 0 24px; }
.ep-content { max-width: 1100px; }

/* ── Content stillar ─────────────────────────────────────── */
.ep-content h1,.ep-content h2,.ep-content h3,.ep-content h4 {
  font-family: var(--font2); color: var(--text); line-height: 1.3; margin: 20px 0 10px;
}
.ep-content h1 { font-size: 1.7rem; font-weight: 900; letter-spacing: -.03em; }
.ep-content h2 { font-size: 1.25rem; font-weight: 800; }
.ep-content h3 { font-size: 1.05rem; font-weight: 700; }
.ep-content p { margin-bottom: 12px; color: var(--text2); line-height: 1.75; }
.ep-content ul,.ep-content ol { margin: 0 0 12px 20px; color: var(--text2); }
.ep-content li { margin-bottom: 5px; line-height: 1.65; }
.ep-content strong,.ep-content b { font-weight: 700; color: var(--text); }
.ep-content em { font-style: italic; }
.ep-content img { border-radius: var(--r); margin: 10px 0; }
.ep-content a { color: var(--accent); border-bottom: 1px solid transparent; transition: border-color .15s; }
.ep-content a:hover { border-color: var(--accent); }
.ep-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 12px 18px;
  margin: 16px 0;
  background: var(--accentbg);
  border-radius: 0 var(--r) var(--r) 0;
  color: var(--text2);
}
.ep-content hr { border: none; border-top: 1px solid var(--border); margin: 22px 0; }

/* Section heading stillar */
.ep-section-h {
  font-family: var(--font2);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  margin: 22px 0 12px;
  padding-left: 10px;
  border-left: 3px solid var(--accent);
}

/* Article sahifasi */
.ep-article {
  max-width: 780px;
}
.ep-article p { font-size: 1rem; line-height: 1.8; }
.ep-article img { border-radius: var(--r2); }

/* ── Kart gridi ──────────────────────────────────────────── */
.ep-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 16px 0 24px;
}
.ep-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.ep-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow2);
  border-color: var(--accent3);
  text-decoration: none;
  color: var(--text);
}
.ep-card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }

/* ── Jadval ──────────────────────────────────────────────── */
.ep-table-wrap { overflow-x: auto; margin: 14px 0 20px; border-radius: var(--r); border: 1px solid var(--border); }
.ep-content table,.ep-content .ep-table-wrap table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.ep-content th { background: var(--accentbg); color: var(--accent2); font-weight: 700; padding: 10px 14px; text-align: left; border-bottom: 2px solid var(--accentbg2); white-space: nowrap; }
.ep-content td { padding: 9px 14px; border-bottom: 1px solid var(--border); color: var(--text2); vertical-align: top; }
.ep-content tr:last-child td { border-bottom: none; }
.ep-content tr:hover td { background: var(--bg2); }

/* ── Footer ──────────────────────────────────────────────── */
.ep-footer {
  margin-top: auto;
  background: var(--text);
  color: var(--text4);
}
html[data-theme="dark"] .ep-footer { background: #060b14; }
.ep-footer-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 24px;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.ep-f-logo { font: 900 1.1rem var(--font2); color: #fff; display: block; margin-bottom: 8px; }
.ep-footer-brand p { font-size: .85rem; line-height: 1.6; max-width: 280px; }
.ep-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-left: auto;
}
.ep-footer-links a { color: #94a3b8; font-size: .85rem; font-weight: 500; transition: color .15s; }
.ep-footer-links a:hover { color: #fff; }
.ep-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 14px 24px;
  text-align: center;
  font-size: .8rem;
  color: #64748b;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Xatolik sahifasi ────────────────────────────────────── */
.pg-error { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.ep-err-box {
  text-align: center;
  padding: 48px 32px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r3);
  box-shadow: var(--shadow2);
  max-width: 440px;
}
.ep-err-icon { font-size: 3.5rem; margin-bottom: 18px; }
.ep-err-box h1 { font: 900 1.4rem var(--font2); color: var(--text); margin-bottom: 12px; }
.ep-err-box p { color: var(--text2); margin-bottom: 24px; }
.ep-err-btn {
  display: inline-flex;
  align-items: center;
  padding: 11px 24px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--r);
  font-weight: 700;
  transition: background .15s;
}
.ep-err-btn:hover { background: var(--accent2); color: #fff; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 960px) {
  .ep-sidebar { transform: translateX(-100%); }
  .ep-sidebar.is-open { transform: translateX(0); box-shadow: var(--shadow2); }
  .ep-body { margin-left: 0; }
  .ep-menu-btn { display: flex; }
  .ep-topbar-logo { display: block; }
  .ep-hero { margin: 14px 16px 20px; padding: 22px 22px; }
  .ep-hero h1 { font-size: 1.5rem; }
  .ep-content-wrap { padding: 0 16px; }
  .ep-breadcrumbs { padding: 10px 16px 0; }
}

@media (max-width: 600px) {
  .ep-t-search { max-width: 100%; }
  .ep-topbar { padding: 0 14px; gap: 10px; }
  .ep-card-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ep-hero { border-radius: var(--r); }
  .ep-hero h1 { font-size: 1.3rem; }
  .ep-hero-chips { display: none; }
  .ep-footer-top { flex-direction: column; }
  .ep-footer-links { margin-left: 0; }
}

@media (max-width: 400px) {
  .ep-card-grid { grid-template-columns: 1fr; }
}

/* ===== Standalone homepage / auth / profile ===== */
.standalone-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(34,197,94,.14), transparent 28%),
    linear-gradient(180deg, #f7fbf9 0%, #f5f7fb 55%, #eef3f8 100%);
}
.hp-shell { max-width: 1280px; margin: 0 auto; padding: 20px 24px 56px; }
.hp-header {
  display:flex; align-items:center; justify-content:space-between; gap:18px;
  padding:16px 0 22px;
}
.hp-brand { display:flex; align-items:center; gap:14px; color:var(--text); }
.hp-brand:hover { color:var(--text); }
.hp-brand-mark {
  width:50px; height:50px; border-radius:16px; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg, #19b36b, #0f8b57); color:#fff; font:900 1.4rem var(--font2);
  box-shadow:0 18px 36px rgba(16,185,129,.18);
}
.hp-brand span { display:grid; }
.hp-brand b { font-size:1.2rem; letter-spacing:-.02em; }
.hp-brand small { color:var(--text3); font-size:.82rem; }
.hp-nav { display:flex; gap:24px; flex-wrap:wrap; }
.hp-nav a { color:var(--text2); font-weight:600; }
.hp-nav a:hover { color:var(--accent2); }
.hp-actions { display:flex; gap:12px; align-items:center; }
.hp-btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-height:46px; padding:0 20px; border-radius:999px; background:linear-gradient(135deg,#19b36b,#0f8b57);
  color:#fff; font-weight:800; box-shadow:0 16px 28px rgba(15,139,87,.18);
}
.hp-btn:hover { color:#fff; transform:translateY(-1px); }
.hp-btn--ghost { background:#fff; color:var(--accent2); border:1px solid rgba(15,139,87,.12); box-shadow:0 10px 22px rgba(15,23,42,.06); }
.hp-btn--ghost:hover { color:var(--accent2); }
.hp-hero {
  display:grid; grid-template-columns: 1.15fr .85fr; gap:26px; align-items:stretch;
  padding:20px 0 12px;
}
.hp-hero-copy, .hp-hero-card, .hp-panel, .hp-news-card, .auth-card, .profile-card {
  background:rgba(255,255,255,.88); backdrop-filter: blur(14px); border:1px solid rgba(255,255,255,.85);
  box-shadow:0 24px 52px rgba(15,23,42,.08); border-radius:28px;
}
.hp-hero-copy { padding:34px; }
.hp-kicker {
  display:inline-flex; align-items:center; gap:8px; padding:7px 14px; border-radius:999px;
  background:rgba(16,185,129,.12); color:var(--accent2); font-size:.78rem; font-weight:800; letter-spacing:.04em;
  text-transform:uppercase;
}
.hp-hero-copy h1 { font-size: clamp(2rem, 4vw, 3.7rem); line-height:1.05; letter-spacing:-.05em; margin:18px 0 16px; max-width:14ch; }
.hp-hero-copy p { color:var(--text3); font-size:1.02rem; max-width:62ch; }
.hp-hero-actions { display:flex; gap:14px; flex-wrap:wrap; margin-top:24px; }
.hp-stats { display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:14px; margin-top:28px; }
.hp-stat { padding:16px 14px; border-radius:20px; background:linear-gradient(180deg, #fff, #f6fbf7); border:1px solid #e7f2ea; }
.hp-stat strong { display:block; font-size:1.35rem; }
.hp-stat span { color:var(--text3); font-size:.86rem; }
.hp-hero-card {
  position:relative; overflow:hidden; min-height:420px; padding:28px;
  background:linear-gradient(180deg,#effbf4 0%, #f8fcff 100%);
}
.hp-exam-card {
  position:absolute; inset:auto 28px 28px 28px; padding:28px; border-radius:26px; background:#fff;
  box-shadow:0 18px 40px rgba(15,23,42,.08);
}
.hp-exam-date { color:var(--text3); font-weight:700; margin-bottom:12px; }
.hp-exam-card h2 { font-size:2rem; line-height:1.08; letter-spacing:-.04em; margin-bottom:18px; }
.hp-floating {
  position:absolute; display:flex; align-items:center; justify-content:center; border-radius:50%; background:#fff;
  width:76px; height:76px; box-shadow:0 18px 30px rgba(15,23,42,.08); font-size:1.8rem;
}
.hp-floating--book { top:48px; left:58px; }
.hp-floating--pen { top:118px; right:68px; }
.hp-floating--clock { top:228px; left:120px; }
.hp-grid { display:grid; grid-template-columns: 1.2fr .8fr; gap:24px; margin-top:26px; }
.hp-panel { padding:28px; }
.hp-panel-head h2, .hp-panel h2, .auth-copy h1, .profile-hero h1 { font-size:1.7rem; letter-spacing:-.04em; margin-bottom:8px; }
.hp-panel p { color:var(--text3); }
.hp-feature-grid { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:18px; margin-top:22px; }
.hp-feature-card { padding:22px; border-radius:22px; background:linear-gradient(180deg,#fff,#f8fbfd); border:1px solid #ecf2f7; }
.hp-feature-card h3 { margin-bottom:10px; font-size:1.08rem; }
.hp-feature-card p, .hp-list li, .auth-copy p, .profile-card dd { color:var(--text3); }
.hp-list { list-style:none; display:grid; gap:14px; margin-top:18px; }
.hp-list li { position:relative; padding-left:20px; }
.hp-list li::before { content:'•'; position:absolute; left:0; color:var(--accent); font-weight:900; }
.hp-grid--news { grid-template-columns: repeat(3, minmax(0,1fr)); }
.hp-news-card { padding:24px; }
.hp-tag { display:inline-block; padding:6px 11px; border-radius:999px; background:#e9fff3; color:var(--accent2); font-size:.72rem; font-weight:800; margin-bottom:14px; }
.hp-news-card h3 { margin-bottom:10px; font-size:1.2rem; }
.hp-news-card p { color:var(--text3); }
.hp-cta {
  margin-top:26px; padding:28px 32px; border-radius:30px; color:#fff;
  background:linear-gradient(135deg,#0f8b57,#0b6c46); display:flex; align-items:center; justify-content:space-between; gap:20px;
  box-shadow:0 26px 46px rgba(11,108,70,.22);
}
.hp-cta h2 { font-size:1.8rem; letter-spacing:-.04em; margin-bottom:8px; }
.hp-cta p { color:rgba(255,255,255,.84); max-width:64ch; }
.auth-page, .profile-page { max-width: 1140px; margin: 0 auto; padding: 30px 24px 60px; }
.auth-back { display:inline-block; margin-bottom:18px; font-weight:700; }
.auth-card { display:grid; grid-template-columns: .95fr 1.05fr; overflow:hidden; }
.auth-copy { padding:36px; background:linear-gradient(135deg,#f0fff7,#edf6ff); }
.auth-form { padding:36px; display:grid; gap:16px; }
.auth-form label { display:grid; gap:8px; font-weight:700; color:var(--text2); }
.auth-form input {
  height:50px; border-radius:15px; border:1px solid #dbe7e1; background:#fff; padding:0 16px; outline:none;
}
.auth-form input:focus { border-color:#24a96f; box-shadow:0 0 0 4px rgba(36,169,111,.12); }
.auth-alert { padding:14px 16px; border-radius:16px; background:#fff0f0; border:1px solid #ffd7d7; color:#a61b1b; font-size:.95rem; display:grid; gap:6px; }
.auth-submit { width:100%; }
.auth-switch { text-align:center; color:var(--text3); }
.profile-hero {
  padding:28px 30px; margin-bottom:24px; display:flex; align-items:flex-end; justify-content:space-between; gap:18px;
  background:linear-gradient(135deg,#f1fff6,#eff7ff); border-radius:30px; border:1px solid rgba(255,255,255,.9); box-shadow:0 22px 48px rgba(15,23,42,.08);
}
.profile-grid { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:24px; }
.profile-card { padding:28px; }
.profile-card--wide { grid-column:1 / -1; }
.profile-card dl { display:grid; gap:14px; margin-top:18px; }
.profile-card dl div { display:flex; justify-content:space-between; gap:16px; padding-bottom:12px; border-bottom:1px solid #edf1f4; }
.profile-card dt { font-weight:800; }
.profile-list { list-style:none; display:grid; gap:12px; margin-top:18px; }
.profile-list a { font-weight:700; }
@media (max-width: 1080px) {
  .hp-hero, .hp-grid, .auth-card, .profile-grid { grid-template-columns:1fr; }
  .hp-feature-grid, .hp-grid--news { grid-template-columns:1fr; }
  .hp-stats { grid-template-columns:repeat(2, minmax(0,1fr)); }
  .hp-nav { display:none; }
  .hp-header { flex-wrap:wrap; }
}
@media (max-width: 720px) {
  .hp-shell, .auth-page, .profile-page { padding-left:16px; padding-right:16px; }
  .hp-hero-copy, .hp-hero-card, .hp-panel, .hp-news-card, .auth-copy, .auth-form, .profile-card, .profile-hero { padding:22px; }
  .hp-hero-card { min-height:320px; }
  .hp-exam-card { inset:auto 20px 20px 20px; padding:20px; }
  .hp-exam-card h2 { font-size:1.55rem; }
  .hp-cta { padding:24px; flex-direction:column; align-items:flex-start; }
  .hp-stats { grid-template-columns:1fr; }
  .hp-actions { width:100%; justify-content:flex-start; flex-wrap:wrap; }
}

/* Mandat 2024 local helper */
.ep-mandat-tool{
  margin:0 0 22px;
  padding:22px;
  border:1px solid var(--line);
  border-radius:22px;
  background:linear-gradient(135deg, rgba(22,163,74,.08), rgba(255,255,255,.96));
  box-shadow:0 12px 40px rgba(15,23,42,.08);
}
.ep-mandat-tool__head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:18px}
.ep-mandat-tool__eyebrow{margin:0 0 8px;font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--accent)}
.ep-mandat-tool__head h2{margin:0 0 8px;font-size:30px;line-height:1.1}
.ep-mandat-tool__head p{margin:0;color:var(--muted);max-width:720px}
.ep-mandat-tool__meta{min-width:110px;padding:16px 18px;border-radius:18px;background:#fff;border:1px solid var(--line);text-align:center}
.ep-mandat-tool__meta strong{display:block;font-size:28px;line-height:1;font-weight:900;color:var(--accent)}
.ep-mandat-tool__meta span{display:block;margin-top:6px;color:var(--muted);font-size:13px}
.ep-mandat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.ep-mandat-grid label{display:flex;flex-direction:column;gap:8px}
.ep-mandat-grid span{font-size:13px;font-weight:700;color:var(--muted)}
.ep-mandat-grid select{
  width:100%;height:48px;padding:0 14px;border-radius:14px;border:1px solid var(--line);
  background:#fff;color:var(--text);outline:none;box-shadow:0 1px 0 rgba(15,23,42,.02) inset;
}
.ep-mandat-grid select:focus{border-color:var(--accent);box-shadow:0 0 0 4px rgba(22,163,74,.12)}
.ep-mandat-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:18px}
.ep-mandat-btn{
  appearance:none;border:0;border-radius:999px;padding:12px 18px;background:var(--accent);color:#fff;font-weight:800;cursor:pointer;
  box-shadow:0 10px 24px rgba(22,163,74,.18)
}
.ep-mandat-btn--ghost{background:#fff;color:var(--text);border:1px solid var(--line);box-shadow:none}
#epMandatHint{margin:0;color:var(--muted);font-size:14px}
.ep-selection-note{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin:0 0 18px;padding:14px 16px;border-radius:16px;background:#f8fafc;border:1px solid var(--line)}
.ep-selection-note strong{font-size:14px}
.ep-selection-note__chips{display:flex;flex-wrap:wrap;gap:8px}
.ep-selection-note__chips span{display:inline-flex;align-items:center;padding:7px 10px;border-radius:999px;background:#fff;border:1px solid var(--line);font-size:13px;color:var(--muted)}
@media (max-width: 860px){
  .ep-mandat-tool{padding:18px}
  .ep-mandat-tool__head{flex-direction:column}
  .ep-mandat-grid{grid-template-columns:1fr}
  .ep-selection-note{flex-direction:column}
}


/* === Oliygohlar filter va card fix === */
.ep-filter-panel{background:linear-gradient(180deg,#f4fbf7,#eef8f3);border:1px solid var(--border);border-radius:24px;padding:22px;margin:18px 0 20px;box-shadow:var(--shadow)}
.ep-filter-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:16px}
.ep-filter-kicker{font-size:.78rem;font-weight:800;letter-spacing:.12em;color:#64748b}
.ep-filter-head h2{margin:2px 0 0;font:800 2rem var(--font2);color:var(--text)}
.ep-filter-note{color:var(--text3);font-size:.95rem;max-width:360px;text-align:right}
.ep-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.ep-filter-grid label,.ep-range-wrap{display:flex;flex-direction:column;gap:8px;font-weight:700;color:var(--text)}
.ep-filter-grid span,.ep-range-wrap span{font-size:.9rem}
.ep-filter-grid input,.ep-filter-grid select,.ep-range-wrap input{width:100%;height:48px;border:1px solid var(--border);border-radius:16px;background:#fff;padding:0 14px;color:var(--text);font-size:1rem;outline:none}
.ep-range-wrap input{padding:0;height:auto}
.ep-filter-actions{display:flex;align-items:end;gap:18px;justify-content:space-between;margin-top:14px;flex-wrap:wrap}
.ep-range-wrap{min-width:260px;flex:1}
#epBallValue{font-size:1rem;color:var(--accent2)}
.ep-filter-meta{margin-left:auto;font-size:1rem;color:var(--text3)}
.ep-filter-meta strong{font-size:1.4rem;color:var(--accent2);margin-right:6px}
.ep-filter-reset{display:inline-flex;align-items:center;justify-content:center;height:46px;padding:0 18px;border-radius:16px;background:#fff;color:var(--text);font-weight:800;border:1px solid var(--border)}
.ep-filter-reset:hover{text-decoration:none;color:var(--accent2)}

.univerlist{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:20px;margin-top:18px}
.univerlist-item{display:flex;justify-content:space-between;gap:18px;background:var(--panel);border:1px solid var(--border);border-radius:24px;padding:22px;box-shadow:var(--shadow);min-height:250px}
.univerlist-item__left,.univerlist-item__right{display:flex;flex-direction:column}
.univerlist-item__left{flex:1;min-width:0}
.univerlist-item__right{justify-content:flex-end}
.univerlist-item .name{display:block;font:800 1.15rem/1.35 var(--font2);color:var(--text)!important;text-decoration:none;margin-bottom:16px}
.univerlist-item .stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:10px}
.univerlist-item .stats-item{display:flex;flex-direction:column;gap:8px;padding:14px;border-radius:16px;background:var(--bg2);font-weight:800;color:var(--text2);min-height:78px}
.univerlist-item .stats-item__circle,.univerlist-item .bullet-circle,.univerlist-item .base-sub-reg span[class*="circle"]{display:none!important}
.univerlist-item .btn,.ep-detail-btn{display:inline-flex!important;align-items:center;justify-content:center;min-width:112px;height:42px;padding:0 18px;border-radius:999px;background:linear-gradient(180deg,#22c55e,#16a34a)!important;color:#fff!important;font-weight:800;font-size:.96rem;line-height:1;border:none;text-decoration:none;box-shadow:0 10px 20px rgba(22,163,74,.18)}
.univerlist-item .btn:hover,.ep-detail-btn:hover{text-decoration:none;color:#fff!important;filter:brightness(.98)}
.univerlist-item__left--bottom{display:flex;flex-direction:column;gap:16px;margin-top:auto}

.ep-uni-table{margin-top:16px;border:1px solid var(--border);border-radius:22px;overflow:hidden;background:var(--panel);box-shadow:var(--shadow)}
.ep-detail-toolbar{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:18px;border-bottom:1px solid var(--border);background:linear-gradient(180deg,#f8fbff,#f2f7fb)}
.ep-detail-toolbar select{width:100%;height:46px;border:1px solid var(--border);border-radius:14px;padding:0 12px;background:#fff;color:var(--text)}
.ep-uni-table .thead,.ep-uni-table .tr{display:grid;grid-template-columns:minmax(260px,2fr) repeat(2,minmax(140px,1fr)) minmax(140px,1fr);align-items:stretch}
.ep-uni-table .thead{background:var(--accentbg)}
.ep-uni-table .thead .th{padding:14px 16px;font-weight:800;color:var(--accent2);border-bottom:1px solid var(--border)}
.ep-uni-table .tbody .tr{border-top:1px solid var(--border)}
.ep-uni-table .td{padding:14px 16px;color:var(--text2)}
.ep-uni-table .td .data{display:flex;flex-direction:column;gap:8px}
.ep-uni-table .td .name p:first-child,.ep-uni-table .td .data.name p:first-child{font-weight:800;color:var(--text);margin:0}
.ep-uni-table .td p{margin:0}
.ep-uni-table .td .quotes > div{padding:2px 0}

@media (max-width: 980px){
  .ep-filter-grid{grid-template-columns:1fr 1fr}
  .ep-filter-head{flex-direction:column}
  .ep-filter-note{text-align:left;max-width:none}
  .ep-detail-toolbar{grid-template-columns:1fr}
  .univerlist{grid-template-columns:1fr 1fr}
}
@media (max-width: 720px){
  .ep-filter-grid,.univerlist{grid-template-columns:1fr}
  .ep-filter-actions{align-items:stretch}
  .ep-filter-meta{margin-left:0}
  .ep-uni-table .thead{display:none}
  .ep-uni-table .tbody .tr{display:block;padding:10px 0}
  .ep-uni-table .td{display:flex;justify-content:space-between;gap:16px;border-top:1px solid var(--border)}
  .ep-uni-table .td::before{content:attr(data-label);font-weight:800;color:var(--text);min-width:120px}
}
