/* ================================
   Test Pages — Premium Design System
   Uses variables from styles.css
   ================================ */

/* ── Page Shell ─────────────────── */
.test-page {
    min-height: 100vh;
    background: var(--bg-main);
    padding-top: 0;
    max-width: 100%;
    overflow-x: clip;
}

/* ── Sticky Progress Header ─────── */
.test-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    max-width: 100vw;
    overflow-x: hidden;
}

.test-topbar-inner {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-width: 0;
}

.test-topbar-logo {
    font-size: .85rem;
    font-weight: 700;
    color: var(--text-secondary);
    white-space: nowrap;
    letter-spacing: -.02em;
}

.test-topbar-logo span {
    color: var(--accent-primary);
}

.test-progress-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.test-progress-bar {
    width: 100%;
    height: 5px;
    background: var(--border-color);
    border-radius: 99px;
    overflow: hidden;
}

.test-progress-fill {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 99px;
    transition: width .6s cubic-bezier(.4, 0, .2, 1);
    width: 0%;
}

.test-progress-label {
    font-size: .72rem;
    color: var(--text-tertiary);
    text-align: right;
    letter-spacing: .04em;
}

/* ── Dark Mode Toggle (top-right) ── */
.test-dark-toggle {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-shrink: 0;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 44px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    inset: 10px 4px;
    background: var(--border-color);
    border-radius: 99px;
    cursor: pointer;
    transition: background .3s;
}

.slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: var(--text-primary);
    border-radius: 50%;
    transition: transform .3s;
}

.toggle-switch input:checked+.slider {
    background: var(--accent-primary);
}

.toggle-switch input:checked+.slider::before {
    transform: translateX(20px);
}

/* ── Main Content ───────────────── */
.test-main {
    max-width: 860px;
    width: 100%;
    min-width: 0;
    margin: 0 auto;
    padding: 3rem 1.5rem 6rem;
}

/* ── Block Hero ─────────────────── */
.test-hero {
    text-align: center;
    padding: 3rem 0 2.5rem;
    position: relative;
    max-width: 100%;
    overflow: hidden;
}

.test-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    pointer-events: none;
    border-radius: 1.5rem;
}

.test-block-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--accent-subtle);
    border: 1px solid var(--border-highlight);
    color: var(--accent-primary);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .4rem 1rem;
    border-radius: 99px;
    margin-bottom: 1.25rem;
}

.test-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    letter-spacing: -.04em;
    margin-bottom: .75rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    overflow-wrap: anywhere;
}

.test-hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 1.5rem;
    line-height: 1.7;
}

.test-hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.test-hero-meta-item {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .8rem;
    color: var(--text-tertiary);
    min-width: 0;
    overflow-wrap: anywhere;
}

.test-hero-meta-item strong {
    color: var(--text-secondary);
}

.answered-counter-chip {
    margin-left: auto;
    font-weight: 600;
    font-size: .8rem;
    transition: color .3s ease;
    min-width: 9rem;
    justify-content: flex-end;
}

/* ── Instruction Card ───────────── */
.test-instruction {
    background: var(--accent-subtle);
    border: 1px solid var(--border-highlight);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    min-width: 0;
}

.test-instruction-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: .1rem;
}

.test-instruction p {
    font-size: .9rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

/* ── Question Cards ─────────────── */
.questions-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.question-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    padding: 1.75rem 2rem;
    transition: border-color .25s, box-shadow .25s;
    position: relative;
    overflow: hidden;
}

.question-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity .3s;
}

.question-card:focus-within {
    border-color: var(--border-highlight);
    box-shadow: var(--shadow-glow);
}

.question-card:focus-within::before {
    opacity: 1;
}

/* Active question indicator (set by IntersectionObserver) */
.question-card.is-active {
    border-color: var(--border-highlight);
}
.question-card.is-active::before {
    opacity: 1;
}

.question-number {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent-primary);
    margin-bottom: .6rem;
}

.question-text {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 1.25rem;
    letter-spacing: -.02em;
}

/* ── Options Grid ───────────────── */
.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .6rem;
}

@media (max-width: 600px) {
    .options-grid {
        grid-template-columns: 1fr;
    }
}

.option-item {
    position: relative;
}

.option-label {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .8rem 1rem;
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    border-radius: .75rem;
    cursor: pointer;
    transition: all .2s ease;
    user-select: none;
    min-height: 52px;
}

