.container {
    max-width: 900px;
    margin: auto;
    padding: 10px;
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

::-webkit-scrollbar {
    width: 0;
    background: transparent;
}

body{
    background: #f7f7f2;

    font-family: Arial, sans-serif;
    text-align: center;

    margin: 0;
    padding: 0;
}
/* ================= HEADER ================= */



/* 🔥 SLUG TEXT ON BLUE BOX */
.slugTitle{
    position: absolute;

    top: 34%;
    right: 3%;

    width: 52%;

    text-align: center;

    color: white;
    font-size: 23px;
    font-weight: 900;

    text-transform: uppercase;

    z-index: 100;
}

/* MOBILE */
@media (max-width: 768px){

    .slugTitle{

        top: 32%;
        right: 2%;

        width: 55%;

        font-size: 15px;
        line-height: 1.2;
    }
}

/* ================= WHITE HEADER BANNER ================= */

.bannerWrapper{
    width: 100%;
    max-width: 750px;
    margin: 10px auto;
    padding: 0 5px;
    border-color: #000;
    
}

.customBanner{
    position: relative;

    width: 100%;
    height: 180px;

    background: #ffffff;

    border-radius: 12px;

    overflow: hidden;

    box-shadow:
        0 2px 10px rgba(0,0,0,0.40),
        inset 0 0 3px rgba(0,0,0,0.7);

    border: 1px solid #d9d9d9;
}

/* TOP SMALL TEXT */
.winText{
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);

    color: #555;
    font-size: 14px;
    font-weight: 500;

    z-index: 5;
}

/* MAIN TITLE */
.bannerMainTitle{
    position: absolute;
    top: 42px;
    left: 50%;
    transform: translateX(-50%);

    width: 90%;

    text-align: center;

    color: #000;

    font-size: 20px;
    font-weight: 900;

    text-transform: uppercase;

    z-index: 5;
}

/* BLUE LINE */
.bannerLine{
    position: absolute;

    top: 74px;
    left: 50%;
    transform: translateX(-50%);

    width: 45%;
    height: 4px;

    background: #2f62ff;

    border-radius: 20px;

    z-index: 5;
}

/* PRIZE TEXT */
.bannerPrize{
    position: absolute;

    top: 88px;
    left: 50%;
    transform: translateX(-50%);

    color: #0b63ff;

    font-size: 16px;
    font-weight: 900;

    z-index: 5;
}

/* FLOATING BUBBLES */

.bubble{
    position: absolute;
    border-radius: 50%;
    opacity: 0.9;
}

/* LEFT SIDE */
.bubble1{
    width: 18px;
    height: 18px;
    background: #ff3b3b;
    top: 10px;
    left: 10px;
}

.bubble2{
    width: 28px;
    height: 28px;
    background: #0066ff;
    top: 35px;
    left: 55px;
}

.bubble3{
    width: 36px;
    height: 36px;
    background: #ff6b6b;
    top: 65px;
    left: 95px;
}

.bubble4{
    width: 32px;
    height: 32px;
    background: #ffe600;
    top: 78px;
    left: 5px;
}

/* CENTER */
.bubble5{
    width: 16px;
    height: 16px;
    background: #c9c9c9;
    top: 12px;
    left: 38%;
}

.bubble6{
    width: 24px;
    height: 24px;
    background: #9fd0ff;
    top: 14px;
    right: 40%;
}

.bubble7{
    width: 14px;
    height: 14px;
    background: #bdbdbd;
    top: 70px;
    right: 42%;
}

/* RIGHT SIDE */
.bubble8{
    width: 38px;
    height: 38px;
    background: #ff4343;
    top: 6px;
    right: 12px;
}

/* EXTRA SMALL CIRCLES */
.customBanner::before{
    content: "";

    position: absolute;

    width: 22px;
    height: 22px;

    border-radius: 50%;

    background: #ffe600;

    right: 78px;
    top: 78px;
}

.customBanner::after{
    content: "";

    position: absolute;

    width: 16px;
    height: 16px;

    border-radius: 50%;

    background: #ffe600;

    right: 5px;
    top: 55px;
}

