/* ==========================================================================
   LAXMI TAMBOLA - AS.MP4 VIBRANT MOBILE-FIRST JACKPOT THEME
   ========================================================================== */

:root {
    --outer-pink: #f472b6;
    --outer-pink-light: #fbcfe8;
    --shell-bg: linear-gradient(180deg, #ff7eb3 0%, #ff758c 20%, #67e8f9 60%, #a5f3fc 100%);
    --banner-gold: linear-gradient(135deg, #fde047 0%, #facc15 55%, #fb923c 100%);
    --board-yellow: #fde047;
    --board-pink: #ec4899;
    --winner-green: linear-gradient(135deg, #4ade80 0%, #a3e635 55%, #facc15 100%);
    --ticket-grad: linear-gradient(135deg, #db2777 0%, #ec4899 55%, #eab308 100%);
    --gold: #facc15;
    --gold-dark: #eab308;
    --primary: #ec4899;
    --primary-dark: #be185d;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --border-gold: #facc15;
    --text-main: #0f172a;
    --text-muted: #64748b;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #f472b6 0%, #f9a8d4 50%, #f472b6 100%);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    padding-bottom: 70px;
}

/* Top Mini Navigation Bar */
.top-header {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    border-bottom: 2px solid #fbcfe8;
    padding: 8px 14px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.header-inner {
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.brand-badge {
    background: linear-gradient(135deg, #ec4899, #f59e0b);
    color: #fff;
    font-weight: 900;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.brand-title {
    font-size: 15px;
    font-weight: 900;
    color: #be185d;
    letter-spacing: 0.3px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.btn-header {
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-gold {
    background: linear-gradient(135deg, #facc15, #f59e0b);
    color: #000;
}

.btn-outline {
    background: #fdf2f8;
    color: #be185d;
    border: 1px solid #f9a8d4;
}

.btn-outline:hover {
    background: #fce7f3;
}

/* Marquee Bar */
.marquee-bar {
    background: #be185d;
    color: #fef08a;
    padding: 5px 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 700;
}

.marquee-content {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 22s linear infinite;
}

@keyframes marquee {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

/* Mobile-First Centered App Shell (Like AS.mp4) */
.mobile-app-shell {
    max-width: 480px;
    margin: 12px auto;
    background: linear-gradient(180deg, #ff7eb3 0%, #fda4af 18%, #ffffff 35%, #e0f2fe 65%, #67e8f9 100%);
    border: 4px solid #ffffff;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
}

@media (max-width: 500px) {
    .mobile-app-shell {
        margin: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
        padding: 10px 8px;
    }
}

/* Super Jackpot / Laxmi Tambola Top Banner */
.jackpot-hero-banner {
    background: var(--banner-gold);
    border-radius: 12px;
    padding: 12px 14px;
    text-align: center;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 12px rgba(234, 179, 8, 0.35);
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.jackpot-hero-title {
    font-size: 24px;
    font-weight: 950;
    color: #be185d;
    text-shadow: 1px 1px 0 #fff, 0 2px 6px rgba(0,0,0,0.15);
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.jackpot-hero-sub {
    display: inline-block;
    background: #16a34a;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    padding: 2px 10px;
    border-radius: 20px;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Date/Time & Total Tickets Bar */
.meta-pills-row {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.meta-pill-box {
    background: #ffffff;
    border: 2px solid #f43f5e;
    border-radius: 8px;
    padding: 6px 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 800;
    color: #0f172a;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* Live Status / Countdown Card */
.status-countdown-box {
    background: linear-gradient(135deg, #ffffff 0%, #e0f2fe 50%, #67e8f9 100%);
    border: 2.5px solid #3b82f6;
    border-radius: 12px;
    padding: 14px 12px;
    text-align: center;
    margin-bottom: 12px;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.2);
}

.status-main-text {
    font-size: 26px;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: 0.5px;
    font-variant-numeric: tabular-nums;
}

.status-main-text.is-live {
    color: #15803d;
    animation: pulseLive 1.4s infinite;
}

.status-main-text.is-over {
    color: #be123c;
}

@keyframes pulseLive {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

.current-ball-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

.current-ball-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fbcfe8, #ec4899 55%, #9d174d 100%);
    color: #fff;
    font-size: 22px;
    font-weight: 950;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 4px 10px rgba(236, 72, 153, 0.5);
}

/* Winner List Section (Video Style) */
.section-pill-header {
    background: linear-gradient(90deg, #9333ea 0%, #ec4899 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 900;
    text-align: center;
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 3px 8px rgba(147, 51, 234, 0.25);
}

.winner-list-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}

.winner-card {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 6px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
}

.winner-card.claimed {
    background: var(--winner-green);
    border-color: #16a34a;
    box-shadow: 0 3px 10px rgba(34, 197, 94, 0.3);
}

.winner-card-title {
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
    border-bottom: 1px solid rgba(0,0,0,0.12);
    padding-bottom: 3px;
    margin-bottom: 4px;
}

.winner-card-sub {
    font-size: 12px;
    font-weight: 700;
    color: #334155;
}

.winner-card.claimed .winner-card-sub {
    color: #052e16;
    font-weight: 900;
}

/* 1 to 90 Yellow & Pink Master Board (Exact AS.mp4 style) */
.board-grid-wrap {
    background: #ffffff;
    padding: 6px;
    border-radius: 10px;
    border: 2px solid #eab308;
    margin-bottom: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.board-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 3px;
}

.board-cell {
    background: var(--board-yellow);
    color: #000000;
    font-weight: 800;
    font-size: 13px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    border: 1px solid #eab308;
    transition: all 0.2s ease;
    user-select: none;
}

.board-cell.called {
    background: var(--board-pink);
    color: #ffffff;
    border-color: #be185d;
    font-weight: 950;
    box-shadow: 0 0 8px rgba(236, 72, 153, 0.7);
    transform: scale(1.04);
}

/* Number Calls (Multi-Colored 3D Glossy Bingo Balls) */
.number-calls-box {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #06b6d4;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 14px;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.15);
}

.number-calls-title {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 6px 10px;
    text-align: center;
    font-size: 16px;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 10px;
}

.called-sequence-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    justify-content: flex-start;
    align-items: center;
    min-height: 54px;
    max-height: 260px;
    overflow-y: auto;
    padding: 4px;
}

.bingo-call-ball {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 14px;
    font-weight: 950;
    color: #0f172a;
    border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: inset -2px -3px 5px rgba(0, 0, 0, 0.35), inset 2px 2px 4px rgba(255, 255, 255, 0.65), 0 3px 6px rgba(0, 0, 0, 0.25);
    animation: popBall 0.25s ease;
}

.bingo-call-ball .inner-ring {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
    color: #0f172a;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
}

.bingo-call-ball.is-latest {
    transform: scale(1.15);
    box-shadow: 0 0 12px rgba(236, 72, 153, 0.9), 0 3px 8px rgba(0,0,0,0.35);
    border-color: #fde047;
}

@keyframes popBall {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Search Your Tickets Section (Cyan/Pink Box) */
.search-tickets-box {
    background: linear-gradient(180deg, #67e8f9 0%, #a5f3fc 100%);
    border: 2px solid #06b6d4;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 14px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.2);
}

.search-tickets-title {
    font-size: 16px;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 8px;
}

.search-tickets-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    color: #0f172a;
    margin-bottom: 8px;
    outline: none;
}

.search-tickets-input:focus {
    border-color: #ec4899;
}

.btn-search-pink {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: none;
    background: #fbcfe8;
    color: #0f172a;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: background 0.15s;
}

.btn-search-pink:hover {
    background: #f9a8d4;
}

/* Pink-to-Gold Ticket Cards (Exact AS.mp4 Ticket Style) */
.tickets-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.my-tickets-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ticket-card {
    background: var(--ticket-grad);
    border-radius: 10px;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(219, 39, 119, 0.28);
    border: 2px solid #ffffff;
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.ticket-side-num {
    width: 34px;
    min-width: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 950;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 6px;
}

.ticket-body-wrap {
    flex: 1;
    min-width: 0;
}

.ticket-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    gap: 4px;
}

.ticket-brand-txt {
    font-size: 12px;
    font-weight: 900;
    color: #0f172a;
    text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}

.ticket-jackpot-pill {
    background: linear-gradient(135deg, #fde047, #f59e0b);
    color: #991b1b;
    font-size: 10px;
    font-weight: 950;
    padding: 2px 7px;
    border-radius: 6px;
    border: 1px solid #fff;
}

.ticket-owner-bar {
    text-align: center;
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.btn-ticket-book-green {
    display: inline-block;
    background: #22c55e;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    padding: 4px 14px;
    border-radius: 6px;
    border: 1.5px solid #ffffff;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.ticket-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border: 1.5px solid #0f172a;
}

.ticket-table td {
    border: 1px solid #94a3b8;
    text-align: center;
    height: 30px;
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
    width: 11.11%;
}

.ticket-table td.empty-cell {
    background: #f8fafc;
}

.ticket-table td.num-cell.cut {
    background: #ec4899;
    color: #ffffff;
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px #fff;
}

/* Floating Bottom-Right "Book Now" Button */
.floating-book-btn {
    position: fixed;
    bottom: 18px;
    right: 18px;
    background: #ffffff;
    color: #0f172a;
    font-size: 15px;
    font-weight: 900;
    padding: 12px 20px;
    border-radius: 12px;
    border: 2px solid #ec4899;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
    cursor: pointer;
    z-index: 999;
    transition: transform 0.2s;
}

.floating-book-btn:hover {
    transform: translateY(-2px) scale(1.03);
}

/* Booking Popup Modal (Exact AS.mp4 Modal) */
.booking-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.booking-modal-overlay.open {
    display: flex;
}

.booking-modal-card {
    background: #ffffff;
    width: 100%;
    max-width: 410px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 14px;
    padding: 16px;
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.modal-close-x {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    background: #f1f5f9;
    color: #0f172a;
    font-weight: 900;
    cursor: pointer;
}

.modal-input-field {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
}

.modal-book-submit-btn {
    background: #a5f3fc;
    color: #0f172a;
    font-weight: 900;
    font-size: 13px;
    padding: 8px 22px;
    border-radius: 8px;
    border: 1.5px solid #06b6d4;
    cursor: pointer;
    margin-bottom: 12px;
}

.modal-ticket-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.modal-t-cell {
    padding: 8px 4px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
    text-align: center;
    cursor: pointer;
    user-select: none;
}

.modal-t-cell.is-booked {
    background: #fde047;
    border-color: #eab308;
    color: #000;
    cursor: not-allowed;
}

.modal-t-cell.is-selected {
    background: #22c55e;
    border-color: #16a34a;
    color: #fff;
}

/* Utility Dashboard Card (for results.php / agent compatibility) */
.main-wrapper {
    max-width: 1100px;
    margin: 16px auto;
    padding: 0 12px;
}

.dashboard-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    margin-bottom: 16px;
}

.card-title {
    font-size: 14px;
    font-weight: 800;
    color: #be185d;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 6px;
}