.option-label:hover {
    border-color: var(--border-highlight);
    background: var(--card-bg-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .15);
}

.option-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    background: transparent;
    cursor: pointer;
    transition: all .2s;
    position: relative;
    flex-shrink: 0;
}

.option-checkbox:checked {
    background: var(--gradient-accent);
    border-color: var(--accent-primary);
}

.option-checkbox:checked::after {
    content: '✓';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    font-weight: 800;
    color: var(--text-on-accent);
    line-height: 1;
    top: 1px;
    left: 3px;
}

.option-label:has(.option-checkbox:checked) {
    border-color: var(--accent-primary);
    background: var(--accent-subtle);
    animation: selectPop .2s ease;
}

@keyframes selectPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.option-text {
    font-size: .9rem;
    color: var(--text-secondary);
    line-height: 1.4;
    flex: 1;
}

.option-label:has(.option-checkbox:checked) .option-text {
    color: var(--text-primary);
    font-weight: 500;
}

/* ── Divider between questions ──── */
.question-divider {
    height: 1px;
    background: var(--border-color);
    margin: .25rem 0;
    opacity: .5;
}

/* ── Sticky Footer Navigation ───── */
.test-footer-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    max-width: 100vw;
    overflow-x: hidden;
}

.test-footer-nav-inner {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
}

.test-footer-info {
    font-size: .8rem;
    color: var(--text-tertiary);
}

.test-footer-info strong {
    color: var(--accent-primary);
}

.test-footer-actions {
    display: flex;
    gap: .75rem;
}

/* ── Buttons (reuse from styles.css) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .75rem 1.5rem;
    border-radius: .75rem;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all .2s;
    letter-spacing: -.01em;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--text-on-accent);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1.5px solid var(--border-color);
}

.btn-ghost:hover {
    border-color: var(--border-highlight);
    color: var(--text-primary);
}

/* ── Validation Error State ─────── */
.question-card.has-error {
    border-color: rgba(239, 68, 68, .5);
    animation: shake .3s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-6px);
    }

    75% {
        transform: translateX(6px);
    }
}

/* ── Scroll-in animation ────────── */
.question-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp .4s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-card:nth-child(1) {
    animation-delay: .05s;
}

.question-card:nth-child(2) {
    animation-delay: .10s;
}

.question-card:nth-child(3) {
    animation-delay: .15s;
}

.question-card:nth-child(4) {
    animation-delay: .20s;
}

.question-card:nth-child(5) {
    animation-delay: .25s;
}

.question-card:nth-child(6) {
    animation-delay: .30s;
}

.question-card:nth-child(7) {
    animation-delay: .35s;
}

.question-card:nth-child(8) {
    animation-delay: .40s;
}

.question-card:nth-child(9) {
    animation-delay: .45s;
}

.question-card:nth-child(10) {
    animation-delay: .50s;
}

.question-card:nth-child(11) {
    animation-delay: .55s;
}

.question-card:nth-child(12) {
    animation-delay: .60s;
}

.question-card:nth-child(13) {
    animation-delay: .65s;
}

.question-card:nth-child(14) {
    animation-delay: .70s;
}

.question-card:nth-child(15) {
    animation-delay: .75s;
}

