.single-region-title {
    font-weight: 700;
    font-size: 40px;
    line-height: 64px;
    margin-bottom: 16px;
}

.tabs-list {
    display: flex;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    width: auto;
    background: unset;
    justify-content: start;
}
.icon-select {
    position: relative;
}

.width-50 {
    width: 50%;
}

.select-icon {
    position: absolute;
    pointer-events: none;
    z-index: 9999;
    margin-left: 10px;
    margin-top: 9px;
}

#day-dropdown {
    padding-left: 34px !important;
}

#province-dropdown {
    padding-left: 34px !important;
}

.my-custom-tab {
    transition-property: all;
    transition-duration: .15s;
    padding: 15px 36px;
    border-radius: 5px;
    white-space: nowrap;
    justify-content: center;
    align-items: center;
    display: inline-flex;
    margin-right: 0;
    width: auto;
    text-transform: capitalize;
    background-color: #FFEFEF;
    color: var(--Neutral-300, #787A7D);
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px;
    margin-bottom: 0;
}


.my-custom-tab.is-active {
    background-color: white;
    color: #981616;
}

.lucide-calendar {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

#lottery-content-1 {
    background: #fff;
}

/* Simple Countdown Timer */
.countdown-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding-bottom: 10px;
}


/* Wrapper tổng */
.lottery-filter-bar {
    width: 100%;
    margin-bottom: 0;
    padding-top: 16px;
}

.filter-group {
    display: flex;
    gap: 4px;
    justify-content: space-between;
}

.filter-group2 {
    display: flex;
    justify-content: left;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 4px 16px !important;
    background: #E0E0E1 !important;
    border-radius: 8px;
    line-height: 1;
    width: 100%;
}

.filter-group2 .radio-option {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0 8px;
    height: 30px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
}

.filter-group2 input[type="radio"] {
    margin: 0;
    vertical-align: middle;
}


#datepicker-wrapper svg {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #555;
}

#datepicker-wrapper {
    position: relative;
    display: inline-block;
    width: 33%
}

.flatpickr-input {
    padding-left: 36px !important;
    height: 38px !important;
    font-size: 14px;
    border-radius: 5px !important;
    padding-right: 10px;
    width: 100%;
    margin-bottom: 0;
    min-width: 150px;
    background: #E0E0E1 !important;
}

.highlight-input {
    border-radius: 5px !important;
    min-width: 150px;
    min-height: 38px !important;
    background: #FFF !important;
    box-shadow: none !important;
    font-weight: 600;
    font-size: 14px !important;

}

/* Dropdowns */
#day-dropdown,
#province-dropdown {
    position: relative;
    z-index: 10;
    border-radius: 4px;
    padding: 4px 8px;
    min-height: 38px;
    background: #E0E0E1 !important;
    font-weight: 600;
    font-size: 14px !important;
}

#day-dropdown ul,
#province-dropdown ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#day-dropdown li,
#province-dropdown li {
    padding: 4px 8px;
    cursor: pointer;
    white-space: nowrap;
}

#day-dropdown li:hover,
#province-dropdown li:hover {
    background-color: #f0f0f0;
}


/* Live button */
.live-btn {
    height: 36px;
    padding: 0.5rem 1rem;
    background-color: rgba(220, 38, 38, 1);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: .875rem;
    line-height: 1.25rem;
    cursor: pointer;
    white-space: nowrap;
    margin-right: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
}

.live-btn:hover {
    background-color: rgba(185, 28, 28, 1);
}


