:root {
    --nd-bg: #f2f6fc;
    --nd-bg-alt: #e9f0fb;
    --nd-surface: rgba(255, 255, 255, 0.94);
    --nd-surface-strong: #ffffff;
    --nd-border: rgba(47, 91, 166, 0.12);
    --nd-text: #1f3557;
    --nd-muted: #7286a5;
    --nd-primary: #2f6fed;
    --nd-primary-dark: #1f59cc;
    --nd-primary-soft: rgba(47, 111, 237, 0.12);
    --nd-accent: #76a8ff;
    --nd-admin: #1b2b4b;
    --nd-shadow: 0 18px 40px rgba(35, 72, 132, 0.09);
}

html {
    min-height: 100%;
    background-color: var(--nd-bg);
}

body {
    font-family: "Outfit", sans-serif;
    color: var(--nd-text);
    min-height: 100vh;
    background-color: var(--nd-bg);
    background-image: linear-gradient(180deg, #f8fbff 0%, #f3f7fd 22%, var(--nd-bg) 100%);
    background-repeat: no-repeat;
    background-size: 100% 100vh;
    background-attachment: fixed;
}

.glass-nav {
    backdrop-filter: blur(14px);
    background: linear-gradient(90deg, rgba(24, 46, 85, 0.96), rgba(35, 67, 122, 0.92));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar-brand, .nav-link, .btn-outline-light {
    color: #fff !important;
}

.navbar-brand {
    letter-spacing: 0.01em;
}

.nav-link {
    font-weight: 500;
    opacity: 0.92;
}

.nav-link:hover {
    opacity: 1;
}

.soft-card {
    border: 1px solid var(--nd-border);
    background: linear-gradient(180deg, var(--nd-surface-strong), var(--nd-surface));
    border-radius: 24px;
    box-shadow: var(--nd-shadow);
}

.hero-section {
    padding: 1.25rem 0 0;
}

.hero-row {
    --bs-gutter-x: 0;
}

.hero-copy {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.985), rgba(246,249,255,0.98)),
        var(--nd-surface);
    min-height: 100%;
    border-radius: 34px;
    border-color: rgba(190, 208, 255, 0.58);
    box-shadow: 0 28px 74px rgba(57, 87, 148, 0.12);
    z-index: 1;
}

.hero-copy::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(47, 111, 237, 0.05), transparent 42%);
    pointer-events: none;
}

.hero-copy::before {
    content: "";
    position: absolute;
    inset: auto -18px -18px auto;
    width: 196px;
    height: 196px;
    border-radius: 50%;
    background: rgba(118, 168, 255, 0.11);
    pointer-events: none;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: var(--nd-primary-soft);
    color: var(--nd-primary-dark);
    font-size: 0.9rem;
    font-weight: 600;
}

.lead {
    max-width: 42rem;
    font-size: 1.08rem;
}

.hero-title {
    max-width: 8.5ch;
    line-height: 1.02;
}

.metric {
    padding: 1rem;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #f4f8ff);
    border: 1px solid rgba(47, 111, 237, 0.08);
}

.metric strong {
    display: block;
    font-size: 1.4rem;
    color: var(--nd-primary-dark);
}

.metric span {
    color: var(--nd-muted);
    font-size: 0.9rem;
}

.hero-visual-wrap {
    height: 100%;
    min-height: 520px;
    display: flex;
    align-items: stretch;
    margin-left: -42px;
    position: relative;
    z-index: 2;
}

.hero-visual-frame {
    position: relative;
    width: 100%;
    min-height: 520px;
    padding: 16px 16px 16px 26px;
    border-radius: 40px;
    background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(247,250,255,0.97));
    border: 1px solid rgba(188, 206, 255, 0.92);
    box-shadow: 0 28px 72px rgba(59, 88, 148, 0.12);
    overflow: hidden;
}

.hero-visual-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 40px;
    background: radial-gradient(circle at top left, rgba(149, 177, 255, 0.12), transparent 28%);
    pointer-events: none;
    z-index: 0;
}

.hero-visual-image {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    min-height: 488px;
    object-fit: cover;
    object-position: 60% center;
    display: block;
    border-radius: 30px;
    clip-path: polygon(20% 0%, 100% 0%, 100% 100%, 0% 100%, 10% 100%);
    box-shadow: 0 20px 40px rgba(54, 84, 150, 0.12);
}

