/* ==========================================
   SHERATOPUP মেইন স্টাইলশিট (প্রিমিয়াম লাইট গ্রিন থিম - ১০০% ভিজিবিলিটি ফিক্স)
   ========================================== */

:root {
    --primary: #10b981; /* ভাইব্রেন্ট এমারেল্ড গ্রিন অ্যাকসেন্ট */
    --primary-hover: #059669; /* গাঢ় গ্রিন */
    --dark: #0f172a; /* ডার্ক চারকোল টেক্সট কালার (যা সব লেখা স্পষ্ট দেখাবে) */
    --light: #f8fafc; /* সফট ব্যাকগ্রাউন্ড */
    --gray: #64748b; /* হালকা টেক্সট */
    --border: #e2e8f0; /* বর্ডার */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    padding-bottom: 80px; /* mobile bottom nav padding */
}

a {
    text-decoration: none;
    color: inherit;
}

/* হেডার এবং নেভিগেশন বার (Header & Navbar) */
.navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--dark);
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 100%;
}

/* লোগো ব্লেন্ডিং এবং অটো-ফিট */
.logo img {
    height: 35px;
    max-height: 35px;
    width: auto;
    display: block;
    object-fit: contain;
    mix-blend-mode: multiply; /* লোগোর হোয়াইট ব্যাকগ্রাউন্ড স্বয়ংক্রিয়ভাবে ব্যানিশ করার জন্য */
}

.logo-accent {
    color: var(--primary);
}

.nav-right {
    display: flex;
    align-items: center;
}

.login-btn {
    background-color: var(--primary);
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-btn:hover {
    background-color: var(--primary-hover);
}

.user-wallet-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.balance-amount {
    background-color: #e6fbf4; /* হালকা গ্রিন ব্যাকগ্রাউন্ড */
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.avatar-circle {
    width: 38px;
    height: 38px;
    background-color: var(--dark);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
}

/* নোটিশ বার (Notice Bar) */
.notice-bar {
    background-color: var(--primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    font-size: 14px;
    border-radius: 8px;
}

.notice-title {
    font-weight: 800;
    background-color: #ffffff;
    color: var(--primary);
    padding: 3px 8px;
    border-radius: 4px;
    margin-right: 15px;
    white-space: nowrap;
}

.notice-text {
    flex-grow: 1;
    overflow: hidden;
}

/* ব্যানার স্লাইডার (Banner Slider) */
.banner-slider {
    width: 100%;
    max-width: 1200px;
    margin: 15px auto;
}

.slide img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* স্পেশাল অফার এবং টাইমার (Special Offer) */
.special-offer-section {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
}

.section-title-wrapper {
    text-align: center;
    margin-bottom: 15px;
    position: relative;
}

.section-title-wrapper::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background-color: var(--border);
    z-index: 1;
}

.section-title {
    background-color: var(--light);
    padding: 0 15px;
    font-weight: 800;
    color: var(--dark);
    font-size: 18px;
    position: relative;
    z-index: 2;
    text-transform: uppercase;
}

.countdown-timer {
    background-color: #ff9800;
    color: #ffffff;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(255, 152, 0, 0.2);
}

.timer-boxes {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 18px;
}

.time-box {
    background-color: #ffffff;
    color: #ff9800;
    padding: 4px 8px;
    border-radius: 4px;
    min-width: 35px;
    text-align: center;
}

/* কন্টেইনার এবং গ্রিড লেআউট (Container & Grid) */
.container {
    max-width: 1200px;
    margin: 25px auto;
    padding: 0 15px;
}

.category-header {
    font-size: 18px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 4px solid var(--primary);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
}

@media (max-width: 480px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr); /* মোবাইলে পাশাপাশি ২টি কার্ড দেখাবে */
        gap: 10px;
    }
}

/* ক্যাটাগরি কার্ড ডিজাইন (Category Card) */
.category-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid var(--border);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.1);
}

.card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: var(--primary);
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    padding: 3px 6px;
    border-radius: 4px;
    z-index: 5;
    letter-spacing: 0.5px;
}

.card-badge.social-badge {
    background-color: #0052cc;
}

.card-img {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    background-color: #f1f5f9;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-info {
    padding: 10px;
    text-align: center;
}

