/* Global variables */
:root {
    --bs-font-sans-serif: 'Poppins', sans-serif;
    --primary-color: #4e54c8;
    --secondary-color: #8f94fb;
    --dark-bg: #1a1a2e;
    --gold: #ffd700;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

body {
    font-family: var(--bs-font-sans-serif);
    overflow-x: hidden;
    padding-top: 70px;
    /* Account for fixed navbar */
}

/* Typography Polish */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
}

.text-gold {
    color: var(--gold);
}

.text-gradient-gold {
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ls-1 {
    letter-spacing: 1px;
}

.ls-2 {
    letter-spacing: 2px;
}

/* Navigation */
.glass-nav {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(46, 49, 146, 0.9) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 193, 7, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.75rem 0;
}

.glass-nav.shadow-sm {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.98) 0%, rgba(46, 49, 146, 0.95) 100%);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5);
}

/* Navbar Brand */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: translateY(-2px);
}

/* Header Logo */
.header-logo {
    height: 50px;
    width: auto;
    margin-right: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 8px rgba(255, 193, 7, 0.3));
}

.header-logo:hover {
    transform: scale(1.08) rotate(2deg);
    filter: drop-shadow(0 4px 12px rgba(255, 193, 7, 0.5));
}

/* Navigation Links */
.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ffc107, #ffaa00);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #ffc107;
    background: rgba(255, 193, 7, 0.1);
    transform: translateY(-2px);
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
    width: 80%;
}

/* Countdown Timer Glow Animation */
@keyframes glow-pulse {

    0%,
    100% {
        text-shadow: 0 0 10px rgba(255, 193, 7, 0.5), 0 0 20px rgba(255, 193, 7, 0.3);
    }

    50% {
        text-shadow: 0 0 15px rgba(255, 193, 7, 0.7), 0 0 30px rgba(255, 193, 7, 0.5), 0 0 40px rgba(255, 193, 7, 0.3);
    }
}


/* Check Result Button */
.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ffaa00 100%);
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.65rem 1.75rem;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-warning::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-warning:hover::before {
    width: 300px;
    height: 300px;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #ffaa00 0%, #ffc107 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 193, 7, 0.6);
}

.btn-warning:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(255, 193, 7, 0.5);
}

/* Mobile Responsive */
@media (max-width: 991px) {
    body {
        padding-top: 60px;
        /* Smaller navbar on tablets */
    }

    .header-logo {
        height: 38px;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    .next-draw-timer {
        display: none !important;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        margin: 0.25rem 0;
    }

    .btn-warning {
        width: 100%;
        margin-top: 1rem;
    }
}

@media (max-width: 767px) {
    body {
        padding-top: 56px;
        /* Smaller navbar on mobile */
    }
}


/* ========================================
   Hero Section - Responsive Design
   ======================================== */

/* Base Hero Section */
#hero {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    min-height: 70vh;
    height: auto;
    overflow: hidden;
    margin: 0;
    padding: 0;
    margin-left: calc(-50vw + 50%);
}

#heroCarousel {
    width: 100vw;
    max-width: 100vw;
    min-height: 70vh;
    height: 100%;
    margin: 0;
    padding: 0;
}

#heroCarousel .carousel-inner {
    width: 100vw;
    max-width: 100vw;
    min-height: 70vh;
    height: 100%;
    margin: 0;
    padding: 0;
}

#heroCarousel .carousel-item {
    width: 100vw;
    max-width: 100vw;
    min-height: 70vh;
    height: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* Hero Images - Responsive Background */
.hero-img {
    width: 100vw;
    height: 100%;
    min-height: 70vh;
    object-fit: cover;
    object-position: center;
    background-size: cover;
    background-position: center;
}

/* Picture element for WebP fallback */
#heroCarousel .carousel-item picture {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    min-height: 70vh;
}

#heroCarousel .carousel-item picture img {
    display: block;
    width: 100vw;
    height: 100%;
    min-height: 70vh;
    object-fit: cover;
    object-position: center;
    background-size: cover;
    background-position: center;
}

