header {
    background-color: #ffffff;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); 
    padding-top: 15px;
    padding-bottom: 0;
    position: relative;
    z-index: 1000;
    overflow-x: hidden;
}

header img.img-fluid {
    max-height: 55px;
    object-fit: contain;
    animation: fadeInLogo 1.2s ease-out;
}

header .menu {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
    min-height: 55px;
    gap: 15px;
}

header .menu a {
    text-decoration: none;
    color: #475569;
    font-weight: 600;
    font-size: 15px;
    padding: 10px 5px;
    position: relative;
    transition: all 0.3s ease;
    opacity: 0; 
    animation: slideDownMenu 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

header .menu a:nth-child(1) { animation-delay: 0.1s; }
header .menu a:nth-child(2) { animation-delay: 0.2s; }
header .menu a:nth-child(3) { animation-delay: 0.3s; }

header .menu a:hover {
    color: #2563eb;
    transform: translateY(-2px);
}

header .menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 50%;
    background-color: #2563eb;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

header .menu a:hover::after {
    width: 100%; 
}

header .row:last-child {
    background: linear-gradient(90deg, #2563eb 0%, #1e40af 100%);
    margin-top: 15px;
    padding: 6px 0;
    margin-bottom: 0;
}

header marquee {
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

.topBanner, .bottomBanner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 15px;
    background-color: transparent;
    width: 100%;
}

.topBanner a, .bottomBanner  a {
    display: block;
    max-width: 100%;
    text-decoration: none;
}

.topBanner img.img-fluid, .bottomBanner  img.img-fluid {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.topBanner a:hover img.img-fluid, .bottomBanner a:hover img.img-fluid  {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
    filter: brightness(1.05);
}

.jackpot {
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.jackpot::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(218, 165, 32, 0.1) 0%, transparent 70%);
    animation: rotateGlow 10s linear infinite;
    pointer-events: none;
}

.jackpot p:first-child {
    color: #a0aec0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
    font-weight: 600;
}

.jackpot p:last-child {
    font-size: 4.2em;
    font-weight: 800;
    letter-spacing: -1px;
    font-style: italic;
    line-height: 60px;
    margin: 0;
    background: linear-gradient(
        90deg, 
        #ffd700 0%,
        #ffffff 50%,
        #ffd700 100% 
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    animation: shineText 3s linear infinite;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.3));
}

#last {
    border-radius: 16px;
    padding: 20px 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    margin-bottom: 20px;
    background: linear-gradient(135deg, #0f2a0f 0%, #234b1b 100%);
    align-items: center;
    justify-content: center;
}

.winning-number {
    padding: 20px 15px;
    margin: auto;
    position: relative;
    overflow: hidden;
}

#last::before, #winning-number::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(20px);
}

