/* ============================================================
   CENTRAL PAYMENT MIDDLEWARE — Design System
   (Landing Page + Auth + Admin Dashboard)
   ============================================================ */

:root {
    --navy-950: #060d1a;
    --navy-900: #0a1628;
    --navy-800: #0f1e38;
    --navy-700: #16294a;
    --navy-600: #1f3560;
    --orange: #f15a23;
    --orange-dark: #d84a15;
    --orange-soft: rgba(241, 90, 35, 0.12);
    --teal: #2dd4bf;
    --green: #16a34a;
    --green-soft: rgba(22, 163, 74, 0.12);
    --red: #dc2626;
    --red-soft: rgba(220, 38, 38, 0.1);
    --amber: #d97706;
    --amber-soft: rgba(217, 119, 6, 0.14);
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --white: #ffffff;
    --radius: 12px;
    --shadow-sm: 0 1px 2px rgba(6, 13, 26, 0.06);
    --shadow: 0 4px 16px rgba(6, 13, 26, 0.08);
    --shadow-lg: 0 20px 50px rgba(6, 13, 26, 0.18);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: "SF Mono", SFMono-Regular, ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--navy-900);
    background: var(--gray-50);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.25; font-weight: 800; letter-spacing: -0.02em; }

.mono { font-family: var(--mono); font-size: 0.85em; }
.text-muted { color: var(--gray-500); }
.text-orange { color: var(--orange); }

/* ============================================================
   COMPONENTS
   ============================================================ */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 20px; border-radius: 10px; border: 1px solid transparent;
    font-weight: 700; font-size: 14px; cursor: pointer; transition: all 0.15s ease;
    white-space: nowrap;
}
.btn-primary { background: var(--orange); color: var(--white); box-shadow: 0 6px 20px rgba(241, 90, 35, 0.35); }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); }
.btn-outline { border-color: var(--gray-300); background: var(--white); color: var(--navy-800); }
.btn-outline:hover { border-color: var(--navy-800); }
.btn-ghost-light { border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.06); color: var(--white); backdrop-filter: blur(6px); }
.btn-ghost-light:hover { border-color: var(--white); background: rgba(255,255,255,0.12); }
.btn-sm { padding: 6px 12px; font-size: 12.5px; border-radius: 8px; }
.btn-danger { background: var(--red-soft); color: var(--red); }
.btn-danger:hover { background: var(--red); color: var(--white); }

.badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 10px; border-radius: 999px;
    font-size: 11.5px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase;
}
.badge-success { background: var(--green-soft); color: var(--green); }
.badge-danger { background: var(--red-soft); color: var(--red); }
.badge-warning { background: var(--amber-soft); color: var(--amber); }
.badge-muted { background: var(--gray-100); color: var(--gray-500); }
.badge-info { background: rgba(37, 99, 235, 0.1); color: #2563eb; }
.badge-orange { background: var(--orange-soft); color: var(--orange); }

.card {
    background: var(--white); border: 1px solid var(--gray-200);
    border-radius: var(--radius); box-shadow: var(--shadow-sm);
}

pre.code {
    background: var(--navy-950); color: #d7e3f4;
    border: 1px solid var(--navy-700); border-radius: 10px;
    padding: 16px 18px; overflow-x: auto;
    font-family: var(--mono); font-size: 12.5px; line-height: 1.65;
}
pre.code .key { color: #7dd3fc; }
pre.code .str { color: #fdba74; }
pre.code .tag { color: var(--teal); }

/* ============================================================
   LANDING PAGE
   ============================================================ */
.landing { background: var(--white); overflow-x: hidden; }

.landing-nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(6, 13, 26, 0.85); backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.landing-nav-inner {
    max-width: 1200px; margin: 0 auto; padding: 14px 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); }
.brand-logo {
    width: 38px; height: 38px; border-radius: 10px;
    background: linear-gradient(135deg, var(--orange), #ff8a50);
    display: grid; place-items: center;
    font-weight: 900; font-size: 15px; color: var(--white);
    box-shadow: 0 6px 18px rgba(241, 90, 35, 0.4);
}
.brand-text b { display: block; font-size: 15px; font-weight: 800; letter-spacing: 0.01em; }
.brand-text span { display: block; font-size: 10.5px; color: var(--gray-400); letter-spacing: 0.22em; text-transform: uppercase; }
.landing-nav-links { display: flex; gap: 26px; font-size: 14px; font-weight: 600; color: var(--gray-300); }
.landing-nav-links a:hover { color: var(--white); }

.hero {
    position: relative;
    background:
        radial-gradient(1000px 500px at 80% -10%, rgba(241, 90, 35, 0.18), transparent 60%),
        radial-gradient(800px 500px at 10% 110%, rgba(45, 212, 191, 0.12), transparent 60%),
        linear-gradient(180deg, var(--navy-950), var(--navy-900));
    color: var(--white);
    padding: 96px 24px 110px;
}
.hero-grid-bg {
    position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 40%, transparent 100%);
}
.hero-inner { position: relative; max-width: 1200px; margin: 0 auto; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid rgba(45, 212, 191, 0.35); background: rgba(45, 212, 191, 0.08);
    color: var(--teal); font-size: 12.5px; font-weight: 700;
    padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(34px, 5vw, 58px); max-width: 820px; }
.hero h1 .grad {
    background: linear-gradient(90deg, #ff9a62, var(--orange));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { margin: 20px 0 34px; max-width: 640px; font-size: 17px; color: var(--gray-300); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
    margin-top: 64px; max-width: 980px;
}
.hero-stat {
    border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.04);
    border-radius: 14px; padding: 18px 20px; backdrop-filter: blur(4px);
}
.hero-stat b { display: block; font-size: 26px; font-weight: 800; }
.hero-stat span { font-size: 12.5px; color: var(--gray-400); font-weight: 600; }

.section { padding: 88px 24px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-alt { background: var(--gray-50); border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }
.section-head { max-width: 700px; margin-bottom: 46px; }
.section-eyebrow {
    color: var(--orange); font-size: 12.5px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.18em; margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); }
.section-head p { color: var(--gray-500); margin-top: 12px; font-size: 16px; }

/* Architecture diagram */
.arch {
    display: grid; grid-template-columns: 1fr 64px 1.35fr 64px 1fr;
    align-items: stretch; gap: 0;
}
.arch-col { display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.arch-app {
    background: var(--white); border: 1px solid var(--gray-200); border-radius: 12px;
    padding: 12px 16px; font-size: 13.5px; font-weight: 700; color: var(--navy-800);
    display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-sm);
}
.arch-app .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gray-300); flex: none; }
.arch-app.future .dot { background: var(--teal); }
.arch-mid {
    background: linear-gradient(180deg, var(--navy-800), var(--navy-950));
    border-radius: 16px; padding: 26px 28px; color: var(--white);
    box-shadow: var(--shadow-lg); position: relative;
    border: 1px solid rgba(255,255,255,0.08);
}
.arch-mid h3 { font-size: 21px; display: flex; align-items: center; gap: 12px; }
.arch-mid .mid-badge { font-size: 10px; background: var(--orange); padding: 3px 9px; border-radius: 6px; text-transform: uppercase; letter-spacing: 0.1em; }
.arch-features { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; margin-top: 18px; }
.arch-features div { font-size: 13px; color: var(--gray-300); display: flex; gap: 8px; align-items: center; }
.arch-features div::before { content: "▸"; color: var(--orange); font-weight: 900; }
.arch-arrow {
    display: flex; align-items: center; justify-content: center;
    color: var(--gray-400); font-size: 26px; font-weight: 900;
}
.arch-bank {
    background: linear-gradient(160deg, #fff7f2, #ffffff);
    border: 1.5px solid var(--orange-soft); border-radius: 16px; padding: 24px;
    text-align: center; box-shadow: var(--shadow-sm);
}
.arch-bank .bank-title { font-size: 22px; font-weight: 900; color: var(--orange); }
.arch-bank ul { list-style: none; margin-top: 14px; font-size: 13.5px; color: var(--gray-600); }
.arch-bank li { padding: 6px 0; border-bottom: 1px dashed var(--gray-200); }
.arch-bank li:last-child { border-bottom: 0; }

/* Feature cards */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.feature-card { padding: 24px; }
.feature-card .ico {
    width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
    font-size: 20px; background: var(--orange-soft); margin-bottom: 14px;
}
.feature-card h3 { font-size: 15.5px; margin-bottom: 6px; }
.feature-card p { font-size: 13.5px; color: var(--gray-500); }

/* Workflow */
.workflow { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.step-card { padding: 22px; position: relative; }
.step-num {
    width: 34px; height: 34px; border-radius: 10px; background: var(--navy-900); color: var(--white);
    display: grid; place-items: center; font-weight: 800; font-size: 14px; margin-bottom: 14px;
}
.step-card h3 { font-size: 15px; margin-bottom: 8px; }
.step-card p { font-size: 13.5px; color: var(--gray-500); margin-bottom: 14px; }
.api-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.api-table th, .api-table td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--gray-200); font-size: 14px; }
.api-table th { background: var(--navy-900); color: var(--white); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.api-table td .method { font-weight: 800; font-family: var(--mono); font-size: 12px; padding: 2px 8px; border-radius: 6px; }
.method-post { background: var(--green-soft); color: var(--green); }
.method-get { background: rgba(37, 99, 235, 0.1); color: #2563eb; }
.api-table tr:last-child td { border-bottom: 0; }

/* Roadmap */
.roadmap { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0; counter-reset: step; }
.roadmap-step { position: relative; padding: 0 18px 28px 52px; }
.roadmap-step::before {
    counter-increment: step; content: counter(step);
    position: absolute; left: 0; top: 0;
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--navy-900); color: var(--white);
    display: grid; place-items: center; font-weight: 800; font-size: 14px;
}
.roadmap-step::after {
    content: ""; position: absolute; left: 17px; top: 38px; bottom: 4px;
    width: 1.5px; background: var(--gray-200);
}
.roadmap-step:last-child::after { display: none; }
.roadmap-step h4 { font-size: 14.5px; margin-bottom: 4px; }
.roadmap-step p { font-size: 13px; color: var(--gray-500); }

/* CTA */
.cta-band {
    background: linear-gradient(120deg, var(--navy-950), var(--navy-800));
    color: var(--white); border-radius: 20px; padding: 52px;
    display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
    box-shadow: var(--shadow-lg);
}
.cta-band h2 { font-size: clamp(22px, 3vw, 32px); }
.cta-band p { color: var(--gray-300); margin-top: 8px; max-width: 560px; }

.landing-footer {
    background: var(--navy-950); color: var(--gray-400);
    padding: 34px 24px; border-top: 1px solid rgba(255,255,255,0.06);
}
.landing-footer-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    font-size: 13px;
}

