
/* ═══════════════════════════════════════════════════════════════
   Phase F.4 — Slot Selector Panel
   پنل انتخاب slot هویت بعد از login
   با همان سبک Login Modal: gradient تیره، طلایی، breathing animations
   ═══════════════════════════════════════════════════════════════ */

.slot-selector {
    position: fixed;
    inset: 0;
    z-index: 9500;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.4s ease;
}

.slot-selector.hidden {
    display: none !important;
}

.slot-selector-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.slot-selector-content {
    position: relative;
    z-index: 1;
    width: min(340px, calc(100% - 40px));
    padding: 22px 18px;
    background: linear-gradient(
        135deg,
        rgba(15, 15, 20, 0.95) 0%,
        rgba(25, 22, 30, 0.95) 100%
    );
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 24px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(212, 175, 55, 0.08);
    text-align: center;
    animation: loginRise 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.slot-selector-header {
    margin-bottom: 24px;
}

.slot-selector-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
    animation: loginPulse 3s ease-in-out infinite;
}

.slot-selector-logo svg {
    width: 70px;
    height: 70px;
    filter: drop-shadow(0 0 22px rgba(212, 175, 55, 0.5));
}

.slot-selector-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--gold, #d4af37);
    margin: 0 0 6px 0;
    letter-spacing: 0.8px;
}

.slot-selector-subtitle {
    font-size: 11px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 auto;
    max-width: 280px;
    font-style: italic;
}

