@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg: #f5f8ff;
    --surface: rgba(255, 255, 255, .84);
    --surface-solid: #ffffff;
    --surface-soft: #eef5ff;
    --dark: #08111f;
    --dark-2: #0f172a;
    --muted: #64748b;
    --line: rgba(148, 163, 184, .22);
    --brand: #2563eb;
    --brand-2: #0ea5e9;
    --brand-3: #22c55e;
    --orange: #f59e0b;
    --red: #ef4444;
    --purple: #8b5cf6;
    --shadow-sm: 0 10px 28px rgba(15, 23, 42, .06);
    --shadow-md: 0 22px 60px rgba(15, 23, 42, .10);
    --shadow-lg: 0 36px 100px rgba(15, 23, 42, .18);
    --radius: 22px;
    --radius-lg: 34px;
    --radius-xl: 44px;
}

* {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 10%, rgba(37, 99, 235, .16), transparent 25%),
        radial-gradient(circle at 90% 0%, rgba(14, 165, 233, .15), transparent 28%),
        radial-gradient(circle at 50% 100%, rgba(34, 197, 94, .10), transparent 28%),
        linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
    color: var(--dark-2);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(15, 23, 42, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, .035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), transparent 72%);
    pointer-events: none;
    z-index: -1;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--dark-2);
    letter-spacing: -.045em;
}

a { text-decoration: none; }
a:hover { text-decoration: none; }

.app-navbar {
    min-height: 72px;
    background: rgba(8, 17, 31, .82);
    border-bottom: 1px solid rgba(255,255,255,.13);
    box-shadow: 0 18px 48px rgba(8, 17, 31, .22);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.navbar-brand {
    color: #fff !important;
    font-weight: 950;
    letter-spacing: -.05em;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 16px 34px rgba(37, 99, 235, .30);
}

.navbar-toggler {
    border: 1px solid rgba(255,255,255,.18) !important;
    border-radius: 14px;
    box-shadow: none !important;
}

.app-navbar .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.72) !important;
    border-radius: 999px;
    padding: 10px 14px !important;
    font-weight: 750;
    transition: .22s ease;
}

.app-navbar .nav-link:hover,
.app-navbar .nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,.12);
}

.nav-role {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #bfdbfe;
    background: rgba(59, 130, 246, .14);
    border: 1px solid rgba(147, 197, 253, .22);
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 800;
}

.btn-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0 !important;
    border-radius: 999px !important;
    color: #0f172a !important;
    background: #fff !important;
    font-weight: 850 !important;
    padding: 10px 16px !important;
    box-shadow: 0 12px 28px rgba(0,0,0,.16);
}

.app-main {
    min-height: calc(100vh - 72px);
    padding: 34px 0;
}

.app-container {
    max-width: 1480px;
    padding-left: 24px;
    padding-right: 24px;
}

.app-footer {
    padding: 24px 0;
    color: var(--muted);
    border-top: 1px solid var(--line);
    background: rgba(255,255,255,.62);
    backdrop-filter: blur(16px);
}

