/* ==========================================================
   Pulsavex THEME
   Global design tokens and shared base styles
   ========================================================== */

:root {
    /* ======================================================
       BACKGROUNDS
       ====================================================== */

    --bg-1: #08111f;
    --bg-2: #0b1424;
    --bg-3: #101a2d;
    --bg-4: #142039;
    /* ======================================================
       SURFACES
       ====================================================== */

    --card: #121c30;
    --card-light: #17233a;
    --card-hover: #1b2942;
    --card-soft: rgba(18, 28, 48, 0.82);
    --card-glass: rgba(15, 24, 42, 0.74);
    /* ======================================================
       BORDERS
       ====================================================== */

    --border: #24314d;
    --border-soft: rgba(255, 255, 255, 0.06);
    --border-medium: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(96, 165, 250, 0.18);
    /* ======================================================
       BRAND
       ====================================================== */

    --primary: #3b82f6;
    --primary-light: #60a5fa;
    --primary-dark: #2563eb;
    --primary-soft: rgba(59, 130, 246, 0.09);
    --primary-glow: rgba(59, 130, 246, 0.28);
    --brand-purple: #8b5cf6;
    --brand-purple-light: #c084fc;
    --brand-gradient: linear-gradient( 135deg, #2563eb, #3b82f6 48%, #818cf8 72%, #c084fc );
    --brand-gradient-soft: linear-gradient( 135deg, rgba(37, 99, 235, 0.16), rgba(59, 130, 246, 0.09) 52%, rgba(192, 132, 252, 0.08) );
    /* ======================================================
       STATUS
       ====================================================== */

    --success: #22c55e;
    --success-light: #86efac;
    --success-soft: rgba(34, 197, 94, 0.09);
    --warning: #f59e0b;
    --warning-light: #fbbf24;
    --warning-soft: rgba(245, 158, 11, 0.09);
    --danger: #ef4444;
    --danger-light: #fca5a5;
    --danger-soft: rgba(239, 68, 68, 0.09);
    --neutral: #94a3b8;
    --neutral-soft: rgba(148, 163, 184, 0.08);
    /* ======================================================
       TYPOGRAPHY
       ====================================================== */

    --text: #f8fafc;
    --text-secondary: #a5b4c7;
    --text-muted: #718096;
    --text-subtle: #526078;
    --text-disabled: #3f4c62;
    /* ======================================================
       SHADOWS
       ====================================================== */

    --shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
    --shadow-large: 0 36px 90px rgba(0, 0, 0, 0.42);
    --shadow-hover: 0 44px 110px rgba(0, 0, 0, 0.5);
    --shadow-primary: 0 16px 36px rgba(37, 99, 235, 0.26);
    --shadow-success: 0 0 20px rgba(34, 197, 94, 0.14);
    /* ======================================================
       RADII
       ====================================================== */

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --radius-2xl: 26px;
    --radius-pill: 999px;
    /* ======================================================
       SPACING
       ====================================================== */

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-7: 28px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    /* ======================================================
       LAYOUT
       ====================================================== */

    --content-width: 1500px;
    --content-padding: 28px;
    --header-height: 84px;
    /* ======================================================
       TRANSITIONS
       ====================================================== */

    --transition-fast: 0.16s ease;
    --transition: 0.22s ease;
    --transition-slow: 0.32s ease;
}

/* ==========================================================
   GLOBAL RESET
   ========================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    color-scheme: dark;
    scroll-behavior: smooth;
    background: var(--bg-1);
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    color: var(--text);
    background: linear-gradient( 180deg, var(--bg-1), var(--bg-2) );
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg {
    display: block;
    max-width: 100%;
}

/* ==========================================================
   SELECTION
   ========================================================== */

::selection {
    color: #ffffff;
    background: rgba(59, 130, 246, 0.42);
}

/* ==========================================================
   SCROLLBAR
   ========================================================== */

* {
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

    *::-webkit-scrollbar {
        width: 10px;
        height: 10px;
    }

    *::-webkit-scrollbar-track {
        background: transparent;
    }

    *::-webkit-scrollbar-thumb {
        border: 3px solid transparent;
        border-radius: var(--radius-pill);
        background: linear-gradient( var(--border), var(--border) ) padding-box;
    }

        *::-webkit-scrollbar-thumb:hover {
            background: linear-gradient( #334360, #334360 ) padding-box;
        }

/* ==========================================================
   SHARED PAGE CONTAINER
   ========================================================== */

.app-container {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding-inline: var(--content-padding);
}

/* ==========================================================
   SHARED TEXT
   ========================================================== */

.app-eyebrow {
    color: var(--primary-light);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.app-title {
    margin: 0;
    color: var(--text);
    font-size: clamp( 34px, 5vw, 64px );
    font-weight: 950;
    line-height: 1.03;
    letter-spacing: -2px;
}

.app-description {
    margin: 0;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

.text-primary {
    color: var(--primary-light) !important;
}

.text-success {
    color: var(--success) !important;
}

.text-warning {
    color: var(--warning) !important;
}

.text-danger {
    color: var(--danger) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* ==========================================================
   SHARED CARDS
   ========================================================== */

.app-card {
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-xl);
    background: linear-gradient( 145deg, var(--card-light), var(--card) );
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.app-card-soft {
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    background: var(--card-soft);
}

.app-glass {
    border: 1px solid var(--border-soft);
    background: var(--card-glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

/* ==========================================================
   SHARED BUTTONS
   ========================================================== */

.app-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 850;
    line-height: 1;
    cursor: pointer;
    transition: transform var(--transition), color var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition), filter var(--transition);
}

    .app-button:hover {
        transform: translateY(-1px);
    }

.app-button-primary {
    color: #ffffff !important;
    border-color: rgba(96, 165, 250, 0.24);
    background: linear-gradient( 135deg, var(--primary-dark), var(--primary) );
    box-shadow: var(--shadow-primary), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

    .app-button-primary:hover {
        color: #ffffff !important;
        filter: brightness(1.06);
        box-shadow: 0 20px 44px rgba(37, 99, 235, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }

.app-button-secondary {
    color: var(--text-secondary) !important;
    border-color: var(--border-medium);
    background: rgba(255, 255, 255, 0.035);
}

    .app-button-secondary:hover {
        color: var(--text) !important;
        border-color: var(--border-strong);
        background: rgba(255, 255, 255, 0.06);
    }

.app-button-danger {
    color: var(--danger-light) !important;
    border-color: rgba(239, 68, 68, 0.14);
    background: var(--danger-soft);
}

    .app-button-danger:hover {
        color: #ffffff !important;
        border-color: rgba(239, 68, 68, 0.22);
        background: rgba(239, 68, 68, 0.14);
    }

/* ==========================================================
   BADGES
   ========================================================== */

.app-badge {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 11px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-pill);
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.025);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.app-badge-primary {
    color: var(--primary-light);
    border-color: rgba(96, 165, 250, 0.17);
    background: var(--primary-soft);
}

.app-badge-success {
    color: var(--success-light);
    border-color: rgba(34, 197, 94, 0.16);
    background: var(--success-soft);
}

.app-badge-warning {
    color: var(--warning-light);
    border-color: rgba(245, 158, 11, 0.16);
    background: var(--warning-soft);
}

.app-badge-danger {
    color: var(--danger-light);
    border-color: rgba(239, 68, 68, 0.16);
    background: var(--danger-soft);
}

/* ==========================================================
   STATUS DOTS
   ========================================================== */

.app-status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
}

.app-status-dot-primary {
    background: var(--primary-light);
    box-shadow: 0 0 11px rgba(96, 165, 250, 0.72);
}

.app-status-dot-success {
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.08), 0 0 12px rgba(34, 197, 94, 0.72);
}

.app-status-dot-danger {
    background: var(--danger);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.08), 0 0 12px rgba(239, 68, 68, 0.58);
}

/* ==========================================================
   GLOBAL FORM CONTROLS
   ========================================================== */

.app-field {
    display: flex;
    width: 100%;
    min-width: 0;
    flex-direction: column;
    gap: 8px;
}

.app-field-label {
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.app-input-shell {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    width: 100%;
    min-width: 0;
    min-height: 48px;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    background: linear-gradient( 145deg, var(--card-light), var(--card) );
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

    .app-input-shell:hover {
        border-color: var(--border-strong);
    }

    .app-input-shell:focus-within {
        border-color: var(--primary);
        box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
    }

.app-input-shell-plain {
    grid-template-columns: minmax(0, 1fr);
}

.app-input-icon {
    display: grid;
    width: 44px;
    height: 48px;
    place-items: center;
    border-right: 1px solid var(--border-soft);
    color: var(--text-muted);
    background: rgba(59, 130, 246, 0.035);
    font-size: 13px;
}

.app-input-shell:focus-within .app-input-icon {
    color: var(--primary-light);
}

input.app-input,
select.app-input,
textarea.app-input {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    margin: 0;
    padding: 0 15px;
    border: 0 !important;
    border-radius: 0 !important;
    outline: none !important;
    color: var(--text) !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    font: inherit;
    font-size: 13px;
    appearance: none;
    -webkit-appearance: none;
}

textarea.app-input {
    min-height: 110px;
    padding-top: 13px;
    padding-bottom: 13px;
    resize: vertical;
}

    input.app-input::placeholder,
    textarea.app-input::placeholder {
        color: var(--text-subtle) !important;
        opacity: 1;
    }

    input.app-input:focus,
    select.app-input:focus,
    textarea.app-input:focus {
        border: 0 !important;
        outline: none !important;
        background: transparent !important;
        box-shadow: none !important;
    }

input.app-input.valid,
input.app-input.invalid,
input.app-input.modified {
    border: 0 !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.app-input-shell:has(input.invalid),
.app-input-shell:has(select.invalid),
.app-input-shell:has(textarea.invalid) {
    border-color: rgba(239, 68, 68, 0.7);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.app-input-shell:has(input.valid.modified),
.app-input-shell:has(select.valid.modified),
.app-input-shell:has(textarea.valid.modified) {
    border-color: rgba(34, 197, 94, 0.45);
}

.app-validation,
.validation-message {
    color: var(--danger);
    font-size: 10px;
    line-height: 1.4;
}

input.app-input:-webkit-autofill,
input.app-input:-webkit-autofill:hover,
input.app-input:-webkit-autofill:focus,
input.app-input:-webkit-autofill:active {
    -webkit-text-fill-color: var(--text) !important;
    caret-color: var(--text);
    box-shadow: 0 0 0 1000px var(--card) inset !important;
    transition: background-color 9999s ease-in-out 0s;
}

/* ==========================================================
   CHECKBOX
   ========================================================== */

.app-checkbox {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.5;
    cursor: pointer;
}

    .app-checkbox input {
        width: 16px;
        height: 16px;
        flex: 0 0 16px;
        margin: 1px 0 0;
        accent-color: var(--primary);
        cursor: pointer;
    }

/* ==========================================================
   DIVIDER
   ========================================================== */

.app-divider {
    width: 100%;
    height: 1px;
    background: var(--border-soft);
}

/* ==========================================================
   ACCESSIBILITY
   ========================================================== */

:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 3px;
}

/* ==========================================================
   RESPONSIVE TOKENS
   ========================================================== */

@media (max-width: 700px) {
    :root {
        --content-padding: 14px;
        --header-height: 72px;
    }

    .market-alert-comparison-meta {
        grid-template-columns: 1fr;
    }

    .market-alert-comparison-view-opportunity {
        width: 100%;
    }
}

/* ==========================================================
   REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* ==========================================================
   ELEVATED SURFACES
   ========================================================== */

.app-surface {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: var(--radius-xl);
    background: linear-gradient( 180deg, #1b2942 0%, #162238 42%, var(--card) 100% );
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22), 0 42px 96px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

    .app-surface::after {
        position: absolute;
        inset: 0;
        pointer-events: none;
        border-radius: inherit;
        content: "";
        background: linear-gradient( 180deg, rgba(255, 255, 255, 0.025), transparent 24% );
    }

    .app-surface:hover {
        border-color: rgba(96, 165, 250, 0.16);
        box-shadow: 0 22px 54px rgba(0, 0, 0, 0.25), 0 52px 118px rgba(0, 0, 0, 0.4), 0 0 42px rgba(37, 99, 235, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.045);
    }

.ai-icon {
    color: var(--primary);
}

/* ==========================================================
   COOKIE BANNER
   ========================================================== */

.cookie-consent {
    position: fixed;
    overflow: hidden;
    z-index: 10000;
    left: 50%;
    bottom: 24px;
    display: flex;
    width: min(1180px, calc(100% - 32px));
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 20px;
    border: 1px solid rgba(148, 180, 230, 0.26);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.50), 0 0 0 1px rgba(255, 255, 255, 0.035), 0 0 32px rgba(96, 165, 250, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.055);
    border-radius: 18px;
    background: linear-gradient( 145deg, rgba(15, 28, 49, 0.98), rgba(8, 18, 34, 0.98) );
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transform: translateX(-50%);
}

    .cookie-consent::before {
        position: absolute;
        top: 0;
        left: 8%;
        width: 84%;
        height: 1px;
        content: "";
        background: linear-gradient( 90deg, transparent, rgba(147, 197, 253, 0.30), transparent );
        pointer-events: none;
    }




.cookie-consent-content {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    gap: 14px;
}


.cookie-consent-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(96, 165, 250, 0.16);
    border-radius: 13px;
    color: var(--primary-light);
    background: rgba(59, 130, 246, 0.10);
}


.cookie-consent-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
}


    .cookie-consent-copy strong {
        color: var(--text);
        font-size: 14px;
        font-weight: 950;
    }


    .cookie-consent-copy p {
        max-width: 720px;
        margin: 0;
        color: var(--text-secondary);
        font-size: 12px;
        line-height: 1.6;
    }


.cookie-consent-link {
    width: fit-content;
    color: var(--primary-light);
    font-size: 10px;
    font-weight: 850;
    text-decoration: none;
}


    .cookie-consent-link:hover {
        color: #ffffff;
    }


/* ==========================================================
   BANNER ACTIONS
   ========================================================== */

.cookie-consent-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
}


.cookie-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 160ms ease, color 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}


.cookie-button-primary {
    color: #ffffff;
    border-color: rgba(96, 165, 250, 0.28);
    background: linear-gradient( 135deg, #2563eb, #3b82f6 );
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.20);
}


    .cookie-button-primary:hover {
        transform: translateY(-1px);
        filter: brightness(1.06);
        box-shadow: 0 16px 34px rgba(37, 99, 235, 0.28);
    }


.cookie-button-secondary {
    color: var(--text-secondary);
    border-color: var(--border-medium);
    background: rgba(255, 255, 255, 0.025);
}


    .cookie-button-secondary:hover {
        transform: translateY(-1px);
        color: #ffffff;
        border-color: rgba(96, 165, 250, 0.20);
        background: rgba(59, 130, 246, 0.055);
    }


/* ==========================================================
   MODAL BACKDROP
   ========================================================== */

.cookie-preferences-backdrop {
    position: fixed;
    z-index: 10010;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(2, 8, 18, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}


/* ==========================================================
   MODAL
   ========================================================== */

.cookie-preferences-modal {
    width: min(620px, 100%);
    overflow: hidden;
    border: 1px solid rgba(96, 165, 250, 0.16);
    border-radius: 20px;
    background: linear-gradient( 145deg, rgba(16, 30, 52, 0.99), rgba(8, 18, 34, 0.99) );
    box-shadow: 0 36px 100px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}


/* ==========================================================
   MODAL HEADER
   ========================================================== */

.cookie-preferences-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 22px 18px;
    border-bottom: 1px solid var(--border-soft);
}


    .cookie-preferences-header > div {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }


    .cookie-preferences-header span {
        color: var(--primary-light);
        font-size: 9px;
        font-weight: 900;
        letter-spacing: 1.2px;
    }


    .cookie-preferences-header h2 {
        margin: 0;
        color: var(--text);
        font-size: 24px;
        font-weight: 950;
        letter-spacing: -0.7px;
    }


.cookie-preferences-close {
    display: inline-flex;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-medium);
    border-radius: 10px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.025);
    cursor: pointer;
}


    .cookie-preferences-close:hover {
        color: #ffffff;
        border-color: rgba(96, 165, 250, 0.20);
        background: rgba(59, 130, 246, 0.06);
    }


/* ==========================================================
   PREFERENCE ITEMS
   ========================================================== */

.cookie-preference-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 22px;
    border-bottom: 1px solid var(--border-soft);
}


    .cookie-preference-item > div {
        display: flex;
        min-width: 0;
        flex-direction: column;
        gap: 6px;
    }


    .cookie-preference-item strong {
        color: var(--text);
        font-size: 13px;
        font-weight: 950;
    }


    .cookie-preference-item p {
        max-width: 430px;
        margin: 0;
        color: var(--text-muted);
        font-size: 11px;
        line-height: 1.55;
    }