/* ── Responsive ─────────────────── */
@media (max-width: 768px) {
    .test-topbar {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .test-topbar-inner {
        gap: .75rem;
        max-width: 100%;
    }

    .test-topbar-logo {
        font-size: .75rem;
        min-width: 0;
        overflow-wrap: anywhere;
        white-space: normal;
    }

    .test-main {
        padding: 2rem 1rem 7rem;
        max-width: 100%;
        overflow-x: hidden;
    }

    .test-hero {
        padding: 2.25rem 0 1.75rem;
    }

    .test-hero-meta {
        gap: .65rem 1rem;
    }

    .test-footer-nav {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .test-footer-nav-inner {
        max-width: 100%;
    }

    .question-card {
        padding: 1.25rem 1.25rem;
        min-width: 0;
    }

    .test-hero h1 {
        font-size: 1.6rem;
    }

    .test-footer-info {
        display: none;
    }

    .test-footer-actions {
        width: 100%;
    }

    .test-footer-actions .btn {
        flex: 1;
        min-width: 0;
        white-space: normal;
    }

    .test-footer-nav .btn {
        max-width: 50%;
    }
}

@media (max-width: 480px) {
    .test-dark-toggle {
        gap: .25rem;
    }

    .test-hero,
    .test-instruction,
    .question-card,
    .option-label,
    .test-footer,
    .test-footer-actions {
        min-width: 0;
        max-width: 100%;
    }

    .question-text,
    .option-label,
    .test-instruction p {
        overflow-wrap: anywhere;
    }

    .option-label {
        min-height: 48px;
        padding: .85rem 1rem;
    }

    .test-hero h1 {
        font-size: clamp(1.55rem, 10vw, 1.95rem);
    }
}

/* ── Answered card checkmark badge ─ */
.question-card.answered::after {
    content: '✓';
    position: absolute;
    top: .9rem;
    right: 1rem;
    width: 22px;
    height: 22px;
    background: var(--gradient-accent);
    color: #fff;
    font-size: .7rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding-top: 1px;
    box-shadow: 0 2px 8px var(--accent-glow);
    animation: badgePop .25s ease;
}

@keyframes badgePop {
    0% { transform: scale(0) rotate(-20deg); opacity: 0; }
    70% { transform: scale(1.15) rotate(3deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); }
}

/* When answered, subtly highlight the left bar too */
.question-card.answered {
    border-color: var(--border-highlight);
}
.question-card.answered::before {
    opacity: 0.7;
}

/* ── Question-type chip ─────────── */
.question-type-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-tertiary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 99px;
    padding: .3rem .85rem;
    margin-bottom: 1.5rem;
    letter-spacing: .02em;
    transition: color .2s;
}

/* ── Clear block button ─────────── */
.clear-block-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: .5rem .25rem;
    text-align: center;
    margin: .35rem 0 0;
    font-size: .78rem;
    color: var(--text-tertiary, rgba(255,255,255,0.35));
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    transition: color .2s;
}
.clear-block-btn:hover {
    color: rgba(239, 68, 68, .7);
    text-decoration: underline;
}

/* ── Enhanced option select animation */
@keyframes optionBounce {
    0% { transform: scale(1); }
    35% { transform: scale(1.025); }
    65% { transform: scale(0.99); }
    100% { transform: scale(1); }
}
.option-label:has(.option-checkbox:checked),
.option-label:has(.option-radio:checked) {
    border-color: var(--accent-primary);
    background: var(--accent-subtle);
    animation: optionBounce .22s ease;
}