/* ============================================================
   AUTH (LOGIN)
   ============================================================ */
.auth-wrap {
    min-height: 100vh; display: grid; place-items: center; padding: 24px;
    background:
        radial-gradient(800px 400px at 90% 0%, rgba(241, 90, 35, 0.16), transparent 55%),
        radial-gradient(700px 400px at 0% 100%, rgba(45, 212, 191, 0.1), transparent 55%),
        linear-gradient(180deg, var(--navy-950), var(--navy-900));
}
.auth-card { width: 100%; max-width: 420px; }
.auth-logo { display: flex; align-items: center; gap: 12px; justify-content: center; margin-bottom: 26px; color: var(--white); }
.auth-box { background: var(--white); border-radius: 16px; padding: 34px 32px; box-shadow: var(--shadow-lg); }
.auth-box h1 { font-size: 21px; margin-bottom: 4px; }
.auth-box .sub { color: var(--gray-500); font-size: 13.5px; margin-bottom: 24px; }
.auth-hint {
    margin-top: 18px; background: var(--gray-100); border: 1px dashed var(--gray-300);
    border-radius: 10px; padding: 12px 14px; font-size: 12.5px; color: var(--gray-600);
}
.auth-back { display: block; text-align: center; margin-top: 20px; color: var(--gray-400); font-size: 13px; }
.auth-back:hover { color: var(--white); }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--navy-800); }
.input, select.input, textarea.input {
    width: 100%; padding: 10px 14px; border: 1.5px solid var(--gray-300); border-radius: 10px;
    font-size: 14px; font-family: var(--font); color: var(--navy-900); background: var(--white);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
textarea.input { min-height: 96px; resize: vertical; }
.field .error { color: var(--red); font-size: 12.5px; margin-top: 5px; }
.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--gray-600); }
.hint { font-size: 12px; color: var(--gray-400); margin-top: 5px; }