.cookie-always-active {
    display: inline-flex;
    min-height: 30px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 0 11px;
    border: 1px solid rgba(34, 197, 94, 0.15);
    border-radius: var(--radius-pill);
    color: #86efac;
    background: rgba(34, 197, 94, 0.07);
    font-size: 9px;
    font-weight: 900;
    white-space: nowrap;
}


/* ==========================================================
   TOGGLE
   ========================================================== */

.cookie-switch {
    position: relative;
    display: inline-flex;
    width: 46px;
    height: 26px;
    flex: 0 0 46px;
    cursor: pointer;
}


    .cookie-switch input {
        position: absolute;
        width: 1px;
        height: 1px;
        opacity: 0;
    }


    .cookie-switch > span {
        position: absolute;
        inset: 0;
        border: 1px solid rgba(148, 163, 184, 0.18);
        border-radius: var(--radius-pill);
        background: rgba(255, 255, 255, 0.06);
        transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
    }


        .cookie-switch > span::after {
            position: absolute;
            top: 3px;
            left: 3px;
            width: 18px;
            height: 18px;
            content: "";
            border-radius: 50%;
            background: #94a3b8;
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.28);
            transition: transform 160ms ease, background 160ms ease;
        }


    .cookie-switch input:checked + span {
        border-color: rgba(96, 165, 250, 0.32);
        background: rgba(37, 99, 235, 0.55);
        box-shadow: 0 0 18px rgba(37, 99, 235, 0.14);
    }


        .cookie-switch input:checked + span::after {
            transform: translateX(20px);
            background: #ffffff;
        }


