/* -------------------- MODAL OVERLAY -------------------- */
/* ==========================================================
   PREMIUM TICKET HEADER — STYLE B
========================================================== */

/* ==========================================================
   PREMIUM HEADER — UPDATED GOLD DESIGN
========================================================== */

/* ==========================================================
   PREMIUM HEADER — UPDATED GOLD DESIGN
========================================================== */

.bs-header-full {
    background: #0f0f0f;
    padding: 32px 20px 40px;
    border-radius: 16px;
    margin-bottom: 25px;
    text-align: center;

    border: 2px solid #B47B00 !important;

    box-shadow:
        0 0 12px rgba(255,199,102,0.18),
        inset 0 0 28px rgba(0,0,0,0.65);
}

/* FLASH DEAL Badge */
.bs-header-full .flash_deal {
    display: inline-block;
    padding: 12px 40px;

    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #2E1B00;

    /* Ribbon Background (from Image folder) */
    background-image: url("Image/Rectangle 1.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

    border: none;
}

/* Main Title */
.bs-header-full .product_info h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 44px;
    font-weight: 600;
    color: #D4B676;
    margin: 0;
    margin-bottom: 18px;
}

/* Countdown Container */
.bs-header-full .bs-urgent {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    padding: 4px 12px;
    background: #ffffff;
    color: #333;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 20px;
}

/* Countdown Number */
#bs-countdown {
    color: #D60000;
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 12px;
    line-height: 100%;
    text-align: center;
}

/* ==========================================================
   PRICE BOX — MATCH SPOT DESIGN EXACTLY
========================================================== */

.bs-header-price-box {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 12px 26px;
    border-radius: 10px;

    /* Background same as Spot Boxes */
    background: #483202 !important;

    /* Golden Gradient Border */
    border: 3px solid #B47B00 !important;
    border-image: linear-gradient(
        135deg,
        #B47B00 0%,
        #FFD782 30%,
        #FFC446 60%,
        #B47B00 100%
    ) 1 !important;

    /* Depth Shadows (same as Spot) */
    box-shadow:
        inset 0 4px 10px rgba(255,255,255,0.25),
        inset 0 -6px 12px rgba(0,0,0,0.35),
        0 2px 4px rgba(0,0,0,0.3);

    margin-top: 20px;
}
/* Smaller price box */
.bs-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 150px;        /* ↓ Reduced width */
    padding: 10px 16px;  /* ↓ Reduced padding */
    margin: 15px auto 0;

    background: #483202 !important;

    border-radius: 10px;
    border: 3px solid #B47B00 !important;

    border-image: linear-gradient(
        135deg,
        #B47B00 0%,
        #FFD782 30%,
        #FFC446 60%,
        #B47B00 100%
    ) 1 !important;

    box-shadow:
        inset 0 3px 8px rgba(255,255,255,0.20),
        inset 0 -5px 10px rgba(0,0,0,0.40),
        0 2px 3px rgba(0,0,0,0.35);

    text-align: center !important;
}

/* Price: label */
.bs-info strong {
    font-family: 'Poppins', sans-serif !important;
    font-size: 12px !important;  /* smaller */
    font-weight: 600 !important;
    color: #D59100 !important;
    margin-bottom: 3px;
}

