:root {
    --ink: #14213d;
    --muted: #6b7280;
    --brand: #1c4ed8;
    --brand-2: #00a86b;
    --gold: #f5b942;
    --surface: #ffffff;
    --line: #e5e7eb;
    --soft: #f5f7fb;
}

body {
    background: var(--soft);
    color: var(--ink);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.glass-nav {
    background: linear-gradient(135deg, #0f1e46, #102f63);
    box-shadow: 0 12px 30px rgba(15, 30, 70, .16);
}

.brand-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
    padding: 2px;
}

.hero {
    min-height: 74vh;
    display: grid;
    align-items: center;
    background:
        linear-gradient(110deg, rgba(9, 22, 50, .94), rgba(17, 54, 93, .82)),
        url("../images/hero.svg") center/cover no-repeat;
    color: #fff;
}

.hero h1 {
    font-size: clamp(2.35rem, 5vw, 4.7rem);
    line-height: 1.02;
    letter-spacing: 0;
}

.hero .carousel,
.hero .carousel-inner,
.hero .carousel-item {
    min-height: 74vh;
}

.hero .carousel-item {
    display: grid;
    align-items: center;
}

.section-kicker {
    color: var(--brand-2);
    font-weight: 800;
    text-transform: uppercase;
    font-size: .78rem;
    letter-spacing: .08em;
}

.page-hero {
    background: linear-gradient(135deg, #0f1e46, #164e63);
    color: #fff;
    padding: 72px 0;
}

.feature-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #e0f2fe;
    color: var(--brand);
    margin-bottom: 16px;
}

.process-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.step-number {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--brand);
    color: #fff;
    font-weight: 800;
    flex: 0 0 auto;
}

.premium-card,
.auth-card,
.metric-card,
.table-shell {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(20, 33, 61, .08);
}

.auth-wrap {
    min-height: calc(100vh - 136px);
    display: grid;
    place-items: center;
    padding: 48px 0;
}

.auth-card {
    width: min(100%, 520px);
    padding: 32px;
}

.btn-premium {
    background: linear-gradient(135deg, var(--brand), #0f766e);
    color: #fff;
    border: 0;
}

.btn-premium:hover {
    color: #fff;
    filter: brightness(.95);
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    align-items: start;
}

.sidebar {
    position: sticky;
    top: 88px;
    background: #111827;
    border-radius: 8px;
    padding: 14px;
    min-height: 420px;
}

.sidebar a {
    display: flex;
    gap: 10px;
    align-items: center;
    color: #dbeafe;
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 6px;
    margin-bottom: 6px;
}

.sidebar a:hover {
    background: rgba(255, 255, 255, .09);
    color: #fff;
}

.admin-sidebar {
    background: #172554;
}

.metric-card {
    padding: 22px;
}

.metric-card .icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.status-pill {
    border-radius: 999px;
    padding: 5px 12px;
    font-weight: 700;
    font-size: .78rem;
    text-transform: uppercase;
}

.status-pending,
.status-hold,
.status-awaiting_utr,
.status-open,
.status-in_progress {
    background: #fff7ed;
    color: #b45309;
}

.status-approved,
.status-resolved,
.status-closed {
    background: #ecfdf5;
    color: #047857;
}

.status-rejected,
.status-suspended,
.status-disabled,
.status-terminated {
    background: #fef2f2;
    color: #b91c1c;
}

.status-active {
    background: #ecfdf5;
    color: #047857;
}

.preview-box {
    width: 100%;
    min-height: 88px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: var(--muted);
    background: #f8fafc;
    overflow: hidden;
}

.preview-box img {
    max-width: 100%;
    max-height: 140px;
    object-fit: contain;
}

.footer-band {
    background: #0f172a;
    color: #cbd5e1;
}

.footer-band a {
    display: block;
    color: #cbd5e1;
    text-decoration: none;
    margin: 8px 0;
}

.footer-band a:hover {
    color: #fff;
}

.table > :not(caption) > * > * {
    vertical-align: middle;
}

@media (max-width: 991px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        min-height: auto;
    }
}
