/* Ethioall Join — design system */
:root {
  --primary: #554fe8;
  --primary-dark: #4540c9;
  --primary-soft: #eeedfd;
  --accent: #f59e0b;
  --bg: #f5f6fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e5e8f0;
  --track: #eceef6;
  --danger: #dc2626;
  --success: #059669;
  --c1: #554fe8; --c2: #14b8a6; --c3: #f59e0b; --c4: #ec4899; --c5: #0ea5e9;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15,23,42,.05), 0 8px 24px rgba(30,27,100,.06);
  --nav-w: 252px;
  --side: #ffffff;
}
[data-theme="dark"] {
  --primary: #8480ff; --primary-dark: #a09cff; --primary-soft: rgba(132,128,255,.14);
  --bg: #0a0c18; --card: #121528; --side: #0e1122; --text: #eceefa; --muted: #98a0c0;
  --border: #222744; --track: #1d2240; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.25);
  --c1: #8480ff; --c2: #2dd4bf; --c3: #fbbf24; --c4: #f472b6; --c5: #38bdf8;
  color-scheme: dark;
}
[data-theme="light"] { color-scheme: light; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", "Noto Sans Ethiopic", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--text);
  font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1 { font-size: 26px; letter-spacing: -.02em; margin: 0 0 6px; line-height: 1.2; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.ico { flex: none; vertical-align: middle; }
.hide-sm { display: inline; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; height: 64px;
  background: var(--card);
  background: color-mix(in srgb, var(--card) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar-title { font-weight: 700; font-size: 17px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 36px; height: 36px; object-fit: contain; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; padding: 8px 12px; height: 40px;
  border: 1px solid var(--border); border-radius: 999px; color: var(--text); background: var(--card);
}
.lang-toggle:hover { text-decoration: none; border-color: var(--primary); color: var(--primary); }
.topbar .btn { height: 40px; padding: 0 14px; }
.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center; cursor: pointer;
  border: 1px solid var(--border); background: var(--card); color: var(--text); border-radius: 12px;
  transition: border-color .15s, color .15s, transform .1s;
}
.icon-btn:hover { border-color: var(--primary); color: var(--primary); }
.icon-btn:active { transform: scale(.95); }
.t-sun { display: none; } .t-moon { display: grid; }
[data-theme="dark"] .t-sun { display: grid; } [data-theme="dark"] .t-moon { display: none; }
.desk-only { display: none; }

/* ---------- Layout / sidebar (mobile = pill bar) ---------- */
.content { padding: 22px 16px 60px; max-width: 1240px; margin: 0 auto; width: 100%; }
.sidebar { background: var(--side); border-bottom: 1px solid var(--border); }
.sb-brand, .sb-foot { display: none; }
.sidebar nav { display: flex; gap: 6px; overflow-x: auto; padding: 8px 10px; scrollbar-width: none; }
.sidebar nav::-webkit-scrollbar { display: none; }
.nav-link {
  position: relative; display: flex; align-items: center; gap: 11px;
  padding: 9px 13px; border-radius: 12px; white-space: nowrap;
  color: var(--muted); font-weight: 600; font-size: 14px;
  transition: background .15s, color .15s;
}
.nav-link:hover { background: var(--track); color: var(--text); text-decoration: none; }
.nav-link.active { background: var(--primary-soft); color: var(--primary); }
.nav-ico { display: grid; place-items: center; flex: none; }

@media (min-width: 900px) {
  .desk-only { display: inline-grid; } .mobile-only { display: none !important; }
  body.has-sidebar { padding-left: var(--nav-w); transition: padding-left .25s ease; }
  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; width: var(--nav-w); z-index: 50;
    border-right: 1px solid var(--border); border-bottom: 0;
    display: flex; flex-direction: column; transition: width .25s ease; overflow: hidden;
  }
  .sb-brand {
    display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 18px; flex: none;
    color: var(--text); border-bottom: 1px solid var(--border);
  }
  .sb-brand:hover { text-decoration: none; }
  .sb-brand .brand-logo { width: 38px; height: 38px; flex: none; }
  .sb-text { display: flex; flex-direction: column; line-height: 1.2; white-space: nowrap; transition: opacity .15s; }
  .sb-text strong { font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
  .sb-text small { font-size: 11.5px; color: var(--muted); font-weight: 500; }
  .sidebar nav { flex-direction: column; padding: 16px 12px; gap: 4px; overflow-y: auto; flex: 1; }
  .nav-link { padding: 12px 14px; font-size: 14.5px; }
  .nav-link.active { background: linear-gradient(90deg, var(--primary-soft), transparent); box-shadow: inset 3px 0 0 var(--primary); border-radius: 4px 12px 12px 4px; }
  .sb-foot { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-top: 1px solid var(--border); flex: none; }
  .sb-card {
    display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 14px; color: var(--text);
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 18%, transparent), color-mix(in srgb, var(--c2) 12%, transparent));
    border: 1px solid var(--border);
  }
  .sb-card:hover { text-decoration: none; border-color: var(--primary); }
  .sb-card-ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--primary); color: #fff; flex: none; }
  .sb-link { flex-direction: row !important; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 600; padding: 4px 6px; }
  .sb-link:hover { color: var(--primary); text-decoration: none; }
  .topbar { padding: 10px 28px; }
  .content { padding: 30px 36px 80px; }

  /* collapsed */
  .nav-collapsed { --nav-w: 78px; }
  .nav-collapsed .sb-text { opacity: 0; width: 0; overflow: hidden; pointer-events: none; }
  .nav-collapsed .sb-brand { padding: 0; justify-content: center; }
  .nav-collapsed .nav-link { justify-content: center; padding: 12px 0; gap: 0; }
  .nav-collapsed .nav-link.active { border-radius: 12px; box-shadow: none; background: var(--primary-soft); }
  .nav-collapsed .sb-card { justify-content: center; padding: 9px 0; gap: 0; }
  .nav-collapsed .sb-link { display: none; }
  .nav-collapsed .sidebar { overflow: visible; }
  .nav-collapsed .sidebar nav { overflow: visible; }
  .nav-collapsed .nav-link:hover::after {
    content: attr(data-tip); position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%);
    background: var(--text); color: var(--bg); font-size: 12.5px; font-weight: 600; padding: 6px 10px; border-radius: 8px; white-space: nowrap; z-index: 60;
  }
}