/* ==========================================================
   MODAL FOOTER
   ========================================================== */

.cookie-preferences-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 18px 22px;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 860px) {

    .cookie-consent {
        align-items: stretch;
        flex-direction: column;
    }

    .cookie-consent-actions {
        width: 100%;
    }

    .cookie-button {
        flex: 1;
    }
}

/* ==========================================================
   REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    .cookie-button,
    .cookie-preferences-close,
    .cookie-switch > span,
    .cookie-switch > span::after {
        transition: none;
    }

        .cookie-button:hover {
            transform: none;
        }
}

.footer-legal-button {
    color: var(--text-muted) !important;
    font-size: 11px;
    font-weight: 750;
    text-decoration: none !important;
    transition: color var(--transition), transform var(--transition);
    background-color: transparent;
    border: none;
    outline: none;
    text-align: left;
    padding: 0px;
}

    .footer-legal-button:hover {
        color: var(--text) !important;
        transform: translateX(3px);
    }


/* ==========================================================
   TIMELINE STEP
   ========================================================== */

.timeline-step {
    position: relative;
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: flex-start;
    gap: 14px;
}


/* ==========================================================
   MARKER
   ========================================================== */

.timeline-step-marker {
    position: relative;
    display: flex;
    min-height: 78px;
    align-items: center;
    flex-direction: column;
}


