:root {
    --primary-color: #0056b3;
    --secondary-color: #007bff;
    --accent-color: #00c4cc;
    --text-dark: #333;
    --text-light: #f4f4f4;
    --bg-color: #f8f9fa;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* Typography & Utilities */
h1, h2, h3 {
    margin-bottom: 15px;
    font-weight: 600;
}
.hidden { display: none !important; }
.block { display: block; width: 100%; }
.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.mb-15 { margin-bottom: 15px; }
.flex-row { display: flex; align-items: center; }

/* Buttons */
.btn, .btn-large, .btn-small, .btn-outline {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.btn:hover, .btn-large:hover, .btn-small:hover {
    background-color: var(--secondary-color);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.btn-large {
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 8px;
}
.btn-small {
    padding: 5px 10px;
    font-size: 14px;
}
.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}
.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}
.logo-img {
    height: 85px;
    width: auto;
    object-fit: contain;
}
.logo .slogan {
    font-size: 15px;
    color: #94a3b8;
    font-weight: 500;
    letter-spacing: 1.5px;
    border-left: 1px solid #334155;
    padding-left: 15px;
    margin-left: 5px;
}
nav a {
    text-decoration: none;
    color: var(--text-dark);
    margin: 0 15px;
    font-weight: 500;
    transition: color 0.3s;
}
nav a:hover, nav a.active {
    color: var(--primary-color);
}
.user-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}
.points-badge {
    background-color: var(--warning);
    color: #333;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: bold;
}

/* Main Content */
main {
    min-height: calc(100vh - 160px);
    padding: 40px 50px;
    max-width: 1200px;
    margin: 0 auto;
}
.page-section {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}
.page-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Home */
.hero {
    text-align: center;
    padding: 100px 20px;
    background: rgba(255,255,255,0.8);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
}
.hero h1 {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.hero p {
    font-size: 20px;
    color: #555;
    margin-bottom: 40px;
}

/* Why Choose Us */
.why-choose-us {
    margin-top: 60px;
    padding: 60px 40px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(240,248,255,0.9) 100%);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}
.why-choose-us::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=2072&auto=format&fit=crop') center/cover;
    opacity: 0.1;
    z-index: 0;
}
.why-choose-us h2 {
    text-align: center;
    font-size: 32px;
    color: #1a2b4c;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}
.features-grid {
    display: flex;
    gap: 30px;
    position: relative;
    z-index: 1;
}
.feature-item {
    flex: 1;
    background: rgba(255,255,255,0.8);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255,255,255,0.5);
}
.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.feature-icon {
    font-size: 50px;
    margin-bottom: 20px;
    color: var(--primary-color);
}
.feature-item h3 {
    font-size: 20px;
    color: #1a2b4c;
    margin-bottom: 15px;
}
.feature-item p {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
    text-align: justify;
}

/* Services */
.service-cards {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}
.card {
    background: rgba(255,255,255,0.9);
    border-radius: 15px;
    padding: 30px;
    width: calc(33.333% - 20px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    cursor: pointer;
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.card-icon {
    font-size: 40px;
    margin-bottom: 15px;
}
.price {
    font-size: 18px;
    font-weight: bold;
    color: var(--warning);
    margin: 15px 0;
}

/* Profile */
.profile-card {
    background: rgba(255,255,255,0.9);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    max-width: 600px;
}
.info-group {
    margin-bottom: 25px;
}
.info-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #555;
}
.info-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    margin-bottom: 10px;
}
.info-group input[readonly] {
    background-color: #e9ecef;
    color: #6c757d;
}
.points-display {
    display: flex;
    align-items: center;
    gap: 15px;
}
.points-display span {
    font-size: 24px;
    font-weight: bold;
    color: var(--warning);
}

