/* ── BottingHub Proxies — Frontend CSS ───────────────────────────────────── */

/* ═══════════════════════════════════════════════════════════════════════════
   CONFIGURATOR  (#bh-configurator scoped for specificity over any theme)
   ═══════════════════════════════════════════════════════════════════════════ */

#bh-configurator {
    background: #0d0b2a !important;
    border: 1px solid rgba(139, 92, 246, 0.35) !important;
    border-radius: 16px !important;
    padding: 28px !important;
    margin: 0 0 28px !important;
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.12), 0 4px 24px rgba(0,0,0,0.5) !important;
    color: #e8e6ff !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    box-sizing: border-box !important;
}

/* ── Section spacing ─────────────────────────────────────────────────────── */
#bh-configurator .bh-config-section {
    margin-bottom: 22px !important;
}

/* ── Labels ──────────────────────────────────────────────────────────────── */
#bh-configurator .bh-label {
    display: block !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: .1em !important;
    color: rgba(196, 181, 253, 0.7) !important;
    margin-bottom: 10px !important;
}

/* ── Quantity row ────────────────────────────────────────────────────────── */
#bh-configurator .bh-qty-row {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

#bh-configurator .bh-qty-btn {
    width: 44px !important;
    height: 44px !important;
    flex-shrink: 0 !important;
    border-radius: 10px !important;
    border: 1px solid rgba(139, 92, 246, 0.4) !important;
    background: rgba(139, 92, 246, 0.12) !important;
    color: #e8e6ff !important;
    font-size: 22px !important;
    font-weight: 300 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    transition: background .15s, border-color .15s, transform .1s !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}

#bh-configurator .bh-qty-btn:hover {
    background: rgba(0, 255, 157, 0.15) !important;
    border-color: #00ff9d !important;
    transform: scale(1.08) !important;
}

#bh-configurator #bh-qty-input {
    width: 80px !important;
    text-align: center !important;
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(139, 92, 246, 0.4) !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    padding: 8px 10px !important;
    -moz-appearance: textfield !important;
    box-shadow: none !important;
    outline: none !important;
}

#bh-configurator #bh-qty-input::-webkit-outer-spin-button,
#bh-configurator #bh-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* ── Country select ──────────────────────────────────────────────────────── */
#bh-configurator .bh-select {
    display: block !important;
    width: 100% !important;
    background-color: rgba(255, 255, 255, 0.07) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpolyline points='1,1 6,6 11,1' fill='none' stroke='%2300ff9d' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    border: 1px solid rgba(139, 92, 246, 0.4) !important;
    border-radius: 10px !important;
    color: #e8e6ff !important;
    font-size: 15px !important;
    padding: 11px 40px 11px 14px !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    box-shadow: none !important;
    outline: none !important;
}

#bh-configurator .bh-select option {
    background: #0d0b2a !important;
    color: #e8e6ff !important;
}

#bh-configurator .bh-select:focus {
    border-color: #8B5CF6 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2) !important;
}

/* ── Price summary box ───────────────────────────────────────────────────── */
#bh-configurator .bh-price-summary {
    background: rgba(0, 255, 157, 0.06) !important;
    border: 1px solid rgba(0, 255, 157, 0.25) !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    margin-bottom: 18px !important;
}

#bh-configurator .bh-price-line {
    font-size: 13px !important;
    color: rgba(196, 181, 253, 0.65) !important;
    margin: 0 0 6px !important;
    line-height: 1.4 !important;
}

#bh-configurator #bh-price-per {
    color: #00ff9d !important;
    font-weight: 700 !important;
    font-size: 15px !important;
}

#bh-configurator .bh-price-total {
    font-size: 15px !important;
    color: #e8e6ff !important;
    margin: 0 !important;
    line-height: 1.3 !important;
}

#bh-configurator .bh-price-total strong {
    color: #00ff9d !important;
    font-size: 30px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}

#bh-configurator .bh-per-label {
    color: rgba(196, 181, 253, 0.55) !important;
    font-size: 13px !important;
    margin-left: 3px !important;
}

/* ── Tier chips ──────────────────────────────────────────────────────────── */
#bh-configurator .bh-tier-chips {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-bottom: 22px !important;
}

#bh-configurator .bh-tier-chip {
    display: inline-block !important;
    background: rgba(139, 92, 246, 0.12) !important;
    border: 1px solid rgba(139, 92, 246, 0.3) !important;
    border-radius: 100px !important;
    padding: 5px 14px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #c4b5fd !important;
    cursor: pointer !important;
    transition: all .15s !important;
    user-select: none !important;
    white-space: nowrap !important;
    line-height: 1.4 !important;
}

#bh-configurator .bh-tier-chip:hover {
    background: rgba(139, 92, 246, 0.28) !important;
    border-color: #8B5CF6 !important;
    color: #ffffff !important;
}

#bh-configurator .bh-tier-chip.bh-tier-active {
    background: linear-gradient(135deg, rgba(139,92,246,0.4), rgba(217,70,239,0.35)) !important;
    border-color: #8B5CF6 !important;
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.3) !important;
}

/* ── Add to Cart button ──────────────────────────────────────────────────── */
#bh-configurator .bh-add-cart-btn,
.bh-add-cart-btn {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    background: linear-gradient(135deg, #5E0069 0%, #8B5CF6 60%, #D946EF 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 16px 32px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: .04em !important;
    cursor: pointer !important;
    transition: opacity .2s, transform .15s, box-shadow .2s !important;
    text-decoration: none !important;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4) !important;
    outline: none !important;
    margin-top: 4px !important;
}

