/* ============================================================
   YDSP Al Khair — Premium Design System
   Palette: Emerald deep + White + Gold accent
   ============================================================ */

:root {
  --emerald-950: #022c22;
  --emerald-900: #064e3b;
  --emerald-800: #065f46;
  --emerald-700: #047857;
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-400: #34d399;
  --emerald-100: #d1fae5;
  --emerald-50:  #ecfdf5;

  --gold-700: #a8841e;
  --gold-600: #c9a227;
  --gold-500: #d4af37;
  --gold-400: #e6c65c;
  --gold-300: #f0d98a;
  --gold-100: #fbf3d9;

  --ink-900: #0f241d;
  --ink-700: #1e3a31;
  --ink-500: #435f55;
  --ink-400: #647d74;
  --ink-300: #94a8a0;

  --cream: #fafcf9;
  --mist:  #f0f6f3;
  --line:  #dce8e2;
  --white: #ffffff;

  --danger: #b42318;
  --danger-bg: #fef3f2;
  --ok: #047857;
  --ok-bg: #ecfdf5;

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(6,78,59,.06), 0 1px 3px rgba(6,78,59,.08);
  --shadow:    0 4px 14px rgba(6,78,59,.08), 0 2px 6px rgba(6,78,59,.06);
  --shadow-lg: 0 18px 44px rgba(6,78,59,.14), 0 6px 16px rgba(6,78,59,.08);
  --gold-glow: 0 6px 20px rgba(212,175,55,.35);

  --font: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-900);
  background: var(--cream);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--emerald-700); text-decoration: none; transition: color .2s; }
a:hover { color: var(--emerald-900); }
h1,h2,h3,h4 { color: var(--ink-900); line-height: 1.25; letter-spacing: -.01em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
small { color: var(--ink-400); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.muted { color: var(--ink-400); }

/* ---------- Topbar ---------- */
.topbar {
  background: linear-gradient(90deg, var(--emerald-950), var(--emerald-900) 60%, var(--emerald-800));
  color: var(--gold-300);
  font-size: .82rem;
  letter-spacing: .04em;
  border-bottom: 1px solid rgba(212,175,55,.25);
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; padding-bottom: 8px; }
.topbar span { text-transform: uppercase; font-weight: 600; }
.topbar a { color: var(--gold-300); font-weight: 600; }
.topbar a:hover { color: var(--gold-400); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; color: var(--emerald-900); font-size: 1.08rem; letter-spacing: -.01em; }
.brand img { box-shadow: var(--shadow); }
.brand span { display: inline-flex; flex-direction: column; line-height: 1.2; }
.brand small { font-size: .68rem; font-weight: 600; color: var(--gold-600); letter-spacing: .08em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  color: var(--ink-700); font-weight: 600; font-size: .95rem;
  padding: 9px 14px; border-radius: 999px; transition: all .2s;
}
.nav-links a:hover { background: var(--emerald-50); color: var(--emerald-800); }
.nav-links a.btn { padding: 10px 22px; }
.mobile-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; font-family: inherit;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s, color .2s, border-color .2s;
  text-decoration: none; line-height: 1.2; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--emerald-700), var(--emerald-600));
  color: #fff; box-shadow: 0 6px 18px rgba(4,120,87,.35);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--emerald-800), var(--emerald-700)); color: #fff; box-shadow: 0 8px 22px rgba(4,120,87,.45); transform: translateY(-1px); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--emerald-950); box-shadow: var(--gold-glow); font-weight: 800;
}
.btn-gold:hover { background: linear-gradient(135deg, var(--gold-600), var(--gold-500)); color: var(--emerald-950); transform: translateY(-1px); }
.btn-outline {
  background: transparent; border-color: var(--emerald-600); color: var(--emerald-700);
}
.btn-outline:hover { background: var(--emerald-50); border-color: var(--emerald-700); color: var(--emerald-900); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 85% -10%, rgba(212,175,55,.18), transparent 60%),
    radial-gradient(ellipse 60% 50% at -10% 110%, rgba(16,185,129,.25), transparent 55%),
    linear-gradient(160deg, var(--emerald-950) 0%, var(--emerald-900) 45%, var(--emerald-800) 100%);
  color: #fff;
  padding: 72px 0 88px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.05) 0, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(212,175,55,.08) 0, transparent 35%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; }
