/* ==================== BALANCE PAGE STYLES ==================== */
.balance-section {
    min-height: 100vh;
    padding: 140px 0 80px 0;
    position: relative;
    z-index: 1;
}

.balance-header {
    text-align: center;
    margin-bottom: 40px;
}

.balance-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.balance-title i {
    color: var(--accent);
    -webkit-text-fill-color: var(--accent);
}

.balance-subtitle {
    color: var(--text-secondary);
    font-size: 18px;
}

/* Balance Card */
.balance-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.balance-amount-section {
    flex: 1;
}

.balance-label {
    color: var(--text-secondary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.balance-amount {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.balance-currency {
    color: var(--text-secondary);
    font-size: 14px;
}

.btn-recharge-main {
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-recharge-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.5);
}

/* History Sections */
.balance-history-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--accent);
}

.history-list {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    min-height: 200px;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease;
}

.history-item:last-child {
    border-bottom: none;
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.history-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.history-icon.success {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.history-icon.pending {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.history-icon.failed {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.history-details {
    flex: 1;
}

.history-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.history-date {
    font-size: 14px;
    color: var(--text-secondary);
}

.history-amount {
    font-size: 20px;
    font-weight: 700;
}

.history-amount.success {
    color: #22c55e;
}

.history-amount.pending {
    color: #fbbf24;
}

.history-amount.failed {
    color: #ef4444;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 16px;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.loading-state i {
    font-size: 32px;
    margin-bottom: 15px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 16px;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group small {
    display: block;
    color: var(--text-secondary);
    font-size: 12px;
    margin-top: 5px;
}

.recharge-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.recharge-option-btn {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.recharge-option-btn:hover {
    background: rgba(14, 165, 233, 0.2);
    border-color: var(--accent);
    color: var(--accent);
}

.modal-footer {
    display: flex;
    gap: 12px;
    padding: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary {
    flex: 1;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-primary {
    flex: 1;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.4);
}

/* Responsive */
@media (max-width: 1200px) {
    .balance-section {
        padding: 140px 0 80px;
    }

    .balance-card {
        padding: 36px;
    }
}

@media (max-width: 1024px) {
    .balance-card {
        padding: 32px;
        gap: 24px;
    }

    .balance-amount {
        font-size: clamp(40px, 6vw, 52px);
    }
}

@media (max-width: 768px) {
    .balance-section {
        padding: 120px 0 60px;
    }

    .balance-header {
        margin-bottom: 32px;
    }

    .balance-title {
        font-size: clamp(28px, 6vw, 40px);
        flex-direction: column;
        gap: 10px;
    }

    .balance-title i {
        font-size: 32px;
    }

    .balance-subtitle {
        font-size: 16px;
    }

    .balance-card {
        flex-direction: column;
        text-align: center;
        padding: 28px 20px;
        gap: 24px;
    }

    .balance-amount-section {
        width: 100%;
    }

    .balance-label {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .balance-amount {
        font-size: clamp(32px, 8vw, 44px);
    }

    .balance-currency {
        font-size: 13px;
    }

    .btn-recharge-main {
        width: 100%;
        justify-content: center;
        padding: 14px 28px;
        font-size: 15px;
    }

    .section-title {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .history-list {
        padding: 16px;
    }

    .history-item {
        padding: 16px;
        gap: 16px;
        flex-wrap: wrap;
    }

    .history-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .history-title {
        font-size: 15px;
    }

    .history-date {
        font-size: 13px;
    }

    .history-amount {
        font-size: 18px;
        width: 100%;
        text-align: right;
    }

    .recharge-options {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .recharge-option-btn {
        padding: 14px 20px;
        font-size: 15px;
    }

    .modal-content {
        max-width: 95%;
        margin: 20px;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-header h3 {
        font-size: 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group label {
        font-size: 14px;
    }

    .form-group input {
        padding: 12px 14px;
        font-size: 15px;
    }

    .modal-footer {
        padding: 20px;
        flex-direction: column;
    }

    .btn-secondary,
    .btn-primary {
        width: 100%;
        padding: 14px 24px;
        font-size: 15px;
    }

    .payment-notification {
        right: 10px;
        left: 10px;
        max-width: calc(100% - 20px);
    }
}

@media (max-width: 480px) {
    .balance-section {
        padding: 100px 0 40px;
    }

    .balance-header {
        margin-bottom: 24px;
    }

    .balance-title {
        font-size: 24px;
    }

    .balance-subtitle {
        font-size: 14px;
    }

    .balance-card {
        padding: 24px 16px;
    }

    .balance-amount {
        font-size: 32px;
    }

    .btn-recharge-main {
        padding: 12px 24px;
        font-size: 14px;
    }

    .section-title {
        font-size: 18px;
    }

    .history-item {
        padding: 12px;
        gap: 12px;
    }

    .history-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .history-amount {
        font-size: 16px;
    }

    .modal-content {
        max-width: 100%;
        margin: 10px;
        border-radius: 16px;
    }

    .modal-header {
        padding: 16px;
    }

    .modal-header h3 {
        font-size: 18px;
    }

    .modal-body {
        padding: 16px;
    }

    .form-group input {
        padding: 10px 12px;
        font-size: 14px;
    }

    .modal-footer {
        padding: 16px;
    }

    .btn-secondary,
    .btn-primary {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* ==================== PAYMENT NOTIFICATIONS ==================== */
.payment-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    min-width: 300px;
    max-width: 500px;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.payment-notification.success .notification-content {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.9), rgba(22, 163, 74, 0.9));
    color: white;
}

.payment-notification.pending .notification-content {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.9), rgba(217, 119, 6, 0.9));
    color: white;
}

.payment-notification.error .notification-content {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(220, 38, 38, 0.9));
    color: white;
}

.notification-content i {
    font-size: 24px;
    flex-shrink: 0;
}

.notification-content span {
    flex: 1;
    font-weight: 600;
    font-size: 15px;
}

.notification-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

