:root {
    --primary: #03135c;
    --primary-strong: #020c42;
    --accent: #e39d4d;
    --accent-2: #03135c;
    --surface: #ffffff;
    --panel: #ffffff;
    --muted: #475569;
    --text: #0f172a;
    --border: #e2e8f0;
    --shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    --radius: 14px;
    --radius-sm: 8px;
    --container: 1180px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

html, body {
    padding: 0;
    margin: 0;
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
    background: #f7f9fc;
    color: var(--text);
    min-height: 100vh;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

main.container > section {
    margin-bottom: 44px;
}

.hero { padding: 88px 0 48px; }
.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 42px;
    align-items: start;
}
@media (min-width: 1040px) {
    .hero-grid {
        grid-template-columns: 1.2fr 0.95fr;
    }
}

.hero h1 {
    font-size: clamp(36px, 4.5vw, 48px);
    margin: 0 0 18px;
    color: #03135c;
    letter-spacing: -0.02em;
}

.hero p {
    margin: 0 0 24px;
    line-height: 1.7;
    color: #1f2937;
}

.hero-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 26px;
    box-shadow: 0 20px 50px rgba(3, 19, 92, 0.08);
    max-width: 440px;
    justify-self: end;
}
.hero-stats {
    display: grid;
    gap: 14px;
    margin-top: 12px;
}
.hero-stats .stat {
    padding-bottom: 10px;
    border-bottom: 1px solid #edf2f7;
}
.hero-stats .stat:last-child { border-bottom: 0; padding-bottom: 0; }

.card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
}
.card + .card { margin-top: 10px; }
.card-light {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #e2e8f0;
}

.card h3 {
    margin: 0 0 10px;
}

.card-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    align-items: stretch;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #e2e8f0;
    color: var(--primary);
    font-size: 13px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--primary);
    background: #03135c;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-accent {
    background: #e39d4d;
    border-color: #e39d4d;
    color: #fff;
}

.btn-ghost {
    background: transparent;
    border-color: #03135c;
    color: #03135c;
}

form {
    display: grid;
    gap: 14px;
}

label {
    font-size: 14px;
    color: var(--muted);
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--primary);
    font-size: 15px;
}

input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--accent);
    border-color: var(--accent);
}

.header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
}

.brand {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand span {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #e39d4d;
    color: #03135c;
    font-weight: 800;
}

.layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

aside {
    background: #ffffff;
    border-right: 1px solid var(--border);
    padding: 20px;
    position: sticky;
    top: 0;
    min-height: 100vh;
}

aside h4 {
    margin: 0 0 14px;
    color: var(--primary);
}

.menu {
    display: grid;
    gap: 8px;
}

.menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--primary);
    border: 1px solid transparent;
}

.menu a.active,
.menu a:hover {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.2);
}

.main {
    padding: 24px;
}

.grid {
    display: grid;
    gap: 16px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.table th,
.table td {
    padding: 10px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    color: var(--primary);
    font-size: 12px;
    word-wrap: break-word;
}

.badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
}

.badge-success { background: rgba(16, 185, 129, 0.12); color: #34d399; }
.badge-warning { background: rgba(245, 158, 11, 0.12); color: #fbbf24; }
.badge-danger  { background: rgba(248, 113, 113, 0.12); color: #fca5a5; }
.badge-secondary { background: rgba(148, 163, 184, 0.12); color: #cbd5e1; }

.alert {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #fff;
    color: var(--primary);
    font-size: 14px;
}

.alert-danger { border-color: rgba(248, 113, 113, 0.25); color: #b91c1c; }
.alert-success { border-color: rgba(16, 185, 129, 0.25); color: #047857; }

a {
    color: #03135c;
}

a:hover {
    text-decoration: underline;
}

.section-title {
    margin: 8px 0 16px;
    color: #e5e7eb;
}

.muted {
    color: var(--muted);
}

.hidden {
    display: none !important;
}

/* Auth pages */
.auth-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    align-items: center;
    padding: 40px 0;
}

.auth-hero {
    padding: 24px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.logo-mark .circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #03135c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #e39d4d;
    font-weight: 800;
    font-size: 18px;
}

.logo-mark .text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    color: #03135c;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
}

.auth-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}
.logo-img {
    height: 40px;
    width: auto;
}

.hero-logo {
    max-width: 320px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 18px;
}

.feature-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(3, 19, 92, 0.06);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.badge-soft {
    display: inline-flex;
    padding: 8px 12px;
    background: rgba(3, 19, 92, 0.06);
    color: #03135c;
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 12px;
}

.hero-logo {
    max-width: 320px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 16px;
}

.auth-hero h2 {
    color: #03135c;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
    padding: 0;
    list-style: none;
}

.chip {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid #03135c;
    color: #03135c;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
}

.step-list {
    display: grid;
    gap: 10px;
    margin: 12px 0;
    padding: 0;
    list-style: none;
}

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

.step .number {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #03135c;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
}

.step .text {
    color: #0f172a;
    font-size: 14px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid #e2e8f0;
    max-width: 520px;
    width: 100%;
    box-shadow: var(--shadow);
    padding: 20px;
    position: relative;
}

.modal h3 {
    margin: 0 0 10px;
    color: #03135c;
}

.modal .close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    background: transparent;
    border: none;
    font-size: 18px;
    color: #03135c;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat .value {
    font-size: 24px;
    font-weight: 700;
}

.stat .label {
    color: var(--muted);
    font-size: 13px;
}

.flex {
    display: flex;
    gap: 10px;
    align-items: center;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tag {
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    font-size: 12px;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 900px) {
    .layout {
        grid-template-columns: 1fr;
    }
    aside {
        position: relative;
        min-height: auto;
    }
    .main {
        padding: 18px;
    }
}

@media (max-width: 640px) {
    .nav {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero {
        padding: 40px 0 20px;
    }
}
