/* input(396,1): run-time error CSS1019: Unexpected token, found '@'
input(406,1): run-time error CSS1019: Unexpected token, found '@'
input(424,1): run-time error CSS1019: Unexpected token, found '@' */
/* ───────────────────────────────────────────── */
/* PAGE */
/* ───────────────────────────────────────────── */

.alerts-page {
    min-height: 100vh;
    background: var(--black);
    padding: 100px 20px 80px;
}

.alerts-container {
    max-width: 820px;
    margin: 0 auto;
}

/* ───────────────────────────────────────────── */
/* HEADER */
/* ───────────────────────────────────────────── */

.alerts-brand-title {
    font-size: 2rem;
    font-weight: 800;
    font-family: 'Syne', sans-serif;
    color: var(--text-primary);
    margin: 0;
    line-height: 1;
}

.alerts-brand-tagline {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    font-size: 0.92rem;
}

    .alerts-brand-tagline span {
        color: var(--text-secondary);
    }

    .alerts-brand-tagline .green {
        color: var(--accent);
    }

    .alerts-brand-tagline .purple {
        color: var(--accent2);
    }

/* ───────────────────────────────────────────── */
/* DISCLAIMER */
/* ───────────────────────────────────────────── */

.alerts-disclaimer-card {
    margin-top: 18px;
    padding: 18px;
    border-radius: 18px;
    background: var(--card);
    border: 1px solid rgba(124,92,255,.35);
}

    .alerts-disclaimer-card p {
        margin: 0;
        color: var(--text-secondary);
        line-height: 1.7;
        font-size: .85rem;
    }

/* ───────────────────────────────────────────── */
/* FILTER TOGGLE */
/* ───────────────────────────────────────────── */

.filters-toggle-btn {
    margin-top: 18px;
    height: 46px;
    padding: 0 18px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text-secondary);
    font-family: inherit;
    cursor: pointer;
    transition: .2s;
}

    .filters-toggle-btn:hover {
        border-color: rgba(124,92,255,.5);
        color: var(--text-primary);
    }

/* ───────────────────────────────────────────── */
/* FILTER PANEL */
/* ───────────────────────────────────────────── */

.filters-panel {
    margin-top: 14px;
    padding: 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
}

.filter-group + .filter-group {
    margin-top: 14px;
}

.filter-label {
    display: block;
    margin-bottom: 6px;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
}

.filter-input {
    width: 100%;
    height: 50px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #0f1324;
    color: var(--text-primary);
    padding: 0 14px;
    font-size: .92rem;
    font-family: inherit;
    box-sizing: border-box;
}

    .filter-input:focus {
        outline: none;
        border-color: rgba(124,92,255,.8);
    }

    .filter-input::placeholder {
        color: var(--text-muted);
    }

    .filter-input[type="date"] {
        color-scheme: dark;
    }

.filter-actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.apply-btn,
.clear-btn {
    flex: 1;
    height: 50px;
    border-radius: 14px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: .2s;
}

.apply-btn {
    border: none;
    background: var(--accent);
    color: #000;
}

    .apply-btn:hover {
        transform: translateY(-1px);
    }

