:root {
    --ink: #102033;
    --navy: #071b33;
    --navy-2: #0b2a4f;
    --blue: #1769ff;
    --cyan: #00a6d6;
    --green: #20b486;
    --muted: #68758a;
    --soft: #f4f7fb;
    --line: #dce5f2;
    --white: #fff;
}

* {
    letter-spacing: 0;
}

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

a {
    text-decoration: none;
}

.brand-icon {
    align-items: center;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    border-radius: 8px;
    color: var(--white);
    display: inline-flex;
    font-weight: 900;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.public-nav {
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    position: sticky;
    top: 0;
    z-index: 20;
}

.navbar-brand {
    align-items: center;
    display: inline-flex;
    gap: 10px;
    font-weight: 850;
}

.btn {
    border-radius: 8px;
    font-weight: 750;
}

.btn-primary {
    background: var(--blue);
    border-color: var(--blue);
}

.hero-section {
    background: linear-gradient(120deg, rgba(7, 27, 51, .98), rgba(11, 42, 79, .93));
    color: var(--white);
    min-height: calc(100vh - 70px);
    padding: 76px 0 58px;
}

.eyebrow {
    color: #62d3ff;
    display: inline-block;
    font-size: .78rem;
    font-weight: 850;
    text-transform: uppercase;
}

.eyebrow.dark {
    color: var(--blue);
}

.hero-section h1 {
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    font-weight: 900;
    line-height: 1.02;
    margin: 16px 0 20px;
}

.hero-section p {
    color: rgba(255, 255, 255, .76);
    font-size: 1.16rem;
    max-width: 680px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.hero-image {
    position: relative;
}

.hero-image img {
    border-radius: 24px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .28);
    max-height: 480px;
    object-fit: cover;
    object-position: center;
    width: 100%;
}

.hero-note {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    bottom: 22px;
    box-shadow: 0 18px 50px rgba(7, 27, 51, .22);
    color: var(--ink);
    left: 22px;
    max-width: 330px;
    padding: 18px;
    position: absolute;
}

.hero-note span,
.public-footer span,
.table td span,
.panel-heading span,
.sidebar-caption,
.sidebar-user small {
    color: var(--muted);
    display: block;
    font-size: .84rem;
}

.section-pad {
    padding: 78px 0;
}

.bg-soft {
    background: var(--soft);
}

.bg-ink {
    background: var(--navy);
    color: var(--white);
}

.section-title {
    margin-bottom: 34px;
    max-width: 860px;
}

.section-title h2,
.benefit-panel h2,
.cta-section h2 {
    font-weight: 880;
}

.section-title.light p,
.section-title.light h2 {
    color: var(--white);
}

.grid-3 {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card,
.benefit-panel,
.panel,
.kpi-card,
.login-panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 16px 44px rgba(16, 32, 51, .08);
}

.info-card,
.benefit-panel {
    padding: 28px;
}

.info-card {
    transition: transform .2s ease, box-shadow .2s ease;
}

.info-card:hover {
    box-shadow: 0 20px 56px rgba(16, 32, 51, .12);
    transform: translateY(-3px);
}

.info-card i {
    color: var(--blue);
    font-size: 2rem;
}

.info-card h3 {
    font-size: 1.12rem;
    font-weight: 850;
    margin-top: 18px;
}

.info-card p,
.check-list,
.benefit-panel p {
    color: var(--muted);
}

.steps {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.steps div {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 12px;
    padding: 24px;
}

.steps span {
    align-items: center;
    background: var(--blue);
    border-radius: 50%;
    display: inline-flex;
    font-weight: 850;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.steps strong {
    display: block;
    font-size: 1.1rem;
    margin-top: 16px;
}

.steps p {
    color: rgba(255, 255, 255, .72);
    margin: 8px 0 0;
}

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

.check-list li::before {
    color: var(--green);
    content: "✓";
    font-weight: 900;
    margin-right: 10px;
}

.about-image {
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(16, 32, 51, .16);
    max-height: 480px;
    object-fit: cover;
    width: 100%;
}

.cta-section {
    background: linear-gradient(120deg, var(--navy), var(--navy-2));
    color: var(--white);
    padding: 70px 0;
    text-align: center;
}

.cta-section p {
    color: rgba(255, 255, 255, .72);
}

.public-footer {
    background: #061428;
    color: var(--white);
    padding: 32px 0;
}

.login-body,
.app-body {
    background: var(--soft);
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(320px, 480px) 1fr;
    min-height: 100vh;
}

.login-panel {
    align-self: center;
    margin: 32px;
    padding: 34px;
}

.login-panel h1 {
    font-weight: 880;
    margin-top: 12px;
}

.login-visual {
    background: linear-gradient(130deg, var(--navy), var(--navy-2));
    color: var(--white);
    display: grid;
    padding: 56px;
    place-items: center;
}

.login-visual img {
    border-radius: 24px;
    max-height: 480px;
    object-fit: cover;
    width: min(100%, 620px);
}

.login-visual div {
    margin-top: 24px;
    max-width: 620px;
}

.login-visual span {
    color: #8edcff;
}

.login-visual strong {
    display: block;
    font-size: 1.55rem;
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    background: #071b33;
    color: var(--white);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 22px;
    position: sticky;
    top: 0;
    width: 278px;
}

.sidebar-brand {
    align-items: center;
    color: var(--white);
    display: flex;
    gap: 10px;
    font-weight: 850;
}

.sidebar-nav {
    display: grid;
    gap: 6px;
    margin-top: 28px;
}

.sidebar-nav a {
    align-items: center;
    border-radius: 8px;
    color: rgba(255, 255, 255, .72);
    display: flex;
    gap: 10px;
    padding: 11px 12px;
    transition: background .2s ease, color .2s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(255, 255, 255, .1);
    color: var(--white);
}

.sidebar-user {
    border-top: 1px solid rgba(255, 255, 255, .12);
    margin-top: auto;
    padding-top: 18px;
}

.sidebar-user a {
    color: #9edcff;
    display: inline-flex;
    gap: 8px;
    margin-top: 8px;
}

.app-main {
    flex: 1;
    min-width: 0;
}

.topbar {
    align-items: center;
    background: rgba(244, 247, 251, .92);
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 18px;
    justify-content: space-between;
    padding: 20px 28px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.topbar h1 {
    font-size: 1.5rem;
    font-weight: 880;
    margin: 4px 0 0;
}

.breadcrumb-line {
    align-items: center;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    font-size: .82rem;
    gap: 8px;
}

.topbar-role {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 14px;
}

.topbar-role span {
    color: var(--muted);
    display: block;
    font-size: .78rem;
}

.icon-button {
    align-items: center;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    display: none;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.content {
    padding: 26px;
}

.page-section {
    display: grid;
    gap: 22px;
}

.kpi-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(9, minmax(0, 1fr));
}

.kpi-card {
    padding: 18px;
}

.kpi-card i {
    color: var(--blue);
}

.kpi-card span {
    color: var(--muted);
    display: block;
    font-size: .78rem;
    font-weight: 750;
    margin-top: 12px;
}

.kpi-card strong {
    display: block;
    font-size: 1.3rem;
    margin-top: 4px;
}

.panel {
    padding: 22px;
}

.panel-heading {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.panel-heading h2 {
    font-size: 1.05rem;
    font-weight: 850;
    margin: 0;
}

.panel canvas {
    min-height: 280px;
}

.form-stack {
    display: grid;
    gap: 12px;
}

.form-control,
.form-select {
    border-color: var(--line);
    border-radius: 8px;
    min-height: 42px;
}

.filter-bar {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr auto auto;
    margin-bottom: 16px;
}

.table {
    margin-bottom: 0;
}

.table th {
    color: var(--muted);
    font-size: .76rem;
    text-transform: uppercase;
}

.table td {
    vertical-align: middle;
}

.table td strong,
.reason {
    display: block;
}

.score {
    align-items: center;
    background: #eaf2ff;
    border-radius: 999px;
    color: var(--blue);
    display: inline-flex;
    font-weight: 850;
    height: 36px;
    justify-content: center;
    min-width: 46px;
    padding: 0 10px;
}

.status-badge {
    background: #eef4ff;
    color: var(--blue);
}

.pagination-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 18px;
}

.pagination-wrap a {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    display: inline-flex;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.pagination-wrap a.active {
    background: var(--blue);
    color: var(--white);
}

.role-banner {
    align-items: center;
    background: linear-gradient(120deg, var(--navy), var(--navy-2));
    border-radius: 14px;
    color: var(--white);
    display: flex;
    justify-content: space-between;
    padding: 26px;
}

.role-banner p,
.role-banner span {
    color: rgba(255, 255, 255, .72);
    margin: 0;
}

.role-banner i {
    color: #62d3ff;
    font-size: 3rem;
}

.dot {
    border-radius: 50%;
    display: inline-block;
    height: 10px;
    margin-right: 8px;
    width: 10px;
}

.action-buttons {
    display: flex;
    gap: 4px;
}

.action-buttons form {
    display: inline-flex;
}

.empty-state {
    align-items: center;
    border: 1px dashed var(--line);
    border-radius: 12px;
    color: var(--muted);
    display: grid;
    justify-items: center;
    padding: 34px;
    text-align: center;
}

.empty-state.compact {
    padding: 20px;
}

.empty-state i {
    color: var(--blue);
    font-size: 2rem;
}

.empty-state strong {
    color: var(--ink);
}

.timeline {
    display: grid;
    gap: 18px;
}

.timeline-item {
    border-left: 3px solid var(--blue);
    padding-left: 16px;
}

.timeline-item span,
.timeline-item small {
    color: var(--muted);
    display: block;
}

.intel-grid,
.reports-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mini-list,
.report-list {
    display: grid;
    gap: 10px;
}

.mini-list a,
.report-list div {
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink);
    display: block;
    padding: 14px;
    transition: background .2s ease, transform .2s ease;
}

.mini-list a:hover {
    background: var(--soft);
    transform: translateY(-2px);
}

.mini-list span,
.report-list span {
    color: var(--muted);
    display: block;
    font-size: .86rem;
}

.mini-list em,
.report-list em {
    color: var(--blue);
    display: block;
    font-style: normal;
    font-weight: 850;
    margin-top: 4px;
}

.sticky-panel {
    position: sticky;
    top: 112px;
}

@media (max-width: 1400px) {
    .kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .grid-3,
    .steps,
    .intel-grid,
    .reports-grid {
        grid-template-columns: 1fr;
    }

    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-visual {
        display: none;
    }

    .sidebar {
        bottom: 0;
        left: -290px;
        position: fixed;
        top: 0;
        transition: left .2s ease;
        z-index: 30;
    }

    .sidebar-open .sidebar {
        left: 0;
    }

    .icon-button {
        display: inline-flex;
    }

    .topbar-role {
        display: none;
    }
}

@media (max-width: 767px) {
    .hero-section {
        min-height: auto;
        padding: 52px 0 42px;
    }

    .hero-image img,
    .about-image {
        height: auto;
        max-height: none;
    }

    .hero-note {
        left: 12px;
        right: 12px;
    }

    .section-pad {
        padding: 52px 0;
    }

    .content,
    .topbar {
        padding: 18px;
    }

    .kpi-grid,
    .filter-bar {
        grid-template-columns: 1fr;
    }

    .panel {
        padding: 18px;
    }
}