.timeline-step-icon {
    position: relative;
    z-index: 2;
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border: 1px solid var(--border-medium);
    border-radius: 12px;
    color: var(--text-muted);
    background: linear-gradient( 145deg, var(--card-light), var(--card) );
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.035);
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    transition: transform var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
}


.timeline-step:hover .timeline-step-icon {
    transform: translateY(-2px);
}


/* ==========================================================
   CONNECTOR
   ========================================================== */

.timeline-step-connector {
    display: block;
    width: 2px;
    min-height: 30px;
    flex: 1;
    margin-top: 6px;
    border-radius: var(--radius-pill);
    background: linear-gradient( to bottom, rgba(100, 116, 139, 0.42), rgba(100, 116, 139, 0.06) );
}


/* ==========================================================
   CONTENT
   ========================================================== */

.timeline-step-content {
    display: flex;
    min-width: 0;
    padding: 2px 0 17px;
    flex-direction: column;
    align-items: flex-start;
}


.timeline-step-number {
    margin-bottom: 5px;
    color: var(--text-subtle);
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}


.timeline-step-content h3 {
    margin: 0;
    color: var(--text);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.3px;
}


.timeline-step-content p {
    max-width: 390px;
    margin: 5px 0 0;
    color: var(--text-muted);
    font-size: 10px;
    line-height: 1.55;
}


