:root {
    --disc-navy: #0f2742;
    --disc-blue: #153e66;
    --disc-green: #2f9e75;
    --disc-gold: #c8a45d;
    --disc-bg: #f4f7fb;
    --disc-text: #1f2937;
}

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

.nav-disc, .footer-disc {
    background: linear-gradient(135deg, var(--disc-navy), var(--disc-blue));
}

.hero-disc {
    background: radial-gradient(circle at 82% 18%, rgba(200, 164, 93, 0.22), transparent 28%), radial-gradient(circle at 15% 20%, rgba(47, 158, 117, 0.28), transparent 32%), linear-gradient(135deg, #081a2f 0%, #123a62 55%, #0f2742 100%);
    color: #fff;
    padding: 96px 0;
    position: relative;
    overflow: hidden;
}

.hero-disc::before,
.hero-disc::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    filter: blur(1px);
    animation: floatShape 8s ease-in-out infinite;
}

.hero-disc::before {
    width: 260px;
    height: 260px;
    left: -90px;
    top: 90px;
}

.hero-disc::after {
    width: 180px;
    height: 180px;
    right: 8%;
    bottom: -70px;
    animation-delay: 1.5s;
}

.hero-disc .container {
    position: relative;
    z-index: 2;
}

.hero-card {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    backdrop-filter: blur(12px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
    animation: floatCard 5s ease-in-out infinite;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #dff7ec;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 700;
    font-size: 0.9rem;
}

.hero-highlight {
    color: #f5d98f;
}

.hero-metric {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    padding: 14px;
}

.disc-wheel {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.disc-quadrant {
    min-height: 105px;
    border-radius: 22px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 12px 28px rgba(0,0,0,0.18);
}

.disc-quadrant strong {
    font-size: 2rem;
    line-height: 1;
}

.disc-d { background: linear-gradient(135deg, #e34b4b, #aa1f34); }
.disc-i { background: linear-gradient(135deg, #f2b84b, #d48716); }
.disc-s { background: linear-gradient(135deg, #34b77a, #178658); }
.disc-c { background: linear-gradient(135deg, #4778e6, #1e4ea8); }

.floating-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border-radius: 999px;
    padding: 10px 14px;
    box-shadow: 0 14px 34px rgba(15, 39, 66, 0.14);
    color: var(--disc-navy);
    font-weight: 700;
}

.soft-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 46px rgba(15, 39, 66, 0.12);
}

.section-title {
    font-weight: 800;
    color: var(--disc-navy);
}

.soft-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    box-shadow: 0 16px 38px rgba(15, 39, 66, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.icon-box {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(47, 158, 117, 0.12);
    color: var(--disc-green);
    font-size: 1.45rem;
}

.btn-disc-primary {
    background: linear-gradient(135deg, var(--disc-green), #238260);
    border: 0;
    color: #fff;
    border-radius: 999px;
    padding: 0.85rem 1.5rem;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(47, 158, 117, 0.25);
}

.btn-disc-primary:hover {
    color: #fff;
    transform: translateY(-1px);
}

.cta-band {
    background: linear-gradient(135deg, #0f2742, #153e66 60%, #2f9e75);
    color: #fff;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
}

.cta-band::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    right: -80px;
    top: -80px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(18px, -14px); }
}

.form-shell {
    max-width: 760px;
    margin: 0 auto;
}

.test-progress-sticky {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 10px 26px rgba(15, 39, 66, 0.08);
    backdrop-filter: blur(10px);
    padding: 12px 0;
}

.test-submit-floating {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.94);
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -12px 32px rgba(15, 39, 66, 0.12);
    backdrop-filter: blur(10px);
    padding: 14px 0;
}

#discForm {
    padding-bottom: 98px;
}

.analysis-active {
    overflow: hidden;
}

.analysis-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    background: rgba(8, 26, 47, 0.82);
    backdrop-filter: blur(8px);
    padding: 20px;
    min-height: 100vh;
}

.analysis-box {
    width: min(430px, 100%);
    background: #fff;
    border-radius: 28px;
    padding: 34px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
    transform: translateY(-2vh);
}

.analysis-box .progress {
    height: 14px !important;
    border-radius: 999px;
    background: #e8eef4;
    overflow: hidden;
}

.analysis-box .progress-bar {
    border-radius: 999px;
    transition: width 0.12s linear;
}

.analysis-spinner {
    width: 72px;
    height: 72px;
    margin: 0 auto;
    border-radius: 999px;
    border: 6px solid rgba(47, 158, 117, 0.16);
    border-top-color: var(--disc-green);
    animation: spinAnalysis 0.9s linear infinite;
}

@keyframes spinAnalysis {
    to { transform: rotate(360deg); }
}

.question-card {
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 39, 66, 0.06);
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.question-card.question-answered {
    background: linear-gradient(135deg, #f0fbf7, #ffffff);
    border-color: rgba(47, 158, 117, 0.45);
    box-shadow: 0 14px 34px rgba(47, 158, 117, 0.12);
}

.answered-badge {
    display: none;
    align-items: center;
    white-space: nowrap;
    border-radius: 999px;
    background: rgba(47, 158, 117, 0.12);
    color: var(--disc-green);
    padding: 6px 10px;
    font-size: 0.82rem;
    font-weight: 800;
}

.question-card.question-answered .answered-badge {
    display: inline-flex;
}

.option-card {
    display: block;
    border: 1px solid #dbe3ec;
    border-radius: 14px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    font-size: 0.95rem;
}

.option-card:hover, .option-card.active {
    border-color: var(--disc-green);
    background: #f0fbf7;
    box-shadow: 0 10px 24px rgba(47, 158, 117, 0.12);
}

.option-card input {
    margin-right: 8px;
}

.result-hero {
    background: radial-gradient(circle at 88% 18%, rgba(200, 164, 93, 0.28), transparent 26%), linear-gradient(135deg, #081a2f, #153e66 70%, #0f2742);
    color: #fff;
    border-radius: 28px;
    box-shadow: 0 24px 52px rgba(15, 39, 66, 0.22);
    overflow: hidden;
    position: relative;
}

.profile-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    min-height: 92px;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--disc-gold), #e3c879);
    color: #172033;
    font-size: 2rem;
    font-weight: 900;
}

.result-summary {
    border-left: 6px solid var(--disc-green);
}

.result-kicker {
    display: inline-flex;
    align-items: center;
    background: rgba(47, 158, 117, 0.12);
    color: var(--disc-green);
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 800;
    font-size: 0.88rem;
}

.result-mini-panel {
    background: linear-gradient(135deg, #f6faf8, #eef6ff);
    border: 1px solid #dfe9f3;
    border-radius: 20px;
    padding: 20px;
}

.profile-score-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    box-shadow: 0 16px 38px rgba(15, 39, 66, 0.08);
    padding: 22px;
    position: relative;
    overflow: hidden;
}

.profile-score-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
}

.profile-score-d::before { background: #dc3545; }
.profile-score-i::before { background: #ffc107; }
.profile-score-s::before { background: #198754; }
.profile-score-c::before { background: #0d6efd; }

.score-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: var(--disc-navy);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 900;
}

.score-points {
    background: #f3f6fa;
    border-radius: 999px;
    padding: 6px 10px;
    color: var(--disc-navy);
    font-size: 0.84rem;
}

.result-progress {
    height: 12px;
    border-radius: 999px;
    background: #edf1f5;
    overflow: hidden;
}

.ranking-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #eef2f6;
}

.ranking-row:last-child {
    border-bottom: 0;
}

.ranking-label {
    min-width: 165px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ranking-label strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: #f3f6fa;
    color: var(--disc-navy);
}

.ranking-value {
    min-width: 70px;
    text-align: right;
    font-weight: 800;
    color: var(--disc-navy);
}

.insight-card {
    background: #f8fafc;
    border: 1px solid #e7edf4;
    border-radius: 20px;
    padding: 22px;
}

.insight-card h5 {
    color: var(--disc-navy);
    font-weight: 800;
}

.insight-card p {
    margin-bottom: 0;
    color: #475569;
}

@media (max-width: 767.98px) {
    .test-progress-sticky {
        font-size: 0.9rem;
        padding: 10px 0;
    }

    .test-submit-floating .btn {
        width: 100%;
    }

    #discForm {
        padding-bottom: 104px;
    }

    .question-card {
        padding: 16px !important;
        margin-bottom: 14px !important;
    }

    .question-card h5 {
        font-size: 1rem;
        line-height: 1.35;
    }

    .question-card .row.g-3 {
        --bs-gutter-y: 0.65rem;
        --bs-gutter-x: 0.65rem;
    }

    .option-card {
        padding: 9px 10px;
        font-size: 0.92rem;
    }

    .question-card > .d-flex:first-child {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .question-card > .d-flex:first-child > .d-flex {
        flex-direction: column;
        gap: 10px !important;
    }

    .answered-badge {
        margin-top: 4px;
    }

    .ranking-row {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
    }

    .ranking-label,
    .ranking-value {
        min-width: 0;
        text-align: left;
    }
}

.admin-shell {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 16px 36px rgba(15, 39, 66, 0.08);
}

.admin-menu {
    background: var(--disc-navy);
    border-radius: 18px;
}

.admin-menu a {
    color: rgba(255,255,255,0.78);
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 12px;
    display: block;
}

.admin-menu a:hover, .admin-menu a.active {
    color: #fff;
    background: rgba(255,255,255,0.12);
}

@media print {
    .nav-disc, .footer-disc, .no-print, .btn, form { display: none !important; }
    body { background: #fff; }
    .soft-card, .result-hero { box-shadow: none; border: 1px solid #ddd; }
}