.clear-btn {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

    .clear-btn:hover {
        border-color: rgba(124,92,255,.5);
    }

/* ───────────────────────────────────────────── */
/* STATUS */
/* ───────────────────────────────────────────── */

.alerts-status-row {
    margin-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.alerts-status-text {
    color: var(--text-muted);
    font-size: .8rem;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(0,229,176,.08);
    border: 1px solid rgba(0,229,176,.2);
    color: var(--accent);
    font-size: .75rem;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 999px;
    text-transform: uppercase;
}

    .live-indicator .dot {
        width: 6px;
        height: 6px;
        border-radius: 999px;
        background: var(--accent);
        animation: pulse 2s infinite;
    }

/* ───────────────────────────────────────────── */
/* FEED */
/* ───────────────────────────────────────────── */

.signals-feed {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ───────────────────────────────────────────── */
/* ALERT ROW */
/* ───────────────────────────────────────────── */

.signal-row {
    display: block;
    text-decoration: none;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    transition: border-color .2s;
}

    .signal-row:hover {
        border-color: var(--border-bright);
        transform: none;
    }

.signal-row-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.signal-symbol {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.signal-type-chip {
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 50px;
    border: none;
}

    .signal-type-chip.momentum {
        background: rgba(123,97,255,0.12);
        color: #b8a4ff;
    }

    .signal-type-chip.steady {
        background: rgba(0,229,176,0.1);
        color: var(--accent);
    }

    .signal-type-chip.volume {
        background: rgba(255,107,53,0.1);
        color: #ff9e70;
    }

.signal-summary {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-top: 8px;
}
    .signal-summary .pos {
        color: var(--accent);
        font-weight: 500;
    }

.signal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.signal-time {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.signal-link {
    font-size: .8rem;
    color: white;
    font-weight: 600;
}

.signal-exact-time {
    margin-top: 8px;
    font-size: .72rem;
    color: var(--text-muted);
}

/* ───────────────────────────────────────────── */
/* STATES */
/* ───────────────────────────────────────────── */

.alerts-loading,
.alerts-empty {
    text-align: center;
    padding: 60px 20px;
}

    .alerts-loading p,
    .alerts-empty p {
        color: var(--text-secondary);
    }

.alerts-empty-icon {
    font-size: 2.5rem;
    opacity: .5;
    margin-bottom: 14px;
}

.spinner {
    width: 24px;
    height: 24px;
    margin: 0 auto 14px;
    border-radius: 50%;
    border: 2px solid var(--accent2);
    border-right-color: transparent;
    animation: spin .8s linear infinite;
}

/* ───────────────────────────────────────────── */
/* LOAD MORE */
/* ───────────────────────────────────────────── */

.load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.load-more-btn {
    height: 52px;
    padding: 0 26px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: .2s;
}

    .load-more-btn:hover:not(:disabled) {
        border-color: rgba(124,92,255,.5);
    }

    .load-more-btn:disabled {
        opacity: .5;
    }

    .load-more-btn .spinner {
        width: 14px;
        height: 14px;
        margin: 0;
        display: none;
    }

    .load-more-btn.loading .spinner {
        display: block;
    }

/* ───────────────────────────────────────────── */
/* ANIMATIONS */
/* ───────────────────────────────────────────── */

@@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@@keyframes pulse {
    0% {
        opacity: .4;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: .4;
    }
}

/* ───────────────────────────────────────────── */
/* MOBILE */
/* ───────────────────────────────────────────── */

@@media (max-width: 768px) {

    .alerts-page {
        padding: 90px 16px 60px;
    }

    .alerts-status-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .signal-row-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .signal-type-chip {
        margin-top: 4px;
    }

    .filter-actions {
        flex-direction: column;
    }

    .apply-btn,
    .clear-btn {
        width: 100%;
    }
}











/* ───────────────────────────────────────────── */
/* PAGE */
/* ───────────────────────────────────────────── */

.alert-detail-page {
    min-height: 100vh;
    background: var(--black);
    padding: 100px 20px 80px;
}

.alert-detail-container {
    max-width: 820px;
    margin: 0 auto;
}

/* ───────────────────────────────────────────── */
/* BACK BUTTON */
/* ───────────────────────────────────────────── */

.alert-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: .95rem;
    margin-bottom: 18px;
    transition: .2s;
}

    .alert-back-btn:hover {
        color: var(--text-primary);
    }

/* ───────────────────────────────────────────── */
/* HEADER CARD */
/* ───────────────────────────────────────────── */

.alert-summary-card {
    background: var(--card);
    border-radius: 18px;
    padding: 20px;
    border: 1px solid var(--border);
}

.alert-symbol {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 800;
    font-family: 'Syne', sans-serif;
}

.alert-type-chip {
    display: inline-flex;
    align-items: center;
    margin-top: 12px;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: .75rem;
    font-weight: 600;
    background: rgba(124,92,255,.15);
    border: 1px solid rgba(124,92,255,.4);
    color: #c4b5ff;
}

    .alert-type-chip.steady {
        background: rgba(0,212,163,.12);
        border-color: rgba(0,212,163,.35);
        color: #00D4A3;
    }

.alert-date {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: .82rem;
}

/* ───────────────────────────────────────────── */
/* SECTION */
/* ───────────────────────────────────────────── */

.metrics-heading {
    margin: 24px 0 14px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 700;
}

/* ───────────────────────────────────────────── */
/* METRICS */
/* ───────────────────────────────────────────── */

.metrics-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.metric-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.metric-content {
    flex: 1;
}

.metric-label {
    color: var(--text-secondary);
    font-size: .78rem;
    font-weight: 700;
}

.metric-value {
    margin-top: 4px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 700;
}

/* ───────────────────────────────────────────── */
/* METRIC MODAL */
/* ───────────────────────────────────────────── */

.metric-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, .75);
    backdrop-filter: blur(4px);
}

    .metric-modal.open {
        display: flex;
    }

.metric-modal-card {
    width: 100%;
    max-width: 500px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,.45);
}

    .metric-modal-card h3 {
        margin: 0 0 12px;
        color: var(--text-primary);
        font-size: 1.1rem;
        font-weight: 700;
    }

    .metric-modal-card p {
        margin: 0;
        color: var(--text-secondary);
        line-height: 1.7;
        font-size: .92rem;
    }

#metricModalClose {
    margin-top: 20px;
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 14px;
    background: var(--accent);
    color: #000;
    font-size: .92rem;
    font-weight: 700;
    cursor: pointer;
    transition: .2s;
}

    #metricModalClose:hover {
        transform: translateY(-1px);
    }

@media (max-width: 768px) {

    .metric-modal {
        padding: 16px;
        align-items: flex-end;
    }

    .metric-modal-card {
        max-width: none;
        width: 100%;
        border-radius: 24px 24px 0 0;
        padding: 22px;
    }
}

.metric-info-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(0,229,176,.35);
    border-radius: 999px;
    background: rgba(0,229,176,.12);
    color: var(--accent);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, border-color .2s, transform .15s;
}

    .metric-info-btn:hover {
        background: var(--accent);
        color: #000;
        border-color: var(--accent);
        transform: translateY(-1px);
    }

    .metric-info-btn:active {
        transform: scale(.96);
    }

    .metric-info-btn:focus-visible {
        outline: none;
        box-shadow: 0 0 0 3px rgba(0,229,176,.25);
    }





.legal-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,.85);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.legal-modal.open {
    display: flex;
}

.legal-modal-card {
    width: 100%;
    max-width: 550px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
}

    .legal-modal-card h2 {
        margin-bottom: 14px;
    }

    .legal-modal-card p {
        color: var(--text-secondary);
        margin-bottom: 14px;
        line-height: 1.7;
    }

    .legal-modal-card ul {
        margin: 0 0 18px 18px;
    }

    .legal-modal-card a {
        color: var(--accent);
    }

.legal-small {
    font-size: .85rem;
    color: var(--text-muted);
}

.legal-accept-btn {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 14px;
    background: var(--accent);
    color: #000;
    font-weight: 700;
    cursor: pointer;
}