/* ==========================================================
   MANUAL
   ========================================================== */

.timeline-step-manual .timeline-step-icon {
    color: #94a3b8;
    border-color: rgba(148, 163, 184, 0.15);
    background: linear-gradient( 145deg, rgba(30, 41, 59, 0.95), rgba(18, 28, 48, 0.95) );
}


.timeline-step-manual:hover .timeline-step-icon {
    color: var(--text-secondary);
    border-color: rgba(148, 163, 184, 0.28);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28), 0 0 24px rgba(148, 163, 184, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.045);
}


.timeline-step-manual .timeline-step-connector {
    background: linear-gradient( to bottom, rgba(148, 163, 184, 0.30), rgba(148, 163, 184, 0.035) );
}


/* ==========================================================
   ENGINE
   ========================================================== */

.timeline-step-engine .timeline-step-icon {
    color: var(--primary-light);
    border-color: rgba(96, 165, 250, 0.22);
    background: radial-gradient( circle at top right, rgba(59, 130, 246, 0.16), transparent 55% ), linear-gradient( 145deg, var(--card-light), var(--card) );
    box-shadow: 0 14px 34px rgba(37, 99, 235, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}


.timeline-step-engine:hover .timeline-step-icon {
    color: #bfdbfe;
    border-color: rgba(96, 165, 250, 0.38);
    box-shadow: 0 18px 42px rgba(37, 99, 235, 0.18), 0 0 30px rgba(59, 130, 246, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.055);
}


.timeline-step-engine .timeline-step-number {
    color: var(--primary-light);
}


.timeline-step-engine .timeline-step-connector {
    background: linear-gradient( to bottom, rgba(96, 165, 250, 0.48), rgba(96, 165, 250, 0.06) );
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.10);
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 640px) {
    .app-main{
        padding-left:15px;
        padding-right:15px;
    }
    .timeline-step {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 12px;
    }

    .timeline-step-marker {
        min-height: 74px;
    }

    .timeline-step-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        font-size: 13px;
    }

    .timeline-step-content {
        padding-bottom: 15px;
    }

        .timeline-step-content h3 {
            font-size: 14px;
        }

        .timeline-step-content p {
            font-size: 10px;
        }
    .phone-frame {
        width: 270px;
        height: 540px;
    }


    .opportunity-showcase-main {
        grid-template-columns: 1fr;
        gap: 32px;
    }


    .opportunity-showcase-header {
        max-width: 620px;
        margin: 0 auto;
        align-items: center;
        text-align: center;
    }


    .opportunity-showcase-gallery {
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
        justify-self: center;
    }

    .cookie-consent {
        bottom: 12px;
        width: calc(100% - 20px);
        padding: 16px;
        border-radius: 15px;
    }

    .cookie-consent-content {
        gap: 11px;
    }

    .cookie-consent-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .cookie-consent-actions {
        flex-direction: column;
    }

    .cookie-button {
        width: 100%;
    }

    .cookie-preferences-backdrop {
        align-items: end;
        padding: 10px;
    }

    .cookie-preferences-modal {
        border-radius: 18px;
    }

    .cookie-preference-item {
        align-items: flex-start;
        gap: 16px;
    }

    .cookie-preferences-footer {
        flex-direction: column;
    }

        .cookie-preferences-footer .cookie-button {
            width: 100%;
        }

    .opportunity-showcase {
        padding: 54px 16px 46px;
    }

    .opportunity-showcase-main {
        gap: 26px;
    }

    .opportunity-showcase-header h2 {
        font-size: clamp(32px, 10vw, 42px);
    }

    .opportunity-showcase-gallery {
        max-width: 100%;
    }
}


/* ==========================================================
   REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    .timeline-step-icon {
        transition: none;
    }

    .timeline-step:hover .timeline-step-icon {
        transform: none;
    }
}

/* ==========================================================
   PHONE MOCKUP
   ========================================================== */

.phone-mockup {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.phone-frame {
    position: relative;
    width: 310px;
    height: 620px;
    flex: 0 0 310px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 42px;
    background: linear-gradient( 160deg, #29354d, #111827 );
    box-shadow: 0 40px 90px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.03);
}

.phone-notch {
    position: absolute;
    z-index: 3;
    top: 12px;
    left: 50%;
    width: 120px;
    height: 26px;
    transform: translateX(-50%);
    border-radius: 20px;
    background: #070b13;
}

.phone-screen {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 30px;
    background: var(--bg-1);
}

/* ==========================================================
   FEATURE CARD
   ========================================================== */

.feature-card {
    position: relative;
    display: grid;
    width: 100%;
    min-width: 0;
    min-height: 100%;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: flex-start;
    gap: 18px;
    overflow: hidden;
    padding: 24px;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-xl);
    background: linear-gradient( 180deg, rgba(27, 41, 66, 0.94), rgba(18, 28, 48, 0.98) );
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22), 0 42px 96px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.035);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}


    .feature-card::before {
        position: absolute;
        top: -120px;
        right: -100px;
        width: 260px;
        height: 260px;
        pointer-events: none;
        border-radius: 50%;
        content: "";
        opacity: 0.8;
        filter: blur(16px);
    }


    .feature-card::after {
        position: absolute;
        inset: 0;
        pointer-events: none;
        border-radius: inherit;
        content: "";
        background: linear-gradient( 180deg, rgba(255, 255, 255, 0.025), transparent 22% );
    }


    .feature-card:hover {
        transform: translateY(-4px);
        border-color: rgba(96, 165, 250, 0.18);
        box-shadow: 0 24px 56px rgba(0, 0, 0, 0.25), 0 54px 118px rgba(0, 0, 0, 0.34), 0 0 44px rgba(37, 99, 235, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.045);
    }