/* 193 USD value */
.bs-info .bs-amount {
    font-family: 'Poppins', sans-serif !important;
    font-size: 20px !important;  /* slightly smaller */
    font-weight: 700 !important;
    color: #D59100 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

/* Price text */
.bs-header-price-box .price-title {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #D59100;
    margin-bottom: 4px;
}

/* Price amount */
.bs-header-price-box .price-value {
    font-family: 'Poppins', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #D59100;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}




.bs-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 15px;
}

.bs-day.empty { display: none; }
h4.Select_deal { color: #fff; }

/* -------------------- MODAL -------------------- */
.bs-modal {
    background: #fff;
    border-radius: 10px;
    max-width: 1000px;
    width: 100%;
    padding: 35px 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    font-family: 'Poppins', sans-serif;
    color: #333;
    max-height: 92vh;
    overflow-y: auto;
    overflow-x: hidden !important;
    position: relative;
}

/* -------------------- CLOSE ICON -------------------- */
.bs-close-icon {
    position: absolute;
    top: 0px;
    right: 12px;
    font-size: 32px;
    color: #444;
    cursor: pointer;
    transition: 0.2s;
    z-index: 10;
}
.bs-close-icon:hover {
    color: #000;
    transform: scale(1.1);
}

/* -------------------- HEADER -------------------- */
.bs-header-full {
    width: 100%;
    text-align: center;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(0,0,0,0.10);
}
.bs-header-full h3.flash_deal { font-size: 15px;color:#fff; }
.bs-amount { font-weight: bold; font-size: 1.3rem; }

/* -------------------- FLEX LAYOUT -------------------- */
.bs-modal-flex {
    display: flex;
    width: 100%;
    margin-top: 25px;
}

/* -------------------- LEFT PANEL -------------------- */
.bs-left {
    flex: 1;
    background: #111;
    border-radius: 12px;
    padding: 25px;
}

.bs-left h4,
.bs-left h3,
#bs-slots-grid h4,
.bs-slot-legend,
.bs-slot-legend span,
.bs-slot-legend div {
    color: #fff !important;
}

.bs-cal-container { padding: 15px; }

.bs-cal-header {
    text-align: center;
    font-size: 20px;
    color: #fff;
    margin-bottom: 12px;
}

.bs-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 13px;
    margin-bottom: 10px;
    color: #e5e5e5;
}

.bs-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.bs-day {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #1a1a1a;
    color: #eee;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    padding: 10px 0;
    transition: 0.25s;
}

.bs-day.active {
    background: #ff9d26 !important;
    color: #fff !important;
}

.bs-day.disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* -------------------- RIGHT PANEL -------------------- */
.bs-right {
    flex: 1;
    background: #f5f5f5;
    border-radius: 0 12px 12px 0;
    padding: 25px;
}

/* LEGEND */
/* Legend container: spacing + alignment */
.bs-slot-legend {
    display: flex;
    align-items: center;
    gap: 30px;                /* space between Open & Booked */
    padding: 10px 5px;        /* top/bottom padding */
    margin-bottom: 15px;
}

/* Each legend item in a single row */
.bs-slot-legend .legend-box {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #fff !important; /* gold text */
}

/* Colored small square */
.legend-item {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}


.bs-slot-legend {
    display: flex;
    gap: 20px;
    align-items: center;
    white-space: nowrap;
    margin-bottom: 18px;
    font-size: 14px;
}

.legend-item { 
    width: 14px;
    height: 14px;
    border-radius: 3px;
    display: inline-block;
    margin-right: 6px;
}

.legend-available { background: #D59100; }
.legend-booked { background: #c00403; }
.legend-disabled { background: #cccccc; }

/* -------------------- SLOT GRID (Default: 9 Columns) -------------------- */
#bs-slots-grid .slots-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    margin-top: 20px;
    width: 100%;
	  
    box-sizing: border-box;
}

/* Prevent text wrapping */
.bs-slot .slot-number {
    white-space: nowrap !important;
    font-family: 'Poppins';
}
/* Force SPOT on top and Number below */
.bs-slot .slot-number {
    display: flex !important;
    flex-direction: column !important;
    text-align: center !important;
    white-space: normal !important;
    line-height: 1.2 !important;
	    font-size: 24px;
		    font-family: 'Poppins';

}
/* ==========================================================
   CUSTOM GOLD SCROLLBAR (2px) FOR SLOT GRID & MODAL
========================================================== */

/* Scrollbar for slots grid */
#bs-slots-grid .slots-grid {
    overflow-y: auto !important;
    scrollbar-width: thin;
    scrollbar-color: #B47B00 transparent;
}

/* Firefox scrollbar */
#bs-slots-grid .slots-grid {
    scrollbar-width: thin;
    scrollbar-color: #B47B00 #000000;
}

/* Chrome / Edge / Safari */
#bs-slots-grid .slots-grid::-webkit-scrollbar {
    width: 2px !important;
}

#bs-slots-grid .slots-grid::-webkit-scrollbar-track {
    background: transparent !important;
}

#bs-slots-grid .slots-grid::-webkit-scrollbar-thumb {
    background: #B47B00 !important;
    border-radius: 2px !important;
}

/* Scrollbar inside modal (full popup) */
.bs-modal {
    scrollbar-width: thin;
    scrollbar-color: #B47B00 transparent;
}

.bs-modal::-webkit-scrollbar {
    width: 2px !important;
}