/* ---------- Cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-bottom: 16px;
}
.card h2 { margin: 0 0 4px; font-size: 18px; }
.card h3 { margin: 0 0 12px; font-size: 16px; letter-spacing: -.01em; }
.card-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 16px; font-weight: 700; }
.card-title .ico { color: var(--primary); }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 12px; border: 1px solid transparent;
  font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer;
  background: var(--track); color: var(--text);
  transition: transform .1s, box-shadow .15s, background .15s, border-color .15s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, #6a64f5, var(--primary)); color: #fff; box-shadow: 0 4px 14px rgba(85,79,232,.35); }
.btn-primary:hover { box-shadow: 0 6px 18px rgba(85,79,232,.45); }
.btn-ghost { background: var(--card); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 10px; font-size: 13px; border-radius: 10px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn:focus-visible, .nav-link:focus-visible, .input:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 35%, transparent); outline-offset: 2px; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 16px; }
.label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text); opacity: .85; }
.input, select.input, textarea.input {
  width: 100%; padding: 12px 14px; font-size: 15px; font-family: inherit;
  border: 1px solid var(--border); border-radius: 12px; background: var(--card); color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 16%, transparent); }
textarea.input { min-height: 110px; resize: vertical; }

.flash { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; font-size: 14px; font-weight: 500; }
.flash .ico { margin-top: 2px; }
.flash-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.flash-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.flash-info { background: #eef2ff; color: #3730a3; border: 1px solid #c7d2fe; }

/* ---------- Grid & stats ---------- */
.grid { display: grid; gap: 14px; }
.grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.grid > .card { margin-bottom: 0; }

