/* RESET & BASE */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #0f172a;
    color: #ffffff;
    line-height: 1.6;
}

/* LAYOUT: SPLIT CONTAINER */
.split-container {
    display: flex;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* LEFT PANE: MANIFESTO */
.manifesto-pane {
    width: 40%;
    background-color: #0f172a;
    padding: 4rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.content-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

h1 {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.highlight {
    color: #facc15;
    /* Neon Gold */
}

/* NARRATIVE BODY - UNIFIED */
.narrative-body p {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: #cbd5e1;
    /* Light Gray Body Text */
    margin-bottom: 1.5rem;
    font-weight: 300;
    line-height: 1.6;
}

.narrative-body strong {
    color: #ffffff;
    /* Headlines/Emphasis White */
    font-weight: 700;
}

/* AUDIT LIST */
.audit-list {
    margin-top: 2rem;
}

.list-header {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: #facc15;
    /* Accent */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.audit-list ul {
    list-style: none;
}

.audit-list li {
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: #cbd5e1;
    /* Body Text */
    margin-bottom: 0.8rem;
}

.icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    width: 2rem;
    text-align: center;
    color: #facc15;
    /* Accent */
}

/* RIGHT PANE: ENGINE & VIDEO */
.engine-pane {
    width: 60%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
}

.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

/* LAYERING FOR SMART LOOP */
.poster-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    /* Bottom */
}

#engine-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    /* Middle */
    transition: opacity 1s ease-in-out;
    opacity: 1;
}

.fade-out {
    opacity: 0 !important;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 3;
    /* Top */
}

.control-btn {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    z-index: 20;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: monospace;
}

/* TERMINAL CARD & INPUTS */
.terminal-card {
    position: relative;
    z-index: 10;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2.5rem;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.terminal-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #facc15;
    margin-bottom: 2rem;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(250, 204, 21, 0.3);
    padding-bottom: 1rem;
}

.form-row {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* INPUT VISIBILITY FIX */
.std-input,
.clean-input {
    width: 100%;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #fff;
    outline: none;
    background: transparent;
    border: none;
    padding: 0.8rem;
}

.glass-input,
.glass-group {
    background: rgba(255, 255, 255, 0.07);
    /* Visual Brief: 7% White */
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Visual Brief: Subtle Border */
    border-radius: 6px;
    transition: border-color 0.2s, background-color 0.2s;
}

.glass-input:focus,
.glass-group:focus-within {
    border-color: #facc15;
    background: rgba(255, 255, 255, 0.1);
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.prefix {
    position: absolute;
    left: 1rem;
    color: #94a3b8;
    pointer-events: none;
}

.clean-input {
    padding-left: 2rem;
    /* Room for prefix */
}

.action-btn {
    width: 100%;
    background: #facc15;
    color: #0f172a;
    border: none;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background 0.2s, transform 0.1s;
    margin-top: 1rem;
}

/* TOGGLE GROUP (Rent/Own) */
.toggle-group {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.07);
    padding: 0.3rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: fit-content;
}

.toggle-option {
    position: relative;
    cursor: pointer;
}

.toggle-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.pill {
    display: block;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #94a3b8;
    transition: 0.2s;
}

.toggle-option input:checked+.pill {
    background: #facc15;
    color: #0f172a;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hidden {
    display: none !important;
}

.action-btn:hover {
    background: #fde047;
    box-shadow: 0 0 15px rgba(250, 204, 21, 0.4);
}

.action-btn:active {
    transform: scale(0.98);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .split-container {
        flex-direction: column;
        height: auto;
        overflow: visible;
    }

    .manifesto-pane {
        width: 100%;
        padding: 3rem 2rem;
        order: 1;
    }

    .engine-pane {
        width: 100%;
        height: 600px;
        order: 2;
    }

    .terminal-card {
        width: 90%;
    }
}

/* --- PHASE 4: ACTIVE AUDITOR STYLES --- */

.report-body {
    background-color: #0f172a;
    min-height: 100vh;
    padding: 2rem;
    color: #fff;
}

.report-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

/* HERO SECTION */
.report-hero {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 1rem;
    position: relative;
}

.hero-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.hero-total {
    font-family: 'Inter', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.badge-container {
    display: flex;
    justify-content: center;
}

.status-badge {
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ACCORDION STYLES */
.audit-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    /* overflow: hidden; REMOVED FOR TOOLTIPS */
    transition: all 0.3s ease;
}

.accordion-card.active {
    border-color: #facc15;
    background: rgba(250, 204, 21, 0.05);
    /* Subtle Gold Tint */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-left .icon {
    font-size: 1.5rem;
}

.header-left .title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e2e8f0;
}

.accordion-card.active .title {
    color: #facc15;
    /* Active Gold */
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cost-display {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: #fff;
    font-size: 1.1rem;
}

.arrow {
    color: #64748b;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.accordion-card.active .arrow {
    transform: rotate(180deg);
    color: #facc15;
}

/* HIDDEN BODY */
.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: rgba(0, 0, 0, 0.2);
}

.input-row {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.input-row label {
    font-size: 0.9rem;
    color: #94a3b8;
}

.input-row input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.5rem;
    border-radius: 4px;
    text-align: right;
    width: 120px;
    font-family: 'Inter', sans-serif;
}

.input-row input:focus {
    outline: none;
    border-color: #facc15;
    background: rgba(255, 255, 255, 0.15);
}

/* --- PHASE 5: LEAD CAPTURE MODAL (Restored) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    pointer-events: auto;
    transition: all 0.3s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    display: none;
}

.glass-modal {
    background: rgba(30, 41, 59, 0.7);
    /* Slate 800 */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 0;
    letter-spacing: 0.05em;
    font-family: 'Inter', sans-serif;
}

.close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #fff;
}

.modal-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ACTION BLOCKS */
.action-block {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s;
}

.action-block:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.icon-wrapper {
    background: rgba(250, 204, 21, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #facc15;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.text-wrapper h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    font-family: 'Inter', sans-serif;
}

.text-wrapper p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-family: 'Merriweather', serif;
}

/* BUTTONS & INPUTS */
.neon-btn {
    background: #facc15;
    color: #0f172a;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9rem;
    width: 100%;
    transition: 0.2s;
}

.neon-btn:hover {
    background: #fde047;
    box-shadow: 0 0 15px rgba(250, 204, 21, 0.4);
}

.ghost-btn {
    background: transparent;
    border: 1px solid #facc15;
    color: #facc15;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: 0.2s;
}

.ghost-btn:hover {
    background: rgba(250, 204, 21, 0.1);
}

.email-input-group {
    display: flex;
    gap: 0.5rem;
}

.email-input-group input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.8rem;
    border-radius: 6px;
    flex-grow: 1;
    font-family: 'Inter', sans-serif;
}

