:root {
    --gold: #d4af37;
    --gold-bright: #f4c542;
    --ink: #101217;
    --charcoal: #181b22;
    --panel: #ffffff;
    --muted: #687083;
    --line: rgba(16, 18, 23, .1);
}

* { box-sizing: border-box; }
body {
    background: #f4f6f9;
    color: var(--ink);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}
a { color: #8c6d11; }
.public-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(212, 175, 55, .2), transparent 28rem),
        linear-gradient(135deg, #101217 0%, #182332 48%, #f7f7f4 48.1%, #ffffff 100%);
}
.public-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem clamp(1rem, 5vw, 4rem);
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0;
}
.brand-mark {
    display: grid;
    place-items: center;
    width: 2.45rem;
    height: 2.45rem;
    border-radius: .65rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-bright));
    color: #151515;
    box-shadow: 0 10px 30px rgba(212, 175, 55, .25);
}
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 5rem);
    padding: 3rem clamp(1rem, 5vw, 4rem) 4rem;
}
.hero h1 {
    color: #fff;
    font-size: clamp(2.4rem, 7vw, 5.8rem);
    line-height: .95;
    font-weight: 900;
    margin-bottom: 1rem;
}
.hero p { color: rgba(255,255,255,.78); font-size: 1.1rem; max-width: 42rem; }
.hero-panel, .auth-card, .card-soft {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(16, 18, 23, .12);
}
.hero-panel { padding: 1.25rem; }
.step-row {
    display: grid;
    grid-template-columns: 2.8rem 1fr;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--line);
}
.step-row:last-child { border-bottom: 0; }
.step-icon {
    display: grid;
    place-items: center;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 8px;
    background: rgba(212,175,55,.16);
    color: #8c6d11;
}
.btn-gold {
    --bs-btn-bg: var(--gold);
    --bs-btn-border-color: var(--gold);
    --bs-btn-color: #151515;
    --bs-btn-hover-bg: var(--gold-bright);
    --bs-btn-hover-border-color: var(--gold-bright);
    font-weight: 800;
}
.btn-outline-gold {
    --bs-btn-color: var(--gold-bright);
    --bs-btn-border-color: rgba(212,175,55,.5);
    --bs-btn-hover-bg: var(--gold);
    --bs-btn-hover-border-color: var(--gold);
    --bs-btn-hover-color: #151515;
    font-weight: 700;
}
.fw-black { font-weight: 900; }
.auth-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1rem;
    background:
        radial-gradient(circle at 20% 10%, rgba(244,197,66,.22), transparent 20rem),
        linear-gradient(135deg, #0f1115, #182332);
}
.auth-card { width: min(100%, 30rem); padding: clamp(1.25rem, 4vw, 2rem); }
.app-shell, .admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 17rem 1fr;
}
.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem;
    background: #101217;
}
.sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: .65rem;
    color: rgba(255,255,255,.72);
    border-radius: 8px;
    padding: .8rem .9rem;
    font-weight: 700;
    font-size: .92rem;
}
.sidebar .nav-link.active, .sidebar .nav-link:hover {
    color: #151515;
    background: linear-gradient(135deg, var(--gold), var(--gold-bright));
}
.main-content { min-width: 0; }
.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    min-height: 4.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem clamp(1rem, 3vw, 2rem);
    background: rgba(255,255,255,.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}
.content-wrap { padding: clamp(1rem, 3vw, 2rem); padding-bottom: 6rem; }
.icon-btn, .avatar {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    text-decoration: none;
    font-weight: 800;
}
.badge-dot {
    position: absolute;
    top: -.35rem;
    right: -.35rem;
    min-width: 1.25rem;
    height: 1.25rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #dc3545;
    color: #fff;
    font-size: .7rem;
}
.metric-card {
    padding: 1rem;
    min-height: 7.4rem;
    border-left: 4px solid var(--gold);
}
.metric-card .label { color: var(--muted); font-size: .78rem; font-weight: 800; }
.metric-card .value { font-size: clamp(1.35rem, 3vw, 2rem); font-weight: 900; }
.task-card { display: flex; flex-direction: column; height: 100%; padding: 1rem; }
.platform-icon {
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #101217;
    color: var(--gold-bright);
    font-weight: 900;
}
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border-radius: 999px;
    padding: .25rem .65rem;
    font-size: .78rem;
    font-weight: 800;
}
.status-pending { background: #fff3cd; color: #8a5a00; }
.status-approved { background: #cfe2ff; color: #084298; }
.status-paid, .status-active, .status-completed, .status-qualified, .status-rewarded { background: #d1e7dd; color: #0f5132; }
.status-rejected, .status-inactive, .status-banned { background: #f8d7da; color: #842029; }
.status-suspended { background: #ffe5d0; color: #8a3c00; }
.mobile-nav { display: none; }
.table-responsive { border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.form-control, .form-select { border-radius: 8px; }
.readonly-box {
    padding: .85rem 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8f9fb;
    font-weight: 800;
}

@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; padding-top: 1.5rem; }
    .public-page { background: linear-gradient(160deg, #101217 0%, #182332 55%, #fff 55.1%, #fff 100%); }
    .app-shell, .admin-shell { display: block; }
    .sidebar { display: none; }
    .topbar { top: 0; }
    .mobile-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 20;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: .2rem;
        padding: .45rem;
        background: #101217;
        border-top: 1px solid rgba(255,255,255,.08);
    }
    .mobile-nav a {
        display: grid;
        place-items: center;
        gap: .15rem;
        min-height: 3.5rem;
        color: rgba(255,255,255,.68);
        text-decoration: none;
        font-size: .68rem;
        font-weight: 800;
    }
    .mobile-nav a.active { color: var(--gold-bright); }
    .mobile-nav i { font-size: 1.25rem; }
}