/* Radio button custom style (same look as checkbox) */
.option-radio {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: all .2s;
    position: relative;
    flex-shrink: 0;
}
.option-radio:checked {
    background: var(--gradient-accent);
    border-color: var(--accent-primary);
}
.option-radio:checked::after {
    content: '';
    position: absolute;
    width: 7px;
    height: 7px;
    background: #fff;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ── Toast notification ─────────── */
.ux-toast {
    position: fixed;
    bottom: 5.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--card-bg);
    border: 1px solid var(--border-highlight);
    color: var(--text-secondary);
    font-size: .82rem;
    padding: .65rem 1.25rem;
    border-radius: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,.3);
    z-index: 999;
    white-space: nowrap;
    opacity: 0;
    transition: opacity .3s, transform .3s;
    pointer-events: none;
}
.ux-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ── Explicit test consent ─────────── */
.test-consent-card {
    padding: 1.5rem;
    margin: 0 0 1.75rem;
    border: 1px solid var(--border-highlight);
    border-radius: 1rem;
    background: var(--card-bg);
    box-shadow: var(--shadow-md);
}
.test-consent-card h2 {
    margin: .35rem 0 .6rem;
    font-size: 1.35rem;
    color: var(--text-primary);
}
.test-consent-card > p {
    color: var(--text-secondary);
    line-height: 1.6;
}
.test-consent-kicker {
    color: var(--accent-primary);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.test-consent-options {
    display: grid;
    gap: .8rem;
    margin: 1.25rem 0;
}
.test-consent-options label {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    color: var(--text-secondary);
    line-height: 1.5;
    cursor: pointer;
    min-height: 44px;
    padding: .3rem 0;
}
.test-consent-options input {
    width: 18px;
    height: 18px;
    margin-top: .15rem;
    accent-color: var(--accent-primary);
    flex: 0 0 auto;
}
.test-consent-options a {
    color: var(--accent-primary);
}
.test-consent-crisis {
    padding: .8rem 1rem;
    border-left: 3px solid #f59e0b;
    background: rgba(245, 158, 11, .08);
.test-consent-options input {
    width: 18px;
    height: 18px;
    margin-top: .15rem;
    accent-color: var(--accent-primary);
    flex: 0 0 auto;
}
.test-consent-options a {
    color: var(--accent-primary);
}
.test-consent-crisis {
    padding: .8rem 1rem;
    border-left: 3px solid #f59e0b;
    background: rgba(245, 158, 11, .08);
    font-size: .85rem;
}
.test-consent-card .btn {
    width: 100%;
}
.test-consent-card .btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

/* =========================================================================
   CSP Compatibility & Consolidation — Extra Styles for specific blocks
   ========================================================================= */

/* -- Skip block link -- */
.skip-block-link {
    display: block;
    text-align: center;
    margin: 0.5rem 0 0;
    font-size: 0.8rem;
    color: var(--text-secondary, rgba(255,255,255,0.45));
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}
.skip-block-link:hover {
    color: var(--text-primary, #fff);
    text-decoration: underline;
}

/* -- Symbolic Disclaimer -- */
.test-instruction-symbolic {
    border-color: rgba(168, 85, 247, .3) !important;
    background: rgba(168, 85, 247, .06) !important;
    margin-bottom: 1.5rem !important;
}

/* -- Context Selector (Blocks B, D, E, E1) -- */
.context-selector {
    text-align: center;
    margin: 1rem auto 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--glass-bg, rgba(255,255,255,0.06));
    border: 1px solid var(--glass-border, rgba(255,255,255,0.1));
    border-radius: 12px;
    max-width: 520px;
}
.context-selector-label {
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    opacity: 0.7;
}
.context-selector-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}
.ctx-btn {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border, rgba(255,255,255,0.15));
    background: transparent;
    color: var(--text-primary, #fff);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}
.ctx-btn:hover {
    background: rgba(139,92,246,0.15);
    border-color: rgba(139,92,246,0.4);
}
.ctx-btn.active {
    background: rgba(139,92,246,0.25);
    border-color: rgba(139,92,246,0.6);
    font-weight: 600;
}
.context-tip {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--accent-primary);
    opacity: 0.9;
    min-height: 1.2rem;
}

/* -- Q9 Multi-select grid (Block M) -- */
.q9-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}
@media (max-width: 600px) {
    .q9-grid {
        grid-template-columns: 1fr;
    }
}

/* -- Q15 Ranking (Block M) -- */
.ranking-container {
    max-width: 560px;
    margin: 0 auto;
}
.ranking-pool {
    margin-bottom: 1.5rem;
    margin-top: 1.25rem;
}
.ranking-instructions {
    font-size: 0.85rem;
    opacity: 0.6;
    margin: 0 0 0.75rem;
}
.ranking-pool-label {
    font-size: 0.85rem;
    opacity: 0.6;
    margin-bottom: 0.5rem;
}
.ranking-items {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.ranking-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    background: var(--glass-bg, rgba(255,255,255,0.04));
    border: 1px solid var(--glass-border, rgba(255,255,255,0.08));
    cursor: grab;
    user-select: none;
    transition: all 0.2s;
    font-size: 0.9rem;
    color: var(--text-primary, #fff);
}
.ranking-item:active {
    cursor: grabbing;
}
.ranking-item.selected {
    background: rgba(139,92,246,0.15);
    border-color: rgba(139,92,246,0.5);
}
.ranking-item .rank-num {
    min-width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(139,92,246,0.3);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}
.ranking-item .rank-num.empty {
    background: rgba(255,255,255,0.08);
}
.ranking-item .drag-handle {
    opacity: 0.35;
    cursor: grab;
}
.ranking-slots {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}
.ranking-slot {
    padding: 0.65rem 1rem;
    border-radius: 10px;
    border: 2px dashed rgba(139,92,246,0.3);
    background: rgba(139,92,246,0.05);
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary, rgba(255,255,255,0.5));
}
.ranking-slot.filled {
    border-style: solid;
    border-color: rgba(139,92,246,0.5);
    background: rgba(139,92,246,0.12);
    color: var(--text-primary, #fff);
}
.ranking-slot .slot-number {
    min-width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a78bfa, #818cf8);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}
.ranking-slot .remove-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    font-size: 1rem;
    padding: 0.25rem;
    transition: color 0.2s;
}
.ranking-slot .remove-btn:hover {
    color: #f87171;
}

/* -- Custom Form Card (Block N) -- */
.custom-form-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}
.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(138, 75, 250, 0.2);
}
[data-theme="light"] .form-control {
    background: #fff;
}