.hero-visual-frame::after {
    content: "";
    position: absolute;
    top: 16px;
    bottom: 16px;
    left: 24px;
    width: 10%;
    z-index: 2;
    pointer-events: none;
    border-radius: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.08));
    clip-path: polygon(88% 0%, 100% 0%, 42% 100%, 0% 100%);
}

.section-head {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.btn-primary {
    background: var(--nd-primary);
    border-color: var(--nd-primary);
    box-shadow: 0 10px 18px rgba(47, 111, 237, 0.18);
}

.btn-primary:hover {
    background: var(--nd-primary-dark);
    border-color: var(--nd-primary-dark);
}

.btn-outline-dark {
    border-color: rgba(47, 111, 237, 0.2);
    color: var(--nd-primary-dark);
}

.btn-outline-dark:hover {
    background: var(--nd-primary-soft);
    color: var(--nd-primary-dark);
    border-color: rgba(47, 111, 237, 0.25);
}

.form-control,
.form-select {
    border-radius: 14px;
    border-color: rgba(47, 111, 237, 0.16);
    min-height: 46px;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(47, 111, 237, 0.42);
    box-shadow: 0 0 0 0.25rem rgba(47, 111, 237, 0.14);
}

.card {
    border-radius: 18px;
}

.badge.text-bg-light {
    background: #eef4ff !important;
    color: var(--nd-primary-dark) !important;
}

.text-secondary {
    color: var(--nd-muted) !important;
}

.table {
    --bs-table-bg: transparent;
    --bs-table-border-color: rgba(47, 111, 237, 0.1);
}

.table thead th {
    color: var(--nd-muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

footer a {
    color: var(--nd-primary-dark);
}

.footer-subtle {
    opacity: 0.45;
    font-size: 0.72rem;
}

.footer-subtle a:hover {
    opacity: 0.9;
}

.changelog-table td,
.changelog-table th {
    vertical-align: top;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.changelog-table code {
    white-space: normal;
    color: var(--nd-primary-dark);
    background: #eef4ff;
    border-radius: 10px;
    padding: 0.35rem 0.55rem;
    display: inline-block;
}

.profile-avatar-shell {
    width: 112px;
    height: 112px;
    border-radius: 26px;
    background: linear-gradient(180deg, #ffffff, #eef4ff);
    border: 1px solid rgba(47, 111, 237, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: var(--nd-shadow);
}

.profile-avatar-shell-lg {
    width: 144px;
    height: 144px;
}

.profile-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--nd-primary-dark);
    background: linear-gradient(180deg, rgba(47, 111, 237, 0.08), rgba(118, 168, 255, 0.14));
}

.admin-body {
    background: linear-gradient(180deg, #edf3fd 0%, #e5edf9 100%);
}

.admin-sidebar {
    background: linear-gradient(180deg, #213a66 0%, #1a2d4f 100%);
    border-right: 1px solid rgba(255,255,255,0.08);
}

.admin-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(245,249,255,0.96));
}

.admin-sidebar .nav-link {
    border-radius: 12px;
    padding: 0.7rem 0.9rem;
}

.admin-sidebar .nav-link:hover {
    background: rgba(255,255,255,0.08);
    color: #fff !important;
}

.hero-section .soft-card,
.section-head + .d-grid .soft-card,
.dashboard .soft-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hero-section .soft-card:hover,
.section-head + .d-grid .soft-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 46px rgba(35, 72, 132, 0.12);
}

@media (max-width: 991px) {
    .soft-card {
        border-radius: 20px;
    }

    .hero-row {
        row-gap: 1rem;
    }

    .hero-visual-wrap {
        min-height: 340px;
        margin-left: 0;
    }

    .hero-visual-frame {
        min-height: 340px;
        border-radius: 28px;
        padding: 12px 12px 12px 18px;
    }

    .hero-visual-frame::before {
        border-radius: 28px;
    }

    .hero-visual-frame::after {
        top: 12px;
        bottom: 12px;
        left: 8px;
        width: 8%;
    }

    .hero-visual-image {
        min-height: 300px;
        border-radius: 22px;
        clip-path: polygon(16% 0%, 100% 0%, 100% 100%, 0% 100%, 8% 100%);
        object-position: 61% center;
    }
}