/* ==========================================================
   LARGE
   ========================================================== */

.feature-card-large {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 22px;
    padding: 32px;
}


    .feature-card-large .feature-card-icon {
        width: 60px;
        height: 60px;
        font-size: 18px;
    }


    .feature-card-large .feature-card-content h3 {
        font-size: clamp( 27px, 2.4vw, 38px );
    }


    .feature-card-large .feature-card-content p {
        max-width: 720px;
        font-size: 14px;
    }


/* ==========================================================
   ICON
   ========================================================== */

.feature-card-icon {
    position: relative;
    z-index: 2;
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    color: var(--primary-light);
    background: linear-gradient( 145deg, var(--card-light), var(--card) );
    box-shadow: 0 13px 30px rgba(0, 0, 0, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}


/* ==========================================================
   CONTENT
   ========================================================== */

.feature-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
}


.feature-card-eyebrow {
    color: var(--text-subtle);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}


.feature-card-content h3 {
    margin: 8px 0 0;
    color: var(--text);
    font-size: clamp( 20px, 1.8vw, 27px );
    font-weight: 950;
    line-height: 1.12;
    letter-spacing: -0.65px;
}


.feature-card-content p {
    margin: 11px 0 0;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.68;
}


/* ==========================================================
   LIST
   ========================================================== */

.feature-card-content ul {
    display: flex;
    width: 100%;
    margin: 18px 0 0;
    padding: 0;
    flex-direction: column;
    gap: 9px;
    list-style: none;
}


.feature-card-content li {
    display: grid;
    width: 100%;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.5;
    list-style: none;
}


.feature-card-check {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border: 1px solid rgba(34, 197, 94, 0.10);
    border-radius: 8px;
    color: var(--success);
    background: var(--success-soft);
}


/* ==========================================================
   DEFAULT
   ========================================================== */

.feature-card-default::before {
    background: radial-gradient( circle, rgba(148, 163, 184, 0.08), transparent 68% );
}


/* ==========================================================
   PRIMARY
   ========================================================== */

.feature-card-primary {
    border-color: rgba(96, 165, 250, 0.17);
}


    .feature-card-primary::before {
        background: radial-gradient( circle, rgba(59, 130, 246, 0.15), transparent 68% );
    }


    .feature-card-primary .feature-card-icon {
        color: var(--primary-light);
        border-color: rgba(96, 165, 250, 0.20);
        background: radial-gradient( circle at top right, rgba(59, 130, 246, 0.17), transparent 56% ), linear-gradient( 145deg, var(--card-light), var(--card) );
    }


/* ==========================================================
   SUCCESS
   ========================================================== */

.feature-card-success {
    border-color: rgba(34, 197, 94, 0.16);
}


    .feature-card-success::before {
        background: radial-gradient( circle, rgba(34, 197, 94, 0.12), transparent 68% );
    }


    .feature-card-success .feature-card-icon {
        color: var(--success-light);
        border-color: rgba(34, 197, 94, 0.18);
        background: linear-gradient( 145deg, rgba(34, 197, 94, 0.10), var(--card) );
    }


/* ==========================================================
   PURPLE
   ========================================================== */

.feature-card-purple {
    border-color: rgba(192, 132, 252, 0.16);
}


    .feature-card-purple::before {
        background: radial-gradient( circle, rgba(168, 85, 247, 0.13), transparent 68% );
    }


    .feature-card-purple .feature-card-icon {
        color: var(--brand-purple-light);
        border-color: rgba(192, 132, 252, 0.18);
        background: linear-gradient( 145deg, rgba(168, 85, 247, 0.11), var(--card) );
    }


/* ==========================================================
   WARNING
   ========================================================== */

.feature-card-warning {
    border-color: rgba(245, 158, 11, 0.16);
}


    .feature-card-warning::before {
        background: radial-gradient( circle, rgba(245, 158, 11, 0.12), transparent 68% );
    }


    .feature-card-warning .feature-card-icon {
        color: var(--warning-light);
        border-color: rgba(245, 158, 11, 0.18);
        background: linear-gradient( 145deg, rgba(245, 158, 11, 0.10), var(--card) );
    }


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 640px) {

    .feature-card,
    .feature-card-large {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 13px;
        padding: 18px;
        border-radius: 16px;
    }


        .feature-card-icon,
        .feature-card-large .feature-card-icon {
            width: 40px;
            height: 40px;
        }


    .feature-card-eyebrow {
        font-size: 8px;
        letter-spacing: 0.8px;
    }


    .feature-card-content h3,
    .feature-card-large .feature-card-content h3 {
        margin-top: 6px;
        font-size: 19px;
        line-height: 1.15;
    }


    .feature-card-content p,
    .feature-card-large .feature-card-content p {
        margin-top: 9px;
        font-size: 11px;
        line-height: 1.6;
    }


    .feature-card-content ul {
        margin-top: 14px;
        gap: 7px;
    }


    .feature-card-content li {
        grid-template-columns: 21px minmax(0, 1fr);
        gap: 7px;
        font-size: 10px;
    }


    .feature-card-check {
        width: 21px;
        height: 21px;
        border-radius: 7px;
    }
}


