:root {
    --brand-ink: #10233f;
    --brand-ink-soft: #24446d;
    --brand-gold: #b68c41;
    --brand-gold-soft: #e7d5ab;
    --brand-bg: #f4f6fb;
    --brand-card: rgba(255, 255, 255, 0.92);
    --brand-border: rgba(21, 43, 77, 0.09);
    --brand-text: #243044;
    --brand-muted: #6b7280;
    --brand-shadow: 0 22px 60px rgba(16, 35, 63, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Manrope", sans-serif;
    color: var(--brand-text);
    background:
        radial-gradient(circle at top left, rgba(182, 140, 65, 0.12), transparent 25%),
        linear-gradient(180deg, #f8fafc 0%, #eef3fa 100%);
    min-height: 100vh;
}

.display-serif,
.hero-title,
.page-title {
    font-family: "Cormorant Garamond", serif;
    letter-spacing: 0.01em;
}

.display-serif {
    font-size: clamp(2.1rem, 3vw, 3.35rem);
    line-height: 1;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--brand-ink-soft);
    font-weight: 800;
}

.eyebrow::before {
    content: "";
    width: 2.6rem;
    height: 1px;
    background: linear-gradient(90deg, var(--brand-gold), transparent);
}

.btn-brand {
    background: linear-gradient(135deg, var(--brand-ink), var(--brand-ink-soft));
    border: none;
    color: #fff;
    box-shadow: 0 14px 26px rgba(16, 35, 63, 0.18);
}

.btn-brand:hover,
.btn-brand:focus {
    color: #fff;
    transform: translateY(-1px);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--brand-ink);
    font-weight: 800;
    line-height: 1.12;
    text-decoration: none;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-wordmark {
    display: inline-block;
}

.brand-logo {
    width: 2.8rem;
    height: 2.8rem;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-dot {
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #f5dfb4, var(--brand-gold));
    box-shadow: 0 0 0 6px rgba(182, 140, 65, 0.12);
}

.public-nav {
    background:
        radial-gradient(circle at 12% 22%, rgba(182, 140, 65, 0.1), transparent 18%),
        linear-gradient(135deg, #07172b 0%, #0b2140 52%, #0e2a4f 100%);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 36px rgba(7, 23, 43, 0.18);
}

.public-nav .brand-mark {
    color: #fff;
}

.public-nav .brand-wordmark {
    max-width: 17rem;
    color: #fff;
}

.public-nav .nav-link {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 600;
}

.public-nav .nav-link:hover,
.public-nav .nav-link:focus,
.public-nav .nav-link.active {
    color: #fff;
}

.public-nav .btn-brand {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: none;
}

.public-nav .btn-brand:hover,
.public-nav .btn-brand:focus {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.24);
}

.public-home-section {
    padding-top: 3.5rem !important;
}

.site-footer {
    position: relative;
    overflow: hidden;
    padding: 0;
    background:
        radial-gradient(circle at 12% 22%, rgba(182, 140, 65, 0.12), transparent 18%),
        radial-gradient(circle at 88% 18%, rgba(52, 93, 153, 0.2), transparent 18%),
        linear-gradient(135deg, #07172b 0%, #0b2140 52%, #0e2a4f 100%);
    color: #fff;
}

.site-footer::before,
.site-footer::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.site-footer::before {
    inset: 0 0 auto;
    height: 1px;
    background: rgba(255, 255, 255, 0.14);
}

.site-footer::after {
    inset: auto 0 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.site-footer-inner {
    position: relative;
    z-index: 1;
    padding: 3rem 0 1.2rem;
}

.site-footer-main {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 1fr));
    gap: 2.4rem;
}

.site-footer-branding {
    max-width: 24rem;
}

.site-footer-mark {
    color: #fff;
    margin-bottom: 1rem;
}

.site-footer-mark .brand-dot {
    box-shadow: 0 0 0 8px rgba(231, 213, 171, 0.1);
}

.site-footer-logo {
    width: 3.3rem;
    height: 3.3rem;
}

.site-footer-mark .brand-wordmark {
    max-width: 15rem;
    font-size: clamp(1.15rem, 1.45vw, 1.45rem);
}

.site-footer-lead {
    max-width: 22rem;
    font-size: 0.98rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.72);
}

.site-footer-column {
    min-width: 0;
}

.site-footer-heading {
    margin: 0 0 1.1rem;
    color: rgba(231, 213, 171, 0.96);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.site-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.78rem;
}

.site-footer-links li {
    color: rgba(255, 255, 255, 0.74);
    line-height: 1.6;
    font-size: 0.98rem;
}

.site-footer-links a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.site-footer-links a:hover,
.site-footer-links a:focus {
    color: #fff;
    opacity: 1;
}

.site-footer-bottom {
    position: relative;
    z-index: 1;
    margin-top: 2rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem 1.2rem;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.9rem;
}

.site-footer-credit {
    color: rgba(255, 255, 255, 0.82);
}

.glass-card,
.admin-card,
.metric-card,
.error-card {
    background: var(--brand-card);
    border: 1px solid var(--brand-border);
    border-radius: 24px;
    box-shadow: var(--brand-shadow);
}

.glass-card,
.admin-card,
.error-card {
    padding: 1.6rem;
}

.metric-card {
    padding: 1.5rem;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.metric-card::after {
    content: "";
    position: absolute;
    inset: auto -3rem -3rem auto;
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(182, 140, 65, 0.22), transparent 60%);
}

.metric-label {
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--brand-ink-soft);
}