/* ============================================================
   ADMIN DASHBOARD
   ============================================================ */
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }

.sidebar {
    background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
    color: var(--gray-300); display: flex; flex-direction: column;
    position: sticky; top: 0; height: 100vh;
}
.sidebar-brand { padding: 20px 20px 16px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.sidebar-nav { flex: 1; padding: 14px 12px; display: flex; flex-direction: column; gap: 3px; overflow-y: auto; }
.sidebar-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--gray-500); padding: 14px 10px 6px; font-weight: 700; }
.nav-item {
    display: flex; align-items: center; gap: 11px; padding: 9px 12px;
    border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--gray-300);
    transition: all 0.12s;
}
.nav-item:hover { background: rgba(255,255,255,0.06); color: var(--white); }
.nav-item.active { background: var(--orange); color: var(--white); box-shadow: 0 6px 16px rgba(241,90,35,0.35); }
.nav-item .ico { width: 20px; text-align: center; font-size: 15px; }
.sidebar-foot { padding: 14px 12px; border-top: 1px solid rgba(255,255,255,0.07); }
.mode-pill {
    display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 800;
    padding: 8px 12px; border-radius: 9px; text-transform: uppercase; letter-spacing: 0.06em;
}
.mode-pill.demo { background: var(--amber-soft); color: var(--amber); }
.mode-pill.live { background: var(--green-soft); color: var(--green); }

.admin-main { display: flex; flex-direction: column; min-width: 0; }
.topbar {
    background: var(--white); border-bottom: 1px solid var(--gray-200);
    padding: 14px 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    position: sticky; top: 0; z-index: 30;
}
.topbar h1 { font-size: 19px; }
.topbar-user { display: flex; align-items: center; gap: 14px; }
.avatar {
    width: 36px; height: 36px; border-radius: 50%; background: var(--navy-900); color: var(--white);
    display: grid; place-items: center; font-weight: 800; font-size: 13px;
}
.content { padding: 28px; flex: 1; }

/* stat cards */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { padding: 20px 22px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.stat-card .label { font-size: 12.5px; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.06em; }
.stat-card .value { font-size: 26px; font-weight: 800; margin-top: 6px; letter-spacing: -0.02em; }
.stat-card .sub { font-size: 12px; color: var(--gray-400); margin-top: 3px; }
.stat-ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; font-size: 19px; flex: none; }
.stat-ico.t1 { background: rgba(37,99,235,0.1); }
.stat-ico.t2 { background: var(--amber-soft); }
.stat-ico.t3 { background: var(--green-soft); }
.stat-ico.t4 { background: var(--orange-soft); }

