/* ═══════════════════════════════════════════════════════════════
   caller.css  –  Bingo Surf Online Caller
═══════════════════════════════════════════════════════════════ */

/* ── CSS Custom Properties ── */
:root {
    --gen-accent:      #00C9FF;
    --gen-accent2:     #92FE9D;
    --gen-bg:          #0f1623;
    --gen-surface:     #1a202c;
    --gen-surface2:    #242d3d;
    --gen-border:      #2d3748;
    --gen-text:        #e2e8f0;
    --gen-text-muted:  #718096;
    --gen-radius:      12px;
    --gen-shadow:      0 4px 24px rgba(0,0,0,0.4);
}

body.caller-page {
    background-color: var(--gen-bg);
    color: var(--gen-text);
    font-family: Inter, sans-serif;
    margin: 0; padding: 0;
    min-height: 100vh;
}

/* ── MAIN LAYOUT (3-COLUMN DESKTOP) ── */
.caller-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 320px minmax(auto, 800px) 320px;
    gap: 24px;
    justify-content: center;
    align-items: start;
}

/* ── SHARED PANEL STYLES (Left & Right Columns) ── */
.caller-panel {
    background: var(--gen-surface);
    border: 1px solid var(--gen-border);
    border-radius: var(--gen-radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: var(--gen-shadow);
    position: sticky;
    top: 20px;
}

/* ── MODERN PILL TABS ── */
.caller-tabs {
    background: var(--gen-surface2);
    padding: 6px;
    border-radius: 99px;
    display: flex;
    gap: 0;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}
.caller-tabs .gen-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--gen-text-muted);
    font-family: Orbitron, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 14px 0;
    border-radius: 99px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.caller-tabs .gen-tab:hover { color: var(--gen-text); }