.metric-value {
    font-size: 2.4rem;
    font-weight: 800;
    margin: 0.75rem 0 0.35rem;
    color: var(--brand-ink);
}

.metric-note,
.text-muted {
    color: var(--brand-muted) !important;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--brand-ink);
}

.hero-section {
    padding: 4rem 0 2rem;
}

.hero-title {
    font-size: clamp(2.8rem, 5vw, 4.9rem);
    line-height: 0.95;
    margin-top: 0.8rem;
}

.hero-subtitle {
    font-size: 1.08rem;
    color: var(--brand-muted);
    max-width: 52rem;
    margin-top: 1.2rem;
}

.hero-panel {
    background: linear-gradient(160deg, rgba(16, 35, 63, 0.96), rgba(36, 68, 109, 0.92));
    color: #fff;
    border-radius: 28px;
    padding: 2rem;
    box-shadow: 0 22px 50px rgba(16, 35, 63, 0.24);
}

.hero-stat + .hero-stat {
    margin-top: 1.5rem;
}

.hero-stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
}

.hero-stat-label,
.hero-stat-note {
    color: rgba(255, 255, 255, 0.78);
}

.training-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.training-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 62px rgba(16, 35, 63, 0.16);
}

.detail-tile {
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(246, 249, 252, 0.88));
    border: 1px solid rgba(17, 24, 39, 0.06);
    border-radius: 18px;
    padding: 1rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.course-outline {
    line-height: 1.9;
}

.verification-shell {
    position: relative;
}

.verification-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 252, 0.98));
    border: 1px solid rgba(17, 24, 39, 0.08);
    padding: 0.6rem;
    box-shadow: 0 10px 22px rgba(16, 35, 63, 0.08);
}

.verification-logo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.asset-preview-tile {
    width: 88px;
    height: 72px;
    border-radius: 16px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    background: rgba(255, 255, 255, 0.9);
    display: grid;
    place-items: center;
    padding: 0.5rem;
}

.asset-thumb {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.asset-edit-panel {
    margin: 0.75rem 0 0.25rem;
    padding: 1rem;
    border-radius: 18px;
    border: 1px solid rgba(17, 24, 39, 0.07);
    background: rgba(248, 250, 252, 0.75);
}

.collapse-row td {
    background: transparent !important;
}

.verification-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(16, 35, 63, 0.96), rgba(36, 68, 109, 0.93));
    color: #fff;
}

.verification-hero::after {
    content: "";
    position: absolute;
    right: -3rem;
    top: -2rem;
    width: 14rem;
    height: 14rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(231, 213, 171, 0.2), transparent 68%);
}

.verification-hero .text-muted,
.verification-hero .eyebrow {
    color: rgba(255, 255, 255, 0.85) !important;
}

.verification-hero .eyebrow::before {
    background: linear-gradient(90deg, rgba(231, 213, 171, 0.95), transparent);
}

