/* ===== Base ===== */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

.wsl-wrapper {
    direction: ltr;
    font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 20px 0;
    color: #e8e8e8;
    line-height: 1.4;
    background: transparent;
    width: 100%;
    box-sizing: border-box;
}

.wsl-wrapper *,
.wsl-wrapper *::before,
.wsl-wrapper *::after {
    box-sizing: border-box;
}

/* ===== Header ===== */
.wsl-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.wsl-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wsl-live-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.wsl-pulse-ring,
.wsl-pulse-ring-outer {
    transform-origin: center;
    animation: wsl-pulse 2s ease-in-out infinite;
}

.wsl-pulse-ring-outer {
    animation-delay: 0.4s;
}

@keyframes wsl-pulse {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 1; }
}

.wsl-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.2px;
}

.wsl-title span {
    color: #f5d76e;
}

.wsl-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wsl-per-page {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #a0a0a0;
}

.wsl-per-page select {
    background: #1e2433;
    color: #e8e8e8;
    border: 1px solid #2d3548;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    outline: none;
}

.wsl-per-page select:focus {
    border-color: #f5d76e;
}

.wsl-refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #1e2433;
    color: #c8cdd8;
    border: none;
    padding: 9px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    transition: background 0.2s ease, color 0.2s ease;
}

.wsl-refresh-btn:hover {
    background: #2a3145;
    color: #fff;
}

.wsl-refresh-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* ===== Cards ===== */
.wsl-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.wsl-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #1a2030;
    border-radius: 14px;
    padding: 14px 16px;
    width: 100%;
    flex-wrap: nowrap;
    transition: background 0.15s ease;
}

.wsl-card:hover {
    background: #1f2638;
}

.wsl-card > * {
    flex-shrink: 0;
}

