:root {
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.15);
    --text-white: #ffffff;
    --accent-color: #8a2be2;
    --success-green: #00e676;
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

body {
    overflow-y: auto !important; /* Override style.css overflow hidden */
    display: block !important;
}

.dashboard-container {
    max-width: 1200px;
    margin: 80px auto 40px;
    padding: 20px;
    animation: fadeIn 0.8s ease-out;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    background: rgba(26, 11, 46, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

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

.profile-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.profile-circle:hover {
    transform: scale(1.1);
    border-color: white;
    box-shadow: 0 0 15px var(--accent-color);
}

/* --- Glass Card Base --- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--card-shadow);
    color: white;
}

/* --- Balance Section --- */
.balance-section {
    margin-bottom: 40px;
}

.balance-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2), rgba(74, 29, 150, 0.2));
}

.balance-info h3 {
    font-weight: 300;
    font-size: 1rem;
    opacity: 0.8;
}

.balance-info h1 {
    font-size: 3rem;
    margin: 10px 0;
    font-weight: 700;
    color: var(--success-green);
}

.balance-actions {
    display: flex;
    gap: 15px;
}

.action-btn {
    padding: 12px 25px;
    border-radius: 12px;
    border: none;
    background: white;
    color: #1a0b2e;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn.secondary {
    background: var(--glass-bg);
    color: white;
    border: 1px solid var(--glass-border);
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* --- Offers Section --- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.view-all {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.offer-card {
    position: relative;
    text-align: center;
    transition: all 0.3s ease;
    overflow: hidden;
}

.offer-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.4);
}

.offer-badge {
    position: absolute;
    top: 15px;
    right: -30px;
    background: var(--accent-color);
    padding: 5px 35px;
    transform: rotate(45deg);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.offer-badge.promo {
    background: #ff9800;
}

.offer-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.offer-icon.data { background: rgba(0, 230, 118, 0.2); color: #00e676; }
.offer-icon.voice { background: rgba(33, 150, 243, 0.2); color: #2196f3; }
.offer-icon.combo { background: rgba(255, 152, 0, 0.2); color: #ff9800; }

.offer-card h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.offer-validity, .offer-desc {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 15px;
}

.offer-price {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.buy-btn {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.buy-btn:hover {
    background: white;
    color: #1a0b2e;
}

/* --- Profile Dropdown --- */
.profile-dropdown {
    position: fixed;
    top: 80px;
    right: 40px;
    width: 300px;
    z-index: 1001;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hidden {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
    pointer-events: none;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.profile-details h4 {
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.profile-details p {
    font-size: 0.8rem;
    opacity: 0.7;
}

.divider {
    border: 0;
    height: 1px;
    background: var(--glass-border);
    margin: 15px 0;
}

.profile-menu {
    list-style: none;
}

.profile-menu li {
    padding: 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-menu li:hover {
    background: rgba(255, 255, 255, 0.1);
}

.profile-menu li.logout {
    color: #ff5252;
}

/* --- Modal Styles --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.modal-content {
    width: 90%;
    max-width: 450px;
    padding: 30px;
    position: relative;
    animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.close-modal {
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.close-modal:hover {
    opacity: 1;
}

.input-with-icon {
    position: relative;
    margin-top: 8px;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.6;
}

.input-with-icon input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    outline: none;
}

/* --- Payment Methods --- */
.payment-methods {
    margin: 25px 0;
}

.method-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.method-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.method-item img {
    height: 40px;
    object-fit: contain;
}

.method-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
}

.method-item.selected {
    border-color: var(--accent-color);
    background: rgba(138, 43, 226, 0.2);
    box-shadow: 0 0 15px var(--accent-color);
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

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

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .balance-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .navbar {
        padding: 0 20px;
    }
    
    .profile-dropdown {
        right: 20px;
        width: calc(100% - 40px);
    }

    .method-grid {
        grid-template-columns: 1fr;
    }
}