.email-input-group input:focus {
    outline: none;
    border-color: #facc15;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #64748b;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.divider span {
    padding: 0 1rem;
}

.privacy-note {
    font-size: 0.75rem !important;
    color: #64748b !important;
    margin-top: 0.5rem;
    margin-bottom: 0 !important;
}

/* --- PHASE 5.2: DOWNLOAD ANCHOR --- */
#download-trigger-primary {
    display: block;
    width: 100%;
    margin-top: 3rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    /* Glass Base */
    border: 2px solid #facc15;
    /* Neon Gold Solid */
    color: #facc15;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

#download-trigger-primary:hover {
    background: rgba(250, 204, 21, 0.1);
    box-shadow: 0 0 25px rgba(250, 204, 21, 0.3);
    transform: translateY(-3px);
}

#download-trigger-primary:active {
    transform: translateY(-1px);
}

/* --- PHASE 5.3: SPINNER & SUCCESS --- */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
    border: 2px solid transparent;
    border-top-color: #facc15;
    /* Neon Gold */
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.sent-success {
    background: rgba(250, 204, 21, 0.1) !important;
    border-color: #facc15 !important;
    color: #facc15 !important;
}

/* --- PHASE 5.4 POLISH --- */

/* 1. BUTTON PULSE ANIMATION */
@keyframes goldPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(250, 204, 21, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(250, 204, 21, 0);
    }
}

