:root {
    --bg: #080808;
    --bg2: #101010;
    --bg3: #181818;
    --border: #242424;
    --text: #efefef;
    --text2: #888;
    --accent: #ffffff;
    --green: #22c55e;
    --red: #ef4444;
    --yellow: #f59e0b;
    --blue: #3b82f6;
}
:root[data-theme="light"] {
    --bg: #ffffff;
    --bg2: #f8fafc;
    --bg3: #f1f5f9;
    --border: #e2e8f0;
    --text: #0f172a;
    --text2: #64748b;
    --accent: #0f172a;
}


* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

img {
    max-width: 100%;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 64px;
    padding: 12px clamp(16px, 5vw, 44px);
    background: rgba(8, 8, 8, 0.92);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
}

.brand {
    font-family: "Syne", sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    background: var(--bg2);
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 80px 24px 24px;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    box-shadow: 4px 0 24px rgba(0,0,0,0.1);
    border-right: 1px solid var(--border);
    overflow-y: auto;
}

.nav.open {
    transform: translateX(0);
}

.nav a {
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 8px 11px;
    color: var(--text2);
    border-radius: 8px;
}

.nav a:hover,
.nav .nav-cta {
    color: var(--bg);
    background: var(--accent);
}

.backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

.topbar-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-toggle, .menu-toggle {
    background: transparent;
    border: none;
    color: var(--text2);
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    min-height: auto;
}

.theme-toggle:hover, .menu-toggle:hover {
    color: var(--text);
    background: var(--bg3);
    transform: none;
    opacity: 1;
}

:root[data-theme="light"] .icon-sun { display: none; }
:root:not([data-theme="light"]) .icon-moon { display: none; }


.page {
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: 24px clamp(16px, 5vw, 44px) 52px;
}

.hero {
    min-height: calc(100vh - 150px);
    display: grid;
    align-content: center;
    gap: 24px;
    padding: 30px 0;
}

.hero h1,
.section-title {
    font-family: "Syne", sans-serif;
    font-size: clamp(2.4rem, 9vw, 5.8rem);
    line-height: 0.95;
    margin: 0;
}

.section-title {
    font-size: clamp(2rem, 8vw, 4rem);
}

.lede {
    max-width: 680px;
    color: var(--text2);
    font-size: 1.05rem;
    line-height: 1.65;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
}

.card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px;
    transition: all 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

:root:not([data-theme="light"]) .card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.card h2,
.card h3 {
    margin-top: 0;
    font-family: "Syne", sans-serif;
}

.muted {
    color: var(--text2);
}

.stack {
    display: grid;
    gap: 14px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.button,
button {
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    padding: 11px 15px;
    background: var(--accent);
    color: var(--bg);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.button:hover,
button:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

.button.secondary,
button.secondary {
    background: var(--bg3);
    color: var(--text);
    border: 1px solid var(--border);
}

.button.danger {
    background: var(--red);
    color: white;
}

.form {
    display: grid;
    gap: 14px;
}

.field {
    display: grid;
    gap: 7px;
}

label {
    color: var(--text2);
    font-size: 0.92rem;
}

input,
select,
textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg3);
    color: var(--text);
    padding: 11px 12px;
    font: inherit;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.alert {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 14px;
    background: var(--bg2);
}

.alert-error,
.alert-danger {
    border-color: rgba(239, 68, 68, 0.45);
    color: #fecaca;
}

.alert-success {
    border-color: rgba(34, 197, 94, 0.45);
    color: #bbf7d0;
}

.alert-warning {
    border-color: rgba(245, 158, 11, 0.45);
    color: #fde68a;
}

.metric {
    display: grid;
    gap: 5px;
}

.metric strong {
    font-family: "Syne", sans-serif;
    font-size: 1.65rem;
}

.survey-card {
    display: grid;
    gap: 12px;
}

.survey-meta,
.row {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--text2);
    background: var(--bg3);
    font-size: 0.82rem;
}

.badge-approved,
.badge-verified,
.badge-paid,
.badge-active,
.badge-success {
    border-color: rgba(34, 197, 94, 0.45);
    color: #bbf7d0;
}

.badge-rejected,
.badge-reversed,
.badge-banned,
.badge-suspended,
.badge-danger {
    border-color: rgba(239, 68, 68, 0.45);
    color: #fecaca;
}

.badge-under_review,
.badge-pending,
.badge-processing,
.badge-warning {
    border-color: rgba(245, 158, 11, 0.45);
    color: #fde68a;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

th,
td {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

th {
    color: var(--text2);
    font-weight: 500;
}

.footer {
    border-top: 1px solid var(--border);
    padding: 24px clamp(16px, 5vw, 44px);
    color: var(--text2);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
    gap: 16px;
    align-items: start;
}

.admin-shell .page {
    width: min(1280px, 100%);
}

@media (max-width: 760px) {
    .page {
        padding-top: 18px;
    }

    .split {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding-top: 36px;
    }
}