/* MOBILE */
@media (max-width: 768px){

    .customBanner{
        height: 120px;
        border-radius: 10px;
    }

    .winText{
        font-size: 13px;
        top: 16px;
    }

    .bannerMainTitle{
        font-size: 16px;
        top: 42px;
        width: 95%;
    }

    .bannerLine{
        width: 48%;
        top: 73px;
    }

    .bannerPrize{
        font-size: 14px;
        top: 88px;
    }
}

/* FIXED CENTERING */
.titleDiv{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ================= ACTION BUTTONS ================= */

.actionBtnDiv{
    width: 100%;
    max-width: 800px;   /* 🔥 controls width like original */
    margin: 20px auto;  /* center the whole row */
    display: flex;
    justify-content: space-around; /* equal spacing */
    align-items: center;
}
.actionImg{
    width: 60px;
    height: 60px;
    padding: 10px;
    border-radius: 50%; /* 🔥 makes it circular */
    background: white;  /* base */
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

.actionImg:nth-child(1){
    background: #ff4d4d; /* red */
}

.actionImg:nth-child(2){
    background: #0b3d5c; /* dark blue */
}

.actionImg:nth-child(3){
    background: yellow;
}

.actionImg:nth-child(4){
    background: #eee;
}

.searchMyTicketOnGameDiv{
    margin-top: 20px; /* 🔥 pushes it down */
}
.searchTicketListDiv{
    width: 100%;
    max-width: 800px;
    margin: auto; /* centers it */
}
/* ================= GAME BUTTON ================= */

.gameStatusBtn{
    width: 98%;
    max-width: 750px;
    height: 90px;
    background: rgb(134, 2, 134);
    font-size: 22px;
    color: white;
    padding: 15px;
    border: none;
    text-shadow: 2px 2px 10px red;
    border-radius: 15px;
    cursor: pointer;
}

/* ================= COUNTDOWN ================= */

.countDownBtn{
    width: 60%;
    max-width: 400px;
    font-size: 16px;
    padding: 10px;
    border:3px solid gray;
    font-weight: bold;
    border-radius: 10px;
    margin-top: 10px;
}

/* ================= NEW TICKET STYLE ================= */

.ticketCard{
    width: 100%;
    max-width: 650px;
    margin: 20px auto;
    
}

/* TOP BAR */
.ticketTop{
    background: linear-gradient(to right, #3c66f0, #5a7df5);
    color: white;
    padding: 8px 12px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 14px;
}

/* GRID */
.ticketGrid{
    margin-top: 5px;
    border: 6px solid #ffc400;
    border-radius: 10px;
    overflow: hidden;
    background: #eee;
}

.ticketGrid img{
    width: 100%;
    display: block;
}

/* ================= BOOKING MODAL ================= */

.bookingDiv{
    width: 60%;
    max-width: 500px;
    height: auto;
    background: rgb(255, 130, 27);
    border: 5px solid blue;
    border-radius: 10px;
    margin: 20px auto;
    padding: 20px;
}

.inp{
    width: 80%;
    margin: 10px auto;
    display: block;
    font-size: 15px;
    padding: 10px;
    border-radius: 5px;
    border: none;
}

/* ================= BUTTON ================= */

.bookBtn{
    width: 80%;
    margin: 10px auto;
    padding: 10px;
    border-radius: 10px;
    background: red;
    color: white;
    border: none;
    font-weight: bold;
    cursor: pointer;
}

/* ================= FLOAT BUTTON ================= */

.bookFloatBtn{
    font-size: 16px;
    padding: 10px;
    width: 180px;
    border-radius: 10px;
    position: fixed;
    bottom: 15px;
    background: red;
    color:white;
    right:20px;
    cursor: pointer;
}

/* ================= CHAT ================= */

.chatDiv{
    width: 300px;
    height: 300px;
    background: rgba(1, 50, 90, 0.8);
    border-radius:20px;
    position: fixed;
    right:20px;
    bottom: 20px;
    transform: scale(0);
    transition: 0.5s;
}

.chatOpenImg{
    width: 50px;
    position: fixed;
    right:10px;
    bottom: 10px;
}
/* ================= Ticket ================= */

.gridWrapper{
    display: flex;
    flex-direction: column;
}

.gridRow{
    display: grid;
    grid-template-columns: repeat(9, 1fr);
}

.gridCell{
    border: 1px solid #aaa;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 18px;
    background: #eee;
}

/* ================= livestatus ================= */

.gameStatusBox {
    background: purple;
    color: white;
    font-size: 28px;
    padding: 20px;
    border-radius: 15px;
    margin: 15px auto;
    width: 90%;
    
}

/* ================= LIVE STATUS (MATCH MAIN UI WIDTH) ================= */
.numCell.active {
    background-color:black !important;
    color: white !important;   /* 🔥 THIS FIX */
    font-weight: bold;
    border: #cc0000 2px solid !important; /* 🔥 THIS FIX */
    box-shadow: #000 0px 2px 6px !important; /* 🔥 THIS FIX */
}
.gameClosedContainer,
.gameLiveContainer {
    width: 100%;
    max-width: 750px;
    margin: 0 auto;   /* 🔥 SAME */
    text-align: center;
}
.gameLiveContainer {
    width: 100%;
    max-width: 750px;   /* 🔥 SAME AS HEADER */
    margin: 0 auto;     /* center */
    text-align: center;
}

/* STATUS BAR */
/* GAME STATUS BOX */
.gameStatusBox {
    width: 98%;
    margin: 20px auto;
    margin-top: 15px;   /* 🔥 SAME EVERYWHERE */

    background: linear-gradient(to right, #ff1a1a, #ff3b3b);
    color: white;
    font-size: 28px;
    font-weight: bold;
    padding: 20px;
    border-radius: 10px;
}
@media (max-width: 768px) {
    .gameStatusBox {
        margin-top: -20px;   /* 🔥 move slightly up for mobile */
    }
}
.number-popup {
    position: fixed;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, #FFD700, #FFA500); 
    border: 4px solid #cc0000;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    pointer-events: none; 
    user-select: none;
    
    transform: translate(-50%, -50%) scale(0);
    
    /* 🔥 Changed to 4 seconds */
    animation: professionalPop 4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    will-change: transform, opacity;
}

.number-popup span {
    font-family: 'Arial', sans-serif;
    font-size: 20px;
    font-weight: 900;
    color: #333;
    text-shadow: 1px 1px 0px rgba(255,255,255,0.5);
}

/* 🔥 Adjusted percentages for a 4-second timeline */
@keyframes professionalPop {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    /* 4% of 4s = 0.16 seconds (Fast pop in) */
    4% {
        transform: translate(-50%, -50%) scale(1.2); 
        opacity: 1;
    }
    /* 8% of 4s = 0.32 seconds (Settle into place) */
    8% {
        transform: translate(-50%, -50%) scale(1); 
    }
    /* 85% of 4s = 3.4 seconds (Slowly float upwards and stay fully visible) */
    85% {
        transform: translate(-50%, -80px) scale(1); 
        opacity: 1;
    }
    /* 100% of 4s = 4.0 seconds (Fade out smoothly at the very end) */
    100% {
        transform: translate(-50%, -120px) scale(0.5); 
        opacity: 0;
    }
}

/* ================= DATE TIME ROW ================= */

/* ================= DATE TIME ROW (CONTAINER) ================= */
.dateTimeRow {
    width: 98%;
    max-width: 750px;
    margin: 15px auto;
    display: flex;
    margin-top: -20px;
    justify-content: space-between;
    gap: 5px;
    padding: 6px;
    /* Blue outer border like the image */
    border: 2px solid #3c82f6; 
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
}

/* ================= DATE BOX (INDIVIDUAL SLOTS) ================= */
.dateBox {
    flex: 1;
    /* Dark blue background from image */
    background: #061121; 
    color: #ffffff;
    padding: 12px 2px;
    border-radius: 8px;
    text-align: center;
    font-size: 13px;
    font-weight: bold;
    /* Light blue inner border */
    border: 1.5px solid #3c82f6;
    letter-spacing: 0.5px;
    margin-top: 0; /* Removed the -40px to fix alignment */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 45px;
}

/* Remove the old neon glow animation as it doesn't match the new blue theme */
.dateBox {
    animation: none; 
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

/* Adjust mobile sizing slightly */
@media (max-width: 480px) {
    .dateBox {
        font-size: 11px;
        padding: 6px 1px;
        
    }
    .dateTimeRow {
        padding: 4px;
        margin-bottom: 28px;
        margin-top: -28px; 
    }

}
@keyframes glowPulse {
    from {
        box-shadow: 0 0 5px rgba(198,255,0,0.6);
    }
    to {
        box-shadow: 0 0 15px rgba(198,255,0,1);
    }
}
/* NUMBER GRID */
.numberGrid {
    width: 98%;
    margin: 20px auto;
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 8px; /* little more spacing like original */
    margin-top: -10px;
}

/* DEFAULT NUMBER */
.numCell {
    background: #ffffff;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 14px;
    color: #000;
     box-shadow: #000 0px 2px 6px !important; /* 🔥 THIS FIX */
    
    /* 🔥 KEY DESIGN */
    border: 2px solid #640b66; /* pink/red ring */
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

/* 🔥 CALLED NUMBER (BLACK) */
.numCell.active {
    background: #000;
    color: #fff;
    border: 2px solid #000;
}
.calledNumbersContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* start from center */
    gap: 5px;
    margin-top: -15px;
    padding: 6px;
}

.calledBall {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f9b7b7;
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 11px;

    animation: popIn 0.3s ease;
}

/* SEARCH + WINNER WRAPPER */
.searchBox {
    width: 50%;
    max-width: 750px;
    margin: 15px auto;
    padding: 10px;
    box-sizing: border-box;
}

/* SEARCH BOX (VERTICAL STACK) */
.searchBox {
    width: 100%;
    max-width: 750px;
    margin: 15px auto;
    margin-top: -10px;
    display: flex;
    flex-direction: column;   /* 🔥 KEY FIX */
    align-items: center;
    gap: 6px;
}

/* INPUT */
.searchBox input {
    width: 60%;
    max-width: 500px;
    text-align: center; 
    padding: 8px;
    border-radius: 2px;
    border: 1px solid white;
    background: #ffffff;
    color: #000;
    font-size: 14px;
}

/* BUTTON */
.searchBox button {
    width: 100%;
    max-width: 200px;   /* 🔥 keeps button nice size */
    padding: 8px;
    border-radius: 2px;
    border: none;
    background: #ff0000;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

/* WINNER SECTION */
.winnerSection {
    border-radius: 12px;
    padding: 15px;
}

/* WINNER TITLE */
.winnerSection h3 {
    color: black;
    margin-bottom: 10px;
}
.dividendWinnerText {
    width: 100%;
    background: whitesmoke;        /* 🔥 BLACK STRIP */
    color: black;             /* white text */
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    padding: 8px;

 
}
/* Modal Background Overlay */
/* MODAL OVERLAY */
.modal-overlay {
    display: none; /* default hidden */
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;

    justify-content: center;
    align-items: center;

    padding: 10px;
}

/* SHOW MODAL */
.modal-overlay.active {
    display: flex;
}


/* ================= BOOKING DASHBOARD ================= */

.booking-dashboard{

    width: 95%;
    max-width: 360px;

    height: 88vh;

    background: linear-gradient(
        180deg,
        #0015ff 0%,
        #1400ff 100%
    );

    border: 2px solid #ffd400;

    border-radius: 2px;

    overflow: hidden;

    display: flex;
    flex-direction: column;

    box-shadow:
        0 0 20px rgba(0,0,0,0.5),
        inset 0 0 10px rgba(255,255,255,0.15);

    animation: fadeIn 0.25s ease;
}

/* ================= HEADER ================= */

.dashboard-header{

    background: #000;

    color: #ff0000;

    font-size: 20px;
    font-weight: 900;

    text-align: center;

    padding: 12px;

    position: relative;

    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;

    text-shadow: 0 0 10px rgba(255,0,0,0.5);
}

/* CLOSE BUTTON */

.close-btn{

    position: absolute;

    right: 14px;
    top: 8px;

    color: #ff0000;

    font-size: 28px;
    font-weight: bold;

    cursor: pointer;
}

/* ================= NAME INPUT ================= */

.name-input-container{

    padding: 10px;
}

.name-input-container input{

    width: 100%;

    height: 38px;

    border: none;

    background: #f1f1f1;

    padding: 10px;

    font-size: 14px;

    border-radius: 2px;

    outline: none;
}

/* ================= GRID ================= */

.numbers-grid{

    margin: 0 10px;

    padding: 0;

    display: grid;

    grid-template-columns: repeat(6, 1fr);

    gap: 3px;

    overflow-y: auto;

    border: none;

    background: transparent;
}

/* ================= NUMBER BOX ================= */

.num-box{

    height: 36px;

    background: #efefef;

    border: 1.5px solid #ff008c;

    color: #000;

    font-size: 15px;
    font-weight: bold;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    transition: 0.15s;
}

/* AVAILABLE SELECTED */

.num-box.selected{

    background: #0606e8 !important;

    color: #000 !important;

    border: 1.5px solid #c40000;
}

/* BOOKED */

.num-box.booked{

    background: #fff000 !important;

    color: #000 !important;

    opacity: 1;

    pointer-events: none;
}

/* HOVER */

.num-box:hover{

    transform: scale(1.04);
}

/* ================= BOOK BUTTON ================= */

.book-now-main-btn{

    width: calc(100% - 20px);

    margin: 12px auto 8px auto;

    height: 40px;

    background: #ff1b1b;

    color: white;

    border: none;

    border-radius: 4px;

    font-size: 14px;
    font-weight: bold;

    cursor: pointer;
}

/* ================= STATS BOX ================= */

.dashboardStat{

    width: calc(100% - 20px);

    margin: 4px auto;

    border: 2px solid red;

    border-radius: 10px;

    padding: 4px;

    color: red;

    background: rgba(0,0,0,0.15);

    font-size: 18px;
    font-weight: bold;

    line-height: 1.2;
}

/* ================= MOBILE ================= */

@media (max-width: 768px){

    .booking-dashboard{

        width: 95%;
        height: 86vh;
    }

    .dashboard-header{

        font-size: 18px;
        padding: 10px;
    }

    .num-box{

        height: 34px;

        font-size: 13px;
    }

    .book-now-main-btn{

        height: 38px;

        font-size: 13px;
    }
}

@keyframes fadeIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}


/* smooth entry */
@keyframes popIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}


.gameClosedContainer {
    width: 100%;
    text-align: center;
    
}

.gameStatusBox.live {
    animation: pulseGlow 1.5s infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 10px rgba(255,0,0,0.6);
    }
    50% {
        box-shadow: 0 0 25px rgba(255,0,0,1);
    }
    100% {
        box-shadow: 0 0 10px rgba(255,0,0,0.6);
    }
}
/* ================= MOBILE ================= */

@media (max-width: 768px){

  

  .bannerImg{
    width: 98%;
    max-width: 900px;
    margin: 15px auto;
    margin-top: 5px;
    display: block;
    border-radius: 20px;
    filter: drop-shadow(0px 0px 10px #222);
        }


    .gameStatusBtn{
        width: 98%;
        font-size: 18px;
        padding: 20px;
        margin-top: -20px;
        
    }

/* Grid Layout */

/* Color patterns from image */
.bg-yellow {
    background-color: white !important;
    color: black !important;
}

.bg-white {
    background-color: white !important;
    color: black !important;
}
/* Book Now Button */
.book-now-btn {
    background: red;
    color: white;
    width: calc(100% - 20px);
    margin: 15px 10px;
    padding: 12px;
    border: none;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

/* Stats Boxes */
.stats-container {
    padding: 0 10px;
}
.stat-box {
    background: #ff7043; /* Lighter Orange */
    border: 1px solid red;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 10px;
    padding: 5px;
    box-shadow: 0 4px 4px rgba(0,0,0,0.3);
}
.stat-title { font-size: 18px; font-weight: bold; margin: 0; }
.stat-value { font-size: 22px; font-weight: bold; margin: 0; }

    .countDownBtn{
        width: 90%;
    }

 

    .chatDiv{
        width: 90%;
    }

    .actionBtnDiv{
        max-width: 300px;
        gap: 10px;
    }

    .actionImg{
        width: 45px;
        height: 45px;
        padding: 8px;
    }

    /* ================= ACTION BUTTONS ================= */

    .actionBtnDiv{
        width: 60%;
        max-width: 400px;   /* 🔥 controls width like original */
        margin: 20px auto;  /* center the whole row */
        display: flex;
        justify-content: space-around; /* equal spacing */
        align-items: center;
    }
    .actionImg{
        width: 40px;
        height: 40px;
        padding: 10px;
        border-radius: 50%; /* 🔥 makes it circular */
        background: white;  /* base */
        cursor: pointer;
        box-shadow: 0 0 10px rgba(0,0,0,0.4);
    }

    .actionImg:nth-child(1){
        background: #ff4d4d; /* red */
    }

    .actionImg:nth-child(2){
        background: #0b3d5c; /* dark blue */
    }

    .actionImg:nth-child(3){
        background: yellow;
    }

    .actionImg:nth-child(4){
        background: #eee;
    }

    .searchMyTicketOnGameDiv{
        margin-top: 20px;
        width: 100%;
        display: flex;              /* 🔥 required */
        flex-direction: column;     /* stack items */
        /* 🔥 centers horizontally */
    }
    .searchTicketListDiv{
        width: 95%;
        max-width: 600px;
        margin: auto; /* centers it */
    }


}

/* ===== DIVIDEND UI (NEW) ===== */

/* ===== DIVIDEND LIST EXACT UI ===== */

/* 🔹 TITLE BAR */
.dividendTitleBox {
    width: 100%;
    background: #0d3b66; /* 🔥 bright blue like screenshot */
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
    padding: 12px;
    text-align: center;

    border: 2px solid #ff0000;
    border-bottom: none;
}

/* 🔹 BODY SECTION (LIGHT GREY, NOT BLACK) */
.dividendBodyBox {
    width: 100%;
    background: #e6e6e6; /* 🔥 FIX: grey like screenshot */
    padding: 15px;
    display: flex;
    justify-content: center;

}

/* 🔹 VIEW BUTTON */
.viewBtn {
    background: #ff2e6d;
    color: #ffffff;
    border: none;
    padding: 10px 50px;
    font-size: 18px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

/* 🔹 BUTTON HOVER (optional but clean) */
.viewBtn:hover {
    transform: scale(1.05);
}

/* Modal Overlay */
.winnerModalOverlay {

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.8);

    display: none;

    justify-content: center;   /* 🔥 CENTER HORIZONTAL */
    align-items: center;       /* 🔥 CENTER VERTICAL */

    overflow-y: auto;

    padding: 20px 10px;

    z-index: 9999;
}
/* White Modal Container */
.winnerModalContent {
    width: 95%;
    max-width: 400px;

    background: #FFFFFF;
    border-radius: 10px;
    padding: 20px 15px;

    position: relative;

    box-shadow: 0 4px 15px rgba(0,0,0,0.3);

    /* 🔥 CRITICAL FIX */
    max-height: 90vh;     /* limit height */
    overflow-y: auto;     /* scroll INSIDE modal */

    display: flex;
    flex-direction: column;
}

.winnerDivName {
    font-size: 18px;
    font-weight: bold;
    color: #000;
}

.winnerWonAt {
    font-size: 22px;
    font-weight: bold;
    color: red;
}
/* Red X Close Button */
.winnerClose {
    position: absolute;
    top: 5px;
    right: 15px;
    font-size: 40px;
    color: #FF0000;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

/* WON AT 80 Text */
.winnerTitle {
    text-align: center;
    color: #FF0000;
    font-size: 24px;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.winnerTicketBlock {
    margin-bottom: 25px;
}

/* Magenta Header */
.winnerHeader {
    background: #D81B60; /* Solid Pink/Magenta */
    color: white;
    padding: 5px 12px;
    border-radius: 5px 5px 0 0;
    display: flex;
    justify-content: space-between;

    font-weight: bold;
    font-size: 14px;
}

/* Thick Magenta Outer Border */
.winnerGridWrapper {
    border: 5px solid #FF00FF; /* Bright Magenta */
    border-radius: 5px;
    background: #FFFFFF;
    margin-top: -2px; /* Slight overlap to merge with header */
}

/* Grid Layout */
.winnerGrid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    background-color: #FFFFFF;
}

/* Yellow Borders for Cells */
.winnerGrid .gridCell {
    border: 2px solid #FFD700; /* Yellow border */
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    color: #000;
}

/* Highlighted Called Number */
.winnerGrid .gridCell.called {
    background-color: #D81B60 !important; /* Magenta background */
    color: #000 !important; /* Image shows text is visible, often dark or white */
}

/* Footer Section */
.winnerFooter {
    text-align: center;
    margin-top: 10px;
}

.tno-text {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 10px;
    display: block;
}


.dividendContainer {
    width: 100%;
    margin-top: 10px;
}

/* MOBILE */
@media (max-width: 768px) {
    .dividendTitleBox {
        font-size: 16px;
        padding: 10px;
    }

    .viewBtn {
        font-size: 14px;
        padding: 10px 30px;
    }
}

/* ================= SEARCH BOX (STAYING FAITHFUL TO UI) ================= */
.searchBox {
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
}

.searchBox input {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    border: none;
    text-align: center;
    font-size: 14px;
    color: #555;
}

.searchBox button {
    width: 100%;
    padding: 12px;
    background: #ff0000; /* Bright Red */
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    text-transform: uppercase;
}

/* ================= SEARCH RESULT TICKET ================= */
/* ================= 1. SEARCH INPUT & BUTTON ================= */
.searchBox {
    width: 95%;
    max-width: 400px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.searchBox input {
    width: 100% !important;
    max-width: unset !important;
    padding: 12px;
    border-radius: 5px;
    border: none;
    text-align: center;
    font-size: 16px;
}

.searchBox button {
    width: 100% !important;
    max-width: unset !important;
    padding: 12px;
    background: #ff0000; /* Bright Red */
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
}

/* ================= MOBILE SEARCH FIX ================= */


@media (max-width: 768px) {

    .searchBox {

        width: 78% !important;

        max-width: 360px !important;

        margin: 14px auto !important;

        gap: 6px !important;

        padding: 0 !important;
    }

    .searchBox input {

        width: 100% !important;

        height: 38px;

        padding: 8px 10px !important;

        font-size: 13px !important;

        border-radius: 2px !important;
    }

    .searchBox button {

        width: 100% !important;

        height: 38px;

        padding: 8px !important;

        font-size: 13px !important;

        border-radius: 2px !important;
    }
}
/* ================= 2. SEARCH RESULT TICKET (MAGENTA) ================= */
.searchTicketCard {
    width: 95%;
    max-width: 400px;
    margin: 15px auto;
    border: 4px solid #c0007a;
    border-radius: 10px;
    background: #f1f1f1;
    overflow: hidden;

    /* 🔥 MULTI-LAYER SHADOW (DEPTH) */
    box-shadow: 
        0 4px 8px rgba(0,0,0,0.25),
        0 8px 20px rgba(0,0,0,0.2),
        0 2px 2px rgba(0,0,0,0.15);
    
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.searchTicketCard:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 10px 25px rgba(0,0,0,0.35),
        0 6px 10px rgba(0,0,0,0.25);
}

.searchHeader {
    background: #c0007a; /* Magenta Header */
    color: white;
    font-weight: bold;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
}

.clearBtn {
    cursor: pointer;
    font-size: 14px;
    text-transform: uppercase;
}

/* Fix for the grid inside Search Results */
.searchTicketCard .gridWrapper {
    padding: 5px;
    background: #f1f1f1;
}

.searchTicketCard .gridCell {
    background: #f9f9f9;
    border: 2.5px solid #f4c302 !important; /* EXACT YELLOW BORDER */
    height: 40px;
    font-size: 16px;
    color: #333;
}

.searchTicketCard .gridCell.called {
    background: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
}


/* Simple mobile adjustment */
@media (max-width: 480px) {

    .searchTicketCard {
        width: 85%;
        max-width: 320px;
        margin: 12px auto;

        /* 🔥 MOBILE DEPTH (SOFTER BUT VISIBLE) */
        box-shadow: 
            0 6px 14px rgba(0,0,0,0.3),
            0 3px 6px rgba(0,0,0,0.2);
    }

    .searchHeader {
        font-size: 13px;
        padding: 8px 10px;
    }

    .searchTicketCard .gridCell {
        height: 32px;
        font-size: 13px;
    }

    .clearBtn {
        font-size: 12px;
    }
}


.closedScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.5s ease;
}

.closedCard {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    padding: 30px 40px;
    border-radius: 20px;
    text-align: center;
    color: white;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    animation: scaleIn 0.4s ease;
}

.closedIcon {
    font-size: 50px;
    margin-bottom: 10px;
}

.closedTitle {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 10px;
}

.closedMessage {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 20px;
}

.closedFooter {
    font-size: 12px;
    opacity: 0.6;
    margin-top: 10px;
}

/* 🔥 Loader */
.closedLoader {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 3, 200, 0.2);
    border-top: 4px solid #fff;
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

/* Animations */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.reopenOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.4s ease;
}

.reopenCard {
    position: relative;
    background: linear-gradient(135deg, #11998e, #38ef7d);
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    color: white;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(2, 31, 176, 0.5);
    animation: popIn 0.5s ease;
}

.reopenIcon {
    font-size: 60px;
    margin-bottom: 10px;
    animation: bounce 1s infinite;
}

.reopenTitle {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
}

.reopenText {
    opacity: 0.9;
    font-size: 14px;
}

.reopenGlow {
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.25), transparent 60%);
    top: -50%;
    left: -50%;
    animation: rotateGlow 5s linear infinite;
}

/* MODAL */
.loginModal {

    position: absolute;

    bottom: 500px;
    right: 10px;

    display: none;

    z-index: 9999;
}

/* SHOW */
.loginModal.active {
    display: block;
}

/* BOX */
.loginModalBox {

    width: 180px;

    background: linear-gradient(
        180deg,
        #0d00ff,
        #2200ff
    );

    border-radius: 18px;

    padding: 14px;

    text-align: center;

    box-shadow:
        0 6px 18px rgba(0,0,0,0.3);
}

/* TITLE */
.loginModalBox h2 {

    color: white;

    font-size: 18px;
    font-weight: bold;

    line-height: 1.2;

    margin-bottom: 14px;
}

/* BUTTON */
.loginTypeBtn {

    width: 100%;

    display: block;

    background: #e5e5e5;

    color: black;

    text-decoration: none;

    border: none;

    border-radius: 8px;

    padding: 10px;

    font-size: 14px;
    font-weight: 600;

    margin-bottom: 8px;

    cursor: pointer;
}

/* CANCEL */
.cancelBtn {

    background: transparent;

    border: none;

    color: white;

    font-size: 16px;

    margin-top: 4px;

    cursor: pointer;
}

/* Animations */
@keyframes popIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes bounce {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes rotateGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.winnerToast {

    position: fixed;

    bottom: 22px;

    right: 22px;

    background:
        linear-gradient(
            145deg,
            #050816,
            #0d1433,
            #111827
        );

    color: #ffffff;

    padding: 14px 18px;

    border-radius: 18px;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: .4px;

    z-index: 999999;

    opacity: 0;

    transform:
        translateY(40px)
        scale(.96);

    transition:
        all .45s cubic-bezier(
            0.22,
            1,
            0.36,
            1
        );

    box-shadow:
        0 12px 35px rgba(0,0,0,.55),
        0 0 18px rgba(37,99,235,.35),
        0 0 10px rgba(255,215,0,.18);

    max-width: 290px;

    min-width: 210px;

    line-height: 1.5;

    overflow: hidden;

    backdrop-filter: blur(14px);

    -webkit-backdrop-filter: blur(14px);

    border:
        1px solid rgba(255,215,0,.22);

    pointer-events: none;
}

/* ✨ GOLD TOP LINE */
.winnerToast::before {

    content: '';

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #ffd700,
            #ffffff,
            #ffd700,
            transparent
        );

    opacity: .95;
}

/* ✨ BLUE LIGHT EFFECT */
.winnerToast::after {

    content: '';

    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at top right,
            rgba(59,130,246,.22),
            transparent 45%
        );

    pointer-events: none;
}

/* ✨ SHOW */
.winnerToast.show {

    opacity: 1;

    transform:
        translateY(0)
        scale(1);

    animation:
        premiumFloat 3.2s ease-in-out infinite;
}

/* ✨ FLOAT */
@keyframes premiumFloat {

    0% {
        transform:
            translateY(0)
            scale(1);
    }

    50% {
        transform:
            translateY(-1%)
            scale(1.01);
    }

    100% {
        transform:
            translateY(0)
            scale(1);
    }
}