.bs-modal::-webkit-scrollbar-thumb {
    background: #B47B00 !important;
    border-radius: 2px !important;
}
/* ==========================================================
   SLOT GRID: FIXED HEIGHT + SCROLL (Supports 1000 slots)
========================================================== */
#bs-slots-grid .slots-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    margin-top: 20px;
    width: 100%;
    box-sizing: border-box;

    /* 🔥 IMPORTANT FOR 1000 SLOTS */
    max-height: 250px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;

    /* Gold scrollbar */
    scrollbar-width: thin;
    scrollbar-color: #B47B00 transparent;
}

/* Chrome / Edge / Safari Scrollbar */
#bs-slots-grid .slots-grid::-webkit-scrollbar {
    width: 2px !important;
}
#bs-slots-grid .slots-grid::-webkit-scrollbar-track {
    background: transparent !important;
}
#bs-slots-grid .slots-grid::-webkit-scrollbar-thumb {
    background: #B47B00 !important;
    border-radius: 2px !important;
}

/* ==========================================================
   MODAL SCROLLBAR — GOLD
========================================================== */
.bs-modal {
    scrollbar-width: thin;
    scrollbar-color: #B47B00 transparent;
}

.bs-modal::-webkit-scrollbar {
    width: 2px !important;
}
.bs-modal::-webkit-scrollbar-thumb {
    background: #B47B00 !important;
    border-radius: 2px !important;
}

/* ==========================================================
   SLOT DESIGN MERGED (No duplicates)
========================================================== */

/* SPOT label above number */
.bs-slot .slot-number {
    display: flex !important;
    flex-direction: column !important;
    text-align: center !important;
    white-space: normal !important;
    line-height: 1.2 !important;
    font-size: 24px !important;
    font-family: 'Poppins';
}
.bs-slot .slot-number::before {
    content: attr(data-spot-label);
    display: block;
    font-size: 13px !important;
    font-weight: 500 !important;
    margin-bottom: 2px;
}

/* Gold Slot Box */
#bs-slots-grid .slots-grid .bs-slot {
    height: 90px !important;
    border-radius: 10px !important;
    border: 3px solid #B47B00 !important;
    border-image: linear-gradient(135deg,#B47B00 0%,#FFD782 30%,#FFC446 60%,#B47B00 100%) 1 !important;
    background: #483202 !important;
    box-shadow:
        inset 0 4px 10px rgba(255,255,255,0.25),
        inset 0 -6px 12px rgba(0,0,0,0.35),
        0 2px 4px rgba(0,0,0,0.3);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #D59100 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
    transition: 0.25s ease;
}

/* Hover */
#bs-slots-grid .slots-grid .bs-slot.available:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow:
        0 0 0 4px rgba(212,182,118,0.25),
        inset 0 0 28px rgba(0,0,0,0.8) !important;
}

/* SOLD Badge */
#bs-slots-grid .slots-grid .bs-slot.booked {
    position: relative !important;
    overflow: hidden !important;
}
#bs-slots-grid .slots-grid .bs-slot.booked .bs-sold-badge {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background: #DD0000 !important;
    color: #fff !important;
    border: 1px solid #8b0000 !important;
    padding: 6px 14px !important;
    font-size: 14px !important;
    font-weight: bold !important;
    border-radius: 4px !important;
    white-space: nowrap !important;
    z-index: 10 !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4) !important;
}
.bs-slot.booked .slot-number {
    opacity: 0 !important;
}

/* Make SPOT and number split into two lines */
.bs-slot .slot-number::before {
    content: attr(data-spot-label);
    display: block;
    font-size: 13px !important;   /* SPOT size */
    font-weight: 500 !important;
    margin-bottom: 2px;
}
/* NUMBER SIZE */
.bs-slot .slot-number span {
    font-size: 24px !important;   /* NUMBER size */
    font-weight: 600 !important;
    line-height: 1 !important;
}
/* -------------------- BASE SLOT BOX -------------------- */
.bs-slot {
    width: 100%;
    height: 50px;
    background: #ffffff;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    user-select: none;
    transition: 0.2s ease;
}

/* -------------------- AVAILABLE -------------------- */
.bs-slot.available {
    background: #3B82F6 !important;
    border-color: #2563eb !important;
    color: #fff !important;
}
.bs-slot.available:hover {
    transform: scale(1.05);
}