/* ==========================================================
   REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    .feature-card {
        transition: none;
    }

        .feature-card:hover {
            transform: none;
        }
}

.opportunity-showcase-main {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 0.9fr) minmax(480px, 1.1fr);
    align-items: center;
    gap: clamp(48px, 6vw, 88px);
}


.opportunity-showcase-header {
    display: flex;
    width: 100%;
    max-width: 520px;
    margin: 0;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}


    .opportunity-showcase-header h2 {
        max-width: 520px;
        margin: 18px 0 0;
        color: var(--text);
        font-size: clamp(42px, 4.2vw, 64px);
        font-weight: 950;
        line-height: 1.03;
        letter-spacing: clamp(-3px, -0.3vw, -1.6px);
    }


        .opportunity-showcase-header h2 span {
            display: block;
            margin-top: 8px;
        }


    .opportunity-showcase-header p {
        max-width: 480px;
        margin: 20px 0 0;
        color: var(--text-secondary);
        font-size: clamp(14px, 1.1vw, 16px);
        line-height: 1.7;
    }


.opportunity-showcase-gallery {
    display: flex;
    width: 100%;
    max-width: 570px;
    margin: 0;
    justify-self: end;
}


.opportunity-showcase-image-card {
    width: 100%;
}

@media (max-width: 760px) {

    .opportunity-showcase {
        overflow: hidden;
    }

    .opportunity-showcase-main {
        display: flex;
        width: 100%;
        min-width: 0;
        flex-direction: column;
        gap: 30px;
    }

    .opportunity-showcase-header {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0 auto;
        align-items: center;
        text-align: center;
    }

        .opportunity-showcase-header h2 {
            width: 100%;
            max-width: 100%;
            font-size: clamp(34px, 10vw, 46px);
            line-height: 1.04;
            letter-spacing: -1.6px;
            overflow-wrap: anywhere;
        }

        .opportunity-showcase-header p {
            width: 100%;
            max-width: 520px;
            margin-inline: auto;
        }

    .opportunity-showcase-gallery {
        display: block;
        width: 100%;
        max-width: 520px;
        min-width: 0;
        margin: 0 auto;
    }

    .opportunity-showcase-image-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
        padding: 8px;
        overflow: hidden;
    }

        .opportunity-showcase-image-card img {
            display: block;
            width: 100%;
            max-width: 100%;
            height: auto;
            object-fit: contain;
        }
}

/*svg[blazicon] {
    width: auto !important;
    height: auto !important;
    max-width:18px;
}*/