#download-trigger-primary {
    animation: goldPulse 2s infinite;
    background: rgba(15, 23, 42, 0.6);
    /* Glassy Navy */
    backdrop-filter: blur(4px);
    border: 2px solid #facc15;
    color: #facc15;
    text-shadow: 0 0 5px rgba(250, 204, 21, 0.3);
}

#download-trigger-primary:hover {
    animation: none;
    background: rgba(250, 204, 21, 0.1);
    box-shadow: 0 0 20px rgba(250, 204, 21, 0.6);
    transform: translateY(-2px);
}

/* 2. MODAL REFINEMENTS */
.glass-modal {
    background: #0f172a;
    /* Solid Deep Navy base for high contrast */
    border: 1px solid rgba(250, 204, 21, 0.5);
    /* Stronger Border */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.modal-header h2 {
    font-size: 1.25rem;
    /* Larger Header */
    text-align: center;
    width: 100%;
}

/* 3. SPINNER POLISH */
.btn-loading::after {
    border-top-color: #facc15;
    /* Ensure Neon Gold */
    width: 24px;
    height: 24px;
    margin-top: -12px;
    margin-left: -12px;
    border-width: 3px;
}

.sent-success {
    box-shadow: 0 0 15px rgba(250, 204, 21, 0.3);
}

/* --- PHASE 5.5: BRAND COHESION --- */

/* 1. BUTTON HARMONIZATION */
/* Force download trigger to inherit .action-btn basics */
#download-trigger-primary {
    /* Cloning .action-btn logic */
    padding: 1rem;
    font-size: 1rem;
    font-weight: 700;
    /* Keeping the custom glass background from previous phase but enforcing structure */
    letter-spacing: 0.05em;
    /* Match Standard */
    /* Ensuring 8px border radius override */
    border-radius: 8px !important;
}

/* 2. FINTECH ROUNDING PROTOCOL (Global Overrides) */
.glass-input,
.glass-group,
.action-btn,
.neon-btn,
.ghost-btn,
.accordion-card,
.glass-modal,
.action-block,
.glass-modal,
.action-block,
#email-capture-input,
#download-trigger-primary {
    border-radius: 8px !important;
}

/* 3. INPUT HARMONIZATION */
#email-capture-input {
    /* Cloning .glass-input /.glass-group basics */
    background: rgba(255, 255, 255, 0.07);
    /* 7% White */
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.8rem;
    color: #fff;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s, background-color 0.2s;
}

#email-capture-input:focus {
    border-color: #facc15;
    background: rgba(255, 255, 255, 0.1);
}

/* Typography Harmony in Modal */
#audit-download-modal h2,
#audit-download-modal h3,
#audit-download-modal button,
#audit-download-modal input {
    font-family: 'Inter', sans-serif;
    letter-spacing: 1px;
}

/* 4. ANIMATION REFINEMENT */
@keyframes goldPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(250, 204, 21, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(250, 204, 21, 0);
    }
}

/* Ensure the ID uses this new pulse definition (already linked, but good to ensure order) */
/* --- PHASE 5.6: UX FINALIZATION --- */

/* 1. TRIGGER ALIGNMENT */
#download-trigger-primary {
    display: block;
    width: 80%;
    /* Constrain width to allow centering */
    margin: 3rem auto 0 auto;
    /* Top 3rem, Horizontal Auto */
    /* Previous styles inherited: padding 1rem, radius 8px, gold border, glass bg */
}