.stat {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 14px;
}
.stat-ico {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none;
  background: color-mix(in srgb, var(--tint, var(--primary)) 14%, transparent); color: var(--tint, var(--primary));
}
.stat .stat-val { font-size: 28px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.stat .stat-label { color: var(--muted); font-size: 13px; font-weight: 500; }

/* ---------- Dashboard hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  border-radius: 20px; padding: 26px 24px; margin-bottom: 18px;
  background: radial-gradient(120% 140% at 100% 0%, #8a85ff 0%, transparent 55%), linear-gradient(135deg, #3f39c9, #554fe8 55%, #6d67f7);
  box-shadow: 0 14px 34px rgba(85,79,232,.28);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.hero::after {
  content: ""; position: absolute; right: -40px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: rgba(255,255,255,.08); pointer-events: none;
}
.hero h1 { color: #fff; font-size: 24px; }
.hero p { margin: 0; opacity: .85; font-size: 14px; }
.hero .btn-primary { background: #fff; color: var(--primary-dark); box-shadow: 0 6px 16px rgba(0,0,0,.18); position: relative; z-index: 1; }
.avatar { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.6); background: rgba(255,255,255,.2); }
.hero-left { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }

/* ---------- Charts ---------- */
.donut-wrap { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.donut { width: 150px; height: 150px; flex: none; }
.donut-val { font-size: 26px; font-weight: 800; fill: var(--text); }
.donut-lbl { font-size: 9px; fill: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.legend { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 150px; display: grid; gap: 9px; font-size: 14px; }
.legend li { display: flex; align-items: center; gap: 9px; }
.legend .sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.legend .lg-name { flex: 1; color: var(--muted); }
.legend .lg-val { font-weight: 700; }
.legend .lg-val em { font-style: normal; color: var(--muted); font-weight: 500; font-size: 12px; margin-left: 4px; }
.legend-inline { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.hbars { display: grid; gap: 14px; }
.hbar-top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; margin-bottom: 6px; }
.hbar-label { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-val { font-weight: 800; }
.hbar-track { height: 9px; border-radius: 99px; background: var(--track); overflow: hidden; }
.hbar-fill { height: 100%; border-radius: 99px; background-image: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.25)); animation: grow .9s cubic-bezier(.2,.8,.2,1) both; transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.gchart-scroll { overflow-x: auto; }
.gchart { width: 100%; height: auto; display: block; }
.gchart .grid-line { stroke: var(--border); stroke-dasharray: 3 4; }
.gchart .axis, .axis { font-size: 11px; fill: var(--muted); font-family: inherit; }
.gchart rect { transition: opacity .15s; } .gchart rect:hover { opacity: .75; }
.ring { width: 64px; height: 64px; } .ring-t { font-size: 14px; font-weight: 800; fill: var(--text); }
.empty { text-align: center; padding: 26px 10px; color: var(--muted); }
.empty .ico { color: var(--primary); opacity: .7; margin-bottom: 6px; }

/* ---------- Badges / tables ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-active { background: #d1fae5; color: #065f46; }
.badge-hidden { background: var(--track); color: var(--muted); }
.badge-boosted { background: #ede9fe; color: #5b21b6; }
.badge-verified { background: #dbeafe; color: #1e40af; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 14px; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: color-mix(in srgb, var(--primary) 4%, transparent); }
.table th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.actions form { display: inline; }

/* ---------- Auth ---------- */
body.no-sidebar { background: var(--bg); min-height: 100vh; }
.auth-wrap { max-width: 440px; margin: 20px auto; }
.auth-head { text-align: center; margin-bottom: 20px; }
.auth-logo { display: none; }
.auth-head h1 { font-size: 28px; }
.auth-wrap .card { padding: 28px; border-radius: 22px; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .08em; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* brand panel */
.auth-aside {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(90% 70% at 100% 0%, #8f8bff 0%, transparent 60%), radial-gradient(70% 60% at 0% 100%, #2dd4bf55 0%, transparent 60%), linear-gradient(150deg, #2b25a8 0%, #554fe8 55%, #6b64f7 100%);
}
.aa-inner { position: relative; z-index: 2; padding: 22px 20px 26px; }
.aa-brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-weight: 800; font-size: 24px; letter-spacing: -.02em; }
.aa-brand:hover { text-decoration: none; }
.aa-brand img { background: #fff; border-radius: 16px; padding: 6px; box-shadow: 0 8px 22px rgba(0,0,0,.25); width: 52px; height: 52px; }
.aa-pill { display: inline-flex; align-items: center; gap: 7px; margin: 18px 0 12px; padding: 6px 12px; border-radius: 99px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); font-size: 12.5px; font-weight: 600; }
.auth-aside h2 { font-size: 24px; line-height: 1.2; letter-spacing: -.02em; margin: 0 0 10px; font-weight: 800; }
.aa-sub { margin: 0; opacity: .85; font-size: 14px; max-width: 460px; }
.aa-list, .aa-links { display: none; }
.aa-orb { position: absolute; border-radius: 50%; background: rgba(255,255,255,.08); z-index: 1; }
.aa-orb1 { width: 280px; height: 280px; right: -90px; top: -90px; }
.aa-orb2 { width: 200px; height: 200px; left: -70px; bottom: -80px; background: rgba(45,212,191,.14); }
.brand-auth { display: none; }

@media (min-width: 960px) {
  body.auth-page { display: grid; grid-template-columns: minmax(440px, 5fr) 6fr; grid-template-rows: auto 1fr auto; }
  body.auth-page .auth-aside { grid-column: 1; grid-row: 1 / 4; position: sticky; top: 0; height: 100vh; }
  body.auth-page .topbar { grid-column: 2; grid-row: 1; position: static; background: transparent; border: 0; backdrop-filter: none; justify-content: flex-end; }
  body.auth-page .content { grid-column: 2; grid-row: 2; align-self: center; padding: 10px 40px 20px; }
  body.auth-page .site-footer { grid-column: 2; grid-row: 3; }
  .aa-inner { padding: 56px 56px 40px; height: 100%; display: flex; flex-direction: column; }
  .auth-aside h2 { font-size: 36px; margin-top: 4px; }
  .aa-sub { font-size: 16px; }
  .aa-pill { margin-top: 44px; align-self: flex-start; }
  .aa-list { display: grid; gap: 16px; list-style: none; margin: 34px 0 0; padding: 0; }
  .aa-list li { display: flex; gap: 14px; align-items: center; }
  .aa-list li > span { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.2); flex: none; }
  .aa-list strong { display: block; font-size: 15px; }
  .aa-list small { opacity: .8; font-size: 13px; }
  .aa-links { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 32px; }
  .aa-links-t { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; opacity: .7; font-weight: 700; margin-right: 6px; }
  .aa-links a { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-size: 13.5px; font-weight: 600; padding: 7px 13px; border-radius: 99px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); }
  .aa-links a:hover { background: rgba(255,255,255,.25); text-decoration: none; }
}
@media (max-width: 959px) {
  body.auth-page .topbar { position: static; background: transparent; border: 0; backdrop-filter: none; justify-content: flex-end; order: 0; }
  body.auth-page .auth-aside { order: 1; margin: 0 14px; border-radius: 22px; }
  body.auth-page .content { order: 2; }
  .brand-auth { display: none; }
}

.steps { display: flex; gap: 6px; margin-bottom: 22px; }
.steps .dot { flex: 1; height: 6px; border-radius: 999px; background: var(--track); transition: background .3s; }
.steps .dot.done, .steps .dot.current { background: var(--primary); }

.choices { display: grid; gap: 10px; }
.choice {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--border);
  border-radius: 14px; cursor: pointer; background: var(--card); color: var(--text); font-weight: 500;
  transition: border-color .15s, background .15s, transform .1s;
}
.choice:hover { border-color: var(--primary); background: var(--primary-soft); text-decoration: none; }
.choice input { accent-color: var(--primary); }
.choice .choice-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: none; }
.choice .choice-go { margin-left: auto; color: var(--muted); }

