:root {
    --primary: #1f4f82;
    --primary-deep: #133454;
    --primary-soft: #e9f3ff;
    --secondary: #2f7ac4;
    --accent: #d8a227;
    --accent-soft: #fff6dd;
    --surface: #ffffff;
    --surface-muted: #f5f8fc;
    --surface-strong: #edf3f9;
    --text: #18324a;
    --text-soft: #5f7387;
    --border: rgba(24, 50, 74, 0.1);
    --shadow-sm: 0 14px 34px rgba(16, 52, 88, 0.08);
    --shadow-md: 0 24px 64px rgba(16, 52, 88, 0.12);
    --radius-sm: 14px;
    --radius-md: 24px;
    --radius-lg: 36px;
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', system-ui, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top right, rgba(47, 122, 196, 0.12), transparent 28%),
        linear-gradient(180deg, #f8fbff 0%, #eef4fa 44%, #fdfefe 100%);
    min-height: 100vh;
    padding-top: 92px;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand-text,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-deep);
}

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

a:hover {
    color: var(--primary-deep);
}

.page-shell {
    position: relative;
}

.site-section {
    padding: 5rem 0;
}

.section-heading {
    max-width: 700px;
    margin-bottom: 2.5rem;
}

.section-heading .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.section-heading h1,
.section-heading h2 {
    margin: 1rem 0 0.9rem;
    font-weight: 700;
}

.section-heading p {
    color: var(--text-soft);
    font-size: 1.05rem;
    margin-bottom: 0;
}

.glass-panel,
.card,
.table-panel,
.content-panel {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-md);
}

.content-panel,
.table-panel {
    padding: 1.75rem;
}

.card {
    border: 1px solid var(--border);
    overflow: hidden;
}

.card:hover,
.elevated-hover:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.card,
.btn,
.form-control,
.form-select,
.nav-link,
.dropdown-menu,
.social-link,
.chip {
    transition: all var(--transition);
}

.btn {
    border-radius: 999px;
    padding: 0.82rem 1.25rem;
    font-weight: 700;
    border-width: 1px;
}

.btn-primary,
.btn-success,
.btn-warning {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    border: none;
    color: #fff;
    box-shadow: 0 14px 28px rgba(47, 122, 196, 0.22);
}

.btn-primary:hover,
.btn-success:hover,
.btn-warning:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 20px 34px rgba(47, 122, 196, 0.28);
}

.btn-outline-primary,
.btn-outline-light,
.btn-outline-secondary {
    border-color: rgba(31, 79, 130, 0.18);
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-light {
    background: #fff;
    color: var(--primary);
    border-color: transparent;
}

.form-label {
    font-weight: 700;
    color: var(--primary-deep);
    margin-bottom: 0.55rem;
}

.form-control,
.form-select,
.input-group-text {
    min-height: 52px;
    border-radius: 16px;
    border: 1px solid rgba(24, 50, 74, 0.11);
    background: rgba(255, 255, 255, 0.95);
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(47, 122, 196, 0.45);
    box-shadow: 0 0 0 0.25rem rgba(47, 122, 196, 0.12);
}

textarea.form-control {
    min-height: 140px;
    border-radius: 20px;
}

.navbar {
    background: rgba(248, 251, 255, 0.86) !important;
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(24, 50, 74, 0.08);
}

.navbar-brand {
    gap: 0.95rem;
}

.navbar-brand img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(31, 79, 130, 0.16);
}

.navbar-brand-text {
    font-size: 1.05rem;
    line-height: 1.15;
    font-weight: 700;
}

.navbar-brand-subtitle {
    color: var(--text-soft);
    font-size: 0.8rem;
}

.nav-link {
    color: var(--text);
    font-weight: 700;
    border-radius: 999px;
    padding: 0.7rem 1rem !important;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(47, 122, 196, 0.1);
    color: var(--primary);
}

.navbar .btn-link.nav-link {
    text-decoration: none;
}

.dropdown-menu {
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0.7rem;
    box-shadow: var(--shadow-sm);
}

.dropdown-item {
    border-radius: 14px;
    padding: 0.7rem 0.85rem;
}

.dropdown-item:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 4.5rem 0 3.5rem;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(216, 162, 39, 0.24), transparent 24%),
        linear-gradient(135deg, rgba(19, 52, 84, 0.96), rgba(47, 122, 196, 0.88));
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero .eyebrow {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.page-hero h1,
.page-hero p,
.page-hero .stat-label,
.page-hero .hero-meta,
.page-hero .hero-meta a {
    color: #fff;
}

.hero-card {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    border-radius: 28px;
    color: #fff;
}

.hero-chip,
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 0.9rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
}

.chip {
    background: var(--surface-strong);
    color: var(--primary);
}

.metric-card {
    padding: 1.5rem;
    height: 100%;
}

.metric-value {
    font-size: clamp(1.85rem, 4vw, 2.7rem);
    font-weight: 800;
    color: var(--primary-deep);
    line-height: 1;
}