/* 2. MODAL GLASS-CARD TRANSFORMATION */
.glass-modal {
    /* Background: Deep Navy + 7% White Frosted */
    background: linear-gradient(rgba(255, 255, 255, 0.07),
            rgba(255, 255, 255, 0.07)), #0f172a;

    padding: 2rem;
    /* Internal Padding */
    text-align: center;
    /* Center Alignment */
    border: 1px solid rgba(250, 204, 21, 0.3);
}

.modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center Items */
    gap: 1.5rem;
    padding: 0;
    /* Removing inner padding as wrapper has it */
}

/* 3. CLOSE ICON */
.close-btn {
    color: #facc15;
    /* Neon Gold */
    font-size: 2rem;
    line-height: 1;
    transition: text-shadow 0.3s ease;
}

.close-btn:hover {
    text-shadow: 0 0 10px #facc15;
    color: #fff;
}

/* 4. TYPOGRAPHY HARMONY */
.modal-header h2 {
    font-family: 'Inter', sans-serif;
    color: #facc15;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.2rem;
    border-bottom: none;
    /* Clean look */
}

.modal-header {
    justify-content: center;
    /* Center Header Content */
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
}

/* Positioning Close Button Absolute to kept header centered */
.modal-header .close-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* 5. BUTTON STANDARDIZATION IN MODAL */
/* Direct Download & Send Buttons */
#direct-download-btn,
#email-send-btn {
    background: transparent;
    border: 2px solid #facc15;
    color: #facc15;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
}

#direct-download-btn:hover,
#email-send-btn:hover {
    background: #facc15;
    color: #0f172a;
    box-shadow: 0 0 15px rgba(250, 204, 21, 0.4);
}

/* Text Inputs within Modal */
#email-capture-input {
    text-align: center;
    max-width: 300px;
    margin: 0 auto;
}

.email-input-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* RESUME PORTAL */
.resume-trigger {
    text-align: center;
    margin-top: 1.5rem;
}

.resume-trigger a {
    color: #94a3b8;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s;
}

.resume-trigger a:hover {
    color: #facc15;
}

.resume-trigger strong {
    color: #fff;
    font-weight: 600;
}

/* SCOREBOARD & BENCHMARKS */
.tooltip-container {
    position: relative;
    display: inline-block;
    margin-left: 8px;
    cursor: help;
}

.tooltip-icon {
    font-size: 0.6em;
    color: #94a3b8;
    border: 1px solid #94a3b8;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    transition: all 0.2s;
}

.tooltip-icon:hover {
    color: #facc15;
    border-color: #facc15;
}