.verification-intro {
    max-width: 44rem;
    color: rgba(255, 255, 255, 0.84);
}

.verification-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-width: 128px;
    height: 48px;
    padding: 0 1.2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.verification-profile-card,
.verification-preview-card,
.verification-side-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 249, 252, 0.92));
}

.verification-section-heading {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.verification-card-note {
    color: var(--brand-muted);
}

.verification-beneficiary-name {
    font-size: clamp(2.1rem, 4vw, 3rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: var(--brand-ink);
    font-weight: 800;
    margin-bottom: 1.35rem;
}

.pdf-preview {
    width: 100%;
    height: 380px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 18px;
    background: #fff;
}

.certificate-pdf-preview {
    height: 620px;
}

.certificate-preview-empty {
    min-height: 220px;
    display: grid;
    place-items: center;
    text-align: center;
    border: 1px dashed rgba(17, 24, 39, 0.12);
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.8);
    padding: 1.5rem;
}

.auth-section {
    background:
        radial-gradient(circle at top right, rgba(182, 140, 65, 0.14), transparent 28%),
        linear-gradient(180deg, #eef3fb 0%, #f9fbfd 100%);
}

.auth-card {
    padding: 2rem;
}

.credential-tip {
    padding-top: 1rem;
    border-top: 1px solid rgba(17, 24, 39, 0.06);
}

.error-shell {
    display: grid;
    place-items: center;
    min-height: 100vh;
}

.error-card {
    max-width: 560px;
}

.admin-frame {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    min-height: 100vh;
}

.admin-sidebar {
    background: linear-gradient(180deg, rgba(16, 35, 63, 0.98), rgba(21, 48, 82, 0.95));
    color: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.5rem 0 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-nav .nav-link {
    color: rgba(255, 255, 255, 0.82);
    border-radius: 16px;
    padding: 0.85rem 1rem;
    font-weight: 700;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

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

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

.admin-main {
    padding: 2rem;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.page-title {
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 0.92;
}

.timeline-stack {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.timeline-item {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--brand-gold);
    margin-top: 0.35rem;
    box-shadow: 0 0 0 6px rgba(182, 140, 65, 0.15);
}

.builder-preview {
    min-height: 420px;
    border: 1px dashed rgba(17, 24, 39, 0.12);
    border-radius: 20px;
    padding: 1rem;
    background: rgba(248, 250, 252, 0.8);
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.builder-item {
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 18px;
    background: #fff;
    padding: 1rem;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.builder-item.active {
    border-color: rgba(182, 140, 65, 0.8);
    box-shadow: 0 18px 40px rgba(182, 140, 65, 0.12);
}

.builder-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.45rem;
}

.builder-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-ink-soft);
}

.builder-placeholder {
    color: var(--brand-muted);
    font-size: 0.92rem;
}

.builder-settings-empty {
    min-height: 320px;
    display: grid;
    place-items: center;
    text-align: center;
    color: var(--brand-muted);
    border: 1px dashed rgba(17, 24, 39, 0.12);
    border-radius: 20px;
    padding: 1.2rem;
}

.builder-drag {
    cursor: move;
    color: var(--brand-muted);
}

.builder-remove {
    border: none;
    background: transparent;
    color: #c2410c;
}

.section-heading {
    max-width: 760px;
}

@media (max-width: 991.98px) {
    .site-footer {
        margin-top: 3rem !important;
    }

    .public-nav .brand-wordmark {
        max-width: 14rem;
    }

    .site-footer-inner {
        padding: 2.5rem 0 1rem;
    }

    .site-footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem 1.6rem;
    }

    .site-footer-branding {
        grid-column: 1 / -1;
        max-width: none;
    }

    .site-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-frame {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
    }

    .admin-main {
        padding: 1.2rem;
    }

    .admin-topbar {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 575.98px) {
    .site-footer-main {
        grid-template-columns: 1fr;
    }

    .brand-logo {
        width: 2.4rem;
        height: 2.4rem;
    }

    .public-home-section {
        padding-top: 2.75rem !important;
    }

    .site-footer-mark .brand-wordmark {
        max-width: 11rem;
    }
}