/* 🆕 Phase F.5: Two-state language toggle (FA/EN) — زیر کارت‌ها */
.slot-lang-toggle-wrap {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}
.slot-lang-toggle {
    position: relative;
    display: flex;
    background: linear-gradient(135deg, rgba(15, 15, 20, 0.9), rgba(25, 22, 30, 0.9));
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 999px;
    padding: 4px;
    cursor: pointer;
    overflow: hidden;
    box-shadow: inset 0 0 12px rgba(212, 175, 55, 0.05);
}
.slot-lang-pill {
    padding: 7px 18px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(212, 175, 55, 0.55);
    letter-spacing: 0.5px;
    border-radius: 999px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
    position: relative;
    user-select: none;
}
.slot-lang-pill.active {
    color: #1a1a1a;
    background: linear-gradient(135deg, var(--gold, #d4af37), #c9a961);
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}
.slot-lang-toggle:hover {
    border-color: rgba(212, 175, 55, 0.55);
}

.slot-selector-divider {
    height: 1px;
    background: linear-gradient(
        to left,
        transparent 0%,
        rgba(212, 175, 55, 0.2) 50%,
        transparent 100%
    );
    margin: 0 auto 24px auto;
    max-width: 280px;
}

/* Cards container */
.slot-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

/* Single card */
.slot-card {
    position: relative;
    padding: 10px 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 12px;
    transition: all 0.3s ease;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
}

.slot-card:hover {
    border-color: rgba(212, 175, 55, 0.4);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.slot-card.empty {
    border-style: dashed;
}

.slot-card.locked {
    opacity: 0.85;
}

.slot-card-number {
    font-size: 10px;
    color: rgba(212, 175, 55, 0.6);
    letter-spacing: 1.5px;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.slot-card-icon {
    font-size: 22px;
    margin-bottom: 6px;
    color: rgba(212, 175, 55, 0.5);
}

.slot-card-empty-text {
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
    font-style: italic;
    margin: 4px 0 8px 0;
}

.slot-card-identity {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    line-height: 1.5;
    margin: 4px 0 6px 0;
    /* Truncate to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 40px;
}

.slot-card-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
}

.slot-card-changes {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.slot-card-locked-badge {
    color: rgba(212, 175, 55, 0.7);
    background: rgba(212, 175, 55, 0.08);
    padding: 1px 6px;
    border-radius: 8px;
    font-size: 9px;
}

/* Card actions */
.slot-card-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.slot-card-btn {
    width: 100%;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
}

.slot-card-btn.primary {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.9), rgba(212, 175, 55, 1));
    color: #1a1a1a;
}

.slot-card-btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.25);
}

.slot-card-btn.secondary {
    background: transparent;
    color: var(--gold, #d4af37);
    border: 1px solid rgba(212, 175, 55, 0.4);
}

.slot-card-btn.secondary:hover:not(:disabled) {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.7);
}

.slot-card-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Footer with logout */
.slot-selector-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.slot-selector-logout {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.slot-selector-logout:hover {
    color: rgba(212, 175, 55, 0.8);
}

/* Confirmation modal for "change identity" warning */
.slot-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.slot-confirm-modal.hidden {
    display: none !important;
}

.slot-confirm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
}

.slot-confirm-content {
    position: relative;
    z-index: 1;
    width: min(440px, calc(100% - 40px));
    padding: 36px 28px;
    background: linear-gradient(135deg, rgba(20, 18, 25, 0.97), rgba(30, 25, 35, 0.97));
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    text-align: center;
    animation: loginRise 0.4s ease;
}

.slot-confirm-title {
    color: var(--gold, #d4af37);
    font-size: 18px;
    margin: 0 0 16px 0;
    font-weight: 600;
}

.slot-confirm-message {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 12px 0;
}

.slot-confirm-counter {
    color: rgba(212, 175, 55, 0.8);
    font-size: 13px;
    margin: 0 0 24px 0;
    font-style: italic;
}

.slot-confirm-actions {
    display: flex;
    gap: 12px;
}

.slot-confirm-actions button {
    flex: 1;
    padding: 12px;
    border-radius: 11px;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
}

.slot-confirm-cancel {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.slot-confirm-cancel:hover {
    background: rgba(255, 255, 255, 0.08);
}

.slot-confirm-proceed {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4) !important;
}

.slot-confirm-proceed:hover {
    background: rgba(239, 68, 68, 0.25);
}

/* Mobile responsive */
@media (max-width: 600px) {
    .slot-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .slot-selector-content {
        padding: 36px 20px;
    }
    .slot-selector-title {
        font-size: 24px;
    }
    .slot-card {
        min-height: 180px;
    }
}

/* ═══════════════════════════════════════════════════════════
   🆕 Phase F.5 — Voice Gender Picker (در header)
═══════════════════════════════════════════════════════════ */
.tts-group {
    display: flex;
    align-items: center;
    gap: 4px;
}
.voice-gender-picker {
    display: flex;
    gap: 2px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 14px;
    padding: 2px;
    opacity: 0.4;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.tts-group.tts-active .voice-gender-picker {
    opacity: 1;
    pointer-events: auto;
}
.voice-gender-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: rgba(212, 175, 55, 0.6);
    font-size: 14px;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.voice-gender-btn:hover {
    color: var(--gold, #d4af37);
}
.voice-gender-btn.active {
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold, #d4af37);
}

/* ═══════════════════════════════════════════════════════════
   🆕 Lock badge on map button
═══════════════════════════════════════════════════════════ */
#toggleMapBtn {
    position: relative;
}
.lock-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    font-size: 9px;
    background: rgba(15, 15, 20, 0.95);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(212, 175, 55, 0.4);
    transition: opacity 0.3s ease;
}
.lock-badge.unlocked {
    opacity: 0;
}

/* ═══════════════════════════════════════════════════════════
   🆕 Map Lock Modal
═══════════════════════════════════════════════════════════ */
.map-lock-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100vw !important;
    height: 100vh !important;
}
.map-lock-modal.hidden {
    display: none !important;
}
.map-lock-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}
.map-lock-content {
    position: relative;
    z-index: 1;
    width: min(420px, calc(100% - 40px));
    padding: 32px 28px;
    background: linear-gradient(135deg, rgba(15, 15, 20, 0.97), rgba(25, 22, 30, 0.97));
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    text-align: center;
    animation: loginRise 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.map-lock-title {
    font-size: 18px;
    color: var(--gold, #d4af37);
    margin: 0 0 12px 0;
    font-weight: 600;
}
.map-lock-message {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 20px 0;
}
.map-lock-input {
    width: 200px;
    height: 44px;
    text-align: center;
    font-size: 18px;
    letter-spacing: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    color: var(--gold, #d4af37);
    margin-bottom: 12px;
    outline: none;
    transition: border-color 0.2s ease;
}
.map-lock-input:focus {
    border-color: rgba(212, 175, 55, 0.6);
}
.map-lock-error {
    font-size: 12px;
    color: #e85a5a;
    margin: 0 0 12px 0;
}
.map-lock-error.hidden {
    display: none;
}
.map-lock-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
}
.map-lock-cancel,
.map-lock-submit {
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 13px;
    cursor: pointer;
    border: 1px solid rgba(212, 175, 55, 0.3);
    transition: all 0.2s ease;
}
.map-lock-cancel {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
}
.map-lock-cancel:hover {
    background: rgba(255, 255, 255, 0.04);
}
.map-lock-submit {
    background: var(--gold, #d4af37);
    color: #1a1a1a;
    border-color: var(--gold, #d4af37);
    font-weight: 600;
}
.map-lock-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
}

/* ═══════════════════════════════════════════════════════════
   🆕 Layer Genesis Animation — لایه‌های ذهن مثل لوگو پر می‌شن
═══════════════════════════════════════════════════════════ */
.genesis-loading-brain svg .gn-node {
    opacity: 0.15;
    transition: opacity 0.6s ease;
}
.genesis-loading-brain.layer-1-done svg .gn-node[data-layer="1"] {
    opacity: 1;
    filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.6));
}
.genesis-loading-brain.layer-2-done svg .gn-node[data-layer="1"],
.genesis-loading-brain.layer-2-done svg .gn-node[data-layer="2"] {
    opacity: 1;
    filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.6));
}
.genesis-loading-brain.layer-3-done svg .gn-node[data-layer="1"],
.genesis-loading-brain.layer-3-done svg .gn-node[data-layer="2"],
.genesis-loading-brain.layer-3-done svg .gn-node[data-layer="3"] {
    opacity: 1;
    filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.6));
}
.genesis-loading-brain.layer-4-done svg .gn-node {
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.8));
}