.winning-top {
    color: #ffffff;
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.winning-top img.calendar {
    width: 18px;
    height: 18px;
    filter: drop-shadow(0 0 5px rgba(229, 255, 0, 0.6));
}

.winning-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ball {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    
    background: radial-gradient(circle at 35% 35%, 
        #ffd4d4 0%,
        #fb2424 20%,
        rgb(251, 36, 36) 50%,
        #780f0f 100%
    );
    
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 
        inset -2px -2px 6px rgba(0,0,0,0.3),
        0 5px 10px rgba(0,0,0,0.4);
    animation: popInBall 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.ball:nth-child(1) { animation-delay: 0.1s; }
.ball:nth-child(2) { animation-delay: 0.2s; }
.ball:nth-child(3) { animation-delay: 0.3s; }
.ball:nth-child(4) { animation-delay: 0.4s; }
.ball:nth-child(5) { animation-delay: 0.5s; }
.ball:nth-child(6) { animation-delay: 0.6s; }

.ball:hover {
    transform: translateY(-5px) scale(1.05);
    filter: brightness(1.1);
    cursor: default;
    transition: all 0.2s ease;
}

.timer {
    display: block;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 0;
}

#drw {
    font-family: sans-serif;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 2em;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

#time{ 
    margin-top: 2em;
}

.flip-clock-wrapper {
    transform: scale(1.3);
    background: transparent;
    margin: 20px auto;
    width: auto;
    display: inline-block;
}

.flip-clock-wrapper ul {
    background: transparent;
}

.flip-clock-wrapper ul li a div div.inn {
    background-color: rgba(0, 0, 0) !important; 
    border: 1px solid rgba(255, 215, 0, 0.5) !important;
    border-radius: 6px;
    color: #ffd700 !important; 
    text-shadow: 
        0 0 10px rgba(255, 215, 0, 0.8),
        0 0 20px rgba(255, 215, 0, 0.4) !important;
    box-shadow: inset 0 0 10px rgba(255, 215, 0, 0.1);
}

.flip-clock-dot {
    background: #ffd700 !important;
    box-shadow: 0 0 8px #ffd700;
    width: 6px; 
    height: 6px;
    left: 7px;
}

.flip-clock-divider .flip-clock-label {
    color: #d4af37 !important;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 1px;
    text-shadow: none;
    top: -1.5em;
}

.details-top {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 10px 20px;
    margin: 15px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.details-top > div {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.9rem;
    white-space: nowrap;
}

.details-top b {
    color: #ffffff;
    font-weight: 600;
    margin-left: 5px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.details-top .flag {
    height: 24px;
    width: auto;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}

.details-top .flag:hover {
    transform: scale(1.1);
}

.details-top .calendar, 
.details-top .time {
    height: 18px;
    width: auto;
    margin-right: 8px;
    filter: brightness(0) saturate(100%) invert(78%) sepia(26%) saturate(1074%) hue-rotate(359deg) brightness(103%) contrast(105%);
}

.details-bottom {
    background: transparent;
    padding: 20px 0;
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1); 
}

.details-bottom .col {
    text-align: center;
    position: relative;
    padding: 10px;
    transition: transform 0.3s ease;
}

.details-bottom .col:hover {
    transform: translateY(-5px);
}

.image-bottom {
    height: 45px;
    width: auto;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
    animation: floatIcon 3s ease-in-out infinite;
}

.details-bottom .col:nth-child(1) .image-bottom { animation-delay: 0s; }
.details-bottom .col:nth-child(2) .image-bottom { animation-delay: 1s; }
.details-bottom .col:nth-child(3) .image-bottom { animation-delay: 2s; }

.details-bottom pre {
    font-family: 'Segoe UI', Roboto, sans-serif;
    background: transparent;
    border: none;
    color: #e2e8f0;
    font-size: 0.9rem;
    white-space: normal;
    margin: 0;
    line-height: 1.4;
    overflow: hidden;
}

.details-bottom b {
    display: block;
    font-size: 1.25rem;
    margin-top: 5px;
    font-weight: 800;
    background: linear-gradient(to bottom, #fff 0%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.4));
}

footer {
    background-color: #0b0d10; 
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 0 20px 0;
    color: #8b9bb4;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    position: relative;
    z-index: 10;
}

.containerbot {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

.social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.social a {
    text-decoration: none;
    color: #8b9bb4;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.02);
}

.social img {
    width: 20px;
    height: 20px;
    opacity: 0.6;
    transition: all 0.3s ease;
    filter: grayscale(100%) brightness(1.5); 
}

.social a[href*="facebook"]:hover {
    background: rgba(24, 119, 242, 0.1);
    color: #1877f2;
    transform: translateY(-3px);
}
.social a[href*="facebook"]:hover img {
    opacity: 1;
    filter: none;
}

.social a[href*="twitter"]:hover {
    background: rgba(29, 161, 242, 0.1);
    color: #1da1f2;
    transform: translateY(-3px);
}
.social a[href*="twitter"]:hover img {
    opacity: 1;
    filter: none;
}

.social a[href*="instagram"]:hover {
    background: linear-gradient(45deg, rgba(240, 148, 51, 0.1), rgba(230, 104, 60, 0.1), rgba(220, 39, 67, 0.1), rgba(204, 35, 102, 0.1));
    color: #e1306c;
    transform: translateY(-3px);
}

.social a[href*="instagram"]:hover img {
    opacity: 1;
    filter: none;
}

.allrights {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

.allrights p {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b;
    letter-spacing: 0.5px;
}

/* ============================================================
   FULL CSS: RESPONSIVE SECTION
   ============================================================ */

@media (min-width: 576px) {
    .details-top > div:not(:last-child)::after {
        content: '';
        display: block;
        width: 1px;
        height: 15px;
        background: rgba(255, 255, 255, 0.2);
        margin-left: 20px;
    }

    .details-bottom .col:not(:last-child)::after {
        content: '';
        position: absolute;
        right: 0;
        top: 20%;
        height: 60%;
        width: 1px;
        background: linear-gradient(to bottom, transparent, rgba(255, 215, 0, 0.3), transparent);
    }
}

@media (max-width: 576px) {
    header .menu {
        justify-content: center;
        margin-top: 15px;
        margin-bottom: 10px;
    }
    
    header img.img-fluid {
        display: block;
        margin: 0 auto; 
    }

    header .menu a {
        font-size: 14px;
        margin: 0 5px;
    }

    .topBanner {
        padding: 10px;
    }

    .jackpot p:last-child {
        font-size: 1.8rem;
    }

    .details-top {
        flex-direction: column;
        border-radius: 15px;
        gap: 10px;
        padding: 15px;
    }
    
    .details-top > div {
        width: 100%;
        justify-content: flex-start;
    }

    .social {
        gap: 15px;
    }
    .social a {
        font-size: 13px;
        padding: 6px 12px;
    }
}

@media (max-width: 400px) {
    .ball {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    .winning-bottom {
        gap: 2px !important;
    }
}

@media (max-width: 576px) {
    .flip-clock-wrapper {
        transform: scale(0.6); 
        margin-top: 0;
    }
    .timer h3 {
        font-size: 1.2rem;
        margin-bottom: -10px;
    }

    .details-bottom .col {
        margin-bottom: 20px;
    }

    .details-bottom .col:first-child { 
        margin-top: 10px; 
    }

    .winning-bottom{
        gap: 6px
    }
}

/* ============================================================
   FULL CSS: ANIMATED SECTION
   ============================================================ */

@keyframes slideDownMenu {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLogo {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes shineText {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

@keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes popInBall {
    0% {
        opacity: 0;
        transform: scale(0) translateY(50px);
    }
    60% {
        transform: scale(1.1) translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}