.card-info h3 {
    font-size: 13px;
    font-weight: 700;
    color: var(--dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ফুটার এরিয়া (Footer) */
.footer-area {
    background-color: var(--dark);
    color: #94a3b8;
    padding: 30px 15px;
    margin-top: 50px;
    text-align: center;
    border-top: 4px solid var(--primary);
}

.copyright-text {
    font-size: 13px;
}

/* ডাইনামিক বটম নেভিগেশন (Mobile Bottom Navigation) */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    border-top: 1px solid var(--border);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--gray);
    font-size: 10px;
    font-weight: 600;
    gap: 4px;
}

.nav-item i {
    font-size: 18px;
}

.nav-item.active {
    color: var(--primary);
}

@media (max-width: 768px) {
    .bottom-nav {
        display: flex; /* শুধুমাত্র মোবাইল ও ট্যাবে বটম নেভ দেখাবে */
    }
    .footer-area {
        padding-bottom: 50px; /* নেভিগেশনের জন্য ফুটারে এক্সট্রা প্যাডিং */
    }
}

.no-data {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--gray);
    padding: 20px;
    font-size: 14px;
}

/* ==========================================
   অথরাইজেশন পেজ ডিজাইন (Login & Register)
   ========================================== */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}
.auth-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--border);
}
.auth-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--dark);
}
.btn-google-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    background: #ffffff;
    transition: background 0.3s;
}
.btn-google-login:hover {
    background: #f8fafc;
}
.auth-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}
.auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: var(--border);
}
.auth-divider span {
    background: #ffffff;
    padding: 0 10px;
    font-size: 11px;
    color: var(--gray);
    position: relative;
    z-index: 5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.auth-input-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.auth-input-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
}
.auth-input-group input {
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}
.auth-input-group input:focus {
    border-color: var(--primary);
}
.btn-auth-submit {
    width: 100%;
    padding: 12px;
    background-color: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}
.btn-auth-submit:hover {
    background-color: var(--primary-hover);
}
.auth-footer-text {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--gray);
}
.auth-footer-text a {
    color: var(--primary);
    font-weight: 600;
}
.auth-alert {
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
}
.auth-alert.error {
    background-color: #fee2e2;
    color: #ef4444;
}

/* ==========================================
   ডাইনামিক টপ-আপ পেজ ডিজাইন (Top Up Page Elements)
   ========================================== */
.topup-wrapper {
    max-width: 800px;
    margin: 20px auto;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.topup-card-header {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.topup-header-img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
}

.topup-header-info h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--dark);
}

.topup-header-info p {
    font-size: 12px;
    color: var(--gray);
}

.topup-section {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.topup-section-title {
    background: #ffffff;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
}

.step-num {
    background-color: var(--primary);
    color: #ffffff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
}

.topup-section-body {
    padding: 20px;
}

/* packages-grid */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (max-width: 480px) {
    .packages-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

.package-option {
    position: relative;
    cursor: pointer;
}

.package-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.package-card-box {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.2s ease;
    background: #ffffff;
}

.package-option:hover .package-card-box {
    border-color: var(--primary);
    background-color: #fffafc;
}

.package-option input[type="radio"]:checked + .package-card-box {
    border-color: var(--primary);
    background-color: #fdf2f8;
    box-shadow: 0 0 0 1px var(--primary);
}

.pkg-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 5px;
}

.pkg-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
}

/* ইনপুট ফিল্ড ও চেক বাটন (Inputs) */
.input-field-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-field-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.input-field-group input:focus {
    border-color: var(--primary);
}

/* পেমেন্ট অপশন গ্রিড (Payment Grid) */
.payment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.payment-option {
    position: relative;
    cursor: pointer;
}

.payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.payment-card-box {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    transition: all 0.2s;
    text-align: center;
}

.payment-card-box img {
    height: 35px;
    max-width: 100%;
    object-fit: contain;
}

.payment-option input[type="radio"]:checked + .payment-card-box {
    border-color: var(--primary);
    background-color: #fdf2f8;
    box-shadow: 0 0 0 1px var(--primary);
}

.pay-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--dark);
}

.pay-subtitle {
    font-size: 11px;
    color: var(--gray);
}

/* সাবমিট ও তথ্য এরিয়া */
.order-summary-box {
    padding: 15px 20px;
    background-color: #f8fafc;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
}

.summary-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
}

.btn-buy-now {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
}

.btn-buy-now:hover {
    background-color: var(--primary-hover);
}

.rules-container {
    background-color: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    font-size: 13px;
    color: var(--gray);
}

.rules-title {
    font-weight: 800;
    font-size: 14px;
    color: var(--dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rules-list {
    padding-left: 15px;
}

.rules-list li {
    margin-bottom: 8px;
    line-height: 1.5;
}