/* The progress arc (subtle, no text) */
.layer-progress-ring {
    position: absolute;
    width: 220px;
    height: 220px;
    pointer-events: none;
}
.layer-progress-ring circle {
    fill: none;
    stroke: rgba(212, 175, 55, 0.15);
    stroke-width: 2;
}
.layer-progress-ring .layer-progress-fill {
    stroke: var(--gold, #d4af37);
    stroke-linecap: round;
    transition: stroke-dashoffset 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ═══════════════════════════════════════════════════════════
   🆕 Phase F.5 — Logo bigger + stronger pulse
═══════════════════════════════════════════════════════════ */
.selfa-logo-pulse {
    animation: selfaStrongPulse 2.4s ease-in-out infinite;
}
.selfa-logo-pulse svg {
    filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.6));
}
@keyframes selfaStrongPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 24px rgba(212, 175, 55, 0.4));
    }
    50% {
        transform: scale(1.08);
        filter: drop-shadow(0 0 40px rgba(212, 175, 55, 0.75));
    }
}

/* 🆕 Phase F.5: Logout icon (top-left corner) */
.slot-selector-logout-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(15, 15, 20, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: rgba(212, 175, 55, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}
.slot-selector-logout-icon:hover {
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold, #d4af37);
    border-color: rgba(212, 175, 55, 0.5);
    transform: scale(1.05);
}

/* hide old footer (with "یا" text) */
.slot-selector-footer {
    display: none !important;
}

/* 🆕 Phase F.6: Login modal کوچیک‌تر — ۵۰٪ سایز قبلی */
.login-modal-content {
    width: min(360px, calc(100% - 32px)) !important;
    padding: 22px 20px !important;
}

.login-modal-content .login-logo svg {
    width: 60px !important;
    height: 60px !important;
}

.login-modal-content .login-title {
    font-size: 22px !important;
    margin-bottom: 6px !important;
}

.login-modal-content .login-subtitle {
    font-size: 12px !important;
    line-height: 1.6 !important;
    margin-bottom: 16px !important;
}

.login-modal-content .google-btn {
    padding: 10px 14px !important;
    font-size: 13px !important;
}

.login-modal-content .login-divider {
    margin: 14px 0 !important;
    font-size: 11px !important;
}

.login-modal-content .login-email-input {
    padding: 9px 12px !important;
    font-size: 12px !important;
}

.login-modal-content .login-magic-btn {
    padding: 9px 14px !important;
    font-size: 12px !important;
    margin-top: 8px !important;
}

/* 🆕 Phase F.6: پیام صبر زیر loading genesis */
.genesis-loading-patience {
    margin-top: 24px;
    font-size: 12px;
    color: rgba(212, 175, 55, 0.55);
    font-style: italic;
    letter-spacing: 0.3px;
    animation: patienceBreathe 4s ease-in-out infinite;
}
@keyframes patienceBreathe {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.85; }
}