/* dashboard grid */
.dash-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 16px; margin-bottom: 24px; }
.panel-head { padding: 18px 22px; border-bottom: 1px solid var(--gray-200); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-head h3 { font-size: 15px; }
.panel-body { padding: 20px 22px; }

/* tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th {
    text-align: left; padding: 10px 16px; background: var(--gray-100);
    color: var(--gray-600); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.07em;
    border-bottom: 1px solid var(--gray-200); white-space: nowrap;
}
.table td { padding: 12px 16px; border-bottom: 1px solid var(--gray-200); vertical-align: middle; }
.table tbody tr:hover { background: var(--gray-50); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* filters */
.filters {
    display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
    background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
    padding: 14px 16px; margin-bottom: 18px;
}
.filters .input { width: auto; min-width: 150px; padding: 8px 12px; font-size: 13.5px; }
.filters .input.q { min-width: 240px; }

/* pagination */
.pagination { display: flex; gap: 6px; margin-top: 18px; flex-wrap: wrap; }
.pagination a, .pagination span {
    padding: 7px 13px; border-radius: 8px; font-size: 13px; font-weight: 600;
    border: 1px solid var(--gray-200); background: var(--white); color: var(--gray-600);
}
.pagination .active span { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }
.pagination .disabled span { color: var(--gray-300); background: var(--gray-50); }
.pagination a:hover { border-color: var(--navy-900); color: var(--navy-900); }

/* flash */
.flash { padding: 13px 18px; border-radius: 10px; font-size: 13.5px; font-weight: 600; margin-bottom: 18px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.flash-success { background: var(--green-soft); color: var(--green); border: 1px solid rgba(22,163,74,0.25); }
.flash-error { background: var(--red-soft); color: var(--red); border: 1px solid rgba(220,38,38,0.2); }

/* detail view */
.detail-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; align-items: start; }
.detail-list { list-style: none; }
.detail-list li { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--gray-200); font-size: 13.5px; }
.detail-list li:last-child { border-bottom: 0; }
.detail-list .k { color: var(--gray-500); font-weight: 600; flex: none; }
.detail-list .v { text-align: right; font-weight: 600; word-break: break-all; }

/* expandable log rows */
details.log-row summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: #2563eb; padding: 4px 0; }
details.log-row summary::-webkit-details-marker { display: none; }
details.log-row summary::before { content: "▸"; transition: transform 0.15s; }
details.log-row[open] summary::before { transform: rotate(90deg); }

.key-box {
    background: var(--gray-100); border: 1px dashed var(--gray-300); border-radius: 10px;
    padding: 10px 14px; font-family: var(--mono); font-size: 12px; word-break: break-all;
    display: flex; justify-content: space-between; gap: 12px; align-items: center;
}

/* tabs */
.sub-tabs { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.sub-tabs a { padding: 8px 16px; border-radius: 9px; font-size: 13.5px; font-weight: 700; color: var(--gray-500); border: 1px solid transparent; }
.sub-tabs a:hover { color: var(--navy-900); background: var(--gray-100); }
.sub-tabs a.active { background: var(--navy-900); color: var(--white); }

/* api docs */
.doc-section { margin-bottom: 34px; }
.doc-section h3 { font-size: 17px; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.doc-section > p { color: var(--gray-600); font-size: 14px; margin-bottom: 14px; max-width: 820px; }
.doc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .arch { grid-template-columns: 1fr; }
    .arch-arrow { transform: rotate(90deg); padding: 10px 0; }
    .dash-grid, .detail-grid, .doc-cols { grid-template-columns: 1fr; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
    .admin-shell { grid-template-columns: 1fr; }
    .sidebar { position: static; height: auto; }
    .sidebar-nav { flex-direction: row; flex-wrap: wrap; }
    .sidebar-label, .sidebar-foot { display: none; }
    .landing-nav-links { display: none; }
}
@media (max-width: 560px) {
    .hero-stats { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .content { padding: 16px; }
}