/* Style cho nút dropdown */
.dropbtn {
    background-color: #3498db;
    color: white;
    padding: 10px 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

/* Container cho dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Nội dung dropdown (ẩn mặc định) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Các mục trong dropdown */
.dropdown-content li {
    padding: 12px 16px;
    cursor: pointer;
}

/* Hiển thị dropdown khi hover */
.dropdown:hover .dropdown-content {
    display: block;
}

.radio-group {
    display: flex;
    gap: 15px;
    padding: 10px 0;
}

.radio-option {
    display: flex;
    align-items: center;
    font-size: .875rem;
    cursor: pointer;
    position: relative;
    color: #1E1E1F !important;
    font-weight: 500;

}

.radio-group input[type="radio"] {
    accent-color: #AC0B0B;
    transform: scale(1.4);
    cursor: pointer;
}

.radio-option:hover {
    color: #AC0B0B;
}

.table-lottery-header {
    font-size: 1.125rem;
    line-height: 1.75rem;
    text-align: left;
    padding: 0.75rem !important;
    background-color: #fff;
    --tw-bg-opacity: 1;
    border-bottom-width: 1px;
    margin-bottom: 0.5rem;
    color: #1E1E1F;
    font-weight: 600;
    text-transform: capitalize;
    font-size: 24px;
}

/* css gạch ngăn cách header */
.lottery-separator {
    display: inline-block;
    width: 1px;
    height: 15px;
    background-color: #8F9A9F;
    margin: 0 8px;
    vertical-align: middle;
    margin-bottom: 5px !important;
    color: #8F9A9F;
}
/* css màu cho date */
.lottery-date {
  color: #981616;   
  font-size: 16px;
  font-weight: 400;
}

.title-province{
    color: #360404!important;
    font-size: 20px;
    font-weight: 700;
}
.table-title th,
.prize-name {
    font-size: 1rem;
    line-height: 1.75rem;
    padding: 0.5rem !important;
    --tw-bg-opacity: 1;
    border-bottom-width: 1px;
    color: #5A5B5E;
    font-weight: 700;
    text-transform: capitalize;
    text-align: center;
}

.prize-name {
    font-size: 16px;
    line-height: 1.5rem;
    text-align: center;
    font-weight: 400;
}

.table-title th {
    text-align: center;
    color: #5A5B5E;
    font-size: 20px;
    font-weight: 700;
}

.col-giai {
    width: 175px;
    white-space: nowrap;
}

.col-province {
    width: auto;
}

.table-data-region tbody tr:nth-child(even) {
    background-color: #fff;
}

.bg-special {
    background-color: #FFFFFF;
}

.prize-value {
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.75rem;
    text-align: center;
    color: #333;
}


.north-prize[data-quantity="4"],
.prize-row.top-data {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
}

.north-prize[data-quantity="3"],
.north-prize[data-quantity="6"],
.prize-row.bottom-data {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
}

.north-prize[data-quantity="2"] {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.north-prize[data-quantity="5"] {
    grid-template-columns: repeat(5, 1fr);
}

.north-prize[data-quantity="7"] {
    grid-template-columns: repeat(7, 1fr);
}



.north-prize {
    display: flex;
    gap: 0;
    justify-content: space-around;
}

.north-prize-6 {
    flex-wrap: wrap;
    gap: 12px;
}

.north-prize-6 > * {
    flex: 0 0 calc(33.33% - 10px); /* mỗi item chiếm 1/3 chiều ngang */
  box-sizing: border-box;
}

.prize-row {
    display: grid;
    gap: 0;
}

.number,
.north-prize,
.north-prize * {
    border: none;
    outline: none;
}

.prize-special {
    color: rgba(220, 38, 38, 1);
    font-size: 1.75rem;
    line-height: 2rem;
}

.prize-col .number {
    display: block;
}

.number .highlighted {
    background-color: yellow;
    border-radius: 4px;
    min-height: 42px;
}

.select-wrapper {
    position: relative;
    display: inline-block;
    min-width: 150px;
    min-height: 42px;
    width: 33.33%;
}

.select-wrapper::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 12px;
    width: 12px;
    height: 12px;
    pointer-events: none;
    transform: translateY(-50%);
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7L10 12L15 7' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 1000;
}

#datepicker-wrapper::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 12px;
    width: 12px;
    height: 12px;
    pointer-events: none;
    transform: translateY(-50%);
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7L10 12L15 7' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 1000;
}
.lottery-sticky {
    position: relative;
    display: block;
}
.lottery-loading-overlay {
    position: absolute; /* bám cha */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.7);
    display: none; /* ẩn ban đầu */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    position: absolute;
    top: 250px;
    width: 40px;
    height: 40px;
    border: 4px solid #ccc;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}