/* ════════════════════════════════════════════════════════════ */
/* 🆕 Phase F.7 — Happiness panel: 30% smaller + tooltips + modal */
/* ════════════════════════════════════════════════════════════ */

/* کل پاپ‌آپ سعادت ۳۰٪ کوچک‌تر */
.happiness-panel-content {
    transform: scale(0.85);
    transform-origin: center center;
    max-height: 92vh !important;
    overflow: visible !important;
}

@media (max-height: 720px) {
    .happiness-panel-content {
        transform: scale(0.78);
    }
}

/* کوچک‌تر کردن orb */
.happiness-orb-container {
    width: 160px !important;
    height: 160px !important;
}
.happiness-orb {
    width: 100% !important;
    height: 100% !important;
}
.orb-value {
    font-size: 30px !important;
}
.orb-caption {
    font-size: 11px !important;
}

/* فشرده‌تر کردن bars */
.happiness-bars {
    gap: 10px !important;
    margin: 14px 0 !important;
}
.happiness-bar-row {
    position: relative;
    cursor: pointer;
    padding: 4px 0;
    transition: opacity 0.2s;
}
.happiness-bar-row:hover {
    opacity: 0.95;
}
.bar-label {
    font-size: 12px !important;
}
.bar-value {
    font-size: 12px !important;
}
.bar-track {
    height: 6px !important;
}

/* reflection و trend */
.happiness-reflection {
    margin: 10px 0 !important;
    padding: 10px 14px !important;
}
.reflection-quote {
    font-size: 12px !important;
    line-height: 1.6 !important;
}
.happiness-trend {
    margin: 10px 0 !important;
}
.trend-label {
    font-size: 11px !important;
}
.trend-chart {
    height: 60px !important;
}
.happiness-footer {
    margin-top: 10px !important;
}
.footer-note {
    font-size: 10px !important;
}
.happiness-title {
    font-size: 18px !important;
}
.happiness-subtitle {
    font-size: 11px !important;
}
.happiness-header {
    margin-bottom: 8px !important;
}

/* ─────────── Tooltip روی هر bar ─────────── */
.bar-tooltip {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: linear-gradient(135deg, rgba(20, 18, 25, 0.98), rgba(28, 24, 32, 0.98));
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 10px;
    padding: 9px 13px;
    min-width: 220px;
    max-width: 320px;
    font-size: 11px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 50;
    text-align: center;
}
.happiness-bar-row:hover .bar-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
.bar-tooltip-text {
    display: block;
    color: rgba(255, 255, 255, 0.85);
}
.bar-tooltip-more {
    display: inline-block;
    margin-top: 6px;
    color: var(--gold, #d4af37);
    font-size: 10px;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.bar-tooltip-more:hover {
    color: #f1c84d;
}

/* ─────────── Reasoning Detail Modal ─────────── */
.reasoning-detail-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.reasoning-detail-modal.hidden {
    display: none !important;
}
.reasoning-detail-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.reasoning-detail-content {
    position: relative;
    z-index: 1;
    width: min(440px, calc(100% - 32px));
    max-height: 80vh;
    overflow-y: auto;
    background: linear-gradient(135deg, rgba(18, 16, 22, 0.98), rgba(28, 24, 32, 0.98));
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 18px;
    padding: 26px 24px 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 80px rgba(212, 175, 55, 0.12);
    animation: reasoningRise 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes reasoningRise {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.reasoning-detail-close {
    position: absolute;
    top: 10px;
    inset-inline-end: 14px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 22px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    transition: color 0.2s;
}
.reasoning-detail-close:hover {
    color: var(--gold, #d4af37);
}
.reasoning-detail-title {
    font-size: 17px;
    color: var(--gold, #d4af37);
    margin: 0 0 10px;
    text-align: center;
}
.reasoning-detail-score {
    text-align: center;
    margin-bottom: 16px;
    font-size: 28px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    letter-spacing: 0.5px;
}
.reasoning-detail-body {
    font-size: 13px;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.82);
    text-align: justify;
}
.reasoning-detail-body p {
    margin: 0 0 12px;
}
.reasoning-detail-body p:last-child {
    margin-bottom: 0;
}