.hero .eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-300); background: rgba(212,175,55,.14);
  border: 1px solid rgba(212,175,55,.4); padding: 7px 16px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 .gold { background: linear-gradient(90deg, var(--gold-300), var(--gold-500)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero > section p, .hero p { color: rgba(255,255,255,.82); font-size: 1.06rem; max-width: 540px; }
.hero .actions { margin: 28px 0 36px; }
.hero .btn-outline { border-color: rgba(255,255,255,.5); color: #fff; }
.hero .btn-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }

.hero .stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 20px; backdrop-filter: blur(6px);
}
.hero .stat { display: flex; flex-direction: column; gap: 4px; }
.hero .stat span { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-300); font-weight: 600; }
.hero .stat strong { font-size: clamp(1rem, 1.6vw, 1.3rem); color: #fff; font-weight: 800; letter-spacing: -.01em; }

.hero-card {
  background: rgba(255,255,255,.98); color: var(--ink-900);
  border-radius: var(--radius-lg); padding: 34px 30px;
  box-shadow: var(--shadow-lg); border-top: 4px solid var(--gold-500);
  position: relative;
}
.hero-card::after {
  content: ""; position: absolute; top: -14px; right: 28px; width: 56px; height: 56px;
  background: radial-gradient(circle, var(--gold-400), var(--gold-600)); border-radius: 50%;
  box-shadow: var(--gold-glow); opacity: .9;
}
.hero-card h2 { font-size: 1.4rem; margin: 10px 0 12px; }
.hero-card p { color: var(--ink-500); font-size: .95rem; }
.hero-card .pill { margin-bottom: 6px; }

.pill {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--emerald-700); background: var(--emerald-50);
  border: 1px solid var(--emerald-100); padding: 5px 12px; border-radius: 999px;
}

/* ---------- Page head ---------- */
.page-head {
  background:
    radial-gradient(ellipse 70% 100% at 90% 0%, rgba(212,175,55,.14), transparent 60%),
    linear-gradient(160deg, var(--emerald-950), var(--emerald-800));
  color: #fff; padding: 56px 0 48px;
}
.page-head h1 { color: #fff; margin-bottom: 8px; }
.page-head p { color: rgba(255,255,255,.8); max-width: 640px; margin: 0; }
.page-head .stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-top: 32px; }
.page-head .stat {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius); padding: 18px 20px; backdrop-filter: blur(4px);
}
.page-head .stat span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-300); font-weight: 600; margin-bottom: 4px; }
.page-head .stat strong { font-size: 1.35rem; color: #fff; font-weight: 800; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section:nth-of-type(even) { background: var(--mist); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--ink-400); }
.section-head > a { font-weight: 700; color: var(--gold-700); }
.section-head > a:hover { color: var(--gold-600); text-decoration: underline; }

/* ---------- Grids & Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: start; }

.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s;
  padding: 0;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card > *:not(img):not(.abi-cover) { margin-left: 22px; margin-right: 22px; }
.card > .pill { margin-top: 20px; align-self: flex-start; }
.card h3 { margin: 12px 22px 8px; font-size: 1.12rem; }
.card p { color: var(--ink-500); font-size: .92rem; margin: 0 22px 14px; flex: 1; }
.card small { margin: 0 22px 14px; }
.card .btn { margin: 6px 22px 4px; }
.card .abi-program-extra, .card p:has(+ .abi-share) { margin: 10px 22px 18px; }
.card .abi-share { margin: 8px 22px 20px; }

.abi-cover {
  width: 100%; height: 210px; object-fit: cover; border-radius: 0;
  margin: 0 0 0 !important; background: linear-gradient(135deg, var(--emerald-100), var(--gold-100));
  border-bottom: 3px solid var(--gold-500);
}
.card .abi-cover { height: 200px; }

/* Progress bar */
.progress {
  margin: 6px 22px 8px; height: 10px; background: var(--mist); border-radius: 999px; overflow: hidden; position: relative;
}
.progress span {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--emerald-600), var(--gold-500));
  box-shadow: 0 0 10px rgba(16,185,129,.4);
  transition: width 1s cubic-bezier(.22,1,.36,1);
}
.amount-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  margin: 0 22px 16px; font-size: .88rem;
}
.amount-row span:first-child { font-weight: 800; color: var(--emerald-800); font-size: 1rem; }
.amount-row span:last-child { color: var(--ink-400); }

/* ---------- Tables ---------- */
.table-wrap {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow-x: auto; box-shadow: var(--shadow-sm);
}
.table-wrap > table { width: 100%; border-collapse: collapse; min-width: 560px; }
.table-wrap th {
  background: linear-gradient(180deg, var(--emerald-900), var(--emerald-800));
  color: var(--gold-300); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em;
  padding: 14px 16px; text-align: left; font-weight: 700; white-space: nowrap;
}
.table-wrap td { padding: 13px 16px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--ink-700); vertical-align: middle; }
.table-wrap tbody tr { transition: background .15s; }
.table-wrap tbody tr:hover { background: var(--emerald-50); }
.table-wrap .empty { text-align: center; color: var(--ink-400); padding: 32px; }
.donor-name { font-weight: 600; color: var(--emerald-800); }