.tooltip-text {
    visibility: hidden;
    width: 300px;
    background-color: #000000;
    color: #ffffff;
    text-align: center;
    border-radius: 6px;
    padding: 12px;
    position: absolute;
    z-index: 10000;
    bottom: 125%;
    left: 50%;
    margin-left: -150px;
    border: 1px solid #334155;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.4;
    text-transform: none;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.benchmark-higher {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.benchmark-lower {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.benchmark-equal {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 1. Reset the Select Box itself */
select.form-select,
select.form-control {
    background-color: #ffffff !important;
    color: #212529 !important;
    border: 1px solid #dee2e6 !important;
    appearance: none !important;
    /* Removes default OS styling */
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    /* Re-adds the arrow since we used appearance:none */
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 16px 12px !important;
}

/* 2. KILL the Golden/Yellow Autofill Highlight (Chrome/Safari) */
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px white inset !important;
    box-shadow: 0 0 0px 1000px white inset !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

/* 3. Kill the Focus Glow (The most common cause of the highlight) */
select:focus {
    border-color: #ced4da !important;
    outline: 0 !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.05) !important;
    /* Subtle grey glow instead of gold/blue */
}

/* 4. Reset the internal Option styling */
select.form-select option {
    background-color: #ffffff !important;
    color: #212529 !important;
    padding: 10px !important;
}

/* 5. Firefox Specific Selection Fix */
select:-moz-focusring {
    color: transparent !important;
    text-shadow: 0 0 0 #212529 !important;
}

/* --- PHASE 9.6: BADGE UTILITIES (BOOTSTRAP POLYFILL) --- */
.badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
}

/* Custom Utilities for Benchmark Badge */
.rounded-pill {
    border-radius: 50rem !important;
}

.px-3 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.py-2 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.fs-5 {
    font-size: 1.25rem !important;
}

.border {
    border-style: solid !important;
    border-width: 1px !important;
}

.bg-dark {
    background-color: #0f172a !important;
    /* Theme Navy */
}

.text-warning {
    color: #facc15 !important;
}

.border-warning {
    border-color: #facc15 !important;
}

.text-success {
    color: #10b981 !important;
    /* Emerald */
}

.border-success {
    border-color: #10b981 !important;
}

/* Fix the Ugly Dropdown */
#jurisdiction-select {
    background-color: #212529;
    /* Dark Grey */
    color: #ffffff;
    /* White Text */
    border: 1px solid #495057;
    padding: 10px;
    border-radius: 5px;
    width: 100%;
    font-size: 1.1rem;
    appearance: none;
    /* Removes OS default style */
    -webkit-appearance: none;
    -moz-appearance: none;
    /* Re-add a custom white arrow */
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right .7em top 50%;
    background-size: .65em auto;
}

/* LOCKED FIELDS */
input.locked-field,
.locked-field,
.locked-input {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #64748b !important;
    -webkit-text-fill-color: #64748b !important;
    border: 1px dashed rgba(255, 255, 255, 0.2) !important;
    opacity: 1 !important;
    cursor: pointer !important;
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0iIzY0NzQ4YiIgdmlld0JveD0iMCAwIDE2IDE2Ij48cGF0aCBkPSJNOCAxYTIgMiAwIDAgMSAyIDJ2NEg2VjNhMiAyIDAgMCAxIDItMnptMyA2VjNhMyAzIDAgMCAwLTYgMHY0YTIgMiAwIDAgMC0yIDJ2NWEyIDIgMCAwIDAgMiAyaDZhMiAyIDAgMCAwIDItMlY5YTIgMiAwIDAgMC0yLTJ6Ii8+PC9zdmc+") !important;
    background-position: right 10px center !important;
    background-repeat: no-repeat !important;
    background-size: 16px !important;
    padding-right: 35px !important;
    box-shadow: none !important;
}

.input-wrapper:has(.locked-field) {
    cursor: pointer;
}


/* Mobile Responsiveness Improvements */
@media (max-width: 768px) {
    .report-wrapper {
        padding: 1rem;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .report-hero {
        padding: 1.5rem 1rem;
    }

    .hero-number {
        font-size: 2.5rem;
    }

    .input-row {
        flex-direction: column;
        /* Stack label and input */
        align-items: flex-start;
        gap: 0.5rem;
    }

    .input-row label {
        width: 100%;
        margin-bottom: 2px;
    }

    .input-row input,
    .input-row select,
    .readonly-val {
        width: 100%;
        text-align: left;
    }

    .accordion-header {
        padding: 0.75rem;
    }

    .action-footer {
        flex-direction: column;
        gap: 1rem;
    }

    .neon-btn {
        width: 100%;
    }
}

/* UTILITIES */
.font-sans {
    font-family: 'Inter', sans-serif;
}

.antialiased {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Landing Page Mobile Adaptation (768px) */
@media (max-width: 768px) {
    .split-container {
        flex-direction: column !important;
        height: auto !important;
    }

    .manifesto-pane,
    .engine-pane {
        width: 100% !important;
        padding: 2rem 1rem !important;
    }

    .engine-pane {
        height: auto !important;
        min-height: 600px;
    }

    .std-input,
    .clean-input,
    .glass-input,
    select,
    .action-btn,
    .neon-btn,
    .ghost-btn,
    .lemon-btn {
        width: 100% !important;
        min-height: 44px !important;
    }

    #resume-modal .modal-card,
    .glass-modal {
        width: 95% !important;
        max-width: 100% !important;
        padding: 1.5rem !important;
    }
}