/* Orders */
.order-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.order-item {
    background: rgba(255,255,255,0.9);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.order-info h4 { margin-bottom: 5px; }
.order-info p { color: #666; font-size: 14px; }
.order-status {
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
}
.status-pending { background-color: rgba(255, 193, 7, 0.2); color: #d39e00; }
.status-progress { background-color: rgba(0, 123, 255, 0.2); color: #0056b3; }
.status-completed { background-color: rgba(40, 167, 69, 0.2); color: #1e7e34; }
.status-cancelled { background-color: rgba(220, 53, 69, 0.2); color: #bd2130; }
.countdown { color: var(--danger); font-weight: bold; margin-top: 5px; font-size: 14px;}
.empty-state { text-align: center; padding: 50px; color: #999; }

/* Footer */
footer {
    background-color: #222;
    color: #ccc;
    padding: 40px 50px 20px;
    text-align: center;
}
.footer-content {
    margin-bottom: 20px;
}
.footer-content p { margin-bottom: 5px; }
.copyright {
    border-top: 1px solid #444;
    padding-top: 20px;
    font-size: 14px;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.modal.show { display: flex; }
.modal-content {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    width: 400px;
    max-width: 90%;
    position: relative;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    animation: modalSlideIn 0.3s ease;
}
.modal-content.large {
    width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}
@keyframes modalSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.close-modal {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #aaa;
}
.close-modal:hover { color: #333; }
.form-group { margin-bottom: 15px; }
.form-group input {
    width: 100%; padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
}
.code-group { display: flex; gap: 10px; }
.code-group input { flex: 1; }

/* Recharge Options */
.recharge-options {
    display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap;
}
.recharge-opt {
    flex: 1; min-width: 100px;
    padding: 15px 10px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}
.recharge-opt.active, .recharge-opt:hover {
    border-color: var(--primary-color);
    background-color: rgba(0, 86, 179, 0.05);
    color: var(--primary-color);
    font-weight: bold;
}
.payment-methods {
    display: flex; gap: 20px; margin-bottom: 20px;
}

/* DNB Form */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.form-grid .full-width { grid-column: span 2; }
.note { font-size: 14px; color: #888; margin-bottom: 20px; }

/* Customer Service Widget */
#cs-widget {
    position: fixed;
    bottom: 30px; right: 30px;
    z-index: 999;
}
.cs-icon {
    width: 60px; height: 60px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    font-size: 14px;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}
.cs-icon-emoji { font-size: 20px; margin-bottom: 2px; }
.cs-icon-text { font-weight: bold; letter-spacing: 1px; }
.cs-icon:hover { transform: scale(1.1); }
.cs-chat-box {
    position: absolute;
    bottom: 80px; right: 0;
    width: 300px; height: 400px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    display: flex; flex-direction: column;
    overflow: hidden;
}
.cs-header {
    background: var(--primary-color);
    color: white; padding: 15px;
    font-weight: bold;
    display: flex; justify-content: space-between;
}
.close-cs { cursor: pointer; }
.cs-body {
    flex: 1; padding: 15px;
    overflow-y: auto;
    background: #f9f9f9;
}
.msg {
    margin-bottom: 10px; padding: 10px;
    border-radius: 8px; max-width: 80%;
    font-size: 14px;
}
.msg.bot { background: #e9ecef; align-self: flex-start; }
.msg.user { background: var(--primary-color); color: white; align-self: flex-end; margin-left: auto; }
.cs-footer {
    display: flex; padding: 10px; border-top: 1px solid #ddd;
}
.cs-footer input {
    flex: 1; padding: 8px; border: 1px solid #ddd; border-radius: 4px;
}
.cs-footer button {
    margin-left: 10px; padding: 8px 15px;
    background: var(--primary-color); color: white;
    border: none; border-radius: 4px; cursor: pointer;
}

/* --- DARK MODE OVERRIDES & NEW SECTIONS --- */
:root {
    --primary-color: #0ea5e9;
    --secondary-color: #38bdf8;
    --accent-color: #00c4cc;
    --text-dark: #f8fafc;
    --text-light: #94a3b8;
    --bg-color: #0f172a;
    --white: #1e293b;
    --border-color: #334155;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

#bg-canvas { background: linear-gradient(135deg, #0f172a 0%, #020617 100%); }
header { background-color: rgba(15, 23, 42, 0.8); box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.logo span { color: #94a3b8; }
.hero { background: rgba(30, 41, 59, 0.7); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.hero p { color: #cbd5e1; }
.card { background: rgba(30, 41, 59, 0.8); box-shadow: 0 5px 20px rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.05); }
.profile-card { background: rgba(30, 41, 59, 0.8); box-shadow: 0 5px 20px rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.05); }
.info-group label { color: #cbd5e1; }
.info-group input { background-color: #0f172a; color: var(--text-dark); }
.info-group input[readonly] { background-color: #1e293b; color: #94a3b8; }
.order-item { background: rgba(30, 41, 59, 0.8); box-shadow: 0 2px 10px rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.05); }
.order-info p { color: #94a3b8; }
footer { background-color: #020617; color: #94a3b8; }
.copyright { border-top: 1px solid #1e293b; }

.why-choose-us { background: linear-gradient(135deg, rgba(30,41,59,0.9) 0%, rgba(15,23,42,0.9) 100%); box-shadow: 0 15px 40px rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.05); }
.why-choose-us::before { opacity: 0.15; }
.why-choose-us h2 { color: var(--text-dark); }
.feature-item { background: rgba(15, 23, 42, 0.6); border: 1px solid rgba(255,255,255,0.05); }
.feature-item h3 { color: var(--text-dark); }
.feature-item p { color: #cbd5e1; }

.form-group input { background-color: #0f172a; color: var(--text-dark); }
.note { color: #94a3b8; }
.cs-body { background: #0f172a; }
.msg.bot { background: #334155; color: #f8fafc; }
.cs-footer { border-top: 1px solid #334155; background: #1e293b; }
.cs-footer input { border: 1px solid #334155; background: #0f172a; color: var(--text-dark); }
.empty-state { color: #64748b; }

/* Top Banner */
.top-banner {
    background: url('https://images.unsplash.com/photo-1557683316-973673baf926?q=80&w=2029&auto=format&fit=crop') center/cover;
    color: white;
    padding: 12px 20px;
    text-align: center;
    position: relative;
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.top-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}
.banner-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}
.banner-tag {
    background: var(--warning);
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 12px;
}
.banner-content a { color: var(--warning); text-decoration: none; font-weight: bold; }
.banner-content a:hover { text-decoration: underline; }
.close-banner {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 20px;
    z-index: 1;
    opacity: 0.8;
}
.close-banner:hover { opacity: 1; }

/* Pricing Section */
.pricing-section {
    margin-top: 80px;
    padding-bottom: 40px;
}
.pricing-section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
}
.pricing-grid {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
}
.pricing-card {
    background: rgba(30,41,59,0.8);
    border-radius: 20px;
    padding: 40px 30px;
    width: 32%;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s;
    position: relative;
}
.pricing-card:hover { transform: translateY(-10px); }
.pricing-card.popular {
    background: linear-gradient(180deg, rgba(30,41,59,0.9) 0%, rgba(15,23,42,0.9) 100%);
    border: 1px solid var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.15);
    padding: 50px 30px;
}
.pricing-card.popular:hover { transform: scale(1.05) translateY(-10px); }
.popular-badge {
    position: absolute;
    top: 0; left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(90deg, #0ea5e9, #00c4cc);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}
.pricing-card h3 { font-size: 22px; margin-bottom: 15px; text-align: center; }
.price-amount {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
}
.price-amount span { font-size: 18px; color: var(--text-light); margin-left: 5px; }
.price-features { list-style: none; margin-bottom: 40px; }
.price-features li { margin-bottom: 15px; display: flex; align-items: center; gap: 10px; color: #cbd5e1; }
.price-features .check { color: var(--success); font-weight: bold; }

/* Success Animation */
.success-content { background: rgba(30,41,59,0.95); backdrop-filter: blur(10px); border: 1px solid var(--success); box-shadow: 0 0 30px rgba(16, 185, 129, 0.2); }
.success-animation { display: flex; justify-content: center; margin-top: 10px; margin-bottom: 20px; }
.checkmark-circle {
    width: 80px; height: 80px; position: relative; display: inline-block; vertical-align: top;
}
.checkmark-circle .background {
    width: 80px; height: 80px; border-radius: 50%; background: var(--success); position: absolute;
    animation: scale-up 0.4s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}
.checkmark.draw:after {
    animation-duration: 0.8s; animation-timing-function: ease; animation-name: checkmark; transform: scaleX(-1) rotate(135deg);
}
.checkmark:after {
    opacity: 1; height: 40px; width: 20px; transform-origin: left top; border-right: 4px solid white; border-top: 4px solid white;
    content: ''; left: 20px; top: 40px; position: absolute;
}
.text-center { text-align: center; }
@keyframes scale-up { 0% { transform: scale(0); } 100% { transform: scale(1); } }
@keyframes checkmark { 0% { height: 0; width: 0; opacity: 1; } 100% { height: 40px; width: 20px; opacity: 1; } }

/* --- RESPONSIVE DESIGN (MOBILE) --- */
@media (max-width: 768px) {
    /* Header & Nav */
    header {
        flex-direction: column;
        padding: 15px 20px;
        gap: 15px;
    }
    .logo {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    .logo .slogan {
        border-left: none;
        padding-left: 0;
        margin-left: 0;
        font-size: 13px;
        letter-spacing: 1px;
    }
    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    nav a { margin: 0 5px; font-size: 14px; }
    .user-actions { width: 100%; justify-content: center; }

    /* Main Content */
    main { padding: 20px 15px; }
    .hero { padding: 60px 15px; }
    .hero h1 { font-size: 32px; }
    .hero p { font-size: 16px; }

    /* Cards & Grids */
    .service-cards { flex-direction: column; }
    .card { width: 100%; }
    .features-grid { flex-direction: column; }
    .pricing-grid { flex-direction: column; }
    .pricing-card { width: 100%; }
    .pricing-card.popular { transform: none; padding: 40px 30px; }
    .pricing-card.popular:hover { transform: translateY(-5px); }

    /* Forms & Modals */
    .form-grid { grid-template-columns: 1fr; }
    .form-grid .full-width { grid-column: span 1; }
    .modal-content { padding: 20px; width: 95%; }
    .modal-content.large { width: 95%; padding: 15px; }
    
    /* Customer Service Widget */
    .cs-chat-box { width: calc(100vw - 40px); right: -10px; bottom: 70px; }
    
    /* Top Banner */
    .banner-content { flex-direction: column; gap: 5px; padding-right: 20px; }
    .banner-content span { text-align: center; }
    .close-banner { top: 10px; transform: none; right: 10px; }
    
    /* Orders */
    .order-item { flex-direction: column; align-items: flex-start; gap: 15px; }
    .order-actions { width: 100%; display: flex; justify-content: space-between; align-items: center; }
}