@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.lottery-today-notice {
    padding: 8px 16px;
    background: rgba(219, 234, 254, 1);
    border-left: 4px solid #2a2adb;
    color: rgba(30, 64, 175, 1);
    ;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
    font-size: 1.25rem;
}

.active-live {
    background-color: rgb(22, 163, 74);
}

.active-live:hover {
    background-color: #10192ee6;
}

.text-title-region {
    padding: 20px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.text-title-region h3 {
    margin-bottom: 10px;
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 700;
    color: #333;
}

.text-title-region p {
    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: 500;
    color: #333;
}

.box-result-history {
    padding: .5rem;
    background-color: rgba(243, 244, 246, 1);
    border-radius: 4px;
    margin-bottom: 10px;
}

.box-result-province,
.box-result-prize {
    margin-bottom: 0;
}

.box-result-province {
    font-weight: 600 !important;
}

.box-result-prize span {
    color: rgba(220, 38, 38, 1);
    font-weight: 700 !important;
}

.block-display {
    display: block;
}

.countdown-timer,
.live-draw-status {
    background: rgba(254, 249, 195, 1);
    color: rgba(220, 38, 38, 1);
    padding: 8px 16px;
    border-left: 4px solid rgba(220, 38, 38, 1);
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
    font-size: 1.25rem;
}

@keyframes pulse {
    50% {
        opacity: .5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;
}

.live-draw-status {
    animation: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;
    background-color: rgba(220, 38, 38, 1);
    color: rgba(255, 255, 255, 1);
    margin-bottom: 15px;
}

.pulse-icon img {
    border: 2px solid #0b0b0b !important;
    border-radius: 50%;
}

input[disabled],
select[disabled],
button[disabled],
.disabled {
    cursor: not-allowed !important;
}

/* Override disabled cursor cho province dropdown khi enabled trong miền Trung/Nam */
#province-dropdown:not([disabled]) {
    cursor: pointer !important;
}

#province-dropdown:not([disabled]):not(.disabled) {
    cursor: pointer !important;
}

/* Đảm bảo hover effect hoạt động khi enabled */
#province-dropdown:not([disabled]):hover,
#province-dropdown:not(.disabled):hover {
    cursor: pointer !important;
    opacity: 0.8;
}

input[disabled]+label,
input[disabled].disabled+label {
    cursor: not-allowed !important;
}

