/* WP Slot Meter - Helpslotwin & AFF Game Library Integration */
.wpsm-container {
    --wpsm-bg: #1e2638;
    --wpsm-card-bg: #384057;
    --wpsm-red: #FE2D2E;
    --wpsm-green: #4EEA00;
    --wpsm-yellow: #fbfb00;
    --wpsm-text: #ffffff;
    --wpsm-muted: #94a3b8;

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--wpsm-bg);
    color: var(--wpsm-text);
    padding: 16px;
    border-radius: 8px;
    max-width: 620px;
    margin: 20px auto;
    box-sizing: border-box;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.wpsm-container * {
    box-sizing: border-box;
}

/* =========================================================
   SINGLE GAME MODE (.wpsm-single-game)
   Scoped to match AFF Game Library design tokens
========================================================= */
.wpsm-container.wpsm-single-game {
    background: var(--agl-card, #1e2638);
    border: 1px solid var(--agl-border, #384057);
    border-radius: var(--agl-radius, 8px);
    color: var(--agl-text, #ffffff);
    padding: 16px;
    margin: 24px 0;
    max-width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.wpsm-container.wpsm-single-game .wpsm-single-header {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--agl-border, rgba(255, 255, 255, 0.08));
}

.wpsm-container.wpsm-single-game .wpsm-single-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--agl-text, #ffffff);
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wpsm-container.wpsm-single-game .wpsm-single-provider {
    font-size: 12px;
    color: var(--agl-muted, #94a3b8);
    font-weight: 500;
}

.wpsm-container.wpsm-single-game .wpsm-game-item-wrap {
    background: var(--agl-card2, #2a3449);
    border: 1px solid var(--agl-border, rgba(255, 255, 255, 0.08));
    border-radius: var(--agl-radius, 6px);
}

.wpsm-container.wpsm-single-game .wpsm-single-disclosure {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid var(--agl-border, rgba(255, 255, 255, 0.08));
    font-size: 11px;
    color: var(--agl-muted, #94a3b8);
    line-height: 1.4;
}

@media (max-width: 640px) {
    .wpsm-container.wpsm-single-game {
        padding: 12px;
    }
    .wpsm-container.wpsm-single-game .wpsm-card-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .wpsm-container.wpsm-single-game .wpsm-left-group {
        width: 100%;
    }
    .wpsm-container.wpsm-single-game .wpsm-right-stats {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        background: rgba(0, 0, 0, 0.2);
        padding: 8px 10px;
        border-radius: 4px;
    }
    .wpsm-container.wpsm-single-game .wpsm-stat-row {
        justify-content: flex-start;
    }
    .wpsm-container.wpsm-single-game .wpsm-stat-name,
    .wpsm-container.wpsm-single-game .wpsm-stat-val {
        width: auto;
        text-align: left;
    }
}

/* =========================================================
   STANDARD ARCHIVE / GRID MODE
========================================================= */
.wpsm-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wpsm-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wpsm-hotspot-badge {
    background: var(--wpsm-red);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wpsm-realtime-text {
    font-size: 11px;
    color: var(--wpsm-muted);
}

.wpsm-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wpsm-provider-label {
    font-size: 12px;
    color: var(--wpsm-muted);
}

.wpsm-provider-select {
    background: #252d3d;
    color: #fff;
    border: 1px solid #485370;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
}

.wpsm-sort-icons {
    display: flex;
    align-items: center;
    gap: 6px;
}

.wpsm-sort-btn {
    width: 24px;
    height: 24px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
}

.wpsm-sort-btn:hover {
    opacity: 0.85;
    transform: scale(1.08);
}

/* Game List */
.wpsm-game-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wpsm-game-item-wrap {
    display: flex;
    flex-direction: column;
    background: var(--wpsm-card-bg);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.2s;
}

.wpsm-game-item-wrap:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}

/* Card Main Row */
.wpsm-card-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    gap: 12px;
}

.wpsm-left-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-grow: 1;
    min-width: 0;
}

/* Thumbnail */
.wpsm-thumb-container {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #252d3d;
    border-radius: 4px;
    overflow: hidden;
}

.wpsm-game-thumb {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Middle Group */
.wpsm-mid-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-grow: 1;
    min-width: 0;
}

.wpsm-game-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Capsule Bar */
.wpsm-bar-container {
    display: flex;
    align-items: center;
    margin: 2px 0;
}

.wpsm-icon-badge {
    width: 26px;
    height: 32px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
    margin-right: -4px;
    z-index: 2;
}

.wpsm-bar-frame {
    position: relative;
    width: 140px;
    height: 18px;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    padding: 0 3px;
}

.wpsm-bar-inner {
    position: relative;
    width: 100%;
    height: 10px;
    overflow: hidden;
    border-radius: 2px;
}

.wpsm-bar-fill {
    height: 100%;
    transition: width 0.6s ease;
}

.wpsm-fill-red {
    background-color: #F20100;
}

.wpsm-fill-green {
    background-color: #4EEA00;
}

.wpsm-bar-text {
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
    z-index: 3;
    pointer-events: none;
}

.wpsm-meter-label {
    font-size: 11px;
    color: #cbd5e1;
    margin: 0;
}

/* Right Column: 4-Line Stats */
.wpsm-right-stats {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
    font-size: 11px;
    min-width: 85px;
}

.wpsm-stat-row {
    display: flex;
    justify-content: space-between;
    gap: 6px;
}

.wpsm-stat-name {
    color: #cbd5e1;
    width: 44px;
    text-align: right;
    font-weight: 500;
}

.wpsm-stat-val {
    font-weight: 800;
    width: 44px;
    text-align: right;
}

.wpsm-stat-val.green {
    color: var(--wpsm-green);
}

.wpsm-stat-val.red {
    color: #ff4757;
}

/* Red Action Banner */
.wpsm-hot-banner {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #FE2D2E;
    padding: 7px 14px;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

.wpsm-banner-yellow-text {
    color: #fbfb00;
    font-weight: 600;
}

.wpsm-banner-badge {
    color: #fff;
    font-weight: 700;
}

.wpsm-banner-btn {
    background: #fff;
    color: #FE2D2E;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.25);
    transition: transform 0.15s;
}

.wpsm-banner-btn:hover {
    transform: scale(1.05);
    color: #d31027;
}

/* Footer Info */
.wpsm-footer-info {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.wpsm-footer-info h4 {
    margin: 0 0 4px 0;
    font-size: 13px;
    font-weight: 700;
    color: #34BDFF;
}

.wpsm-footer-info p {
    margin: 0;
    font-size: 11px;
    color: var(--wpsm-muted);
}

/* =========================================================
   SCATTER METER TODAY (MACRO FILTER BAR)
========================================================= */
.wpsm-today-bar {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.wpsm-today-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.wpsm-today-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wpsm-today-badge {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.wpsm-today-status-text {
    font-size: 13px;
    font-weight: 700;
    color: #10b981;
}

.wpsm-today-status-text strong {
    color: #10b981;
}

.wpsm-guide-btn {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.35);
    transition: all 0.2s ease;
}

.wpsm-guide-btn:hover {
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.5);
}

.wpsm-today-desc {
    margin: 6px 0 10px 0;
    font-size: 11px;
    color: #94a3b8;
}

.wpsm-today-gauge-wrap {
    position: relative;
}

.wpsm-today-track {
    position: relative;
    height: 8px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    overflow: visible;
}

.wpsm-today-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #10b981 60%, #eab308 85%, #ef4444 100%);
    border-radius: 10px;
    transition: width 0.6s ease;
}

.wpsm-today-pointer {
    position: absolute;
    top: -6px;
    transform: translateX(-50%);
    font-size: 10px;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    pointer-events: none;
    transition: left 0.6s ease;
}

.wpsm-today-scale {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 9px;
    color: #64748b;
    font-weight: 600;
}

.wpsm-today-scale .scale-item.active {
    color: #10b981;
    font-weight: 700;
}

/* =========================================================
   5-LEVEL SIGNAL SYSTEM STYLES
========================================================= */
.wpsm-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 2px;
}

.wpsm-signal-pill {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.wpsm-signal-pill.sig-ultra {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid #fbbf24;
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.3);
}

.wpsm-signal-pill.sig-high {
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.5);
}

.wpsm-signal-pill.sig-fair {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.4);
}

.wpsm-signal-pill.sig-low {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.wpsm-signal-pill.sig-avoid {
    background: rgba(239, 68, 68, 0.18);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.5);
}

/* Special Zone Flags */
.wpsm-special-flag {
    display: inline-block;
    font-size: 9.5px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    margin-bottom: 4px;
}

.flag-secret {
    background: linear-gradient(90deg, #f59e0b, #d97706);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
}

.flag-sweet {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid #38bdf8;
    color: #38bdf8;
}

.flag-peak {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid #ef4444;
    color: #f87171;
}

.flag-allgreen {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid #10b981;
    color: #34d399;
}

.wpsm-action-hint {
    font-weight: 600;
    color: #cbd5e1;
}

/* Bar Fill color variations */
.wpsm-bar-fill.sig-ultra { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.wpsm-bar-fill.sig-high { background: linear-gradient(90deg, #059669, #10b981); }
.wpsm-bar-fill.sig-fair { background: linear-gradient(90deg, #0284c7, #38bdf8); }
.wpsm-bar-fill.sig-low { background: linear-gradient(90deg, #d97706, #f59e0b); }
.wpsm-bar-fill.sig-avoid { background: linear-gradient(90deg, #b91c1c, #ef4444); }

/* =========================================================
   METER GUIDE MODAL & STANDALONE STYLES
========================================================= */
.wpsm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 15, 26, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.wpsm-modal-window {
    background: #151c2c;
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 12px;
    max-width: 820px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    position: relative;
    color: #e2e8f0;
}

.wpsm-meter-guide {
    padding: 24px;
    line-height: 1.6;
    font-size: 13.5px;
}

.wpsm-guide-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
}

.wpsm-guide-badge {
    background: rgba(14, 165, 233, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(14, 165, 233, 0.4);
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.wpsm-guide-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.15s;
}

.wpsm-guide-close:hover {
    color: #ffffff;
}

.wpsm-guide-main-title {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.wpsm-guide-lead {
    color: #94a3b8;
    font-size: 13.5px;
    margin: 0 0 16px 0;
}

.wpsm-guide-quick-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.wpsm-guide-quick-nav a {
    background: rgba(255, 255, 255, 0.06);
    color: #38bdf8;
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.15s;
}

.wpsm-guide-quick-nav a:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: #38bdf8;
}

.wpsm-guide-section {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.wpsm-step-pill {
    display: inline-block;
    background: #0284c7;
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.wpsm-guide-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px 0;
}

/* Signal Cards Grid */
.wpsm-signal-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 14px;
}

.wpsm-signal-box {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 14px 16px;
    border-left: 4px solid #64748b;
}

.wpsm-signal-box.signal-ultra { border-left-color: #fbbf24; background: rgba(251, 191, 36, 0.06); }
.wpsm-signal-box.signal-high { border-left-color: #10b981; background: rgba(16, 185, 129, 0.05); }
.wpsm-signal-box.signal-fair { border-left-color: #38bdf8; background: rgba(56, 189, 248, 0.04); }
.wpsm-signal-box.signal-low { border-left-color: #f59e0b; background: rgba(245, 158, 11, 0.04); }
.wpsm-signal-box.signal-avoid { border-left-color: #ef4444; background: rgba(239, 68, 68, 0.06); }

.wpsm-signal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.wpsm-signal-arrows {
    font-size: 13px;
    font-weight: 800;
}

.signal-ultra .wpsm-signal-arrows { color: #fbbf24; }
.signal-high .wpsm-signal-arrows { color: #10b981; }
.signal-fair .wpsm-signal-arrows { color: #38bdf8; }
.signal-low .wpsm-signal-arrows { color: #f59e0b; }
.signal-avoid .wpsm-signal-arrows { color: #ef4444; }

.wpsm-signal-tag {
    font-size: 10px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.wpsm-signal-box h4 {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px 0;
}

.wpsm-signal-box p {
    font-size: 12px;
    color: #94a3b8;
    margin: 0 0 8px 0;
}

.wpsm-signal-action {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.25);
    display: inline-block;
}

.signal-ultra .wpsm-signal-action { color: #fbbf24; }
.signal-high .wpsm-signal-action { color: #34d399; }
.signal-fair .wpsm-signal-action { color: #38bdf8; }
.signal-low .wpsm-signal-action { color: #f59e0b; }
.signal-avoid .wpsm-signal-action { color: #f87171; }

/* Technique Cards */
.wpsm-technique-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 16px;
    margin-top: 14px;
}

.wpsm-tech-number {
    font-size: 10px;
    font-weight: 800;
    color: #38bdf8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.wpsm-technique-card h4 {
    font-size: 14.5px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.wpsm-protocol-list {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wpsm-protocol-item {
    font-size: 12px;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wpsm-protocol-item span {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0284c7;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wpsm-zones-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 10px 0;
}

.wpsm-zone-card {
    padding: 12px;
    border-radius: 6px;
}

.wpsm-zone-card.sweet-spot {
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.wpsm-zone-card.near-peak {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.wpsm-zone-card h5 {
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #fff;
}

.wpsm-zone-card p {
    font-size: 11.5px;
    color: #94a3b8;
    margin: 0;
}

.wpsm-zone-note {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 8px;
}

/* Secret Formula */
.wpsm-secret-formula-card {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(180, 83, 9, 0.15));
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 8px;
    padding: 18px;
    margin-top: 14px;
}

.wpsm-formula-badge {
    color: #fbbf24;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.wpsm-secret-formula-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.wpsm-formula-metrics {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 14px 0;
}

.wpsm-metric-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(251, 191, 36, 0.4);
    border-radius: 6px;
    padding: 10px 14px;
    text-align: center;
}

.wpsm-metric-num {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: #fbbf24;
}

.wpsm-metric-desc {
    font-size: 9px;
    font-weight: 700;
    color: #cbd5e1;
    letter-spacing: 0.4px;
}

.wpsm-metric-plus {
    font-size: 20px;
    font-weight: 800;
    color: #fbbf24;
}

.wpsm-formula-warning {
    font-size: 11px;
    color: #fca5a5;
    margin: 0;
}

.wpsm-bonus-box {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    padding: 14px 16px;
    margin-top: 14px;
}

.wpsm-bonus-box h4 {
    font-size: 14px;
    font-weight: 700;
    color: #34d399;
    margin: 0 0 4px 0;
}

.wpsm-bonus-box p {
    font-size: 12px;
    color: #cbd5e1;
    margin: 0;
}

/* Daily Table */
.wpsm-daily-table-wrap {
    overflow-x: auto;
    margin-top: 12px;
}

.wpsm-guide-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.wpsm-guide-table th, .wpsm-guide-table td {
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
}

.wpsm-guide-table th {
    background: rgba(0, 0, 0, 0.3);
    color: #cbd5e1;
    font-weight: 700;
}

.tag-good { background: #10b981; color: #fff; padding: 2px 6px; border-radius: 3px; font-weight: 700; font-size: 10px; }
.tag-fair { background: #0284c7; color: #fff; padding: 2px 6px; border-radius: 3px; font-weight: 700; font-size: 10px; }
.tag-cold { background: #64748b; color: #fff; padding: 2px 6px; border-radius: 3px; font-weight: 700; font-size: 10px; }

.wpsm-golden-rule {
    margin-top: 12px;
    font-size: 12px;
    color: #38bdf8;
}

/* Capital Grid */
.wpsm-capital-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.wpsm-capital-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 12px;
}

.wpsm-cap-title { font-size: 13px; font-weight: 700; color: #fff; }
.wpsm-cap-badge { font-size: 9px; font-weight: 800; display: inline-block; padding: 1px 5px; border-radius: 2px; margin: 4px 0; }
.wpsm-capital-card p { font-size: 11px; color: #94a3b8; margin: 0; }

.not-rec .wpsm-cap-badge { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.min-rec .wpsm-cap-badge { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.rec .wpsm-cap-badge { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.optimal .wpsm-cap-badge { background: rgba(56, 189, 248, 0.2); color: #38bdf8; }

.wpsm-bet-rule {
    background: rgba(56, 189, 248, 0.1);
    border-left: 3px solid #38bdf8;
    padding: 8px 12px;
    font-size: 12px;
    color: #e2e8f0;
    margin-top: 14px;
    border-radius: 0 4px 4px 0;
}

.wpsm-vs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}

.wpsm-vs-box {
    padding: 12px 14px;
    border-radius: 6px;
}

.vs-quick { background: rgba(16, 185, 129, 0.06); border: 1px solid rgba(16, 185, 129, 0.3); }
.vs-buy { background: rgba(239, 68, 68, 0.06); border: 1px solid rgba(239, 68, 68, 0.3); }

.wpsm-vs-box h5 { margin: 0 0 8px 0; font-size: 13px; font-weight: 700; color: #fff; }
.wpsm-vs-box ul { margin: 0; padding-left: 18px; font-size: 11.5px; color: #cbd5e1; }
.wpsm-vs-box li { margin-bottom: 4px; }

.wpsm-rule-box {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 12px;
    color: #cbd5e1;
}

.wpsm-rule-box ul { margin: 6px 0 0 0; padding-left: 18px; }
.wpsm-rule-box li { margin-bottom: 3px; }

.wpsm-provider-breakdown {
    margin: 8px 0 0 0;
    padding-left: 18px;
    font-size: 12px;
    color: #cbd5e1;
}

.wpsm-provider-breakdown li { margin-bottom: 6px; }

@media (max-width: 640px) {
    .wpsm-zones-grid, .wpsm-capital-grid, .wpsm-vs-grid {
        grid-template-columns: 1fr;
    }
    .wpsm-meter-guide {
        padding: 16px;
    }
}