#bh-configurator .bh-add-cart-btn:hover,
.bh-add-cart-btn:hover {
    opacity: .92 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 28px rgba(139, 92, 246, 0.55) !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MY PROXIES PAGE
   ═══════════════════════════════════════════════════════════════════════════ */

.bh-proxies-wrap {
    color: #e8e6ff;
}

.bh-proxies-wrap h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #8B5CF6, #D946EF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bh-proxy-card {
    background: #0d0b2a;
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 14px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.35);
}

.bh-proxy-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(139, 92, 246, 0.06);
    flex-wrap: wrap;
    gap: 8px;
}

.bh-proxy-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #e8e6ff;
}

/* Status badges */
.bh-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.bh-status-active     { background: rgba(0,255,157,0.12); color: #00ff9d; border: 1px solid rgba(0,255,157,0.3); }
.bh-status-pending    { background: rgba(251,191,36,0.12); color: #fbbf24; border: 1px solid rgba(251,191,36,0.3); }
.bh-status-cancelling { background: rgba(249,115,22,0.12); color: #f97316; border: 1px solid rgba(249,115,22,0.3); }
.bh-status-cancelled  { background: rgba(239,68,68,0.12);  color: #ef4444; border: 1px solid rgba(239,68,68,0.3); }

/* IP table */
.bh-ip-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.bh-ip-table th {
    padding: 10px 16px;
    text-align: left;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(196, 181, 253, 0.5);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
}

.bh-ip-table td {
    padding: 11px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    color: #e8e6ff;
    vertical-align: middle;
}

.bh-ip-table tr:last-child td { border-bottom: none; }

.bh-mono {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 12px;
    color: #00ff9d;
    background: rgba(0, 255, 157, 0.08);
    padding: 3px 8px;
    border-radius: 5px;
    cursor: pointer;
    user-select: all;
    display: inline-block;
    transition: background .15s;
}
.bh-mono:hover { background: rgba(0, 255, 157, 0.15); }

/* Swap button */
.bh-swap-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    background: linear-gradient(135deg, #8B5CF6, #D946EF) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 7px 14px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: opacity .15s, transform .1s !important;
    white-space: nowrap !important;
    letter-spacing: .02em !important;
}
.bh-swap-btn:hover  { opacity: .85 !important; transform: translateY(-1px) !important; }
.bh-swap-btn:disabled { opacity: .35 !important; cursor: not-allowed !important; transform: none !important; }

.bh-swap-count {
    font-size: 11px;
    color: rgba(196, 181, 253, 0.55);
}

/* ── Swap Modal ──────────────────────────────────────────────────────────── */
#bh-swap-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(2, 1, 20, 0.85);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

#bh-swap-modal.bh-open { display: flex; }

.bh-modal-box {
    background: #0d0b2a;
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 20px;
    padding: 32px;
    max-width: 460px;
    width: 90%;
    color: #e8e6ff;
    box-shadow: 0 30px 80px rgba(0,0,0,0.7), 0 0 40px rgba(139,92,246,0.15);
}

.bh-modal-box h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}

.bh-modal-box p {
    color: rgba(196, 181, 253, 0.65);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.bh-modal-input {
    width: 100% !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(139, 92, 246, 0.35) !important;
    border-radius: 10px !important;
    color: #e8e6ff !important;
    font-size: 14px !important;
    padding: 10px 14px !important;
    margin-bottom: 18px !important;
    box-sizing: border-box !important;
    resize: vertical !important;
    outline: none !important;
}

.bh-modal-input:focus {
    border-color: #8B5CF6 !important;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2) !important;
}

.bh-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.bh-btn-cancel {
    background: rgba(255,255,255,0.07) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    color: #e8e6ff !important;
    border-radius: 10px !important;
    padding: 10px 22px !important;
    font-size: 14px !important;
    cursor: pointer !important;
    font-weight: 500 !important;
    transition: background .15s !important;
}
.bh-btn-cancel:hover { background: rgba(255,255,255,0.12) !important; }

.bh-btn-confirm {
    background: linear-gradient(135deg, #8B5CF6, #D946EF) !important;
    border: none !important;
    color: #fff !important;
    border-radius: 10px !important;
    padding: 10px 22px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: opacity .15s, transform .1s !important;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4) !important;
}
.bh-btn-confirm:hover  { opacity: .88 !important; transform: translateY(-1px) !important; }
.bh-btn-confirm:disabled { opacity: .4 !important; cursor: not-allowed !important; transform: none !important; }

/* Notices */
.bh-notice {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
    display: none;
    line-height: 1.5;
}
.bh-notice.bh-success { background: rgba(0,255,157,0.08); border: 1px solid rgba(0,255,157,0.25); color: #00ff9d; }
.bh-notice.bh-error   { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.25); color: #f87171; }
.bh-notice.bh-show    { display: block; }

/* Empty state */
.bh-empty {
    text-align: center;
    padding: 50px 20px;
    color: rgba(196, 181, 253, 0.55);
}
.bh-empty a { color: #00ff9d; text-decoration: none; }
.bh-empty a:hover { text-decoration: underline; }

/* ── Admin ────────────────────────────────────────────────────────────────── */
.bh-status { font-weight: 600; }
.bh-status-active     { color: #00a32a; }
.bh-status-pending    { color: #dba617; }
.bh-status-cancelled  { color: #d63638; }
.bh-status-cancelling { color: #f97316; }