.metric-label {
    color: var(--text-soft);
    font-weight: 600;
}

.info-list {
    display: grid;
    gap: 1rem;
}

.info-row {
    display: flex;
    gap: 0.95rem;
    align-items: flex-start;
}

.info-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--primary-soft);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.list-clean {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-clean li + li {
    margin-top: 0.85rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
}

.feature-card {
    padding: 1.5rem;
    height: 100%;
}

.feature-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary-soft), #fff);
}

.media-cover,
.card-img-top {
    width: 100%;
    object-fit: cover;
}

.media-cover {
    height: 100%;
}

.image-frame {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.soft-section {
    background: rgba(255, 255, 255, 0.64);
    border-top: 1px solid rgba(24, 50, 74, 0.04);
    border-bottom: 1px solid rgba(24, 50, 74, 0.04);
}

.auth-shell {
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
}

.auth-card {
    border-radius: 32px;
    overflow: hidden;
}

.auth-visual {
    background:
        radial-gradient(circle at top, rgba(216, 162, 39, 0.3), transparent 30%),
        linear-gradient(160deg, var(--primary-deep), var(--secondary));
    color: #fff;
    padding: 2.25rem;
    height: 100%;
}

.auth-link {
    font-weight: 700;
}

.badge-soft-primary,
.badge-soft-success,
.badge-soft-warning,
.badge-soft-danger,
.badge-soft-secondary {
    border-radius: 999px;
    padding: 0.55rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 700;
}

.badge-soft-primary {
    background: var(--primary-soft);
    color: var(--primary);
}

.badge-soft-success {
    background: rgba(25, 135, 84, 0.12);
    color: #198754;
}

.badge-soft-warning {
    background: rgba(216, 162, 39, 0.16);
    color: #9b6b00;
}

.badge-soft-danger {
    background: rgba(220, 53, 69, 0.12);
    color: #bb2d3b;
}

.badge-soft-secondary {
    background: rgba(95, 115, 135, 0.12);
    color: var(--text-soft);
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background: var(--surface-muted);
    border-bottom: 0;
    color: var(--primary);
    font-weight: 700;
    padding: 1rem;
}

.table tbody td {
    padding: 1rem;
    border-color: rgba(24, 50, 74, 0.06);
    vertical-align: middle;
}

.table tbody tr:hover {
    background: rgba(47, 122, 196, 0.03);
}

.footer-shell {
    margin-top: 5rem;
    padding: 4rem 0 2rem;
    background:
        linear-gradient(180deg, rgba(19, 52, 84, 0.98), rgba(13, 38, 63, 1));
    color: rgba(255, 255, 255, 0.8);
}

.footer-shell h5,
.footer-shell h6,
.footer-shell a,
.footer-shell .footer-verse {
    color: #fff;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.78);
}

.footer-links a:hover {
    color: var(--accent);
}

.social-link {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 2rem;
    padding-top: 1.2rem;
}

#backToTop {
    position: fixed;
    right: 1.35rem;
    bottom: 1.35rem;
    width: 48px;
    height: 48px;
    display: none;
    z-index: 1030;
    border-radius: 50%;
}

.page-transition {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    pointer-events: none;
}

.curtain {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(145deg, var(--primary-deep), var(--primary));
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
}

.left-curtain {
    left: 0;
}

.right-curtain {
    right: 0;
}

.transition-logo {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    z-index: 2001;
    opacity: 1;
    transition: opacity 0.45s ease, transform 0.6s ease;
}

.transition-logo img,
.logo-placeholder {
    width: 110px;
    height: 110px;
    border-radius: 28px;
    border: 2px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(12px);
}

.logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
}

.page-content {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

body.page-ready .page-content {
    opacity: 1;
    transform: translateY(0);
}

.curtain-close .left-curtain,
.curtain-close .right-curtain {
    transform: translateX(0);
}

.curtain-open .left-curtain {
    transform: translateX(-100%);
}

.curtain-open .right-curtain {
    transform: translateX(100%);
}

.curtain-open .transition-logo {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
}

body.page-ready .page-transition {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.alert {
    border: none;
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
}

.empty-state {
    text-align: center;
    padding: 2.6rem 1rem;
    color: var(--text-soft);
}

.empty-state i {
    font-size: 3rem;
    color: rgba(31, 79, 130, 0.3);
    margin-bottom: 1rem;
}

.timeline-item + .timeline-item {
    margin-top: 1rem;
}

.timeline-item {
    padding: 1rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.8);
}

@media (max-width: 991.98px) {
    body {
        padding-top: 84px;
    }

    .site-section {
        padding: 4rem 0;
    }

    .page-hero {
        padding-top: 3.5rem;
    }
}

@media (max-width: 767.98px) {
    body {
        padding-top: 78px;
    }

    .page-hero {
        padding: 3.25rem 0 2.8rem;
    }

    .content-panel,
    .table-panel,
    .metric-card,
    .feature-card {
        padding: 1.25rem;
    }

    .navbar-brand-text {
        font-size: 0.95rem;
    }
}