.wsl-card-icon {
    width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wsl-card-symbol {
    font-size: 17px;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 0.4px;
}

.wsl-card-dir {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: 4px;
    color: #fff;
    text-transform: uppercase;
    text-align: center;
}

.wsl-dir-buy {
    background: #16a34a;
}

.wsl-dir-sell {
    background: #dc2626;
}

.wsl-card-date,
.wsl-card-entry,
.wsl-card-sl,
.wsl-card-pip {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wsl-label {
    font-size: 11px;
    color: #7a8499;
    font-weight: 500;
}

.wsl-value {
    font-size: 14px;
    font-weight: 600;
    color: #e8e8e8;
}

.wsl-sl-val {
    color: #ef4444 !important;
}

.wsl-pip-pos {
    color: #22c55e;
    font-weight: 700;
}

.wsl-pip-neg {
    color: #ef4444;
    font-weight: 700;
}

.wsl-card-tps {
    display: flex;
    gap: 0;
    background: #0d1117;
    border-radius: 8px;
    padding: 5px 2px;
}

.wsl-tp-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 2px 12px;
}

.wsl-tp-item + .wsl-tp-item {
    border-left: 1px solid #1e2533;
}

.wsl-tp-label {
    font-size: 10px;
    color: #7a8499;
    font-weight: 600;
    text-transform: uppercase;
}

.wsl-tp-val {
    font-size: 13px;
    font-weight: 700;
    color: #22c55e;
}

.wsl-card-result {
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.wsl-res-win { color: #22c55e; }
.wsl-res-loss { color: #ef4444; }
.wsl-res-be { color: #f59e0b; }
.wsl-res-pending { color: #9ca3af; }
.wsl-res-riskfree { color: #38bdf8; }

.wsl-card-note {
    background: #3d3a1f;
    color: #f5d76e;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 8px;
    white-space: nowrap;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wsl-note-empty {
    display: none;
}

.wsl-empty {
    text-align: center;
    padding: 48px 20px;
    color: #6b7280;
    font-size: 15px;
    background: #1a2030;
    border-radius: 14px;
}

/* ===== Pagination ===== */
.wsl-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.wsl-page-info {
    font-size: 13px;
    color: #7a8499;
}

.wsl-page-links {
    display: flex;
    align-items: center;
    gap: 5px;
}

.wsl-page-btn {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #2d3548;
    background: #1a2030;
    color: #c8cdd8;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.15s ease;
}

.wsl-page-btn:hover {
    background: #2a3145;
    border-color: #3d465c;
}

.wsl-page-btn.active {
    background: #f5d76e;
    color: #111;
    border-color: #f5d76e;
}

.wsl-page-dots {
    padding: 0 4px;
    color: #6b7280;
}

/* ===== Tablet ===== */
@media (max-width: 1024px) {
    .wsl-card {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 12px 16px;
        padding: 14px;
    }

    .wsl-card-note {
        max-width: 100%;
    }

    .wsl-title {
        font-size: 20px;
    }
}

/* ===== Mobile ===== */
@media (max-width: 640px) {
    .wsl-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .wsl-header-right {
        width: 100%;
        justify-content: space-between;
    }

    .wsl-title {
        font-size: 18px;
    }

    .wsl-card {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-areas:
            "icon symbol dir"
            "date date entry"
            "sl sl pip"
            "tps tps tps"
            "result result note";
        gap: 10px 12px;
        padding: 14px;
        justify-content: stretch;
    }

    .wsl-card-icon   { grid-area: icon; }
    .wsl-card-symbol { grid-area: symbol; }
    .wsl-card-dir    { grid-area: dir; justify-self: end; }
    .wsl-card-date   { grid-area: date; }
    .wsl-card-entry  { grid-area: entry; }
    .wsl-card-sl     { grid-area: sl; }
    .wsl-card-pip    { grid-area: pip; }
    .wsl-card-tps    {
        grid-area: tps;
        justify-content: space-around;
        width: 100%;
    }
    .wsl-card-result { grid-area: result; align-self: center; }
    .wsl-card-note   {
        grid-area: note;
        max-width: none;
        justify-self: end;
    }

    .wsl-tp-item {
        flex: 1;
        padding: 2px 8px;
    }

    .wsl-pagination {
        flex-direction: column;
        align-items: flex-start;
    }

    .wsl-page-links {
        flex-wrap: wrap;
    }
}

/* Pending soft pulse */
.wsl-card-pending {
    animation: wsl-pending-glow 2.8s ease-in-out infinite;
}

.wsl-card-pending .wsl-res-pending {
    animation: wsl-pending-text 2.8s ease-in-out infinite;
}

@keyframes wsl-pending-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(156, 163, 175, 0); }
    50% { box-shadow: 0 0 0 1px rgba(156, 163, 175, 0.25), 0 0 12px rgba(156, 163, 175, 0.12); }
}

@keyframes wsl-pending-text {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}

a.wsl-card-note {
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

a.wsl-card-note:hover {
    opacity: 0.85;
    text-decoration: underline;
}



/* ===== Performance Breakdown ===== */
.wsl-perf-wrapper {
    direction: ltr;
    font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #e8e8e8;
    max-width: 100%;
    margin: 20px auto;
    text-align: center;
}

.wsl-perf-updated {
    display: inline-block;
    background: #1a2030;
    border-radius: 40px;
    padding: 12px 32px;
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
}

.wsl-perf-updated strong {
    color: #F0BB09;
    font-weight: 700;
}

.wsl-perf-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.wsl-perf-tab {
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 24px;
    background: #1e2433;
    color: #c8cdd8;
    transition: all 0.15s ease;
}

.wsl-perf-tab:hover {
    background: #2a3145;
    color: #fff;
}

.wsl-perf-tab.active {
    background: #F0BB09;
    color: #111;
}

.wsl-perf-wrapper,
.wsl-perf-table-wrap,
.wsl-perf-scroll,
.wsl-perf-table,
.wsl-perf-table thead,
.wsl-perf-table tbody,
.wsl-perf-table tr,
.wsl-perf-table th,
.wsl-perf-table td {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.wsl-perf-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 14px;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: #1a2030;
}

/* soft row dividers only — no gold */
.wsl-perf-table th,
.wsl-perf-table td {
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
}

.wsl-perf-table tbody tr:last-child td {
    border-bottom: none !important;
}

.wsl-perf-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
    background: transparent;
}

.wsl-perf-table th,
.wsl-perf-table td {
    padding: 13px 14px;
    text-align: center;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 14px;
    white-space: nowrap;
}

.wsl-perf-table th {
    background: #151b28;
    color: #9ca3af;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.wsl-perf-table tbody tr {
    transition: background 0.15s ease;
}

.wsl-perf-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}

.wsl-perf-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.06);
}

.wsl-perf-table tbody tr:last-child td {
    border-bottom: none;
}

/* Pips = blue */
.wsl-perf-pos {
    color: #3b82f6 !important;
    font-weight: 700;
}

.wsl-perf-neg {
    color: #ef4444 !important;
    font-weight: 700;
}

/* Profit stays green when positive - use separate class on profit cells */
td.wsl-perf-pos.wsl-perf-pl,
.wsl-perf-table td[data-label="Profit/Loss"].wsl-perf-pos {
    color: #22c55e !important;
}

td.wsl-perf-neg.wsl-perf-pl,
.wsl-perf-table td[data-label="Profit/Loss"].wsl-perf-neg {
    color: #ef4444 !important;
}

.wsl-perf-rate {
    color: #F0BB09 !important;
    font-weight: 700;
}

.wsl-perf-empty {
    padding: 40px !important;
    color: #6b7280;
    border: none !important;
}

.wsl-perf-pagination {
    margin-top: 16px;
}

.wsl-perf-pagination .wsl-page-btn {
    border: 1px solid #2d3548;
    color: #c8cdd8;
    background: #1a2030;
}

.wsl-perf-pagination .wsl-page-btn:hover {
    background: #2a3145;
}

.wsl-perf-pagination .wsl-page-btn.active {
    background: #F0BB09;
    color: #111;
    border-color: #F0BB09;
}

@media (max-width: 768px) {
    .wsl-perf-updated {
        font-size: 14px;
        padding: 10px 18px;
        width: calc(100% - 16px);
        box-sizing: border-box;
    }

    .wsl-perf-table {
        min-width: 100%;
        font-size: 13px;
    }

    .wsl-perf-table thead {
        display: none;
    }

    .wsl-perf-table tr {
        display: block;
        margin-bottom: 12px;
        border: none;
        border-radius: 12px;
        overflow: hidden;
        background: #1a2030;
    }

    .wsl-perf-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
        padding: 10px 14px;
        border: none;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        white-space: normal;
    }

    .wsl-perf-table td:last-child {
        border-bottom: none;
    }

    .wsl-perf-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #9ca3af;
        font-size: 12px;
        text-transform: uppercase;
        margin-right: 12px;
    }

    .wsl-perf-table tbody tr:nth-child(even) {
        background: #1a2030;
    }
}

/* Theme variables fallbacks */
.wsl-wrapper, .wsl-perf-wrapper {
    font-family: var(--wsl-font, "DM Sans", sans-serif);
    color: var(--wsl-text, #e8e8e8);
}
.wsl-card { background: var(--wsl-card-bg, #1a2030); }
.wsl-dir-buy { background: var(--wsl-buy, #16a34a) !important; }
.wsl-dir-sell { background: var(--wsl-sell, #dc2626) !important; }
.wsl-res-win { color: var(--wsl-win, #22c55e) !important; }
.wsl-res-loss { color: var(--wsl-loss, #ef4444) !important; }
.wsl-perf-rate, .wsl-title span, .wsl-perf-updated strong { color: var(--wsl-gold, #F0BB09) !important; }
.wsl-perf-pos { color: var(--wsl-pip, #3b82f6) !important; }
.wsl-label, .wsl-perf-table th { color: var(--wsl-muted, #9ca3af) !important; }

/* Filters — single row */
.wsl-filters {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
    margin-bottom: 14px;
    align-items: center;
    width: 100%;
}

.wsl-filters input.wsl-filter-symbol {
    flex: 1 1 auto;
    min-width: 120px;
    max-width: 220px;
}

.wsl-filters select.wsl-filter-direction,
.wsl-filters select.wsl-filter-result {
    flex: 0 1 160px;
    min-width: 120px;
}

.wsl-filters input,
.wsl-filters select {
    background: #1e2433;
    border: 1px solid #2d3548;
    color: #e8e8e8;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 13px;
    font-family: inherit;
    height: 40px;
    box-sizing: border-box;
    outline: none;
}

.wsl-filters input:focus,
.wsl-filters select:focus {
    border-color: var(--wsl-gold, #F0BB09);
}

.wsl-filter-apply,
.wsl-filter-reset {
    flex: 0 0 auto;
    background: #1e2433;
    color: #e8e8e8;
    border: 1px solid #2d3548;
    border-radius: 8px;
    padding: 0 16px;
    height: 40px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

.wsl-filter-apply {
    background: var(--wsl-gold, #F0BB09);
    color: #111;
    border-color: transparent;
}

.wsl-details-btn {
    background: #1e2433;
    color: #e8e8e8;
    border: 1px solid #2d3548;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

@media (max-width: 640px) {
    .wsl-filters {
        flex-wrap: wrap;
    }
    .wsl-filters input.wsl-filter-symbol,
    .wsl-filters select.wsl-filter-direction,
    .wsl-filters select.wsl-filter-result {
        flex: 1 1 calc(50% - 10px);
        max-width: none;
        min-width: 0;
    }
    .wsl-filter-apply,
    .wsl-filter-reset {
        flex: 1 1 auto;
    }
}

/* Skeleton */
.wsl-skeleton .wsl-card {
    min-height: 64px;
    position: relative;
    overflow: hidden;
}
.wsl-skeleton .wsl-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
    animation: wsl-shimmer 1.2s infinite;
}
@keyframes wsl-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Modal */
.wsl-modal[hidden] { display: none !important; }
.wsl-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.wsl-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
}
.wsl-modal-box {
    position: relative;
    background: #1a2030;
    border-radius: 14px;
    padding: 22px 24px;
    width: 100%;
    max-width: 420px;
    color: #e8e8e8;
    box-shadow: 0 20px 50px rgba(0,0,0,0.45);
}
.wsl-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}
.wsl-modal-title { margin: 0 0 14px; font-size: 18px; }
.wsl-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
    font-size: 14px;
}
.wsl-modal-body div { display: flex; flex-direction: column; gap: 2px; }
.wsl-modal-body span { color: #9ca3af; font-size: 11px; text-transform: uppercase; }
.wsl-modal-body strong { font-weight: 600; }

.wsl-perf-chart-wrap {
    max-width: 900px;
    margin: 0 auto 20px;
    background: #1a2030;
    border-radius: 14px;
    padding: 16px;
}


.wsl-perf-total {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #c8cdd8;
    margin: 0 0 10px;
}
.wsl-perf-total strong {
    color: #22c55e !important;
    font-size: 22px;
    font-weight: 700;
    margin-left: 6px;
}
.wsl-perf-total strong.is-neg {
    color: #ef4444 !important;
}

/* ===== Pending stronger pulse ===== */
.wsl-card-pending {
    animation: wsl-pending-glow 1.6s ease-in-out infinite !important;
    border: 1px solid rgba(250, 204, 21, 0.35);
}
.wsl-card-pending .wsl-res-pending {
    animation: wsl-pending-text 1.2s ease-in-out infinite !important;
    color: #fde68a !important;
    text-shadow: 0 0 8px rgba(253, 230, 138, 0.55);
    font-weight: 800 !important;
    letter-spacing: 0.5px;
}
@keyframes wsl-pending-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(250, 204, 21, 0);
        background: #1a2030;
    }
    50% {
        box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.45), 0 0 22px rgba(250, 204, 21, 0.22);
        background: #242a3a;
    }
}
@keyframes wsl-pending-text {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 1; }
}

/* ===== Site-wide toast notification ===== */
.wsl-toast-root {
    position: fixed;
    bottom: 20px;
    left: 20px;
    top: auto;
    right: auto;
    z-index: 999999;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    pointer-events: none;
    max-width: min(360px, calc(100vw - 24px));
}
.wsl-toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #1a2030;
    border: 1px solid #2d3548;
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.45);
    color: #e8e8e8;
    font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    cursor: pointer;
    animation: wsl-toast-in 0.35s ease;
    text-decoration: none;
}
.wsl-toast:hover { background: #1f2638; }
.wsl-toast-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.wsl-toast-body { flex: 1; min-width: 0; }
.wsl-toast-title {
    font-size: 13px;
    font-weight: 600;
    color: #c8cdd8;
    margin: 0 0 4px;
}
.wsl-toast-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.wsl-toast-symbol {
    font-size: 16px;
    font-weight: 700;
    color: #F0BB09;
}
.wsl-toast-dir {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 4px;
    color: #fff;
}
.wsl-toast-dir.buy { background: #16a34a; }
.wsl-toast-dir.sell { background: #dc2626; }
.wsl-toast-view {
    font-size: 13px;
    font-weight: 600;
    color: #F0BB09;
    margin-top: 4px;
}
.wsl-toast-close {
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    padding: 0 2px;
    flex-shrink: 0;
}
.wsl-toast-close:hover { color: #fff; }
@keyframes wsl-toast-in {
    from { opacity: 0; transform: translateY(20px) translateX(-8px); }
    to { opacity: 1; transform: translateY(0) translateX(0); }
}
@keyframes wsl-toast-out {
    from { opacity: 1; transform: translateY(0) translateX(0); }
    to { opacity: 0; transform: translateY(16px) translateX(-8px); }
}
.wsl-toast.out { animation: wsl-toast-out 0.25s ease forwards; }
@media (max-width: 480px) {
    .wsl-toast-root { bottom: 12px; left: 12px; right: 12px; top: auto; max-width: none; }
}


/* Pending badge */
.wsl-pending-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    margin-left: 8px;
    border-radius: 999px;
    background: #F0BB09;
    color: #111;
    font-size: 12px;
    font-weight: 700;
    vertical-align: middle;
    animation: wsl-pending-text 1.2s ease-in-out infinite;
}

/* Copy buttons */
.wsl-copy-btn {
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 12px;
    padding: 0 2px;
    line-height: 1;
    vertical-align: middle;
}
.wsl-copy-btn:hover { color: #F0BB09; }
.wsl-copy-btn.copied { color: #22c55e; }

/* Stats line */
.wsl-stats-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    font-family: "DM Sans", sans-serif;
    color: #c8cdd8;
    font-size: 15px;
    padding: 12px 16px;
    background: #1a2030;
    border-radius: 12px;
    margin: 12px 0;
}
.wsl-stats-line strong { color: #fff; font-weight: 700; }
.wsl-stats-line strong.is-pos { color: #22c55e; }
.wsl-stats-line strong.is-neg { color: #ef4444; }
.wsl-stats-sep { color: #6b7280; }

/* Perf meta */
.wsl-perf-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    justify-content: center;
    margin: 0 0 14px;
    font-size: 13px;
    color: #9ca3af;
}
.wsl-perf-meta strong { color: #e8e8e8; }
.wsl-perf-meta .is-pos, .wsl-perf-meta strong.is-pos { color: #22c55e; }
.wsl-perf-meta .is-neg, .wsl-perf-meta strong.is-neg { color: #ef4444; }


/* ===== Overview stats cards ===== */
.wsl-overview {
    direction: ltr;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    margin: 24px 0;
    font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.wsl-overview-card {
    background: transparent;
    text-align: center;
    padding: 18px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.wsl-overview-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(240, 187, 9, 0.12);
    color: #F0BB09;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}
.wsl-overview-value {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.15;
    letter-spacing: -0.5px;
    font-variant-numeric: tabular-nums;
}
.wsl-overview-label {
    font-size: 15px;
    font-weight: 600;
    color: #c8cdd8;
    margin-top: 2px;
}
.wsl-overview-sub {
    font-size: 13px;
    color: #7a8499;
    font-weight: 500;
}
@media (max-width: 900px) {
    .wsl-overview {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .wsl-overview-value { font-size: 30px; }
}
@media (max-width: 480px) {
    .wsl-overview {
        grid-template-columns: 1fr 1fr;
        gap: 12px 8px;
    }
    .wsl-overview-value { font-size: 26px; }
    .wsl-overview-icon { width: 40px; height: 40px; border-radius: 10px; }
    .wsl-overview-label { font-size: 13px; }
    .wsl-overview-sub { font-size: 12px; }
}


/* ===== Proofs gallery ===== */
.wsl-proofs-wrap {
    direction: ltr;
    font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 24px 0;
    color: #e8e8e8;
}
.wsl-proofs-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.wsl-proof-card {
    background: #1a2030;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    display: flex;
    flex-direction: column;
}
.wsl-proof-card:hover {
    transform: translateY(-2px);
    background: #1f2638;
    box-shadow: 0 12px 28px rgba(0,0,0,0.35);
}
.wsl-proof-img-link {
    display: block;
    background: #0d1117;
    overflow: hidden;
    line-height: 0;
}
.wsl-proof-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center top;
    display: block;
    background: #0d1117;
}
.wsl-proof-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #6b7280;
    font-size: 13px;
    background: #0d1117;
    line-height: normal;
}
@media (max-width: 900px) {
    .wsl-proof-img,
    .wsl-proof-img-placeholder { height: 180px; }
}
@media (max-width: 560px) {
    .wsl-proof-img,
    .wsl-proof-img-placeholder { height: 200px; }
}
.wsl-proof-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
/* 1) TP HIT — largest */
.wsl-proof-event {
    font-family: "DM Sans", sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #22c55e;
    letter-spacing: 0.3px;
    line-height: 1.25;
}
/* 2) Sell in XAUUSD */
.wsl-proof-pair {
    font-family: "DM Sans", sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
}
.wsl-proof-dir {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 4px;
    color: #fff;
}
.wsl-proof-dir-buy { background: #16a34a; }
.wsl-proof-dir-sell { background: #dc2626; }
.wsl-proof-symbol {
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.3px;
}
/* 3) Signal Update — smaller */
.wsl-proof-headline {
    font-family: "DM Sans", sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #9ca3af;
    letter-spacing: 0.2px;
}
/* 4) ID + price + date one row */
.wsl-proof-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-family: "DM Sans", sans-serif;
    font-size: 12px;
}
.wsl-proof-id {
    color: #c8cdd8;
    font-weight: 600;
    background: #0d1117;
    padding: 4px 8px;
    border-radius: 6px;
}
.wsl-proof-tp {
    color: #F0BB09;
    font-weight: 700;
    font-size: 13px;
}
.wsl-proof-date {
    color: #7a8499;
    margin-left: auto;
    font-weight: 500;
}
.wsl-proofs-empty {
    text-align: center;
    padding: 40px 16px;
    background: #1a2030;
    border-radius: 14px;
    color: #6b7280;
    font-family: "DM Sans", sans-serif;
}
.wsl-proofs-pagination {
    margin-top: 20px;
}
@media (max-width: 900px) {
    .wsl-proofs-cards { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 560px) {
    .wsl-proofs-cards { grid-template-columns: 1fr; }
    .wsl-proof-event { font-size: 17px; }
    .wsl-proof-date { margin-left: 0; width: 100%; }
}


/* VIP join notifications — wider, 6s display */
.wsl-toast-vip {
    min-width: 320px;
    max-width: 420px;
    padding: 14px 16px;
}
.wsl-toast-vip .wsl-toast-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.wsl-toast-vip .wsl-toast-vip-line1 {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
}
.wsl-toast-vip .wsl-toast-vip-name { color: #F0BB09; }
.wsl-toast-vip .wsl-toast-vip-plan { color: #c4b5fd; font-weight: 600; }
.wsl-toast-vip .wsl-toast-vip-line2 {
    font-size: 13px;
    color: #d1d5db;
    line-height: 1.4;
}
.wsl-toast-vip .wsl-toast-vip-line3 {
    font-size: 13px;
    font-weight: 600;
    color: #F0BB09;
    margin-top: 2px;
}
.wsl-toast-root { max-width: 420px; }
@media (max-width: 560px) {
    .wsl-toast-vip { max-width: none; min-width: 0; }
}

.wsl-toast-vip.wsl-toast-clickable:hover {
    background: #242b3d;
}


/* ===== Public UI 3.8 — chips, compact, CTA, mobile, status, proofs gallery ===== */
.wsl-status-line {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--wsl-muted, #9ca3af); margin-top: 4px;
}
.wsl-status-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,.2); animation: wslPulse 2s infinite;
}
@keyframes wslPulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(34,197,94,.2); }
  50% { box-shadow: 0 0 0 6px rgba(34,197,94,.05); }
}
.wsl-chip-filters {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 10px;
}
.wsl-chip {
  border: 1px solid rgba(240,187,9,.35);
  background: rgba(26,32,48,.9);
  color: #e8e8e8;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: .15s ease;
}
.wsl-chip:hover {
  background: rgba(240,187,9,.2);
  border-color: #F0BB09;
  color: #ffe08a; /* light gold on dark — readable */
}
.wsl-chip.active {
  background: #F0BB09;
  color: #111;
  border-color: #F0BB09;
}
.wsl-chip.active:hover {
  background: #ffd34d;
  color: #111;
}
.wsl-view-toggle {
  display: inline-flex; border: 1px solid rgba(240,187,9,.3);
  border-radius: 8px; overflow: hidden; margin-right: 8px;
}
.wsl-view-btn {
  background: transparent; border: 0; color: #9ca3af;
  padding: 6px 10px; font-size: 12px; font-weight: 600; cursor: pointer;
}
.wsl-view-btn.active { background: #F0BB09; color: #111; }

.wsl-cta-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 0 0 14px; padding: 12px 16px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(240,187,9,.12), rgba(26,32,48,.9));
  border: 1px solid rgba(240,187,9,.35);
}
.wsl-cta-text { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: #e8e8e8; }
.wsl-cta-text span { font-size: 12px; color: #9ca3af; }
.wsl-cta-btn {
  background: #F0BB09; color: #111; font-weight: 700; text-decoration: none;
  padding: 8px 14px; border-radius: 8px; white-space: nowrap; font-size: 13px;
}
.wsl-cta-btn:hover { background: #ffd34d; color: #111; }

/* Minimaler cards */
.wsl-card {
  box-shadow: 0 4px 16px rgba(0,0,0,.18) !important;
  border-radius: 12px !important;
  gap: 6px 8px !important;
}
.wsl-card .wsl-label { font-size: 10px !important; letter-spacing: .03em; }
.wsl-card .wsl-value { font-size: 13px !important; font-weight: 600; }

/* Compact mode */
.wsl-signals-wrapper.is-compact .wsl-card-entry,
.wsl-signals-wrapper.is-compact .wsl-card-sl,
.wsl-signals-wrapper.is-compact .wsl-card-tps,
.wsl-signals-wrapper.is-compact .wsl-card-note,
.wsl-signals-wrapper.is-compact .wsl-details-btn {
  display: none !important;
}
.wsl-signals-wrapper.is-compact .wsl-card {
  grid-template-columns: auto 1fr auto auto !important;
  align-items: center;
  padding: 10px 12px !important;
}

/* New pending highlight */
.wsl-card.wsl-card-new {
  animation: wslNewFlash 3s ease;
  outline: 2px solid #F0BB09;
}
@keyframes wslNewFlash {
  0% { background: rgba(240,187,9,.2); }
  100% { background: transparent; }
}

/* Mobile first */
@media (max-width: 640px) {
  .wsl-header { flex-direction: column; align-items: flex-start !important; gap: 10px; }
  .wsl-header-right { width: 100%; flex-wrap: wrap; }
  .wsl-chip-filters { gap: 6px; }
  .wsl-chip { padding: 8px 12px; font-size: 13px; }
  .wsl-cta-banner { flex-direction: column; align-items: flex-start; }
  .wsl-cta-btn { width: 100%; text-align: center; padding: 12px; }
  .wsl-card { padding: 12px !important; }
  .wsl-page-btn { min-width: 40px; min-height: 40px; }
}

/* Proofs gallery */
.wsl-proofs-gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px;
}
.wsl-proof-item {
  background: #1a2030; border: 1px solid rgba(240,187,9,.2); border-radius: 12px;
  overflow: hidden; cursor: pointer; transition: .15s ease;
}
.wsl-proof-item:hover { border-color: #F0BB09; transform: translateY(-2px); }
.wsl-proof-item img { width: 100%; height: 160px; object-fit: cover; display: block; background: #111; }
.wsl-proof-meta { padding: 10px 12px; font-size: 12px; color: #e8e8e8; }
.wsl-proof-meta strong { display: block; font-size: 13px; margin-bottom: 4px; }
.wsl-proofs-toolbar {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; align-items: center;
}
.wsl-proofs-toolbar select {
  background: #1a2030; color: #e8e8e8; border: 1px solid rgba(240,187,9,.3);
  border-radius: 8px; padding: 8px 10px;
}
.wsl-lightbox {
  display: none; position: fixed; inset: 0; z-index: 99999;
  background: rgba(0,0,0,.85); align-items: center; justify-content: center; padding: 20px;
}
.wsl-lightbox.open { display: flex; }
.wsl-lightbox img { max-width: min(960px, 100%); max-height: 85vh; border-radius: 8px; }
.wsl-lightbox-close {
  position: absolute; top: 16px; right: 20px; background: #F0BB09; color: #111;
  border: 0; border-radius: 8px; padding: 8px 12px; font-weight: 700; cursor: pointer;
}

.wsl-filters, .wsl-refresh-btn { display: none !important; }