.service-thumb { width: 52px; height: 52px; object-fit: cover; border-radius: 12px; background: var(--track); border: 1px solid var(--border); }

.site-footer { text-align: center; color: var(--muted); font-size: 13px; padding: 24px 16px 30px; }
.site-footer img { opacity: .8; }
.site-footer p { margin: 4px 0 0; }
.site-footer a { color: var(--muted); font-weight: 600; }

.row { display: flex; align-items: center; gap: 12px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.page-head { margin-bottom: 18px; }

@media (max-width: 520px) {
  .hide-sm { display: none; }
  h1 { font-size: 22px; }
  .card { padding: 18px; }
  .donut-wrap { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .hbar-fill { animation: none; } * { transition: none !important; } }

.flash-block { display: block; }
.flash-block form { margin-left: 6px; }
@media (max-width: 639px) {
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 14px; gap: 10px; flex-direction: column; align-items: flex-start; }
  .stat .stat-val { font-size: 24px; }
}

/* dark-mode tweaks */
[data-theme="dark"] .flash-success { background: rgba(16,185,129,.12); color: #6ee7b7; border-color: rgba(16,185,129,.3); }
[data-theme="dark"] .flash-error { background: rgba(239,68,68,.12); color: #fca5a5; border-color: rgba(239,68,68,.3); }
[data-theme="dark"] .flash-info { background: rgba(132,128,255,.12); color: #c4c2ff; border-color: rgba(132,128,255,.3); }
[data-theme="dark"] .badge-pending { background: rgba(251,191,36,.16); color: #fcd34d; }
[data-theme="dark"] .badge-active { background: rgba(45,212,191,.16); color: #5eead4; }
[data-theme="dark"] .badge-boosted { background: rgba(167,139,250,.18); color: #c4b5fd; }
[data-theme="dark"] .badge-verified { background: rgba(56,189,248,.16); color: #7dd3fc; }
[data-theme="dark"] .btn-ghost:hover { background: var(--primary-soft); }
[data-theme="dark"] .brand-logo, [data-theme="dark"] .site-footer img { filter: brightness(1.25) saturate(1.1); }
[data-theme="dark"] .hero { background: radial-gradient(120% 140% at 100% 0%, #6d67f7 0%, transparent 55%), linear-gradient(135deg, #1f1b73, #3a34c4 60%, #4a44db); box-shadow: 0 14px 34px rgba(0,0,0,.4); }
[data-theme="dark"] .btn-primary { box-shadow: 0 4px 18px rgba(132,128,255,.28); }
[data-theme="dark"] .hero .btn-primary { color: #2b25a8; background: #fff; }
[data-theme="dark"] .input::placeholder { color: #6b7396; }

/* ---------- polish pass ---------- */
.content > h1 { margin-bottom: 18px; }
.content > h1 + .card, .content > h1 + .flash { margin-top: 0; }
.choice:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent); }
.choice input[type=radio], .choice input[type=checkbox] { width: 18px; height: 18px; flex: none; }
input[type=file].input { padding: 8px; cursor: pointer; }
input[type=file]::file-selector-button {
  margin-right: 12px; padding: 8px 14px; border: 0; border-radius: 9px; cursor: pointer;
  background: var(--primary-soft); color: var(--primary); font-weight: 600; font-family: inherit;
}
input[type=file]::file-selector-button:hover { background: var(--primary); color: #fff; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2398a0c0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
::selection { background: color-mix(in srgb, var(--primary) 30%, transparent); }
.card h3 + .small, .card .small.muted { line-height: 1.5; }
.table td .badge { margin-top: 4px; }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: var(--track); border-radius: 99px; border: 2px solid var(--bg); } ::-webkit-scrollbar-thumb:hover { background: var(--muted); }
@media (max-width: 899px) { .content > h1 { font-size: 22px; } }