.market-alert-comparison-view-opportunity {
    display: inline-flex;
    width: fit-content;
    min-height: 38px;
    margin-top: 6px;
    padding: 0 14px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid rgba(96, 165, 250, 0.28);
    border-radius: 10px;
    color: var(--primary-light);
    background: rgba(59, 130, 246, 0.07);
    font-size: 10px;
    font-weight: 900;
    text-decoration: none;
    transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

    .market-alert-comparison-view-opportunity:hover {
        border-color: rgba(96, 165, 250, 0.48);
        color: var(--text);
        background: rgba(59, 130, 246, 0.12);
        transform: translateY(-1px);
    }

    .market-alert-comparison-view-opportunity:focus-visible {
        outline: 2px solid var(--primary-light);
        outline-offset: 3px;
    }

@media (prefers-reduced-motion: reduce) {
    .market-alert-comparison-view-opportunity {
        transition: none;
    }

        .market-alert-comparison-view-opportunity:hover {
            transform: none;
        }
}

.market-alert-comparison-opportunity-summary {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .market-alert-comparison-opportunity-summary span {
        color: var(--text-muted);
        font-size: 9px;
        font-weight: 800;
    }

    .market-alert-comparison-opportunity-summary strong {
        color: var(--text);
        font-size: 16px;
        font-weight: 950;
    }

.market-alert-comparison-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 4px;
    gap: 0.75rem;
}

    .market-alert-comparison-meta > div {
        display: flex;
        padding: 10px 0;
        flex-direction: column;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .market-alert-comparison-meta span {
        letter-spacing: 0.5px;
        text-transform: uppercase;
        display: block;
        margin-bottom: 0.35rem;
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        color: rgba(255, 255, 255, 0.62);
        opacity: 1;
    }

    .market-alert-comparison-meta strong {
        color: var(--text);
        font-size: 1.05rem;
        line-height: 1.2;
        font-weight: 950;
    }

.market-alert-comparison-reasons { 
    flex-direction: column;
    list-style: none;
    display: grid;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
}

    .market-alert-comparison-reasons li {
        color: var(--text-secondary);
        font-size: 10px;
        position: relative;
        padding-left: 1.15rem;
        font-size: 0.88rem;
        line-height: 1.45;
        opacity: 0.82;
    }

        .market-alert-comparison-reasons li::before {
            color: var(--success);
            content: "✓";
            position: absolute;
            left: 0;
            top: 0;
            font-weight: 700;
        }

.market-alert-comparison-view-opportunity {
    display: inline-flex;
    width: fit-content;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    background: rgba(59, 130, 246, 0.07);
    text-decoration: none;
    gap: 0.5rem;
    margin-top: 0.15rem;
    padding: 0.65rem 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0.55rem;
    font-size: 0.82rem;
    font-weight: 700;
}

    .market-alert-comparison-view-opportunity:hover {
        border-color: rgba(255, 255, 255, 0.28);
        color: var(--text);
        background: rgba(59, 130, 246, 0.12);
    }

@media (max-width: 760px) {

    .market-alert-comparison-meta {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.market-alert-comparison-reveal {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-primary);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

    .market-alert-comparison-reveal:hover {
        opacity: 0.8;
    }

    .market-alert-comparison-reveal:focus-visible {
        outline: 2px solid currentColor;
        outline-offset: 4px;
        border-radius: 0.25rem;
    }

    .market-alert-comparison-reveal span[aria-hidden="true"] {
        transition: transform 160ms ease;
    }

    .market-alert-comparison-reveal:hover span[aria-hidden="true"] {
        transform: translateX(0.2rem);
    }


.market-alert-comparison-details {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    animation: market-alert-comparison-reveal-in 220ms ease-out both;
}


@keyframes market-alert-comparison-reveal-in {
    from {
        opacity: 0;
        transform: translateY(0.35rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@media (prefers-reduced-motion: reduce) {

    .market-alert-comparison-reveal span[aria-hidden="true"],
    .market-alert-comparison-details {
        transition: none;
        animation: none;
    }
}

.market-alert-comparison-view-opportunity span[aria-hidden="true"] {
    transition: transform 160ms ease;
}

.market-alert-comparison-view-opportunity:hover span[aria-hidden="true"] {
    transform: translateX(0.2rem);
}

.market-alert-comparison-card:not(.market-alert-comparison-card-pulsavex ) {
    justify-content: flex-start;
    padding-top: 3.75rem;
}

.market-alert-comparison-card:not(.market-alert-comparison-card-pulsavex ) {
    padding-top: 3.75rem;
}

.market-alert-comparison {
    position: relative;
    margin-top: 0;
    padding-top: 5rem;
}

    .market-alert-comparison::before {
        content: "";
        position: absolute;
        top: 0;
        left: 50%;
        width: min(72rem, calc(100% - 3rem));
        height: 1px;
        transform: translateX(-50%);
        background: linear-gradient( 90deg, transparent, rgba(255, 255, 255, 0.10), transparent );
    }

.legal-page {
    padding: 72px 24px 96px;
}

.legal-container {
    width: min(100%, 920px);
    margin: 0 auto;
}

.legal-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: #60a5fa;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.legal-container h1 {
    margin: 0 0 18px;
    color: #f8fafc;
    font-size: clamp(34px, 5vw, 52px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -1.5px;
}

.legal-intro {
    max-width: 760px;
    margin: 0 0 12px;
    color: #94a3b8;
    font-size: 15px;
    line-height: 1.75;
}

.legal-updated {
    margin: 0 0 42px;
    color: #64748b;
    font-size: 12px;
}

.legal-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

    .legal-content h2 {
        margin: 0 0 10px;
        color: #f8fafc;
        font-size: 21px;
        line-height: 1.3;
    }

    .legal-content p,
    .legal-content li {
        color: #a8b3c7;
        font-size: 14px;
        line-height: 1.8;
    }

    .legal-content p {
        margin: 0;
    }

    .legal-content ul,
    .legal-content ol {
        margin: 10px 0 0;
        padding-left: 22px;
    }

    .legal-content a {
        color: #60a5fa;
        text-decoration: none;
    }

        .legal-content a:hover {
            color: #93c5fd;
        }

@media (max-width: 640px) {
    .legal-page {
        padding: 48px 18px 72px;
    }

    .legal-container h1 {
        font-size: 34px;
    }

    .legal-content {
        gap: 26px;
    }
}

/* ==========================================================
   EMAIL CONFIRMATION BANNER
   ========================================================== */

.email-confirmation-banner {
    display: flex;
    width: min(calc(100% - 40px), 1320px);

    padding: 14px 16px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid rgba(59, 130, 246, 0.20);
    border-radius: 12px;
    background: rgba(30, 64, 175, 0.08);
    margin: 18px auto 24px;
}

.email-confirmation-banner-content {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

.email-confirmation-banner-icon {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(96, 165, 250, 0.18);
    border-radius: 10px;
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.08);
}

.email-confirmation-banner-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

    .email-confirmation-banner-copy strong {
        color: #e2e8f0;
        font-size: 12px;
        font-weight: 850;
    }

    .email-confirmation-banner-copy > span {
        color: #7c8aa0;
        font-size: 11px;
        line-height: 1.5;
    }

.email-confirmation-banner-success {
    color: #34d399 !important;
}

.email-confirmation-banner-action {
    flex: 0 0 auto;
    padding: 9px 13px;
    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: 9px;
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.08);
    font: inherit;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

    .email-confirmation-banner-action:hover:not(:disabled) {
        border-color: rgba(96, 165, 250, 0.38);
        color: #bfdbfe;
        background: rgba(59, 130, 246, 0.14);
    }

    .email-confirmation-banner-action:disabled {
        cursor: not-allowed;
        opacity: 0.6;
    }

@media (max-width: 700px) {
    .email-confirmation-banner {
        width: calc(100% - 28px);
        align-items: stretch;
        flex-direction: column;
    }

    .email-confirmation-banner-action {
        width: 100%;
    }
}