/* Status badge */
.status-badge, [class*="badge"] {
  display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .76rem; font-weight: 700;
}

/* ---------- Forms ---------- */
.form-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.form-card h2 { font-size: 1.25rem; margin-top: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: .88rem; color: var(--ink-700); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .95rem; color: var(--ink-900); background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--emerald-500);
  box-shadow: 0 0 0 4px rgba(16,185,129,.15);
}
.field textarea { min-height: 100px; resize: vertical; }
.field small { font-size: .78rem; }

/* ---------- Alerts ---------- */
.alert {
  padding: 14px 20px; border-radius: var(--radius-sm); font-weight: 600; margin: 16px 0;
  border-left: 4px solid; font-size: .95rem;
}
.alert-sukses { background: var(--ok-bg); color: var(--ok); border-color: var(--ok); }
.alert-gagal { background: var(--danger-bg); color: var(--danger); border-color: var(--danger); }

/* ---------- Footer ---------- */
.footer {
  background: linear-gradient(180deg, var(--emerald-950), #011a14);
  color: rgba(255,255,255,.75); padding: 56px 0 0; margin-top: 0;
}
.footer h3 { color: var(--gold-300); font-size: 1rem; margin-bottom: 14px; }
.footer p { font-size: .9rem; }
.footer a { color: rgba(255,255,255,.75); }
.footer a:hover { color: var(--gold-300); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding-bottom: 36px; }
.copyright {
  border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; text-align: center;
  font-size: .82rem; color: rgba(255,255,255,.5);
}

/* ---------- Login ---------- */
.login-wrap {
  min-height: calc(100vh - 200px); display: flex; align-items: center; justify-content: center;
  padding: 40px 20px;
  background:
    radial-gradient(ellipse 60% 50% at 20% 0%, rgba(16,185,129,.15), transparent),
    radial-gradient(ellipse 50% 40% at 90% 100%, rgba(212,175,55,.12), transparent),
    var(--mist);
}
.login-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 40px 36px;
  width: 100%; max-width: 420px; box-shadow: var(--shadow-lg);
  border-top: 5px solid var(--gold-500);
}
.login-card .brand { margin-bottom: 22px; }
.login-card h1 { font-size: 1.5rem; text-align: center; }

/* ---------- Admin panel ---------- */
.admin-shell { display: grid; grid-template-columns: 260px minmax(0,1fr); min-height: 100vh; }
.sidebar {
  background: linear-gradient(180deg, var(--emerald-950), var(--emerald-900));
  color: #fff; padding: 24px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar .brand { color: #fff; margin-bottom: 28px; padding: 0 8px; }
.sidebar .brand small { color: var(--gold-300); }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar nav a {
  color: rgba(255,255,255,.78); padding: 11px 14px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .92rem; transition: all .18s; display: flex; align-items: center; gap: 10px;
}
.sidebar nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.sidebar nav a[href*="admin/data"], .sidebar nav a[href*="admin/"] { position: relative; }
.sidebar nav a:hover::before { content: ""; position: absolute; left: 0; top: 20%; height: 60%; width: 3px; background: var(--gold-500); border-radius: 3px; }

.admin-main { padding: 32px 36px; background: var(--cream); min-width: 0; }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.admin-top h1 { font-size: 1.6rem; margin: 0; }
.admin-top p { margin: 4px 0 0; }
.admin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 30px; }
.admin-card {
  background: var(--white); border-radius: var(--radius); padding: 22px 24px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--emerald-600); position: relative; overflow: hidden;
}
.admin-card:nth-child(2) { border-left-color: var(--gold-500); }
.admin-card:nth-child(3) { border-left-color: #e6a23c; }
.admin-card:nth-child(4) { border-left-color: var(--emerald-400); }
.admin-card span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-400); font-weight: 600; margin-bottom: 8px; }
.admin-card strong { font-size: 1.5rem; font-weight: 800; color: var(--emerald-900); letter-spacing: -.02em; }

/* Admin search & pagination */
.abi-search { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0 0 16px; }
.abi-search input[type="text"], .abi-search input:not([type]) {
  flex: 1; min-width: 200px; padding: 11px 16px; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); font: inherit; font-size: .92rem;
}
.abi-search input:focus { outline: none; border-color: var(--emerald-500); box-shadow: 0 0 0 4px rgba(16,185,129,.15); }
.abi-search label { font-weight: 700; font-size: .88rem; color: var(--ink-700); }
.abi-pagination { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.abi-pagination a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px;
  padding: 4px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); color: var(--ink-700); font-weight: 600; font-size: .88rem; transition: all .15s;
}
.abi-pagination a:hover { border-color: var(--emerald-500); color: var(--emerald-700); }
.abi-pagination a[aria-current=page] {
  background: linear-gradient(135deg, var(--emerald-700), var(--emerald-600));
  color: #fff; border-color: var(--emerald-700); box-shadow: 0 4px 12px rgba(4,120,87,.3);
}
.abi-table-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 4px; font-size: .88rem; color: var(--ink-400); }

