:root {
    --bg: #f3f6fb;
    --bg-soft: #ffffff;
    --text: #0f172a;
    --text-soft: #64748b;
    --border: #e2e8f0;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-soft: #dbeafe;
    --success: #16a34a;
    --danger: #dc2626;
    --shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 20px 50px rgba(15, 23, 42, 0.08);
    --radius: 22px;
    --radius-sm: 16px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 28%),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent 24%),
        var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    min-height: 100vh;
}

a {
    text-decoration: none;
}

.navbar {
    background: rgba(15, 23, 42, 0.92) !important;
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 24px rgba(2, 6, 23, 0.18);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.03em;
}

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 20%, rgba(96, 165, 250, 0.28), transparent 22%),
        radial-gradient(circle at 80% 30%, rgba(59, 130, 246, 0.18), transparent 20%),
        linear-gradient(135deg, #0f172a 0%, #172554 55%, #1d4ed8 100%);
    color: #fff;
    padding: 110px 0 90px;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -120px -120px auto;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    filter: blur(10px);
}

.hero .badge {
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 700;
}

.hero h1 {
    font-size: clamp(2.3rem, 5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.04em;
    max-width: 900px;
    margin: 0 auto;
}

.hero p {
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.08rem;
}

.hero .btn {
    min-width: 190px;
    border-radius: 14px;
    padding: 14px 22px;
    font-weight: 700;
}

.btn {
    border-radius: 14px;
    font-weight: 600;
    padding: 10px 16px;
    transition: 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: 0;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24);
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.28);
}

.btn-outline-light,
.btn-outline-primary,
.btn-outline-secondary {
    border-radius: 14px;
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-outline-light:hover {
    transform: translateY(-1px);
}

.card,
.feature-card,
.auth-card,
.dashboard-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(12px);
}

.feature-card,
.auth-card,
.dashboard-card {
    overflow: hidden;
}

.feature-card {
    height: 100%;
    padding: 28px;
}

.feature-card h3,
.feature-card h4,
.dashboard-card h2,
.dashboard-card h3,
.auth-card h1,
.auth-card h4 {
    color: var(--text);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.auth-card {
    padding: 14px;
}

.auth-card .form-control {
    min-height: 50px;
}

.dashboard-card {
    padding: 18px;
}

.dashboard-card .border {
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-sm);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.form-control,
.form-select,
textarea.form-control {
    background: #fff;
    border: 1px solid #dbe3ee;
    border-radius: 14px;
    color: var(--text);
    padding: 12px 14px;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
    border-color: rgba(37, 99, 235, 0.55);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

label.form-label {
    color: var(--text);
    font-weight: 700;
    margin-bottom: 8px;
}

.table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(248, 250, 252, 0.8);
    --bs-table-hover-bg: rgba(239, 246, 255, 0.85);
    margin-bottom: 0;
}

.table thead th {
    color: var(--text-soft);
    font-size: 0.84rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--border);
    padding-top: 0;
}

.table tbody td {
    vertical-align: middle;
    border-color: #eef2f7;
    padding-top: 16px;
    padding-bottom: 16px;
}

.alert {
    border: 0;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.alert-danger {
    background: #fef2f2;
    color: #991b1b;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
}

.text-muted {
    color: var(--text-soft) !important;
}

.section-shell {
    padding: 48px 0;
}

.page-title {
    font-size: clamp(1.8rem, 2.5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 8px;
    color: var(--text);
}

.page-subtitle {
    color: var(--text-soft);
    margin-bottom: 0;
}

.stats-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-dark);
    border-radius: 999px;
    font-weight: 700;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-state h2 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--text-soft);
    margin-bottom: 20px;
}

.topbar-user {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 600;
}

.topbar-user-badge {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    font-weight: 800;
    color: #fff;
}

.account-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    padding: 8px 12px;
    font-size: 0.92rem;
    font-weight: 700;
}

.quick-card-title {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.quick-card-text {
    color: var(--text-soft);
    margin-bottom: 20px;
}

@media (max-width: 991.98px) {
    .hero {
        padding: 88px 0 72px;
    }

    .navbar .btn {
        padding: 8px 14px;
    }
}

@media (max-width: 767.98px) {
    .hero {
        padding: 72px 0 58px;
    }

    .feature-card,
    .auth-card,
    .dashboard-card {
        border-radius: 18px;
    }

    .page-title {
        font-size: 1.6rem;
    }
}