/* ═══════════════════════════════════════════════════════════
   Trade Popups CSS
   রাখো: /wp-content/plugins/wp-binary-trading/assets/css/trade-popups.css
   ═══════════════════════════════════════════════════════════ */

/* ── Overlay ── */
.wpbt-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* ── Popup Box ── */
.wpbt-popup-box {
    background: #0c1220;
    border: 1px solid #1e2d45;
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    padding: 24px;
    position: relative;
    box-shadow: 0 25px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05);
    transform: scale(0.88) translateY(24px);
    opacity: 0;
    transition: transform 0.32s cubic-bezier(0.34,1.56,0.64,1), opacity 0.25s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.wpbt-popup-box.wpbt-popup-visible {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Win/Lose color accents */
.wpbt-popup-result.tpp-win  { border-color: #166534; box-shadow: 0 25px 60px rgba(0,0,0,0.6), 0 0 30px rgba(74,222,128,0.15); }
.wpbt-popup-result.tpp-lose { border-color: #7f1d1d; box-shadow: 0 25px 60px rgba(0,0,0,0.6), 0 0 30px rgba(248,113,113,0.12); }
.wpbt-popup-result.tpp-tie  { border-color: #1e3a5f; }

/* ── Header ── */
.wpbt-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.wpbt-popup-logo {
    font-size: 14px;
    font-weight: 600;
    color: #7dd3fc;
    letter-spacing: 0.04em;
}
.wpbt-popup-close {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: #1e2d45;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    position: absolute;
    top: 16px; right: 16px;
    z-index: 2;
}
.wpbt-popup-close:hover { background: #2d3f5a; color: #e2e8f0; }

/* ── Asset Row ── */
.wpbt-popup-asset-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.wpbt-popup-symbol {
    font-size: 18px;
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: 0.04em;
}
.wpbt-popup-dir {
    font-size: 13px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
}
.wpbt-popup-dir.tpp-up   { background: #0d2b1c; color: #4ade80; border: 1px solid #166534; }
.wpbt-popup-dir.tpp-down { background: #2d0c0c; color: #f87171; border: 1px solid #7f1d1d; }

/* ── Price Block ── */
.wpbt-popup-price-block {
    background: #0f1825;
    border: 1px solid #1e2d45;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 16px;
    text-align: center;
}
.wpbt-popup-price-label {
    font-size: 10px;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}
.wpbt-popup-price-val {
    font-size: 22px;
    font-weight: 700;
    color: #fbbf24;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
}

/* ── Stats Grid ── */
.wpbt-popup-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}
.wpbt-popup-stat {
    background: #0f1825;
    border: 1px solid #1e2d45;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
}
.wpbt-popup-stat-label {
    font-size: 10px;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}
.wpbt-popup-stat-val {
    font-size: 15px;
    font-weight: 600;
}
.wpbt-stat-green   { color: #4ade80; }
.wpbt-stat-red     { color: #f87171; }
.wpbt-stat-blue    { color: #38bdf8; }
.wpbt-stat-amber   { color: #fbbf24; }
.wpbt-stat-neutral { color: #e2e8f0; }

/* ── Countdown ── */
.wpbt-popup-countdown-wrap {
    text-align: center;
    margin-bottom: 14px;
}
.wpbt-popup-countdown-label {
    font-size: 10px;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
}
.wpbt-popup-countdown-val {
    font-size: 32px;
    font-weight: 700;
    color: #38bdf8;
    font-variant-numeric: tabular-nums;
    margin-bottom: 8px;
}
.wpbt-popup-progress {
    height: 6px;
    background: #1e2d45;
    border-radius: 3px;
    overflow: hidden;
}
.wpbt-popup-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #38bdf8);
    border-radius: 3px;
    transition: width 1s linear;
}

/* ── Screenshot hint ── */
.wpbt-popup-ss-hint {
    text-align: center;
    font-size: 11px;
    color: #475569;
    margin-bottom: 14px;
    padding: 8px 12px;
    background: #0f1825;
    border-radius: 8px;
    border: 1px dashed #1e2d45;
}

/* ── Footer ── */
.wpbt-popup-footer {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #334155;
}

/* ══════════════════════════════════════════
   RESULT POPUP SPECIFICS
══════════════════════════════════════════ */
.wpbt-result-hero {
    text-align: center;
    margin-bottom: 16px;
    padding-top: 8px;
}
.wpbt-result-icon {
    font-size: 52px;
    line-height: 1;
    margin-bottom: 8px;
    display: block;
    animation: wpbt-bounce 0.6s cubic-bezier(0.34,1.56,0.64,1) 0.2s both;
}
@keyframes wpbt-bounce {
    from { transform: scale(0.5); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}
.wpbt-result-label {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #f1f5f9;
    margin-bottom: 6px;
}
.tpp-win  .wpbt-result-label { color: #4ade80; }
.tpp-lose .wpbt-result-label { color: #f87171; }
.tpp-tie  .wpbt-result-label { color: #38bdf8; }

.wpbt-result-greeting {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.5;
}
.wpbt-result-amount {
    text-align: center;
    font-size: 38px;
    font-weight: 800;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
    font-variant-numeric: tabular-nums;
    animation: wpbt-fade-up 0.5s ease 0.3s both;
}
@keyframes wpbt-fade-up {
    from { transform: translateY(12px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
.wpbt-result-stats { margin-bottom: 14px; }

.wpbt-result-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}
.wpbt-result-btn {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: opacity 0.15s, transform 0.1s;
}
.wpbt-result-btn:active { transform: scale(0.97); }
.wpbt-result-btn-primary {
    background: linear-gradient(135deg, #1e3a5f, #2563eb);
    color: #bae6fd;
}
.wpbt-result-btn-primary:hover { opacity: 0.9; }
.wpbt-result-btn-secondary {
    background: #1e2d45;
    color: #64748b;
}
.wpbt-result-btn-secondary:hover { background: #253347; color: #94a3b8; }

/* ══════════════════════════════════════════
   CONFETTI
══════════════════════════════════════════ */
.wpbt-confetti {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: 20px;
    z-index: 0;
}
.wpbt-confetti-piece {
    position: absolute;
    top: -10px;
    animation: wpbt-confetti-fall linear forwards;
}
@keyframes wpbt-confetti-fall {
    0%   { transform: translateY(0) rotate(0deg);     opacity: 1; }
    100% { transform: translateY(450px) rotate(720deg); opacity: 0; }
}
.wpbt-popup-result > *:not(.wpbt-confetti) {
    position: relative;
    z-index: 1;
}

/* ══════════════════════════════════════════
   ADMIN — Profit Tiers Page
   রাখো: assets/css/profit-tiers-admin.css
══════════════════════════════════════════ */
.wpbt-tiers-wrap h1 { margin-bottom: 8px; }
.wpbt-tiers-wrap .description { color: #666; margin-bottom: 20px; }
.wpbt-tiers-table-wrap { overflow-x: auto; margin-bottom: 16px; }
.wpbt-tiers-table-wrap table input.small-text { width: 90px; }
.wpbt-tiers-table-wrap table input.regular-text { width: 120px; }
.wpbt-tiers-table-wrap table input.large-text { width: 100%; }
.wpbt-tiers-preview { margin-top: 32px; }
.wpbt-tiers-preview h2 { font-size: 16px; margin-bottom: 10px; }

/* ── Responsive ── */
@media (max-width: 480px) {
    .wpbt-popup-box { padding: 18px; }
    .wpbt-popup-price-val { font-size: 18px; }
    .wpbt-result-amount { font-size: 30px; }
    .wpbt-result-icon { font-size: 40px; }
}