/* Admin editor (details/summary) */
.abi-editor, .abi-import { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 10px 0; box-shadow: var(--shadow-sm); }
.abi-editor summary, .abi-import summary {
  padding: 18px 24px; cursor: pointer; font-weight: 800; color: var(--emerald-900);
  background: linear-gradient(90deg, var(--emerald-50), var(--gold-100)); list-style: none;
}
.abi-editor summary::-webkit-details-marker, .abi-import summary::-webkit-details-marker { display: none; }
.abi-editor summary::before { content: "+ "; color: var(--gold-600); font-weight: 800; }
.abi-editor[open] summary::before { content: "− "; }
.abi-editor .form-card { border: 0; border-radius: 0; box-shadow: none; max-width: none; width: 100%; }
.abi-import-body { padding: 0 24px 24px; }
.abi-import-body p, .abi-import-body li { font-size: .9rem; color: var(--ink-500); }

/* Admin data layout */
.abi-data-layout { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.abi-data-list { min-width: 0; width: 100%; }
.abi-data-layout .table-wrap { width: 100%; max-width: 100%; }

/* Media upload box */
.abi-media-box { border: 1.5px dashed var(--emerald-400); border-radius: var(--radius); padding: 18px; margin: 16px 0; background: var(--emerald-50); }
.abi-media-box legend { font-weight: 800; color: var(--emerald-800); padding: 0 8px; }
.abi-media-box p { font-size: .85rem; color: var(--ink-500); }
.abi-thumb { display: inline-flex; flex-direction: column; gap: 8px; width: 140px; margin: 12px; vertical-align: top; }
.abi-thumb img { width: 100%; height: 110px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.abi-thumb span { font-size: .8rem; display: flex; align-items: center; gap: 6px; }

/* Detail pages */
.abi-detail { max-width: 900px; margin: 30px auto; padding: 20px; }
.abi-detail h1 { margin-top: 12px; }
.abi-detail p { white-space: pre-line; color: var(--ink-700); }
.abi-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.abi-top a { color: var(--emerald-700); text-decoration: underline; padding: 8px; font-weight: 600; }
.abi-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 16px; margin: 20px 0; }
.abi-gallery img { width: 100%; height: 240px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); transition: transform .25s; }
.abi-gallery img:hover { transform: scale(1.03); }
.abi-share { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }

/* ---------- Trust band (3 langkah) ---------- */
.trust-band {
  background: linear-gradient(135deg, var(--emerald-950), var(--emerald-800));
  border-top: 3px solid var(--gold-500); border-bottom: 3px solid var(--gold-500);
  padding: 48px 0;
}
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.trust-step { text-align: center; color: #fff; }
.trust-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(212,175,55,.16); border: 2px solid var(--gold-500);
  font-size: 1.4rem; font-weight: 800; color: var(--gold-300); margin-bottom: 14px;
  box-shadow: 0 0 20px rgba(212,175,55,.2);
}
.trust-step h3 { color: #fff; font-size: 1.05rem; margin-bottom: 6px; }
.trust-step p { color: rgba(255,255,255,.72); font-size: .88rem; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-card { max-width: 520px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .admin-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .topbar .container span { display: none; }
  .topbar .container { justify-content: flex-end; }
  .mobile-toggle { display: inline-flex !important; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px 22px 20px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg); display: none;
  }
  .nav-links.open { display: flex; animation: slideDown .25s ease; }
  .nav-links a { padding: 12px 16px; border-radius: var(--radius-sm); }
  .nav-links a.btn { width: 100%; margin-top: 8px; }
  @keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

  .hero { padding: 48px 0 60px; }
  .hero .stats { grid-template-columns: repeat(2, 1fr); }
  .page-head .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; gap: 28px; }
  .trust-band { padding: 36px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 44px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }

  /* Admin: collapse sidebar */
  .admin-shell { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; padding: 16px; }
  .sidebar nav { flex-direction: row; flex-wrap: wrap; }
  .sidebar nav a { font-size: .82rem; padding: 8px 12px; }
  .admin-main { padding: 22px 16px; }
  .admin-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .admin-card { padding: 16px; }
  .admin-card strong { font-size: 1.15rem; }
  .table-wrap { font-size: .85rem; }
  .table-wrap th, .table-wrap td { padding: 10px 12px; }
}

@media (max-width: 420px) {
  .hero .stats, .page-head .stats { grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; }
  .admin-grid { grid-template-columns: 1fr; }
  .btn { padding: 11px 20px; font-size: .9rem; }
  .container { padding: 0 16px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