.audio-toggle {
    position: fixed;
    top: 50px;
    right: 10px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    z-index: 9999;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.audio-toggle:hover {
    opacity: 1;
}

.mb-10 {
    margin-bottom: 0.5rem;
}

@media (max-width: 1024px) {
    .filter-group {
        gap: 10px;
    }

    .lottery-filter-bar {
        gap: 10px;
    }

    .select-wrapper,
    .highlight-input {
        min-width: 140px;
    }

    #datepicker-wrapper,
    .flatpickr-input {
        min-width: 140px;
    }

    .lottery-filter-bar>*:not(.live-btn) {
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    .filter-group {
        gap: 5px;
    }

    .lottery-filter-bar {
        gap: 5px;
    }

    .select-wrapper,
    .highlight-input {
        min-width: 120px;
    }

    .width-50 {
        width: 100% !important;
    }
}

@media (max-width: 767px) {
    .filter-group {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
    }

    .lottery-filter-bar {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
    }

    .select-wrapper,
    #datepicker-wrapper {
        width: 100% !important;
    }

    .lottery-filter-bar>*:not(.live-btn) {
        width: 100% !important;
    }

    .north-prize[data-quantity="4"],
    .prize-row.top-data {
        grid-template-columns: repeat(1, 1fr);
    }

    .north-prize[data-quantity="3"],
    .north-prize[data-quantity="6"],
    .prize-row.bottom-data {
        grid-template-columns: repeat(1, 1fr);
    }

    .north-prize[data-quantity="2"] {
        grid-template-columns: repeat(1, 1fr);
    }

    .north-prize[data-quantity="5"] {
        grid-template-columns: repeat(1, 1fr);
    }

    .north-prize[data-quantity="7"] {
        grid-template-columns: repeat(1, 1fr);
    }

    .prize-special {
        font-size: 1.25rem;
    }
    .prize-name {
        font-size: 12px;
        line-height: 16px;
    }
    .prize-value {
        font-size: 14px;
        line-height: 19px;
    }
    .filter-group2 .radio-option {
        font-size: 14px;
        padding: 0 5px;
    }
    .table-data-region thead th {
        font-size: 14px;
    }
    .table-data-region thead th:first-child {
        width: 40%;
    }
    .table-lottery-header {
        font-size: 20px;
        line-height: 24px;
    }
}
.line-gradient{
    width: 100%;
    height: 1px;
    background: radial-gradient(91.31% 88.81% at 42.69% 4.48%, #FFFEF4 0%, #FFFF76 31.22%, #F0A209 100%), #F19B36;
    margin: 12px 0;
}
.text-time-countdown{
    font-size: 16px;
    font-weight: 400;
    text-transform: lowercase;
    margin: 0px 8px;
}
/* Simple Countdown Timer */
.countdown-display {
    display: flex;
}
.custom-countdown-box{
    background-color: #AC0B0B;
    backdrop-filter: blur(2px);
    border-radius: 4px;
    padding: 4px 8px;
    width: 75px;
    color: #fff;
    margin-left: 4px;
}
.custom-countdown-num{
    font-size: 20px;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}
.custom-countdown-label{
    font-size: 12px;
    text-align: center;
    font-weight: 400;
}

/* Mobile Responsive Improvements for Countdown */
@media (max-width: 768px) {
    .lottery-header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }
    
    .lottery-title-section {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        width: 100%;
    }
    
    .lottery-separator {
        display: none;
    }
    
    .countdown-time {
        width: 100%;
        justify-content: center;
        margin-top: 8px;
    }
    
    .countdown-display {
        gap: 8px;
        justify-content: center;
    }
    
    .custom-countdown-box {
        width: 65px;
        padding: 6px 4px;
        margin-left: 0;
    }
    
    .custom-countdown-num {
        font-size: 18px;
    }
    
    .custom-countdown-label {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .lottery-title-section {
        gap: 6px;
    }
    
    .lottery-title {
        font-size: 18px;
        line-height: 22px;
    }
    
    .lottery-date {
        font-size: 14px;
    }
    
    .countdown-display {
        gap: 6px;
        flex-wrap: nowrap;
    }
    
    .custom-countdown-box {
        width: 55px;
        padding: 4px 2px;
        border-radius: 3px;
    }
    
    .custom-countdown-num {
        font-size: 16px;
        min-width: 18px;
    }
    
    .custom-countdown-label {
        font-size: 10px;
        font-weight: 500;
    }
}

@media (max-width: 375px) {
    .lottery-title {
        font-size: 16px;
        line-height: 20px;
    }
    
    .lottery-date {
        font-size: 13px;
    }
    
    .countdown-display {
        gap: 4px;
    }
    
    .custom-countdown-box {
        width: 50px;
        padding: 3px 1px;
    }
    
    .custom-countdown-num {
        font-size: 14px;
        min-width: 16px;
    }
    
    .custom-countdown-label {
        font-size: 9px;
    }
}

/* Very small screens (iPhone SE, small Android) */
@media (max-width: 320px) {
    .countdown-display {
        gap: 3px;
    }
    
    .custom-countdown-box {
        width: 45px;
        padding: 2px 1px;
    }
    
    .custom-countdown-num {
        font-size: 13px;
        min-width: 15px;
    }
    
    .custom-countdown-label {
        font-size: 8px;
    }
}