.caller-tabs .gen-tab.active {
    background: linear-gradient(135deg, var(--gen-accent), #0099cc);
    color: #000;
    box-shadow: 0 4px 15px rgba(0,201,255,0.4);
    transform: scale(1.02);
    z-index: 2;
}

/* ── LEFT COLUMN COMPONENTS ── */
.current-draw-box {
    background: var(--gen-surface2); border: 2px solid var(--gen-accent);
    border-radius: 12px; text-align: center; padding: 24px 10px;
    box-shadow: inset 0 0 20px rgba(0,201,255,0.1);
}
.draw-label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; color: var(--gen-accent); margin-bottom: 10px; }
.draw-value { font-family: Orbitron, sans-serif; font-size: 5rem; font-weight: 900; color: #fff; line-height: 1; text-shadow: 0 0 15px rgba(0,201,255,0.5); }

.recent-draws { background: var(--gen-bg); border-radius: 8px; padding: 12px; border: 1px solid var(--gen-border); }
.recent-label { font-size: 0.7rem; color: var(--gen-text-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.05em; }
.recent-list { display: flex; gap: 8px; flex-wrap: wrap; min-height: 32px; }
.recent-list span { background: var(--gen-surface2); color: #fff; padding: 6px 12px; border-radius: 6px; font-weight: 700; font-size: 1.1rem; font-family: Orbitron, sans-serif; }
.recent-list .empty-recent { font-family: Inter, sans-serif; font-size: 0.85rem; font-weight: 400; color: var(--gen-text-muted); background: transparent; padding: 6px 0; }

.draw-btn {
    background: linear-gradient(135deg, var(--gen-accent2), #00C9FF);
    border: none; border-radius: 8px; color: #000;
    font-family: Inter, sans-serif; font-size: 1.2rem; font-weight: 800;
    padding: 20px; cursor: pointer; transition: transform 0.1s, box-shadow 0.1s;
    box-shadow: 0 4px 15px rgba(0,201,255,0.3); display: flex; align-items: center; justify-content: center;
}
.draw-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,201,255,0.4); }
.draw-btn:active:not(:disabled) { transform: translateY(0); }
.draw-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.caller-upsell-box {
    background: linear-gradient(135deg, #1e2a3e, #162032);
    border-left: 3px solid #f59e0b; padding: 14px; border-radius: 8px; display: flex; gap: 12px;
    text-decoration: none; color: var(--gen-text); transition: background 0.2s;
}
.caller-upsell-box:hover { background: linear-gradient(135deg, #24344d, #1a2744); }
.upsell-icon { color: #f59e0b; font-size: 1.5rem; margin-top: 2px; }
.upsell-text strong { display: block; font-size: 0.85rem; color: #fff; margin-bottom: 4px; }
.upsell-text span { font-size: 0.75rem; color: #a0aec0; line-height: 1.4; display: block; }

.reset-btn { background: transparent; border: 1px solid var(--gen-border); color: var(--gen-text-muted); padding: 10px; border-radius: 8px; cursor: pointer; font-weight: 600; transition: all 0.2s; }
.reset-btn:hover { color: #fc8181; border-color: #fc8181; }

@keyframes bounceHighlight { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-5px); border-left-color: var(--gen-accent); } }
.bounce-alert { animation: bounceHighlight 0.5s ease 3; }

/* ── MIDDLE COLUMN: FLASHBOARD ── */
.caller-flashboard {
    background: var(--gen-surface); border: 1px solid var(--gen-border);
    border-radius: var(--gen-radius); padding: 24px; box-shadow: var(--gen-shadow);
}
.flashboard-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; border-bottom: 1px solid var(--gen-border); padding-bottom: 12px; }
.flashboard-header h2 { margin: 0; font-family: Orbitron, sans-serif; font-size: 1.5rem; color: #fff;}
.call-count { color: var(--gen-accent); font-weight: 700; font-size: 0.9rem; }

.flashboard-grid { display: grid; gap: 6px; }
.grid-75 { grid-template-columns: repeat(15, 1fr); }
.grid-90 { grid-template-columns: repeat(10, 1fr); }

.board-cell {
    background: var(--gen-surface2); border: 1px solid var(--gen-border); border-radius: 6px;
    aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; font-weight: 700; color: var(--gen-text-muted); font-family: Orbitron, sans-serif;
    transition: all 0.2s ease-out;
}
.board-cell.called { 
    background: #ffffff; color: #000000; border-color: var(--gen-accent); 
    box-shadow: 0 0 15px var(--gen-accent), inset 0 0 8px rgba(0,201,255,0.5); 
    transform: scale(1.12); z-index: 2; 
}

/* ── RIGHT COLUMN: PRO FEATURES TEASE ── */
.pro-features-tease { display: flex; flex-direction: column; gap: 12px; height: 100%; }
.pro-features-header { font-size: 1.1rem; font-family: Orbitron, sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: #f59e0b; display: flex; align-items: center; gap: 10px; }
.pro-features-sub { font-size: 0.85rem; color: var(--gen-text-muted); line-height: 1.5; margin: 0; }
.pro-btn-grid { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.pro-feature-btn {
    background: var(--gen-surface2); border: 1px solid var(--gen-border); color: var(--gen-text-muted);
    padding: 14px 18px; border-radius: 10px; font-family: Inter, sans-serif; font-size: 0.9rem; font-weight: 600;
    text-align: left; cursor: pointer; display: flex; align-items: center; gap: 12px; transition: all 0.2s ease; opacity: 0.85;
}
.pro-feature-btn i:first-child { font-size: 1.1rem; width: 20px; text-align: center; }
.pro-feature-btn:hover {
    opacity: 1; border-color: #f59e0b; color: #fff;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.15), transparent); transform: translateX(4px);
}
.pro-feature-btn .lock-icon { margin-left: auto; font-size: 0.8rem; color: #4a5568; transition: color 0.2s; }
.pro-feature-btn:hover .lock-icon { color: #f59e0b; }


/* ═══════════════════════════════════════════════════════════════
   MOBILE MAGIC (FITS ON PORTRAIT SCREEN WITHOUT SCROLLING)
═══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .caller-main { 
        display: flex; flex-direction: column; padding: 16px; gap: 16px; 
    }
    
    /* Disassemble the sidebars to flow logically into the grid */
    .caller-panel { 
        display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px; position: static; box-shadow: none; border: none; background: transparent; 
    }
    
    /* CSS Grid Order Injection to put Current Num + Draw Btn side-by-side */
    .caller-tabs { grid-column: 1 / -1; order: 1; }
    .current-draw-box { grid-column: 1; order: 2; padding: 10px 5px; border-radius: 8px; display: flex; flex-direction: column; justify-content: center; }
    .draw-label { font-size: 0.65rem; margin-bottom: 5px; }
    .draw-value { font-size: 3.5rem; }
    .draw-btn { grid-column: 2; order: 3; height: 100%; font-size: 1.1rem; padding: 10px; border-radius: 8px; }
    
    .recent-draws { grid-column: 1 / -1; order: 4; }
    .caller-upsell-box { grid-column: 1 / -1; order: 5; }
    .reset-btn { grid-column: 1 / -1; order: 6; }
    
    .pro-features-tease { grid-column: 1 / -1; order: 7; background: var(--gen-surface); border: 1px solid var(--gen-border); padding: 20px; border-radius: var(--gen-radius); margin-top: 20px; }

    /* Squeeze Flashboard to fit Screen */
    .caller-flashboard { padding: 12px; border-radius: 8px; margin: -10px 0; }
    .flashboard-header { margin-bottom: 12px; padding-bottom: 8px; }
    .flashboard-header h2 { font-size: 1.2rem; }
    .flashboard-grid { gap: 2px; }
    
    /* Maintain 15 columns for 75-ball on mobile so it stays short vertically */
    .grid-75 { grid-template-columns: repeat(15, 1fr); }
    .grid-90 { grid-template-columns: repeat(10, 1fr); }
    
    .board-cell { font-size: clamp(0.55rem, 2.5vw, 0.9rem); padding: 0; border-radius: 3px; }
    .board-cell.called { border-width: 1px; box-shadow: 0 0 8px var(--gen-accent); }
}


/* ═══════════════════════════════════════════════════════════════
   1024x500 PRO MODAL & SHARED CHROME
═══════════════════════════════════════════════════════════════ */
.pro-modal-overlay {
    position: fixed; inset: 0; background: rgba(0, 0, 0, 0.85); z-index: 9999;
    display: flex; align-items: center; justify-content: center; padding: 20px;
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.pro-modal-overlay.show { opacity: 1; pointer-events: auto; }

.pro-modal-content {
    position: relative; width: 100%; max-width: 1024px; aspect-ratio: 1024 / 500;
    background: var(--gen-surface); border-radius: 16px; overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6); transform: scale(0.95); transition: transform 0.3s ease;
}
.pro-modal-overlay.show .pro-modal-content { transform: scale(1); }

.pro-modal-close {
    position: absolute; top: 16px; right: 16px; background: rgba(0,0,0,0.5);
    border: 2px solid rgba(255,255,255,0.2); color: #fff; width: 40px; height: 40px;
    border-radius: 50%; font-size: 1.2rem; cursor: pointer; z-index: 10;
    display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.pro-modal-close:hover { background: #fc8181; border-color: #fc8181; }

.pro-modal-image { position: absolute; inset: 0; width: 100%; height: 100%; }
.pro-modal-bg { width: 100%; height: 100%; object-fit: cover; }

.pro-modal-overlay-text {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10, 15, 25, 0.98) 0%, rgba(10, 15, 25, 0.85) 35%, transparent 70%);
    display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
    padding: 40px; text-align: center;
}
#pro-modal-title {
    font-family: Orbitron, sans-serif; font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 900; color: #fff; margin: 0 0 10px; 
    text-shadow: 0 4px 20px rgba(0,0,0,1), 0 2px 5px rgba(0,0,0,0.8); 
}
.pro-modal-overlay-text p {
    font-size: clamp(1rem, 2vw, 1.2rem); color: #ffffff; margin: 0 0 30px;
    max-width: 650px; font-weight: 500; letter-spacing: 0.02em;
    text-shadow: 0 2px 10px rgba(0,0,0,1);
}

.gorgeous-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff;
    font-family: Inter, sans-serif; font-size: 1.2rem; font-weight: 800;
    padding: 16px 36px; border-radius: 99px; text-decoration: none;
    display: inline-flex; align-items: center; gap: 12px;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4); transition: all 0.2s ease;
    border: 2px solid rgba(255,255,255,0.2);
}
.gorgeous-btn:hover {
    transform: translateY(-3px); box-shadow: 0 12px 30px rgba(245, 158, 11, 0.6);
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

@media (max-width: 768px) {
    .pro-modal-content { aspect-ratio: auto; height: 60vh; }
}

/* ── SHARED PAGE CHROME ── */
.top-promo-bar { display: block; width: 100%; box-sizing: border-box; background: linear-gradient(90deg, #101c30, #1a2744, #101c30); text-align: center; padding: 12px 16px; font-size: 0.9rem; font-weight: 600; border-bottom: 1px solid rgba(0,201,255,0.3); position: relative; z-index: 10; }
.top-promo-bar a { color: #e2e8f0; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: color 0.2s; }
.top-promo-bar a:hover { color: var(--gen-accent, #00C9FF); }
.top-promo-bar i { color: var(--gen-accent, #00C9FF); font-size: 1.1rem; }
.gen-hero { display: block; background: linear-gradient(135deg, #0f1623 0%, #1a2744 50%, #0f2033 100%); border-bottom: 1px solid var(--gen-border, #2d3748); padding: 40px 24px 48px; text-align: center; position: relative; overflow: hidden; }
.gen-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,201,255,0.12) 0%, transparent 70%); pointer-events: none; }
.gen-hero-inner { position: relative; max-width: 720px; margin: 0 auto; display: block; }
.gen-hero h1 { font-family: Orbitron, sans-serif; font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 700; color: #fff; margin: 0 0 16px; line-height: 1.15; }
.gen-hero-sub { font-size: clamp(0.95rem, 2vw, 1.15rem); color: #a0aec0; max-width: 560px; margin: 0 auto; line-height: 1.65; }
.gen-seo-section { display: block; background: var(--gen-surface, #1a202c); border-top: 1px solid var(--gen-border, #2d3748); padding: 64px 24px; text-align: left; }
.gen-seo-inner { max-width: 1100px; margin: 0 auto; display: block; }
.gen-seo-inner h2 { font-family: Orbitron, sans-serif; font-size: clamp(1.3rem, 3vw, 1.9rem); color: #fff; margin: 0 0 16px; }
.gen-seo-inner h3 { color: #fff; margin: 24px 0 8px; font-size: 1.2rem; }
.gen-seo-inner p { color: var(--gen-text-muted, #718096); font-size: 1rem; line-height: 1.7; max-width: 760px; margin-bottom: 20px; }
.gen-footer { display: block; background: var(--gen-bg, #0f1623); border-top: 1px solid var(--gen-border, #2d3748); padding: 24px; text-align: center; color: var(--gen-text-muted, #718096); font-size: 0.85rem; width: 100%; box-sizing: border-box; }
.gen-footer p { margin: 0; padding: 0; display: block; }
.gen-footer a { color: var(--gen-accent, #00C9FF); text-decoration: none; font-weight: 600; }
.gen-footer a:hover { text-decoration: underline; }