/* Hero Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

/* Hero Caption - Flexbox Centering */
#heroCarousel .carousel-caption {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Text Shadow */
.text-shadow-strong {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Desktop Styles (>992px) */
@media (min-width: 992px) {

    #hero,
    #heroCarousel,
    #heroCarousel .carousel-inner,
    #heroCarousel .carousel-item {
        min-height: 75vh;
    }

    #heroCarousel .carousel-caption h2 {
        font-size: 3rem;
        margin-bottom: 2rem;
    }

    #heroCarousel .carousel-caption .btn {
        font-size: 1.1rem;
        padding: 0.75rem 2.5rem;
    }
}

/* Tablet Styles (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {

    #hero,
    #heroCarousel,
    #heroCarousel .carousel-inner,
    #heroCarousel .carousel-item {
        min-height: 65vh;
    }

    #heroCarousel .carousel-caption {
        padding: 1.5rem 1rem;
    }

    #heroCarousel .carousel-caption h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    #heroCarousel .carousel-caption .btn,
    #heroCarousel .carousel-caption .btn-lg,
    #heroCarousel .carousel-caption .btn-warning {
        font-size: 0.95rem !important;
        padding: 0.6rem 1.5rem !important;
        letter-spacing: 0.5px;
    }
}

/* Mobile Styles (481px - 767px) */
@media (max-width: 767px) {

    #hero,
    #heroCarousel,
    #heroCarousel .carousel-inner,
    #heroCarousel .carousel-item {
        min-height: 60vh;
    }

    #heroCarousel .carousel-caption {
        padding: 1rem 0.75rem;
    }

    #heroCarousel .carousel-caption h2 {
        font-size: 1.5rem;
        margin-bottom: 1.25rem !important;
        line-height: 1.3;
    }

    /* Smaller Check Result button in hero */
    #heroCarousel .carousel-caption .btn,
    #heroCarousel .carousel-caption .btn-lg,
    #heroCarousel .carousel-caption .btn-warning {
        font-size: 0.85rem !important;
        padding: 0.5rem 1rem !important;
        letter-spacing: 0.5px !important;
        text-transform: uppercase;
    }

    /* Hide "Mega Draw" text on mobile, keep only "KL" */
    .navbar-brand span {
        display: none;
    }

    .navbar-brand .text-warning {
        display: inline !important;
    }
}

/* Extra Small Mobile (≤480px) */
@media (max-width: 480px) {

    #hero,
    #heroCarousel,
    #heroCarousel .carousel-inner,
    #heroCarousel .carousel-item {
        min-height: 55vh;
    }

    #heroCarousel .carousel-caption {
        padding: 0.75rem 0.5rem;
    }

    #heroCarousel .carousel-caption h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem !important;
        line-height: 1.2;
    }

    /* Even smaller button for extra small screens */
    #heroCarousel .carousel-caption .btn,
    #heroCarousel .carousel-caption .btn-lg,
    #heroCarousel .carousel-caption .btn-warning {
        font-size: 0.75rem !important;
        padding: 0.45rem 0.9rem !important;
        letter-spacing: 0.3px !important;
    }
}

/* Landscape Mobile Optimization */
@media (max-width: 767px) and (orientation: landscape) {

    #hero,
    #heroCarousel,
    #heroCarousel .carousel-inner,
    #heroCarousel .carousel-item {
        min-height: 85vh;
    }

    #heroCarousel .carousel-caption {
        padding: 0.5rem;
    }

    #heroCarousel .carousel-caption h2 {
        font-size: 1.3rem;
        margin-bottom: 0.75rem !important;
    }

    #heroCarousel .carousel-caption .btn {
        font-size: 0.8rem !important;
        padding: 0.4rem 0.8rem !important;
    }
}

/* Animations */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease-out forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glassmorphism Logic */
.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

.backdrop-blur {
    backdrop-filter: blur(5px);
}

/* Winner Grid Styles */
.winner-card {
    background: #fdfdfd;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.winner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.winner-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center top;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.winner-card:hover .winner-img {
    transform: scale(1.05);
}

