/* ═══════════════════════════════════════════════
   G-LO CORE | MASTER STYLESHEET
   ═══════════════════════════════════════════════ */

/* ── 1. ROOT & RESETS ── */
:root {
  --app-height: 100%;
}
html {
  overscroll-behavior: none;
}
* { -webkit-tap-highlight-color: transparent; outline: none; }
*:focus-visible { outline: none; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #0f172a; 
    color: #f8fafc; 
    margin: 0; 
    padding: 0;
    display: flex; 
    justify-content: center; 
    align-items: flex-start; 
    min-height: 100vh;
    min-height: var(--app-height);
    overflow-x: hidden;
}

.container { 
    width: 100%; 
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0; 
    box-sizing: border-box; 
}

main {
    padding: 0 20px;
}

@media (min-width: 1200px) {
    main {
        padding: 0 40px;
    }
}

/* ── 2. TYPOGRAPHY & UTILITIES ── */
h2 { 
    font-size: 1.4rem; font-weight: 700; 
    background: linear-gradient(to right, #f8fafc, #94a3b8); 
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; 
    border-bottom: 1px solid #334155; padding-bottom: 12px; margin-bottom: 20px; letter-spacing: -0.5px; 
}
.highlight { 
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1e3a8a 0%, #0284c7 100%);
    padding: 18px 20px;
    border-radius: 12px;
    border-left: 4px solid #bae6fd;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #f8fafc;
    box-shadow: 0 8px 25px rgba(2, 132, 199, 0.25);
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.highlight:hover {
    transform: scale(1.01);
    box-shadow: 0 12px 35px rgba(2, 132, 199, 0.35);
}
.highlight p {
    margin: 0;
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.highlight::before,
.highlight::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    z-index: -1;
}
.highlight::before {
    width: 140px;
    height: 140px;
    top: -40px;
    right: -20px;
}
.highlight::after {
    width: 200px;
    height: 200px;
    bottom: -80px;
    right: -50px;
}
.section { margin-bottom: 30px; }

/* Global Flex & Icon Utilities */
.service-title { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.modal-title-flex { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 20px; }
.icon-shadow { filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3)); flex-shrink: 0; }
.icon-shrink { flex-shrink: 0; }
.info-icon-hover { cursor: pointer; opacity: 0.8; transition: opacity 0.2s ease; margin-left: 4px; }
.info-icon-hover:hover { opacity: 1; }

/* ── Z-INDEX SCALE ──
   1   - Footer internals
   10  - Support widget header
   50  - Support floating button
   100 - Sticky header
   200 - Support bot panel
   500 - Modals (base)
   600 - Virtual info modal
   700 - OTP / Success overlays
   800 - Toast notifications
   900 - Priority overlays (cleanup confirm)
*/

/* ── 3. LAYOUT (HEADER & FOOTER) ── */
/* Header */
.glocore-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 20px; background: #0f172a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
.glocore-header.scrolled {
    padding: 6px 20px; background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4); border-bottom: 1px solid rgba(255, 255, 255, 0.05); 
}
.header-brand { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.header-logo { height: 28px; width: auto; min-width: 110px; max-width: 185px; display: block; transition: all 0.4s ease; }
.glocore-header.scrolled .header-logo { height: 20px; filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.35)); }
.header-status { display: flex; align-items: center; gap: 5px; font-size: 0.58rem; font-weight: 600; letter-spacing: 0.4px; color: #64748b; text-transform: uppercase; opacity: 0; transform: translateY(8px); transition: all 0.3s ease; pointer-events: none; max-height: 0; overflow: hidden; }
.glocore-header.scrolled .header-status { opacity: 1; transform: translateY(0); max-height: 20px; padding-top: 2px; }
.header-btn { background: none; border: none; padding: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; }
.menu-toggle:hover { opacity: 0.8; }
.scroll-toggle { flex-shrink: 0; }
.scroll-toggle:hover { transform: translateY(4px); }
.scroll-progress { position: absolute; bottom: 0; left: 0; height: 1.5px; width: 0%; background: linear-gradient(90deg, #10b981, #38bdf8); transition: width 0.05s linear; border-radius: 0 1px 1px 0; }

/* Footer */
.glocore-footer { margin-top: auto; padding: 24px 20px 85px; background: #0f172a; border-top: 1px solid rgba(148, 163, 184, 0.06); text-align: center; width: 100%; margin-left: auto; margin-right: auto; box-sizing: border-box; }
@media (min-width: 768px) { .glocore-footer { padding: 24px 30px 16px; } }
.footer-brand-group { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 14px; }
.footer-logo { width: 110px; height: auto; filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.3)); transition: transform 0.3s ease; }
.footer-logo:hover { transform: scale(1.02); }
.footer-tagline { position: relative; z-index: 1; color: #94a3b8; font-family: 'Sanvito Pro', 'Sanvito Pro Italic', 'Brush Script MT', cursive, sans-serif; font-style: italic; font-size: 1rem; margin: 6px 0 0 4px; font-weight: 400; letter-spacing: 0.3px; text-align: left; }
.footer-controls-bar { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; background: rgba(15, 23, 42, 0.4); border: 1px solid rgba(51, 65, 85, 0.4); border-radius: 8px; padding: 8px 14px; margin-bottom: 14px; width: 100%; box-sizing: border-box; }
.controls-trust { display: flex; align-items: center; gap: 10px; }
.trust-item { display: flex; align-items: center; gap: 5px; color: #64748b; font-size: 0.65rem; font-weight: 600; letter-spacing: 0.2px; text-transform: uppercase; }
.trust-item svg { color: #10b981; opacity: 0.9; }
.trust-divider { width: 1px; height: 12px; background: rgba(51, 65, 85, 0.6); }
.controls-social { display: flex; align-items: center; gap: 12px; }
.social-icon { color: #64748b; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; text-decoration: none; }
.social-icon svg { width: 15px; height: 15px; transition: transform 0.2s ease; }
.social-icon.fb-icon:hover { color: #1877f2; } .social-icon.wa-icon:hover { color: #10b981; } .social-icon.tg-icon:hover { color: #38bdf8; } .social-icon.li-icon:hover { color: #0a66c2; }
.social-icon:hover svg { transform: scale(1.15) translateY(-2px); }
.footer-bottom { position: relative; z-index: 1; font-size: 0.65rem; color: #475569; border-top: 1px solid rgba(51, 65, 85, 0.3); padding-top: 10px; }
.footer-bottom p { margin: 0; }
@media (max-width: 400px) { .footer-controls-bar { justify-content: center; padding: 10px; } .trust-item span, .trust-divider { display: none; } .controls-trust { gap: 16px; } }

/* ── 4. COMPONENTS ── */
/* Cards */
.operator { background: #1e2937; padding: 18px; border-radius: 10px; margin-bottom: 15px; cursor: pointer; border: 1px solid #334155; transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, border-color 0.3s ease; position: relative; overflow: hidden; }
.operator:hover, .operator:active { transform: translateY(-3px) scale(1.01); box-shadow: 0 8px 20px rgba(56, 189, 248, 0.06), 0 2px 4px rgba(0,0,0,0.08); border-color: rgba(56, 189, 248, 0.25); }
.operator::after { content: ''; position: absolute; top: 0; left: -150%; width: 100%; height: 100%; background: linear-gradient(to right, transparent, rgba(255,255,255,0.02), transparent); transform: skewX(-25deg); transition: none; pointer-events: none; }
.operator:hover::after { animation: cardShimmer 1.2s forwards; }
.operator h3 { margin: 0 0 5px 0; font-size: 1.1rem; }
.operator p { margin: 0; color: #94a3b8; font-size: 0.85rem; }

/* Buttons */
.pay-btn { width: 100%; padding: 14px; background: #3b82f6; color: white; border: none; border-radius: 6px; font-weight: bold; cursor: pointer; font-size: 1rem; transition: all 0.3s ease; position: relative; overflow: hidden; }
.pay-btn:disabled { background: #475569; cursor: not-allowed; }
.option-btn { width: 100%; padding: 14px; margin-bottom: 12px; background: #1e2937; color: white; border: 1px solid #334155; border-radius: 8px; font-weight: bold; cursor: pointer; font-size: 1rem; transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 12px; }
.option-btn:hover { border-color: #3b82f6; background: #0f172a; }
.option-btn.vip { border-color: #f59e0b; color: #f59e0b; background: rgba(245, 158, 11, 0.05); }
.option-btn.vip:hover { background: rgba(245, 158, 11, 0.15); }
.option-btn.btn-tint-blue { background: rgba(56, 189, 248, 0.1); border-color: #38bdf8; color: #38bdf8; }
.option-btn.btn-tint-blue:hover { background: rgba(56, 189, 248, 0.2); border-color: #38bdf8; }
.option-btn.btn-tint-green { background: rgba(16, 185, 129, 0.1); border-color: #10b981; color: #10b981; }
.option-btn.btn-tint-green:hover { background: rgba(16, 185, 129, 0.2); border-color: #10b981; }
.btn-whatsapp { background: #25D366; border-color: #25D366; color: white; text-decoration: none; box-sizing: border-box; width: 100%; margin-top: 15px; }
.btn-whatsapp:hover { background: #20bd5a; border-color: #20bd5a; }
.vpn-plan-btn { flex-direction: column !important; gap: 6px !important; align-items: center !important; justify-content: center !important; }

/* Inputs & Forms */
.input-group { margin-bottom: 18px; text-align: left; }
.input-group label { display: block; margin-bottom: 8px; color: #cbd5e1; font-size: 0.9rem; }
/* Apply text input styles, but explicitly exclude checkboxes */
.input-group input:not([type="checkbox"]), .input-group select { width: 100%; padding: 12px; border-radius: 6px; border: 1px solid #334155; background: #1e2937; color: white; box-sizing: border-box; font-size: 1rem; }

/* Apply the blue focus splash, but explicitly exclude checkboxes */
input:not([type="checkbox"]):focus, select:focus { outline: none; border-color: #38bdf8; box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15); transition: all 0.2s ease; }
input[type="checkbox"] {
    -webkit-tap-highlight-color: transparent;
}
.input-valid { border-color: #10b981 !important; background: rgba(16, 185, 129, 0.05); }
.input-group-tint { padding: 12px; border-radius: 6px; margin-bottom: 15px; border-left: 4px solid transparent; }
.tint-green { background: rgba(16, 185, 129, 0.1); border-left-color: #10b981; }
.tint-amber { background: rgba(245, 158, 11, 0.1); border-left-color: #f59e0b; }
.tint-blue { background: rgba(56, 189, 248, 0.1); border-left-color: #38bdf8; }
.amount-chip { background: #1e2937; border: 1px solid #334155; padding: 6px 12px; border-radius: 6px; font-size: 0.85rem; cursor: pointer; transition: all 0.2s; flex: 1 1 calc(25% - 8px); text-align: center; }
.amount-chip:hover { border-color: #38bdf8; color: #38bdf8; }

/* --- Absolute Badges --- */
.badge-free { position: absolute; top: 0; right: 0; background: #f97316; color: #fff; font-size: 0.6rem; font-weight: bold; letter-spacing: 0.6px; padding: 3px 10px; border-radius: 0 10px 0 8px; }
.badge-vpn { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); font-size: 0.65rem; font-weight: bold; padding: 3px 8px; border-radius: 10px; white-space: nowrap; letter-spacing: 0.5px; }
.badge-vpn.popular { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; box-shadow: 0 4px 6px rgba(245, 158, 11, 0.3); }
.badge-vpn.save { background: linear-gradient(135deg, #10b981, #059669); color: white; box-shadow: 0 4px 6px rgba(16, 185, 129, 0.3); }

/* ── 5. MODALS & OVERLAYS ── */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); z-index: 500; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.modal[style*="flex"] { display: -webkit-flex !important; display: flex !important; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; }
.modal-content { background: rgba(15, 23, 42, 0.5); backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%); padding: 25px; border-radius: 12px; width: 90%; max-width: 400px; position: relative; border: 1px solid rgba(255, 255, 255, 0.05); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4); box-sizing: border-box; }
.close-btn { position: absolute; top: 15px; right: 15px; font-size: 24px; cursor: pointer; color: #94a3b8; }

/* Receipt UI */
.success-icon { width: 65px; height: 65px; background: rgba(16, 185, 129, 0.1); color: #10b981; font-size: 35px; font-weight: bold; display: flex; align-items: center; justify-content: center; border-radius: 50%; margin: 0 auto 15px auto; border: 2px solid #10b981; }
.receipt-box { background: #1e2937; padding: 20px; border-radius: 12px; text-align: left; margin-bottom: 20px; border: 1px dashed #475569; }
.receipt-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 0.95rem; gap: 10px; }
.receipt-row span { color: #94a3b8; flex-shrink: 0; }
.receipt-row strong { color: white; text-align: right; word-break: break-all; overflow-wrap: anywhere; }

/* ── 6. SPECIFIC UI MODULES ── */
/* Notice Slider */
.notice-wrapper { position: relative; margin-top: 3px; margin-bottom: 15px; }
.notice-slider { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 12px; padding-bottom: 5px; }
.notice-slider::-webkit-scrollbar { display: none; }
.notice-item { flex: 0 0 90%; scroll-snap-align: center; background: rgba(16, 185, 129, 0.1); border-left: 4px solid #10b981; color: #e2e8f0; padding: 14px 16px; border-radius: 8px; font-size: 0.85rem; box-sizing: border-box; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); backdrop-filter: blur(5px); }
.notice-item.warning { background: rgba(245, 158, 11, 0.1); border-left: 4px solid #f59e0b; }
.notice-icon { vertical-align: -0.15em; margin-right: 6px; }
.swipe-hint { text-align: right; font-size: 0.7rem; color: #64748b; margin-top: 5px; padding-right: 5px; }

/* FX Converter */
.fx-swap-btn { background: rgba(20, 184, 166, 0.1); border: 1px solid #14b8a6; color: #14b8a6; border-radius: 50px; width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; cursor: pointer; margin-top: 15px; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); flex-shrink: 0; }
.fx-swap-btn:hover { background: rgba(20, 184, 166, 0.2); transform: rotate(180deg); }
.fx-result-area { display: none; background: rgba(20, 184, 166, 0.08); border: 1px solid rgba(20, 184, 166, 0.3); border-radius: 8px; padding: 20px; text-align: center; margin-bottom: 20px; }
.fx-live-rate { color: #14b8a6; font-weight: bold; }
.fx-converted-amount { font-size: 2rem; font-weight: bold; color: #f8fafc; letter-spacing: 0.5px; margin-top: 5px; cursor: pointer; transition: opacity 0.2s; }
.fx-converted-amount:active { opacity: 0.6; }
.fx-copy-icon { color: #64748b; cursor: pointer; transition: color 0.2s; flex-shrink: 0; margin-top: 5px; }
.fx-copy-icon:active { color: #14b8a6; }
.btn-fx-convert { background: #14b8a6; color: #0f172a; font-weight: 800; box-shadow: 0 0 15px rgba(20, 184, 166, 0.4); border: none; width: 100%; padding: 14px; border-radius: 6px; cursor: pointer; transition: all 0.3s; }
.btn-fx-convert:hover { opacity: 0.9; transform: translateY(-1px); }

/* Support & Gemini Widget */
.support-container { position: fixed; bottom: 24px; right: 24px; z-index: 1000; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.support-tooltip { background: rgba(30, 41, 59, 0.85); backdrop-filter: blur(12px); color: #e2e8f0; padding: 8px 14px; border-radius: 10px 10px 2px 10px; font-size: 0.8rem; font-weight: 500; opacity: 0; transform: translateY(12px) scale(0.96); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); pointer-events: none; display: flex; align-items: center; gap: 8px; }
.support-tooltip.show { opacity: 1; transform: translateY(0) scale(1); }
.floating-support { background: linear-gradient(135deg, #334155 0%, #1e293b 100%); color: #f1f5f9; width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.06); transition: all 0.3s ease; }
.floating-support:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 10px 20px rgba(0,0,0,0.3); }

/* VIP Info Trigger */
.vip-info-trigger { cursor: pointer; background: rgba(56, 189, 248, 0.15); color: #38bdf8; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 14px; font-weight: bold; font-family: serif; border: 1px solid #38bdf8; box-shadow: 0 0 15px rgba(56, 189, 248, 0.7), inset 0 0 8px rgba(56, 189, 248, 0.4); transition: transform 0.2s; margin-left: 4px; }
.vip-info-trigger:hover { transform: scale(1.1); }

/* ── 7. ANIMATIONS & SYSTEM STATES ── */
/* Toasts & Badges */
#toastContainer { position: fixed; top: 20px; right: 20px; z-index: 800; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { padding: 14px 20px; border-radius: 8px; color: white; font-size: 0.9rem; font-weight: bold; box-shadow: 0 4px 15px rgba(0,0,0,0.4); animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards; max-width: 320px; display: flex; align-items: center; gap: 10px; }
.toast-success { background: #10b981; border: 1px solid #059669; }
.toast-error { background: #ef4444; border: 1px solid #b91c1c; }
.toast-info { background: #3b82f6; border: 1px solid #2563eb; }
.toast-warning { background: #f59e0b; border: 1px solid #d97706; }
.toast.fade-out { animation: fadeOut 0.3s ease forwards; }

/* Loaders & Status Status */
.btn-loading { color: transparent !important; pointer-events: none; }
.btn-loading::before, .btn-loading::after { content: ''; position: absolute; top: 50%; left: 50%; border-radius: 50%; transform: translate(-50%, -50%); }
.btn-loading::before { width: 24px; height: 24px; border: 2px solid transparent; border-top-color: #38bdf8; border-bottom-color: #38bdf8; animation: orbit1 1s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
.btn-loading::after { width: 16px; height: 16px; border: 2px solid transparent; border-left-color: #10b981; border-right-color: #10b981; animation: orbit2 0.8s linear infinite reverse; }

.glocore-loader { width: 100%; max-width: 320px; margin: 0 auto; text-align: center; }
.glocore-loader-text { font-size: 0.8rem; color: #cbd5e1; margin-bottom: 12px; font-weight: bold; letter-spacing: 1px; text-transform: uppercase; }
.glocore-progress-wrap { width: 100%; height: 6px; background: #0f172a; border-radius: 999px; overflow: hidden; border: 1px solid #334155; }
.glocore-progress-bar { width: 0%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #38bdf8, #8b5cf6); box-shadow: 0 0 10px rgba(56, 189, 248, 0.4); transform-origin: left; }
.buffering .glocore-progress-bar { animation: buffer 2.4s cubic-bezier(0.45, 0, 0.55, 1) forwards; }

.status-dot { width: 5px; height: 5px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 0 rgba(16,185,129,0.4); animation: dotPulse 2.4s ease infinite; flex-shrink: 0; }

/* Keyframes */
@keyframes cardShimmer { 100% { left: 150%; } }
@keyframes slideIn { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(120%); opacity: 0; } }
@keyframes orbit1 { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes orbit2 { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes gentlePulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.2); } 50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); } }
@keyframes buffer { 0% { width: 0%; opacity: 1; } 15% { width: 25%; } 50% { width: 65%; } 85% { width: 85%; } 100% { width: 100%; opacity: 1; } }
@keyframes dotPulse { 0% { box-shadow: 0 0 0 0 rgba(16,185,129,0.5); } 60% { box-shadow: 0 0 0 4px rgba(16,185,129,0); } 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); } }

/* --- Dynamic Service Notices --- */
.dynamic-banner { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-radius: 6px; margin-bottom: 4px; font-size: 0.78rem; line-height: 1.35; border: 1px solid transparent; animation: bannerSlideDown 0.3s ease; }
@keyframes bannerSlideDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.dynamic-banner.warning { background: rgba(245, 158, 11, 0.08); border-color: rgba(245, 158, 11, 0.25); color: #fcd34d; }
.dynamic-banner.info { background: rgba(56, 189, 248, 0.08); border-color: rgba(56, 189, 248, 0.25); color: #bae6fd; }
.dynamic-banner-content { display: flex; align-items: center; gap: 8px; }
.dynamic-banner-close { background: none; border: none; color: inherit; opacity: 0.5; cursor: pointer; padding: 2px 4px; font-size: 1.1rem; line-height: 1; transition: opacity 0.2s; flex-shrink: 0; }
.dynamic-banner-close:hover { opacity: 1; }

/* --- Bet Preview Scrollbar --- */
#betPreviewArea {
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
}
#payConvertBtn {
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}
#betMatchesList::-webkit-scrollbar { width: 4px; }
#betMatchesList::-webkit-scrollbar-track { background: transparent; }
#betMatchesList::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }
#betMatchesList::-webkit-scrollbar-thumb:hover { background: #475569; }
#betMatchesList { scrollbar-width: thin; scrollbar-color: #334155 transparent; }

/* ── 8. DISPLAY UTILITY CLASSES ──
   Use .hidden to hide elements instead of inline style="display:none".
   Use .show-block / .show-flex to reveal them from JS.
   This allows CSS transitions to work and keeps the stylesheet as the
   single source of truth for layout state.
*/
.hidden { display: none !important; }
.show-block { display: block !important; }
.show-flex { display: flex !important; }
.show-inline-block { display: inline-block !important; }

/* ── 9. NOTICE ITEM COLOUR VARIANTS ──
   Standardises the inline background/border overrides on .notice-item
   elements in the notice slider. Add a modifier class instead of style="".
*/
.notice-item--info {
    background: rgba(14, 165, 233, 0.1);
    border-left-color: #0ea5e9;
}
.notice-item--green {
    background: rgba(16, 185, 129, 0.1);
    border-left-color: #10b981;
}
.notice-item--amber {
    background: rgba(245, 158, 11, 0.1);
    border-left-color: #f59e0b;
}
.notice-item--purple {
    background: rgba(139, 92, 246, 0.1);
    border-left-color: #8b5cf6;
}
.notice-item--blue {
    background: rgba(56, 189, 248, 0.1);
    border-left-color: #38bdf8;
}
/* ── .notice-item.warning is already defined above — kept as-is ── */

/* ── 10. REUSABLE PANEL & VERIFY BOX PATTERNS ──
   Replace repetitive inline styles for verify/confirmation boxes, overlay
   dialogs, and info panels with these composable classes.
*/

/* Verify box — base */
.verify-box {
    margin-top: 8px;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}
.verify-box--success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.verify-box--warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.verify-box--error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Confirm overlay — modal-style dialog spawned by JS (cancel/confirm prompts) */
.confirm-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}
.confirm-dialog {
    background: #1e293b;
    padding: 20px;
    border-radius: 12px;
    max-width: 350px;
    width: 100%;
    text-align: center;
    border: 1px solid #334155;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}
.confirm-dialog p {
    color: #f8fafc;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
}
.confirm-dialog-actions {
    display: flex;
    gap: 10px;
}
.confirm-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}
.confirm-btn--neutral { background: #334155; color: white; }
.confirm-btn--danger  { background: #ef4444; color: white; }
.confirm-btn--primary { background: #3b82f6; color: white; }

/* Info panel blocks — used inside modals for section callouts */
.info-panel {
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid transparent;
}
.info-panel--blue   { background: rgba(56, 189, 248, 0.05);  border-color: rgba(56, 189, 248, 0.2); }
.info-panel--green  { background: rgba(16, 185, 129, 0.05);  border-color: rgba(16, 185, 129, 0.2); }
.info-panel--amber  { background: rgba(245, 158, 11, 0.05);  border-color: rgba(245, 158, 11, 0.2); }
.info-panel--red    { background: rgba(239, 68, 68, 0.05);   border-color: rgba(239, 68, 68, 0.2); }
.info-panel--purple { background: rgba(139, 92, 246, 0.05);  border-color: rgba(139, 92, 246, 0.2); }
.info-panel h4 { font-size: 0.9rem; margin: 0 0 8px 0; display: flex; align-items: center; gap: 6px; }
.info-panel p, .info-panel ul, .info-panel ol { color: #94a3b8; font-size: 0.85rem; line-height: 1.5; margin: 0; }
.info-panel ul, .info-panel ol { padding-left: 20px; }
.info-panel li { margin-bottom: 6px; }
.info-panel--blue   h4 { color: #38bdf8; }
.info-panel--green  h4 { color: #10b981; }
.info-panel--amber  h4 { color: #f59e0b; }
.info-panel--red    h4 { color: #f87171; }
.info-panel--purple h4 { color: #a78bfa; }

/* Swipe hint — standardise the inline flex on the notice wrapper */
.swipe-hint {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}


/* --- VPN QR Code ---
   QRCode.js canvas renderer injects both a <canvas> (visible) and an <img>
   (hidden fallback). Both were being treated as grid items, stacking them
   vertically to 360px inside a 200px box, which pushed the canvas up/left.
   Fix: hide the img fallback so only one grid item ever exists.

   Outer box: fixed 200px overflowed narrow modal padding on mobile.
   Fix: fluid width: 100% with max-width: 200px so it shrinks to fit.
*/
[id^="vpnQrArea_"],
.vpn-qr-area,
#vpnQrBox {
    display: grid;
    place-items: center;
    /* fluid — shrinks on narrow screens, caps at 200px on wide ones */
    width: 100%;
    max-width: 200px;
    /* height tracks width to stay square */
    aspect-ratio: 1 / 1;
    background: white;
    border-radius: 8px;
    margin: 0 auto 10px auto;
    overflow: hidden;
    box-sizing: border-box;
}
#vpnQrBox {
    margin-bottom: 15px;
}

/* Hide the QRCode.js img fallback — only the canvas should be a grid item.
   Both being visible blocks caused a 2-item vertical stack that overflowed
   the container and off-centred the visible canvas. */
[id^="vpnQrArea_"] img,
.vpn-qr-area img,
#vpnQrBox img {
    display: none !important;
}

/* Constrain the single visible render element (canvas / svg / table) */
[id^="vpnQrArea_"] canvas,
[id^="vpnQrArea_"] svg,
[id^="vpnQrArea_"] table,
.vpn-qr-area canvas,
.vpn-qr-area svg,
.vpn-qr-area table,
#vpnQrBox canvas,
#vpnQrBox svg,
#vpnQrBox table {
    display: block !important;
    max-width: 90% !important;
    max-height: 90% !important;
    width: auto !important;
    height: auto !important;
}

/* If QRCode.js wraps its output in a div, centre that div as a grid item */
[id^="vpnQrArea_"] > div,
.vpn-qr-area > div,
#vpnQrBox > div {
    display: grid !important;
    place-items: center !important;
    width: 100% !important;
    height: 100% !important;
}

/* ── 9. LOADER SCREEN ── */
.gloader {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: #0f172a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s, visibility 0.5s;
}
.gloader.hidden {
    opacity: 0;
    visibility: hidden;
}
.gloader-content {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}
.gloader-logo {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.3));
    animation: gloaderPulse 1.5s ease-in-out infinite;
}
@keyframes gloaderPulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.06); opacity: 1; }
}
.gloader-track {
    width: 115%;
    height: 3px;
    background: #1e293b;
    border-radius: 2px;
    margin: 2px 0 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
}
.gloader-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #38bdf8, #10b981);
    border-radius: 2px;
    transition: width 0.15s ease;
}

/* ── 10. SLIDE-OUT DRAWER ── */
.drawer-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    z-index: 1001;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.drawer-overlay.active {
    opacity: 1; visibility: visible;
}

.side-drawer {
    position: fixed; top: 0; left: 0;
    width: 280px; max-width: 85vw; height: 100%;
    background: #0f172a;
    border-right: 1px solid #1e293b;
    z-index: 1002;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}
.side-drawer.active {
    transform: translateX(0);
}

.drawer-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px; border-bottom: 1px solid #1e293b;
}

.close-drawer-btn {
    font-size: 28px; color: #94a3b8; cursor: pointer;
    line-height: 1; margin-top: -4px; transition: color 0.2s;
}
.close-drawer-btn:hover { color: #f8fafc; }

.drawer-content {
    padding: 20px; overflow-y: auto; flex: 1;
    display: flex; flex-direction: column; gap: 8px;
}

.drawer-btn {
    justify-content: flex-start;
    background: transparent;
    border: 1px solid transparent;
    padding: 12px 10px;
    margin-bottom: 0;
    font-weight: 600;
    color: #cbd5e1;
}
.drawer-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #f8fafc;
}
.drawer-btn-bottom {
    justify-content: center;
}

/* ── DRAWER PROFILE & DIVIDER ── */
.drawer-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 10px 15px 10px;
}
.profile-avatar {
    width: 44px;
    height: 44px;
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.profile-info {
    display: flex;
    flex-direction: column;
}
.profile-name {
    color: #f8fafc;
    font-size: 1.05rem;
    font-weight: 700;
}
.profile-status {
    color: #94a3b8;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.drawer-divider {
    border: 0;
    height: 1px;
    background: #1e293b;
    margin: 0 0 15px 0;
    width: 100%;
}

/* ── DRAWER UX STATES ── */
.drawer-btn {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.drawer-btn.selected {
    transform: scale(0.98);
}


