/* 1. Global & Reset */
html { scroll-behavior: smooth; }
body { 
    font-family: 'Hind Siliguri', 'Anek Bangla', sans-serif; 
    background-color: #f0f2f5; 
    color: #333; 
    overflow-x: hidden;
}

/* 2. Navbar Styling */
.navbar { 
    background: linear-gradient(90deg, #0f2027 0%, #203a43 50%, #2c5364 100%); 
    box-shadow: 0 4px 15px rgba(0,0,0,0.3); 
    padding: 10px 0; 
}
.navbar-brand { font-size: 1.5rem; font-weight: 800; letter-spacing: 1px; }
.nav-link { font-weight: 600; color: #fff !important; margin: 0 8px; transition: 0.3s; }
.nav-link:hover { color: #ffc107 !important; }

/* স্মার্ট টোগলার আইকন */
.custom-toggler-icon { width: 25px; display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }
.custom-toggler-icon span { display: block; width: 100%; height: 2px; background-color: #ffc107; transition: 0.3s; border-radius: 2px; }
.custom-toggler-icon span.short { width: 70%; }

/* 3. Hero & Slider Section (Mobile Optimized) */
.hero-slider-container { height: 500px; overflow: hidden; position: relative; }
.carousel-item { height: 500px; background-size: cover !important; background-position: center !important; }

.carousel-caption { bottom: 20% !important; z-index: 10; }
.carousel-caption h1 { font-size: 3rem; font-weight: 800; text-shadow: 2px 2px 10px rgba(0,0,0,0.5); }

@media (max-width: 768px) {
    .hero-slider-container, .carousel-item { height: 400px; }
    .carousel-caption h1 { font-size: 1.8rem; }
    .carousel-caption p { font-size: 1rem; }
    .carousel-caption .btn { padding: 8px 20px; font-size: 14px; }
}

/* 4. Section Global Styling */
section { padding: 60px 0; }
.section-title { font-size: 2rem; font-weight: 700; margin-bottom: 40px; text-align: center; position: relative; }
.section-title::after { 
    content: ''; position: absolute; bottom: -10px; left: 50%; 
    transform: translateX(-50%); width: 60px; height: 4px; background: #ffc107; border-radius: 5px; 
}

/* 5. Lottery Cards */
.lottery-card { border: none; border-radius: 20px; transition: 0.4s; background: #fff; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); height: 100%; }
.lottery-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.card-header-main { padding: 20px; font-size: 1.2rem; font-weight: 700; text-align: center; }

.bg-gold { background: linear-gradient(45deg, #fbc2eb 0%, #a6c1ee 100%); color: #000; }
.bg-mega { background: linear-gradient(45deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%); color: #000; }

/* 6. Results Table (Responsive Fix) */
.results-container { background: #fff; border-radius: 15px; padding: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.table-responsive { border-radius: 10px; overflow: hidden; }

@media (max-width: 768px) {
    .table thead { display: none; }
    .table tr { display: block; border: 1px solid #eee; margin-bottom: 15px; border-radius: 10px; padding: 10px; }
    .table td { display: flex; justify-content: space-between; text-align: right; border: none; padding: 8px 5px; font-size: 14px; }
    .table td::before { content: attr(data-label); font-weight: bold; text-align: left; color: #555; }
}

/* 7. Step Box & Offers */
.step-box { background: white; padding: 30px; border-radius: 20px; position: relative; transition: 0.3s; margin-top: 20px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.step-number { 
    position: absolute; top: -15px; left: 50%; transform: translateX(-50%); 
    width: 40px; height: 40px; background: #ffc107; color: #000; 
    font-size: 1.2rem; font-weight: 800; border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; 
}

.offer-card { background: #fff; border-radius: 15px; overflow: hidden; display: flex; box-shadow: 0 5px 15px rgba(0,0,0,0.05); border-left: 6px solid #ffc107; margin-bottom: 20px; }
.offer-icon { background: #fff9e6; padding: 20px; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: #ffc107; min-width: 80px; }

/* 8. Auth (Login/Signup) Styling - গ্লাস মরফিজম মোবাইল ফিক্স */
.auth-wrapper { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.auth-card { background: white; border-radius: 20px; box-shadow: 0 15px 45px rgba(0,0,0,0.1); width: 100%; max-width: 900px; overflow: hidden; }

@media (max-width: 768px) {
    body.auth-page {
        background: radial-gradient(at 0% 0%, hsla(253,16%,7%,1) 0, transparent 50%), 
                    radial-gradient(at 50% 0%, hsla(225,39%,30%,1) 0, transparent 50%) !important;
        background-color: #050505 !important;
    }
    .auth-card { 
        background: rgba(255, 255, 255, 0.08) !important; 
        backdrop-filter: blur(15px); 
        border: 1px solid rgba(255, 255, 255, 0.1); 
        color: white; padding: 30px 15px !important;
    }
    .auth-image-side { display: none; } /* মোবাইলে ইমেজ সাইড হাইড */
    .brand-logo { color: #ffc107 !important; }
}

.btn-auth { background: linear-gradient(90deg, #0f2027, #2c5364); color: white; border: none; padding: 12px; border-radius: 10px; font-weight: 700; width: 100%; transition: 0.3s; }
.btn-auth:hover { background: #ffc107; color: #000; }

/* 9. Footer */
.footer { background: #0b0d17; color: #aeb0b4; padding: 60px 0 30px; }
.footer h4 { color: #fff; margin-bottom: 20px; }
.footer-link { color: #aeb0b4; text-decoration: none; display: block; margin-bottom: 10px; transition: 0.3s; }
.footer-link:hover { color: #ffc107; padding-left: 5px; }

.social-icons a { font-size: 1.5rem; margin-right: 15px; color: #fff; transition: 0.3s; display: inline-block; }
.social-icons a:hover { transform: translateY(-5px); color: #ffc107; }

/* Utils */
.mt-n10 { margin-top: -10px !important; }
.logo-divider { width: 50px; height: 3px; background: #ffc107; margin: 10px auto 25px; }