/* Prize Label Styling */
.prize-label {
    background: linear-gradient(to right, #ffeaa7, #fab1a0);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: bold;
    color: #333;
    display: inline-block;
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(255, 170, 0, 0.3);
    transition: all 0.3s ease;
}

.winner-card:hover .prize-label {
    transform: scale(1.05);
    box-shadow: 0 3px 12px rgba(255, 170, 0, 0.4);
}

/* Winner Caption Styling */
.winner-caption {
    font-style: italic;
    color: #007bff;
    font-weight: 500;
    margin-top: 10px;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Specific adjustment for mobile */
@media (max-width: 768px) {
    .winner-card {
        padding: 15px;
    }

    .winner-img {
        height: 180px;
    }

    .prize-label {
        font-size: 0.85rem;
        padding: 6px 12px;
    }

    .winner-caption {
        font-size: 0.85rem;
        margin-top: 8px;
    }
}

/* Prize Card Styles */
.prize-card {
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.prize-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.prize-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.prize-card:hover::before {
    opacity: 1;
}

.prize-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.prize-tier {
    color: #2d3436;
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.prize-amount {
    font-weight: bold;
    font-size: 1.5rem;
    color: #0984e3;
    margin-bottom: 5px;
}

.prize-subtitle {
    font-size: 0.9rem;
    color: #636e72;
    font-weight: 500;
}

.prize-winners {
    font-size: 0.95rem;
    color: #636e72;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 10px;
}

.prize-winners i {
    color: #00b894;
}

/* Responsive adjustments for prize cards */
@media (max-width: 768px) {
    .prize-card {
        padding: 25px 15px;
    }

    .prize-icon {
        font-size: 40px;
        margin-bottom: 12px;
    }

    .prize-tier {
        font-size: 1.1rem;
    }

    .prize-amount {
        font-size: 1.3rem;
    }

    .prize-subtitle {
        font-size: 0.85rem;
    }

    .prize-winners {
        font-size: 0.9rem;
    }
}


/* Helpers */
.py-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.mw-600 {
    max-width: 600px;
}

.alpha-50 {
    opacity: 0.5;
}

/* Footer */
footer {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/worldmap-footer.svg') no-repeat center;
    background-size: cover;
    color: white;
    padding: 60px 0 20px 0;
    position: relative;
    z-index: 10;
}

.social-link {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    color: white;
    border-color: var(--primary-color);
}

footer h6 {
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

footer ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

footer ul li a:hover {
    color: white;
    padding-left: 5px;
}

.hover-white:hover {
    color: white !important;
}

/* Footer Contact Styling */
.footer-contact {
    font-size: 14px;
    line-height: 1.6;
}

.footer-contact strong {
    display: inline-block;
    margin-bottom: 4px;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.footer-contact li {
    align-items: flex-start;
}

.footer-contact i {
    margin-top: 2px;
    flex-shrink: 0;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .display-3 {
        font-size: 2.5rem;
    }

    .py-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .hero-bg {
        background-position: center top;
    }

    .mobile-th {
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }
}


/* About Section Styles */
.about-img-wrapper {
    perspective: 1000px;
}

.about-backdrop {
    z-index: 1;
    transform: rotate(3deg) scale(0.95);
    background: linear-gradient(135deg, rgba(78, 84, 200, 0.1) 0%, rgba(143, 148, 251, 0.1) 100%);
    transition: all 0.5s ease;
}

.about-img-wrapper:hover .about-backdrop {
    transform: rotate(5deg) scale(1);
    background: linear-gradient(135deg, rgba(78, 84, 200, 0.2) 0%, rgba(143, 148, 251, 0.2) 100%);
}

/* Ensure image appears above the backdrop */
.about-jackpot-img {
    z-index: 2;
    position: relative;
}

.glass-float-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10;
    min-width: 200px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* About Content Styling */
.about-content {
    font-size: 16px;
    line-height: 1.7;
}

.about-content p {
    text-align: justify;
    color: #2d3436;
}

.about-jackpot-img {
    object-fit: cover;
    max-height: 500px;
}

@media (max-width: 768px) {
    .about-content {
        font-size: 15px;
        line-height: 1.6;
    }

    .about-jackpot-img {
        max-height: 350px;
    }
}

/* Hover Effects */
.hover-scale {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-scale:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
}

.hover-elevate {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.hover-elevate:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.transition-all {
    transition: all 0.3s ease;
}

/* Custom Shadow */
.shadow-warning {
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

/* Form Styles */
.form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
    background-color: #fff;
}

.input-group-text {
    color: var(--primary-color);
}

/* Disclaimer Box Styling */
.disclaimer-box {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    font-size: 15px;
    color: #2d3436;
    line-height: 1.6;
}

.disclaimer-box h4 {
    font-weight: bold;
    margin-bottom: 15px;
    color: #d63031;
    font-size: 1.1rem;
}

.disclaimer-box p {
    margin-bottom: 10px;
}

.disclaimer-box i {
    color: #d63031;
}

@media (max-width: 768px) {
    .disclaimer-box {
        padding: 15px;
        font-size: 14px;
    }

    .disclaimer-box h4 {
        font-size: 1rem;
    }
}

/* ========================================
   Countdown Timer - Responsive Styles
   ======================================== */

/* Base timer styles */
.next-draw-timer {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 193, 7, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    min-width: 140px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}


.next-draw-timer:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 193, 7, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.next-draw-timer small {
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.95;
    margin-bottom: 2px;
}

.countdown-display {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffc107;
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.5), 0 0 20px rgba(255, 193, 7, 0.3);
    font-family: 'Courier New', monospace;
    text-align: center;
    animation: glow-pulse 2s ease-in-out infinite;
    display: block !important;
    visibility: visible !important;
}

/* Also style #countdown for compatibility */
#countdown {
    color: #ffc107;
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.5), 0 0 20px rgba(255, 193, 7, 0.3);
    animation: glow-pulse 2s ease-in-out infinite;
}


/* Desktop styles (>= 992px) */
@media (min-width: 992px) {
    .next-draw-timer {
        padding: 10px 20px;
        min-width: 160px;
    }

    .next-draw-timer small {
        font-size: 0.75rem;
    }

    .countdown-display {
        font-size: 1.25rem;
        text-align: left;
    }
}

/* Tablet styles (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .next-draw-timer {
        padding: 8px 14px;
        min-width: 130px;
    }

    .next-draw-timer small {
        font-size: 0.65rem;
    }

    .countdown-display {
        font-size: 1rem;
    }
}

/* Mobile styles (< 768px) */
@media (max-width: 767px) {
    .next-draw-timer {
        padding: 6px 12px;
        min-width: 120px;
        margin: 0 auto;
    }

    .next-draw-timer small {
        font-size: 0.6rem;
        margin-bottom: 1px;
    }

    .countdown-display {
        font-size: 0.95rem;
        letter-spacing: 0.5px;
    }

    /* Ensure timer and button stack nicely on mobile */
    .navbar-nav+div {
        width: 100%;
        margin-top: 0.75rem;
        padding: 0 1rem;
    }

    /* Mobile timer - compact version */
    .mobile-timer {
        padding: 4px 8px !important;
        min-width: 90px !important;
        margin: 0 !important;
    }

    .mobile-timer small {
        font-size: 0.5rem !important;
        margin-bottom: 0 !important;
        line-height: 1.2;
    }

    .mobile-timer .countdown-display {
        font-size: 0.75rem !important;
        letter-spacing: 0.3px !important;
        line-height: 1.2;
    }
}

/* Small mobile (< 576px) */
@media (max-width: 575px) {
    .next-draw-timer {
        padding: 5px 10px;
        min-width: 110px;
    }

    .next-draw-timer small {
        font-size: 0.55rem;
    }

    .countdown-display {
        font-size: 0.85rem;
    }
}

/* Extra small mobile (< 400px) */
@media (max-width: 399px) {
    .next-draw-timer {
        padding: 4px 8px;
        min-width: 100px;
    }

    .next-draw-timer small {
        font-size: 0.5rem;
    }

    .countdown-display {
        font-size: 0.75rem;
        letter-spacing: 0.3px;
    }
}

/* Landscape mobile orientation */
@media (max-width: 767px) and (orientation: landscape) {
    .next-draw-timer {
        padding: 4px 10px;
        min-width: 100px;
    }

    .next-draw-timer small {
        font-size: 0.55rem;
    }

    .countdown-display {
        font-size: 0.8rem;
    }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .countdown-display {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Accessibility - Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .next-draw-timer {
        transition: none;
    }

    .next-draw-timer:hover {
        transform: none;
    }
}

/* Blinking Live Now */
@keyframes blinker {
  50% { opacity: 0; }
}
.blinking-red {
  color: red;
  font-weight: 800;
  animation: blinker 1s linear infinite;
  text-align: center;
  font-size: 3rem;
}