/* -------------------- BOOKED -------------------- */
.bs-slot.booked {
    background: #FF9D26 !important;
    border-color: #e67e00 !important;
    color: #fff !important;
    pointer-events: none;
}
.bs-slot.booked .slot-number {
    opacity: 0 !important;
}

/* -------------------- GOLD SPOT STYLE -------------------- */
#bs-slots-grid .slots-grid .bs-slot {
    height: 90px !important;
    border-radius: 10px !important;

    /* Solid Gold Border */
    border: 3px solid #B47B00 !important;

    /* Gradient Border (keep it only if needed) */
    border-image: linear-gradient(
        135deg,
        #B47B00 0%,
        #FFD782 30%,
        #FFC446 60%,
        #B47B00 100%
    ) 1 !important;

    /* UPDATED BACKGROUND */
    background: #483202 !important;

    /* INNER DEPTH SHADOW */
    box-shadow:
        inset 0 4px 10px rgba(255,255,255,0.25),
        inset 0 -6px 12px rgba(0,0,0,0.35),
        0 2px 4px rgba(0,0,0,0.3);

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;

    font-family: 'Poppins', 'Helvetica Neue', sans-serif !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #D59100 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);

    transition: 0.25s ease;
}


/* Hover Glow */
#bs-slots-grid .slots-grid .bs-slot.available:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow:
        0 0 0 4px rgba(212,182,118,0.25),
        inset 0 0 28px rgba(0,0,0,0.8) !important;
}

/* -------------------- RED SOLD BADGE -------------------- */
#bs-slots-grid .slots-grid .bs-slot.booked .bs-sold-badge {
    background: #c00000 !important;
    color: #ffffff !important;
    border: 1px solid #8b0000 !important;
    padding: 4px 12px !important;
    font-size: 14px !important;
    font-weight: bold !important;
    border-radius: 4px !important;
    transform: translate(-50%, -50%) rotate(-10deg) !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4) !important;
	    font-family: 'Poppins', 'Helvetica Neue', sans-serif !important;

}
/* FORCE SOLD TO STAY INSIDE SPOT BOX */
#bs-slots-grid .slots-grid .bs-slot.booked {
    position: relative !important;
    overflow: hidden !important; /* ⛔ Prevent badge sticking out */
}

/* CENTER SOLD BADGE PERFECTLY */
#bs-slots-grid .slots-grid .bs-slot.booked .bs-sold-badge {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
        font-family: 'Poppins', 'Helvetica Neue', sans-serif !important;

    background: #DD0000 !important;
    color: #fff !important;
    border: 1px solid #8b0000 !important;
    
    padding: 6px 14px !important;
    font-size: 14px !important;
    border-radius: 4px !important;

    z-index: 10 !important;
    white-space: nowrap !important;

    box-shadow: 0 2px 6px rgba(0,0,0,0.4) !important;
}

/* -------------------- RESPONSIVE GRID -------------------- */

/* Tablet Large - 6 Columns */
@media (max-width: 1024px) {
    #bs-slots-grid .slots-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Tablet Medium - 5 Columns */
@media (max-width: 820px) {
    #bs-slots-grid .slots-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Mobile - 4 Columns */
@media (max-width: 650px) {
    #bs-slots-grid .slots-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Small Mobile - 3 Columns */
@media (max-width: 480px) {
    #bs-slots-grid .slots-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Extra Small - 2 Columns */
@media (max-width: 360px) {
    #bs-slots-grid .slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Ensure SweetAlert is always above your modal */
.swal2-container {
    z-index: 999999 !important;
}

/* Modern Toast Theme */
.swal2-popup.modern-toast {
    font-family: 'Poppins', 'Helvetica Neue', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border-radius: 14px !important;
    padding: 18px 26px !important;
    background: rgba(30, 30, 30, 0.92) !important;
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35) !important;
    backdrop-filter: blur(6px) !important;
}
.toast{
    display: flex;
    align-items: center;
    gap:10px;
}
/* Remove default SweetAlert icons */
.swal2-icon {
    display: none !important;
}

/* Timer progress bar */
.swal2-timer-progress-bar {
    height: 4px !important;
    background-color: #fff !important;
    border-radius: 2px !important;
}

/* Fix SVG alignment if any used later */
.modern-toast svg {
    flex-shrink: 0;
}

.bs-slot.disabled {
    cursor:not-allowed;
}