:root {
    --brand: #1d4ed8;
    --brand-600: #2563eb;
    --brand-700: #1d4ed8;
    --brand-050: #eff4ff;
    --accent: #15803d;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --surface: #ffffff;
    --ground: #f6f8fb;
    --radius: 14px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .04);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, .08);
}

body {
    background: var(--ground);
    color: var(--ink);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--brand-700); }
a:hover { color: var(--brand-600); }

.app-navbar {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 1030;
}
.app-navbar .navbar-brand { font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.app-navbar .nav-link { color: var(--muted); font-weight: 500; border-radius: 8px; padding: .4rem .7rem; }
.app-navbar .nav-link:hover { color: var(--ink); background: var(--ground); }
.app-navbar .nav-link.active { color: var(--brand-700); background: var(--brand-050); }

.card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.card .card-header { background: transparent; border-bottom: 1px solid var(--line); font-weight: 600; }

.btn { border-radius: 10px; font-weight: 600; }
.btn-primary { background: var(--brand-700); border-color: var(--brand-700); }
.btn-primary:hover { background: var(--brand-600); border-color: var(--brand-600); }
.btn-outline-secondary { border-color: var(--line); color: var(--ink); }
.btn-outline-secondary:hover { background: var(--ground); color: var(--ink); border-color: var(--line); }

.form-control, .form-select { border-radius: 10px; border-color: var(--line); }
.form-control:focus, .form-select:focus { border-color: var(--brand-600); box-shadow: 0 0 0 3px var(--brand-050); }
.form-label { font-weight: 600; font-size: .85rem; color: var(--ink); }

.badge { font-weight: 600; border-radius: 8px; padding: .35em .6em; }

.table { --bs-table-bg: var(--surface); border-color: var(--line); }
.table > thead th { color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; border-bottom-color: var(--line); }
.table > :not(caption) > * > * { border-bottom-color: var(--line); }

.page-title { font-weight: 800; letter-spacing: -.02em; }
.section-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }

.empty-state { text-align: center; color: var(--muted); padding: 2.5rem 1rem; }

.alert { border-radius: 12px; border: 1px solid transparent; }

.stat-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.stat-tile .stat-label { font-size: .8rem; color: var(--muted); font-weight: 600; }
.stat-tile .stat-value { font-size: 1.8rem; font-weight: 800; letter-spacing: -.02em; }

.guest-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(1200px 500px at 50% -10%, var(--brand-050), var(--ground));
}

.marketing-hero {
    background: linear-gradient(180deg, var(--brand-050), var(--ground));
    border-bottom: 1px solid var(--line);
}
.marketing-hero h1 { font-weight: 800; letter-spacing: -.03em; }
.role-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; height: 100%; transition: transform .15s ease, box-shadow .15s ease; }
.role-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.role-card .role-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-050); color: var(--brand-700); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 800; }

.step-num { width: 30px; height: 30px; border-radius: 50%; background: var(--brand-700); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); background: var(--surface); }

@media (max-width: 575.98px) {
    .stat-tile .stat-value { font-size: 1.4rem; }
}