.footer-stack {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.alert {
    border: 0 !important;
    border-radius: 22px !important;
    box-shadow: var(--shadow-sm);
    font-weight: 650;
    padding: 16px 18px !important;
}

.alert-success { background: #dcfce7 !important; color: #166534 !important; }
.alert-danger { background: #fee2e2 !important; color: #991b1b !important; }
.alert-warning { background: #fef3c7 !important; color: #92400e !important; }
.alert-info { background: #dbeafe !important; color: #1e40af !important; }

.card,
.card-modern,
.glass-card,
.table-shell {
    border: 1px solid rgba(148, 163, 184, .22) !important;
    background: var(--surface) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-md) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    overflow: hidden;
}

.card:hover,
.card-modern:hover,
.glass-card:hover {
    box-shadow: var(--shadow-lg) !important;
}

.card-body { padding: 28px !important; }
.card-header {
    background: linear-gradient(135deg, rgba(255,255,255,.90), rgba(239,246,255,.90)) !important;
    border-bottom: 1px solid var(--line) !important;
    font-weight: 900;
    padding: 20px 24px !important;
}

.page-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    padding: 34px;
    color: #fff;
    background:
        radial-gradient(circle at 88% 18%, rgba(56, 189, 248, .36), transparent 34%),
        radial-gradient(circle at 15% 100%, rgba(34, 197, 94, .20), transparent 30%),
        linear-gradient(135deg, #08111f 0%, #172554 48%, #1d4ed8 100%);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,255,255,.14);
}

.page-hero h1,
.page-hero h2,
.page-hero h3,
.page-hero p { color: #fff !important; }
.page-hero p { color: #dbeafe !important; }

.page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    color: #e0f2fe;
    font-weight: 800;
    margin-bottom: 16px;
}

.page-title {
    font-weight: 950;
    letter-spacing: -.065em;
    font-size: clamp(2rem, 4vw, 4rem);
    margin-bottom: 10px;
}

.page-subtitle { color: var(--muted); line-height: 1.8; }
.page-hero .page-subtitle { color: #dbeafe !important; }

.btn {
    border-radius: 16px !important;
    font-weight: 850 !important;
    letter-spacing: -.02em;
    padding: 11px 18px;
    transition: .22s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn:hover { transform: translateY(-2px); }
.btn-primary,
.btn.btn-primary {
    border: 0 !important;
    background: linear-gradient(135deg, var(--brand), var(--brand-2)) !important;
    box-shadow: 0 16px 34px rgba(37, 99, 235, .24);
}
.btn-success { border: 0 !important; background: linear-gradient(135deg, #16a34a, #22c55e) !important; }
.btn-danger { border: 0 !important; background: linear-gradient(135deg, #dc2626, #ef4444) !important; }
.btn-warning { border: 0 !important; background: linear-gradient(135deg, #f59e0b, #facc15) !important; color: #78350f !important; }
.btn-light { background: #fff !important; border: 0 !important; color: var(--brand) !important; }
.btn-outline-primary { border: 1px solid rgba(37, 99, 235, .32) !important; color: var(--brand) !important; background: rgba(255,255,255,.78) !important; }
.btn-outline-primary:hover { background: var(--brand) !important; color: #fff !important; }
.btn-outline-secondary { border-color: rgba(100,116,139,.28) !important; color: #475569 !important; background: rgba(255,255,255,.72) !important; }

.form-control,
.form-select,
input,
select,
textarea {
    border: 1px solid rgba(148, 163, 184, .32) !important;
    border-radius: 16px !important;
    background: rgba(255,255,255,.92) !important;
    min-height: 46px;
    color: var(--dark-2) !important;
    box-shadow: none !important;
}
.form-control:focus,
.form-select:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: rgba(37,99,235,.72) !important;
    box-shadow: 0 0 0 4px rgba(37,99,235,.12) !important;
}
.form-label,
label { font-weight: 850; color: #334155; margin-bottom: 8px; }

.table-shell { padding: 14px; }
.table-responsive { border-radius: 24px; }
.table { margin-bottom: 0 !important; vertical-align: middle; }
.table thead th {
    background: #f8fafc !important;
    color: #0f172a !important;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .055em;
    border-bottom: 1px solid rgba(148, 163, 184, .28) !important;
    padding: 16px 14px !important;
    white-space: nowrap;
}
.table tbody td { padding: 16px 14px !important; border-bottom: 1px solid rgba(226,232,240,.95) !important; }
.table tbody tr { transition: .18s ease; }
.table tbody tr:hover { background: rgba(239,246,255,.72) !important; }
.table strong { color: #0f172a; }

.badge,
span.badge {
    border-radius: 999px !important;
    padding: 7px 12px !important;
    font-weight: 850 !important;
    letter-spacing: -.01em;
}
.text-bg-success,
.bg-success { background: #dcfce7 !important; color: #166534 !important; }
.text-bg-warning,
.bg-warning { background: #fef3c7 !important; color: #92400e !important; }
.text-bg-danger,
.bg-danger { background: #fee2e2 !important; color: #991b1b !important; }
.text-bg-secondary,
.bg-secondary { background: #e2e8f0 !important; color: #334155 !important; }
.text-bg-primary,
.bg-primary { background: #dbeafe !important; color: #1e40af !important; }

.stat-card {
    position: relative;
    min-height: 140px;
    border-radius: 30px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.84);
    box-shadow: var(--shadow-md);
    padding: 24px;
    overflow: hidden;
}
.stat-card::after {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    right: -70px;
    top: -70px;
    background: radial-gradient(circle, rgba(37,99,235,.16), transparent 70%);
}
.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 16px 34px rgba(37,99,235,.22);
    font-size: 1.35rem;
}
.stat-value {
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    font-weight: 950;
    letter-spacing: -.055em;
    line-height: 1;
}
.stat-label { color: var(--muted); font-weight: 750; }

.icon-box,
.feature-icon,
.small-icon {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 16px 34px rgba(37,99,235,.22);
    font-size: 1.45rem;
}

.action-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255,255,255,.70);
    border: 1px solid var(--line);
    transition: .22s ease;
}
.action-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }

.timeline-modern { position: relative; display: grid; gap: 18px; }
.timeline-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    position: relative;
}
.timeline-step .dot {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #cbd5e1;
    margin-top: 4px;
    box-shadow: 0 0 0 7px rgba(203,213,225,.24);
    flex: 0 0 auto;
}
.timeline-step.active .dot {
    background: linear-gradient(135deg, var(--brand), var(--brand-3));
    box-shadow: 0 0 0 7px rgba(37,99,235,.12);
}
.timeline-step strong { color: #0f172a; }

.auth-shell {
    min-height: calc(100vh - 180px);
    display: grid;
    place-items: center;
}
.auth-wrap {
    width: min(100%, 1060px);
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(148,163,184,.22);
    background: rgba(255,255,255,.86);
}
.auth-side {
    padding: 42px;
    color: #fff;
    background:
        radial-gradient(circle at 86% 16%, rgba(56,189,248,.36), transparent 34%),
        linear-gradient(135deg, #08111f, #1d4ed8);
}
.auth-side h2 { color: #fff; font-weight: 950; font-size: clamp(2rem, 4vw, 3.4rem); }
.auth-side p { color: #dbeafe !important; line-height: 1.8; }
.auth-form { padding: 42px; }
.auth-card { max-width: none; margin: 0; }

.home-bleed {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: -34px;
}
.home-hero {
    min-height: calc(100vh - 72px);
    display: grid;
    align-items: center;
    padding: clamp(28px, 5vw, 72px);
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 18%, rgba(37,99,235,.18), transparent 30%),
        radial-gradient(circle at 88% 10%, rgba(14,165,233,.24), transparent 30%),
        linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
}
.mega-card {
    min-height: 78vh;
    border-radius: 48px;
    padding: clamp(30px, 5vw, 78px);
    color: #fff;
    background:
        radial-gradient(circle at 88% 20%, rgba(56,189,248,.34), transparent 34%),
        radial-gradient(circle at 38% 100%, rgba(34,197,94,.20), transparent 30%),
        linear-gradient(135deg, #08111f 0%, #172554 45%, #1d4ed8 100%);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,255,255,.14);
    overflow: hidden;
    position: relative;
}
.mega-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), transparent);
}
.mega-card > * { position: relative; z-index: 2; }
.home-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #e0f2fe;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    padding: 11px 16px;
    border-radius: 999px;
    font-weight: 850;
}
.home-title {
    color: #fff;
    font-size: clamp(3rem, 7vw, 7rem);
    font-weight: 950;
    line-height: .96;
    letter-spacing: -.08em;
    margin: 24px 0;
}
.gradient-text {
    background: linear-gradient(90deg, #bfdbfe, #fff, #bbf7d0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.home-desc { color: #dbeafe !important; font-size: clamp(1rem, 1.3vw, 1.25rem); line-height: 1.9; max-width: 760px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-preview {
    border-radius: 34px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    backdrop-filter: blur(18px);
    box-shadow: 0 28px 80px rgba(0,0,0,.24);
    overflow: hidden;
}
.preview-head { height: 58px; padding: 0 22px; display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,.72); border-bottom: 1px solid rgba(255,255,255,.12); }
.preview-dot { width: 11px; height: 11px; border-radius: 999px; background: rgba(255,255,255,.55); }
.preview-body { padding: 24px; }
.preview-item { padding: 18px; background: rgba(255,255,255,.92); color: #0f172a; border-radius: 22px; margin-bottom: 14px; box-shadow: 0 16px 42px rgba(0,0,0,.14); }
.preview-item:last-child { margin-bottom: 0; }
.progress-line { height: 10px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.progress-line span { display: block; height: 100%; width: 82%; background: linear-gradient(90deg, var(--brand), var(--brand-3)); border-radius: 999px; }

.slot-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.slot-radio input { display: none; }
.slot-radio span {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    border: 1px solid rgba(148,163,184,.30);
    background: rgba(255,255,255,.82);
    padding: 16px 8px;
    font-weight: 900;
    color: #334155;
    cursor: pointer;
    transition: .22s ease;
}
.slot-radio input:checked + span {
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    border-color: transparent;
    box-shadow: 0 16px 34px rgba(37,99,235,.22);
}

.progress-soft { height: 10px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.progress-soft > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--brand-3)); }

@media (max-width: 1199px) {
    .auth-wrap { grid-template-columns: 1fr; }
    .auth-side { display: none; }
    .slot-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 991px) {
    .app-main { padding: 24px 0; }
    .app-container { padding-left: 16px; padding-right: 16px; }
    .navbar-collapse { background: rgba(8,17,31,.96); border: 1px solid rgba(255,255,255,.12); border-radius: 24px; padding: 14px; margin-top: 12px; }
    .app-navbar .nav-link, .nav-role, .btn-nav { width: 100%; justify-content: flex-start; }
    .card-body { padding: 22px !important; }
    .page-hero { border-radius: 30px; padding: 26px; }
    .mega-card { min-height: auto; border-radius: 34px; }
    .home-hero { min-height: auto; padding: 20px 16px 38px; }
    .home-bleed { margin-top: -24px; }
}

@media (max-width: 767px) {
    .table { min-width: 820px; }
    .btn { width: 100%; }
    .d-flex.gap-2, .d-flex.gap-3, .hero-actions { display: grid !important; grid-template-columns: 1fr; }
    .stat-card { min-height: 120px; }
    .auth-form { padding: 28px 22px; }
    .slot-grid { grid-template-columns: repeat(2, 1fr); }
    .home-title { letter-spacing: -.06em; }
}

@media print {
    .app-navbar, .app-footer, .btn, .alert, form, .no-print { display: none !important; }
    .app-main { padding: 0; }
    .card, .card-modern, .table-shell { box-shadow: none !important; border: 1px solid #ddd !important; }
    body { background: #fff !important; }
    .table { min-width: 0 !important; }
}
