
/* Enhanced root variables with gradients */
:root {
    --bs-primary: #3b82f6;
    --bs-primary-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --bs-secondary: #718096;
    --bs-success: #38a169;
    --bs-success-gradient: linear-gradient(135deg, #38a169, #276749);
    --bs-warning: #d69e2e;
    --bs-warning-gradient: linear-gradient(135deg, #d69e2e, #b7791f);
    --bs-danger: #e53e3e;
    --bs-danger-gradient: linear-gradient(135deg, #e53e3e, #c53030);
    --bs-info: #4299e1;
    --bs-info-gradient: linear-gradient(135deg, #4299e1, #3182ce);
    --bs-light: #f5f7fa;
    --bs-dark: #2d3748;
    --box-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --box-shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --box-shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --transition-default: all 0.3s ease;
}

/* Thin White-Themed Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #e2e8f0 #f8fafc;
}

/* ========== COMPACT BOOTSTRAP TOAST - TOP RIGHT ========== */
.compact-toast {
    min-width: 280px;
    max-width: 380px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    overflow: hidden;
}

.compact-toast .toast-body {
    padding: 10px 14px;
    color: #fff;
    font-size: 13px;
}

.compact-toast .toast-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.compact-toast .toast-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    flex: 1;
}

.compact-toast .toast-text strong {
    font-size: 13px;
    font-weight: 600;
}

.compact-toast .toast-text span {
    font-size: 12px;
    opacity: 0.9;
}

.compact-toast .btn-close {
    font-size: 10px;
    padding: 6px;
    opacity: 0.8;
}

.compact-toast .btn-close:hover {
    opacity: 1;
}

/* Toast color variants */
.compact-toast.toast-success {
    background: linear-gradient(135deg, #43a047 0%, #2e7d32 100%);
}

.compact-toast.toast-error {
    background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
}

.compact-toast.toast-warning {
    background: linear-gradient(135deg, #fb8c00 0%, #ef6c00 100%);
}

.compact-toast.toast-info {
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
}

/* Mobile responsive */
@media (max-width: 480px) {
    .compact-toast {
        min-width: auto;
        max-width: none;
        margin: 0 10px;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bs-light);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Main container adjustments for better mobile experience */
.page-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    padding: 1rem;
}

/* Enhanced card styling with proper image handling */
.main-card {
    width: 100%;
    max-width: 420px;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: var(--box-shadow-lg);
    border: none;
    transition: var(--transition-default);
    background-color: #fff;
}

/* Full width on mobile - remove card border */
@media (max-width: 576px) {
    .page-wrapper {
        padding: 0 !important;
        align-items: flex-start !important;
    }

    .main-card {
        max-width: 100% !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        border: none !important;
        min-height: 100vh;
    }

    body.bg-light {
        background: #fff !important;
    }
}

/* Corrected banner container with proper overflow handling */
.banner-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    font-size: 0; /* Prevent any potential white space */
    line-height: 0; /* Eliminate any line-height gaps */
    /* The container should not have border radius to prevent background showing */
}

/* Fixed image styling to prevent background showing */
.banner-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
    transition: var(--transition-default);
    margin: 0;
    padding: 0;
    display: block;
    /* Remove border radius from image */
    border-radius: 0;
}

/* Banner Carousel Styles */
.banner-container .carousel {
    width: 100%;
    height: 100%;
}

.banner-container .carousel-inner {
    width: 100%;
    height: 100%;
}

.banner-container .carousel-item {
    width: 100%;
    height: 100%;
}

.banner-container .carousel-indicators {
    bottom: 10px;
    margin-bottom: 0;
    z-index: 3;
}

.banner-container .carousel-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 4px;
    transition: all 0.3s ease;
}

.banner-container .carousel-indicators button.active {
    background-color: #fff;
    transform: scale(1.2);
}

/* Corrected dark overlay with proper positioning */
.dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
        rgba(0,0,0,0.1) 0%,
        rgba(0,0,0,0.6) 60%,
        rgba(0,0,0,0.9) 100%);
    /* Remove border radius from overlay */
    border-radius: 0;
}

/* Responsive banner adjustments */
/* Larger phones like iPhone 14 Pro Max (430px) */
@media (min-width: 390px) and (max-width: 575px) {
    .banner-img {
        height: 250px;
    }
}

@media (min-width: 576px) {
    .banner-img {
        height: 220px;
    }
}

@media (min-width: 768px) {
    .banner-img {
        height: 240px;
    }
}


/* Improved gradient overlay */
.dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
        rgba(0,0,0,0.1) 0%,
        rgba(0,0,0,0.6) 60%,
        rgba(0,0,0,0.9) 100%);
}

.banner-text {
    position: absolute;
    bottom: 1.75rem;
    left: 0;
    right: 0;
    text-align: center;
}

.wifi-text {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 800;
    font-size: 32px;
    text-transform: uppercase;
    color: white;
    letter-spacing: 3px;
    text-shadow:
        0 4px 12px rgba(0, 0, 0, 0.7),
        0 8px 24px rgba(0, 0, 0, 0.5);
    line-height: 1;
}

/* Enhanced responsive title */
@media (min-width: 576px) {
    .wifi-text {
        font-size: 36px;
        letter-spacing: 4px;
    }
}

@media (min-width: 768px) {
    .wifi-text {
        font-size: 42px;
        letter-spacing: 5px;
    }
}

.subtitle {
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
    color: inherit !important;
}

/* New status container with proper spacing */
.status-container {
    text-align: center;
    margin-bottom: 1.5rem;
    margin-top: 0.75rem;
    display: flex;
    justify-content: center;
    position: relative;
}

/* Redesigned fixed status indicator styles with proper alignment */
.status-badge {
    font-size: 1.1rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: var(--box-shadow-md);
    min-width: 200px;
    border-radius: 1rem !important;
    position: relative;
    border: 1px solid rgba(0,0,0,0.1);
}

/* Uniform container structure for perfect alignment */
.status-badge .status-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.status-badge .status-icon i {
    font-size: 1.25rem;
}

.status-badge .status-text {
    line-height: 1.2;
    letter-spacing: 0.3px;
    font-weight: 700;
}

/* Status type styles with stronger colors */
.status-badge.bg-danger-subtle {
    background-color: rgba(229, 62, 62, 0.15) !important;
    color: var(--bs-danger);
    border-color: rgba(229, 62, 62, 0.2);
}

.status-badge.bg-success-subtle {
    background-color: rgba(56, 161, 105, 0.15) !important;
    color: var(--bs-success);
    border-color: rgba(56, 161, 105, 0.2);
}

.status-badge.bg-warning-subtle {
    background-color: rgba(214, 158, 46, 0.15) !important;
    color: var(--bs-warning);
    border-color: rgba(214, 158, 46, 0.2);
}


/* ========== NEW USER-FRIENDLY STATUS PANEL ========== */
.status-panel {
    padding: 0.5rem 0;
}

/* Account Info Grid - Professional Design */
.account-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.info-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 8px;
    padding: 0.75rem 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.info-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
}

/* Device Info Button - No hover movement */
.device-info-btn-static {
    transition: none !important;
    flex-wrap: nowrap !important;
}

.device-info-btn-static:hover {
    transform: none !important;
}

/* Ensure toggle buttons keep arrow on right side */
.device-info-btn-static > span,
.device-info-btn-static > i {
    flex-shrink: 0;
}

.device-info-btn-static > span:first-child {
    flex: 1;
    text-align: left;
}

/* Action Buttons - No hover effects */
.btn-no-hover {
    transition: none !important;
}

.btn-no-hover:hover,
.btn-no-hover:focus,
.btn-no-hover:active {
    transform: none !important;
    box-shadow: none !important;
    filter: none !important;
    opacity: 1 !important;
    background: #3b82f6 !important;
    color: white !important;
}

/* Mobile Responsive - Keep insert coin modal same as desktop (not full screen) */
@media (max-width: 576px) {
    #coin-insertion-modal .modal-dialog {
        margin: 1rem !important;
        max-width: calc(100% - 2rem) !important;
    }
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
}

.info-card-header i {
    font-size: 0.75rem;
    opacity: 0.7;
}

.info-card-value {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
}

.credits-card .info-card-value {
    color: #16a34a;
}
.cpoints-card .info-card-value {
    color: #d97706;
}
.expiry-card .info-card-value {
    color: #2563eb;
}

/* Responsive info cards for mobile */
@media (max-width: 576px) {
    .account-info-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .info-card {
        padding: 0.75rem 0.625rem;
        gap: 0.375rem;
    }

    .info-card-header {
        font-size: 0.625rem;
        gap: 0.3rem;
    }

    .info-card-header i {
        font-size: 0.6875rem;
    }

    .info-card-value {
        font-size: 1.125rem;
    }
}

/* Modern Voucher Input */
.voucher-container {
    margin-top: 0.75rem;
}

.voucher-input-wrapper-modern {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.65rem 0.75rem;
    gap: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    max-width: 400px;
    margin: 0 auto;
}

.voucher-input-wrapper-modern:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.voucher-input-wrapper-modern > i {
    color: #9ca3af;
    font-size: 0.85rem;
}

.voucher-input-wrapper-modern input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.35rem 0;
    font-size: 0.9rem;
    color: #1f2937;
    outline: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.voucher-input-wrapper-modern input::placeholder {
    color: #9ca3af;
    text-transform: none;
    letter-spacing: normal;
}

.voucher-input-wrapper-modern button {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 6px;
    background: var(--bs-primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.voucher-input-wrapper-modern button:hover {
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.voucher-input-wrapper-modern button i {
    font-size: 0.75rem;
}

/* IMPROVED INSERT COIN MODAL STYLES */

/* Payment Timer Container */
.payment-timer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.75rem;
    padding: 1.25rem;
    background: linear-gradient(to bottom, rgba(255,255,255,0.9), rgba(245,247,250,0.9));
    border-radius: 1rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.payment-timer-container .text-center {
    font-size: 0.95rem;
    font-weight: 600;
    color: #718096;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-timer-display {
    font-family: 'Poppins', 'Inter', monospace;
    font-size: 2.75rem;
    font-weight: 700;
    color: #38a169;
    line-height: 1;
    margin: 0.5rem 0;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
}

.payment-timer-progress {
    width: 100%;
    height: 6px;
    background-color: rgba(56, 161, 105, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.75rem;
    position: relative;
}

.payment-timer-progress-bar {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #38a169, #2f855a);
    border-radius: 4px;
    transition: width 1s linear;
    will-change: width;
    box-shadow: 0 0 8px rgba(56, 161, 105, 0.4);
}

/* Payment Details */
#coin-insertion-modal .bg-white.rounded {
    background: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    padding: 1rem !important;
}

#coin-insertion-modal .bg-white.rounded .d-flex {
    padding: 0.65rem 0 !important;
}

#coin-insertion-modal .bg-white.rounded .d-flex:first-child {
    padding-top: 0 !important;
}

#coin-insertion-modal .bg-white.rounded .d-flex:last-child {
    padding-bottom: 0 !important;
}

#coin-insertion-modal .bg-white.rounded .text-secondary {
    font-size: 0.9rem !important;
    color: #6b7280 !important;
    font-weight: 500 !important;
}

#coin-insertion-modal .bg-white.rounded .fw-semibold,
#coin-insertion-modal .bg-white.rounded .fw-bold {
    font-size: 0.9rem !important;
    color: #1f2937 !important;
}

#coin-insertion-modal #coin-amount-value {
    color: #38a169 !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
}

/* Payment Actions */
.payment-actions {
    display: flex;
    width: 100%;
    gap: 0.875rem;
}

.payment-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 0.75rem;
    flex: 1;
    line-height: 1.2;
}

.payment-btn:hover {
    transform: none;
    box-shadow: none;
}

.payment-btn i {
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 576px) {
    .payment-actions {
        flex-direction: row;
    }

    .payment-timer-display {
        font-size: 2.5rem;
    }

    .payment-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    .payment-btn i {
        font-size: 0.85rem;
    }
}

@media (max-width: 400px) {
    .payment-actions {
        flex-direction: column;
    }
}

/* Responsive */
@media (max-width: 576px) {
    .coin-info-grid {
        grid-template-columns: 1fr;
    }

    .amount-big {
        font-size: 2rem;
    }
}

/* Status Header with Chip Design */
.status-header {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.status-chip .status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

.status-chip.status-disconnected {
    background: rgba(229, 62, 62, 0.1);
    color: #e53e3e;
    border: 1px solid rgba(229, 62, 62, 0.2);
}

.status-chip.status-disconnected .status-dot {
    background: #e53e3e;
}

.status-chip.status-connected {
    background: rgba(56, 161, 105, 0.1);
    color: #38a169;
    border: 1px solid rgba(56, 161, 105, 0.2);
}

.status-chip.status-connected .status-dot {
    background: #38a169;
}

.status-chip.status-paused {
    background: rgba(214, 158, 46, 0.1);
    color: #d69e2e;
    border: 1px solid rgba(214, 158, 46, 0.2);
}

.status-chip.status-paused .status-dot {
    background: #d69e2e;
    animation: none;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

/* Time Display Card */
.time-display-card {
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.25rem;
    text-align: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.time-display-card .time-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #718096;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.time-display-card .time-label i {
    font-size: 0.9rem;
}

.time-display-card .time-value {
    font-family: 'Poppins', 'Inter', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: #3182ce;
    letter-spacing: 2px;
    line-height: 1.2;
}

.time-display-card.paused {
    border-color: rgba(214, 158, 46, 0.3);
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.time-display-card.paused .time-value {
    color: #d69e2e;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.stat-card .stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.stat-card.stat-credits .stat-icon {
    background: rgba(56, 161, 105, 0.1);
    color: #38a169;
}

.stat-card.stat-points .stat-icon {
    background: rgba(214, 158, 46, 0.1);
    color: #d69e2e;
}

.stat-card .stat-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.stat-card .stat-label {
    font-size: 0.7rem;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.stat-card .stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3748;
}

/* Device Info Section */
.device-info-section {
    margin-bottom: 1rem;
}

.device-info-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: transparent;
    border: 1px dashed #cbd5e0;
    border-radius: 8px;
    color: #718096;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.device-info-toggle:hover {
    background: #f7fafc;
    border-color: #a0aec0;
    color: #4a5568;
}

.device-info-toggle .toggle-icon {
    transition: transform 0.3s ease;
    font-size: 0.7rem;
}

.device-info-toggle[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

.device-info-content {
    margin-top: 0.75rem;
    background: #f7fafc;
    border-radius: 10px;
    padding: 0.75rem;
}

.device-info-content .info-row {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #edf2f7;
    font-size: 0.8rem;
}

.device-info-content .info-row:last-child {
    border-bottom: none;
}

.device-info-content .info-row i {
    width: 24px;
    color: #a0aec0;
    font-size: 0.85rem;
}

.device-info-content .info-label {
    color: #718096;
    flex: 1;
}

.device-info-content .info-value {
    color: #2d3748;
    font-weight: 600;
    font-family: 'SF Mono', 'Monaco', monospace;
    font-size: 0.75rem;
}

/* Mobile Responsiveness for Status Panel */
@media (max-width: 400px) {
    .time-display-card .time-value {
        font-size: 2rem;
    }

    .stat-card {
        padding: 0.75rem;
    }

    .stat-card .stat-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .stat-card .stat-value {
        font-size: 1rem;
    }
}

/* ========== DATA USAGE SECTION ========== */
.data-usage-section {
    margin-bottom: 1rem;
}

.data-usage-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #4a5568;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.data-usage-toggle:hover {
    background: linear-gradient(135deg, #edf2f7 0%, #e2e8f0 100%);
    border-color: #cbd5e0;
}

.data-usage-toggle .toggle-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.data-usage-toggle .toggle-left i {
    color: #3182ce;
    font-size: 1rem;
}

.data-usage-toggle .toggle-arrow {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    color: #a0aec0;
}

.data-usage-toggle.active .toggle-arrow {
    transform: rotate(180deg);
}

.data-usage-panel {
    margin-top: 0.75rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    animation: slideDown 0.3s ease;
}

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

.usage-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.usage-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.75rem;
    border-radius: 10px;
    background: #f7fafc;
}

.usage-stat .usage-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.usage-stat.upload .usage-icon {
    background: rgba(229, 62, 62, 0.1);
    color: #e53e3e;
}

.usage-stat.download .usage-icon {
    background: rgba(49, 130, 206, 0.1);
    color: #3182ce;
}

.usage-stat .usage-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.usage-stat .usage-label {
    font-size: 0.7rem;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.usage-stat .usage-value {
    font-size: 1rem;
    font-weight: 700;
    color: #2d3748;
}

@media (max-width: 360px) {
    .usage-stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

/* ========== ACTION BAR - MODERN DESIGN ========== */
.action-bar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Primary Actions (Pause/Insert Money) */
.primary-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.action-btn-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 20px;
    border: none;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.action-btn-modern .btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.action-btn-modern.pause-btn {
    background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(237, 137, 54, 0.3);
}

.action-btn-modern.pause-btn .btn-icon {
    background: rgba(255, 255, 255, 0.2);
}

.action-btn-modern.pause-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(237, 137, 54, 0.4);
}

.action-btn-modern.insert-btn {
    background: linear-gradient(135deg, #4fd1c5 0%, #38b2ac 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(56, 178, 172, 0.3);
}

.action-btn-modern.insert-btn .btn-icon {
    background: rgba(255, 255, 255, 0.2);
}

.action-btn-modern.insert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 178, 172, 0.4);
}

/* Resume state for pause button */
.action-btn-modern.pause-btn.resume {
    background: linear-gradient(135deg, #68d391 0%, #48bb78 100%);
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
}

.action-btn-modern.pause-btn.resume:hover {
    box-shadow: 0 6px 20px rgba(72, 187, 120, 0.4);
}

/* Quick Actions Grid */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.quick-action-btn .quick-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.quick-action-btn .quick-icon.wifi {
    background: rgba(49, 130, 206, 0.1);
    color: #3182ce;
}

.quick-action-btn .quick-icon.data {
    background: rgba(128, 90, 213, 0.1);
    color: #805ad5;
}

.quick-action-btn .quick-icon.voucher {
    background: rgba(237, 137, 54, 0.1);
    color: #ed8936;
}

.quick-action-btn .quick-icon.session {
    background: rgba(56, 161, 105, 0.1);
    color: #38a169;
}

.quick-action-btn span {
    font-size: 0.7rem;
    font-weight: 600;
    color: #4a5568;
    text-align: center;
}

.quick-action-btn:hover .quick-icon.wifi {
    background: #3182ce;
    color: #fff;
}

.quick-action-btn:hover .quick-icon.data {
    background: #805ad5;
    color: #fff;
}

.quick-action-btn:hover .quick-icon.voucher {
    background: #ed8936;
    color: #fff;
}

.quick-action-btn:hover .quick-icon.session {
    background: #38a169;
    color: #fff;
}

/* Services Section */
.services-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}

.service-btn:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
}

.service-btn > i:first-child {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.service-btn span {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2d3748;
}

.service-btn > i:last-child {
    color: #a0aec0;
    font-size: 0.8rem;
}

.service-btn.eload-btn > i:first-child {
    background: rgba(56, 161, 105, 0.1);
    color: #38a169;
}

.service-btn.free-btn > i:first-child {
    background: rgba(237, 137, 54, 0.1);
    color: #ed8936;
}

.service-btn.spin-btn > i:first-child {
    background: rgba(66, 153, 225, 0.1);
    color: #4299e1;
}

.service-btn.epay-btn > i:first-child {
    background: rgba(128, 90, 213, 0.1);
    color: #805ad5;
}

/* Voucher Input Section */
.voucher-input-section {
    margin-top: 0.5rem;
}

.voucher-input-wrapper {
    display: flex;
    align-items: center;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 4px;
    transition: all 0.2s ease;
}

.voucher-input-wrapper:focus-within {
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.voucher-input-wrapper > i:first-child {
    padding: 0 12px;
    color: #a0aec0;
    font-size: 1rem;
}

.voucher-input-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 8px;
    font-size: 0.95rem;
    color: #2d3748;
    outline: none;
}

.voucher-input-wrapper input::placeholder {
    color: #a0aec0;
}

.voucher-input-wrapper button {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.voucher-input-wrapper button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
}

/* Mobile Responsiveness for Action Bar */
@media (max-width: 400px) {
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-action-btn {
        padding: 14px 8px;
    }

    .quick-action-btn .quick-icon {
        width: 40px;
        height: 40px;
    }
}

/* ========== MODERN MODAL DESIGN ========== */
.modal-modern {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.modal-header-modern {
    position: relative;
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.modal-icon-badge {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.modal-title-modern {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.modal-subtitle {
    font-size: 0.85rem;
    opacity: 0.9;
    margin: 0;
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modal-body-modern {
    padding: 1.5rem;
    background: #f8fafc;
}

/* Coin Modal Specific Styles */
.coin-modal .modal-header-modern.coin-header {
    background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
    padding-top: 2.5rem;
}

.coin-animation {
    position: relative;
    margin-bottom: 1rem;
}

.coin-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.75rem;
    color: #fff;
    position: relative;
    z-index: 2;
}

.coin-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    animation: coin-pulse-anim 2s infinite;
}

@keyframes coin-pulse-anim {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Timer Card */
.timer-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.25rem;
    text-align: center;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
}

.timer-label {
    font-size: 0.75rem;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.timer-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.timer-display span:first-child {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ed8936;
    font-family: 'Poppins', sans-serif;
}

.timer-display .timer-unit {
    font-size: 1rem;
    color: #a0aec0;
    font-weight: 500;
}

.timer-progress {
    height: 6px;
    background: #edf2f7;
    border-radius: 3px;
    margin-top: 1rem;
    overflow: hidden;
}

.timer-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ed8936, #f6ad55);
    border-radius: 3px;
    transition: width 1s linear;
    width: 100%;
}

/* Payment Summary Card */
.payment-summary-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    margin-bottom: 1rem;
}

.summary-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.875rem 1rem;
    background: #f7fafc;
    border-bottom: 1px solid #edf2f7;
    font-size: 0.8rem;
    font-weight: 600;
    color: #4a5568;
}

.summary-header i {
    color: #a0aec0;
}

.summary-items {
    padding: 0.5rem 0;
}

.summary-row {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    gap: 12px;
}

.summary-row:not(:last-child) {
    border-bottom: 1px solid #f7fafc;
}

.summary-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.summary-icon.time {
    background: rgba(49, 130, 206, 0.1);
    color: #3182ce;
}

.summary-icon.voucher {
    background: rgba(128, 90, 213, 0.1);
    color: #805ad5;
}

.summary-icon.data {
    background: rgba(56, 161, 105, 0.1);
    color: #38a169;
}

.summary-label {
    flex: 1;
    font-size: 0.85rem;
    color: #718096;
}

.summary-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2d3748;
}

.summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
    color: #fff;
}

.total-label {
    font-size: 0.9rem;
    font-weight: 500;
}

.total-value {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Coin Action Buttons */
.coin-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.coin-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 1rem 0.5rem;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.coin-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.coin-action-btn .action-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.coin-action-btn span {
    font-size: 0.75rem;
    font-weight: 600;
    color: #4a5568;
}

.coin-action-btn.time-btn .action-icon {
    background: rgba(49, 130, 206, 0.1);
    color: #3182ce;
}

.coin-action-btn.time-btn:hover {
    border-color: #3182ce;
    background: rgba(49, 130, 206, 0.05);
}

.coin-action-btn.data-btn .action-icon {
    background: rgba(56, 161, 105, 0.1);
    color: #38a169;
}

.coin-action-btn.data-btn:hover {
    border-color: #38a169;
    background: rgba(56, 161, 105, 0.05);
}

.coin-action-btn.voucher-btn .action-icon {
    background: rgba(128, 90, 213, 0.1);
    color: #805ad5;
}

.coin-action-btn.voucher-btn:hover {
    border-color: #805ad5;
    background: rgba(128, 90, 213, 0.05);
}

/* Rates Modal Icon Colors */
.modal-modern .modal-icon-badge.wifi {
    background: rgba(255, 255, 255, 0.2);
}

.modal-modern .modal-icon-badge.data {
    background: rgba(255, 255, 255, 0.2);
}

/* Modal Mobile Responsiveness */
@media (max-width: 400px) {
    .coin-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .timer-display span:first-child {
        font-size: 2rem;
    }

    .modal-header-modern {
        padding: 1.5rem 1rem 1rem;
    }

    .coin-icon-wrapper {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .coin-pulse {
        width: 60px;
        height: 60px;
    }
}

/* WebSocket indicator */
.websocket-status {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--bs-danger);
    box-shadow: 0 0 8px rgba(229, 62, 62, 0.4);
    z-index: 5;
    transition: var(--transition-default);
}

.websocket-status.connected {
    background-color: var(--bs-success);
    box-shadow: 0 0 8px rgba(56, 161, 105, 0.4);
}

/* Enhanced pulsing animation */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.websocket-status.active {
    animation: pulse 1.5s infinite;
}

/* ========================================
   USER-FRIENDLY STATUS PANEL STYLES
   ======================================== */

.status-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Status Card */
.status-card {
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.status-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-indicator {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.status-indicator.status-disconnected {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
}

.status-indicator.status-connected {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #059669;
}

.status-indicator.status-paused {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #d97706;
}

.status-icon-main {
    font-size: 1.4rem;
    z-index: 1;
}

.status-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
}

.status-disconnected .status-pulse {
    background: rgba(220, 38, 38, 0.3);
}

.status-connected .status-pulse {
    background: rgba(5, 150, 105, 0.3);
}

.status-paused .status-pulse {
    background: rgba(217, 119, 6, 0.3);
}

@keyframes statusPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 0; }
}

.status-info {
    flex: 1;
}

.status-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.status-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
}

/* Time Card - Prominent Display */
.time-card {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 1rem;
    padding: 1.25rem;
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.time-card-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.time-icon-wrapper {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.time-icon-wrapper i {
    font-size: 1.5rem;
}

.time-content {
    flex: 1;
}

.time-label {
    font-size: 0.8rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.time-value {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    font-family: 'Poppins', sans-serif;
}

.time-progress {
    margin-top: 1rem;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.time-progress-bar {
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 3px;
    width: 100%;
    transition: width 1s linear;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.stat-card {
    background: #fff;
    border-radius: 0.875rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.stat-credits .stat-icon {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #059669;
}

.stat-cpoints .stat-icon {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #d97706;
}

.stat-content {
    flex: 1;
    min-width: 0;
}

.stat-label {
    font-size: 0.7rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
}

/* Device Info Card (Collapsible) */
.device-info-card {
    background: #fff;
    border-radius: 0.875rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.device-info-toggle {
    width: 100%;
    background: none;
    border: none;
    padding: 0.875rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: background 0.2s ease;
}

.device-info-toggle:hover {
    background: #f8fafc;
}

.device-info-toggle .toggle-icon {
    transition: transform 0.3s ease;
    font-size: 0.75rem;
}

.device-info-toggle[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

.device-info-content {
    padding: 0 1rem 1rem;
}

.device-info-row {
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-top: 1px solid #f1f5f9;
}

.device-info-row:first-child {
    border-top: none;
}

.device-info-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.device-info-item.full-width {
    flex: none;
    width: 100%;
}

.device-info-item i {
    color: #94a3b8;
    font-size: 0.85rem;
    width: 20px;
    text-align: center;
}

.device-info-item .info-label {
    color: #64748b;
    font-weight: 500;
}

.device-info-item .info-value {
    color: #1e293b;
    font-weight: 600;
    margin-left: auto;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
}

/* Responsive adjustments */
@media (max-width: 400px) {
    .time-value {
        font-size: 1.5rem;
    }

    .stat-card {
        padding: 0.75rem;
    }

    .stat-icon {
        width: 36px;
        height: 36px;
    }

    .stat-value {
        font-size: 1rem;
    }
}

/* ========================================
   DATA USAGE CARD STYLES
   ======================================== */

.data-usage-card {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 1.25rem;
}

.data-usage-toggle {
    width: 100%;
    background: none;
    border: none;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background 0.2s ease;
}

.data-usage-toggle:hover {
    background: #f8fafc;
}

.toggle-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toggle-icon-wrapper {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4f46e5;
    font-size: 0.95rem;
}

.data-usage-toggle span {
    font-weight: 600;
    color: #334155;
    font-size: 0.95rem;
}

.toggle-arrow {
    color: #94a3b8;
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.data-usage-toggle[aria-expanded="true"] .toggle-arrow {
    transform: rotate(180deg);
}

.data-usage-content {
    padding: 0 1.25rem 1.25rem;
}

.usage-stat-row {
    margin-bottom: 1rem;
}

.usage-stat-row:last-of-type {
    margin-bottom: 0.75rem;
}

.usage-stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem;
    border-radius: 0.75rem;
    background: #f8fafc;
}

.usage-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.upload-icon {
    background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
    color: #dc2626;
}

.download-icon {
    background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 100%);
    color: #2563eb;
}

.usage-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.usage-label {
    font-size: 0.7rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.usage-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
}

.usage-bar-container {
    width: 60px;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    flex-shrink: 0;
}

.usage-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
    width: 0%;
}

.upload-bar {
    background: linear-gradient(90deg, #f87171 0%, #dc2626 100%);
}

.download-bar {
    background: linear-gradient(90deg, #60a5fa 0%, #2563eb 100%);
}

/* Total Usage */
.usage-total {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 0.75rem;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.total-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #86efac 0%, #4ade80 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #166534;
    font-size: 1rem;
}

.total-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.total-label {
    font-size: 0.7rem;
    color: #166534;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.total-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #15803d;
}

/* Data usage responsive */
@media (max-width: 400px) {
    .usage-stat {
        padding: 0.75rem;
    }

    .usage-value {
        font-size: 1rem;
    }

    .usage-bar-container {
        width: 50px;
    }

    .total-value {
        font-size: 1.1rem;
    }
}

/* ========================================
   ACTION BAR STYLES
   ======================================== */

.action-bar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Primary Actions (Pause/Insert Money) */
.primary-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.action-btn-primary {
    width: 100%;
    padding: 1rem 1.25rem;
    border: none;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.action-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.action-btn-primary:active {
    transform: translateY(0);
}

.action-btn-pause {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.action-btn-pause.resumed {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.action-btn-coins {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
}

.action-btn-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.action-btn-text {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* Quick Actions Grid */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.625rem;
}

.quick-action-btn {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 1rem;
    padding: 1rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.quick-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.quick-action-btn:active {
    transform: translateY(-1px);
}

.quick-action-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.wifi-icon-bg {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #2563eb;
}

.data-icon-bg {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #4f46e5;
}

.voucher-icon-bg {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    color: #db2777;
}

.session-icon-bg {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #059669;
}

.quick-action-btn span {
    font-size: 0.7rem;
    font-weight: 600;
    color: #475569;
    text-align: center;
}

/* Service Actions */
.service-actions {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.service-btn {
    width: 100%;
    padding: 0.875rem 1rem;
    border: none;
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-btn:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.service-btn-content {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.service-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.service-btn-eload .service-icon {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #059669;
}

.service-btn-free .service-icon {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #d97706;
}

.service-btn-spin .service-icon {
    background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
    color: #dc2626;
}

.service-btn-spin .service-icon.spinning i {
    animation: spin 3s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.service-btn-pay .service-icon {
    background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 100%);
    color: #2563eb;
}

.service-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
}

.service-desc {
    font-size: 0.7rem;
    color: #64748b;
}

.service-arrow {
    color: #cbd5e1;
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.service-btn:hover .service-arrow {
    transform: translateX(3px);
    color: #94a3b8;
}

/* Voucher Input Card */
.voucher-input-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 1rem;
    padding: 1rem;
    border: 1px dashed #cbd5e1;
}

.voucher-input-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
}

.voucher-input-header i {
    color: #8b5cf6;
}

.voucher-input-group {
    display: flex;
    gap: 0.5rem;
}

.voucher-input-field {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    background: #fff;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.voucher-input-field:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.voucher-input-field::placeholder {
    text-transform: none;
    letter-spacing: normal;
    color: #94a3b8;
}

.voucher-submit-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.voucher-submit-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.voucher-submit-btn:active {
    transform: scale(0.98);
}

/* Action bar responsive */
@media (max-width: 400px) {
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .quick-action-btn {
        padding: 0.875rem 0.5rem;
    }

    .quick-action-icon {
        width: 38px;
        height: 38px;
    }

    .action-btn-icon {
        width: 40px;
        height: 40px;
    }

    .service-icon {
        width: 36px;
        height: 36px;
    }
}

@media (min-width: 401px) and (max-width: 500px) {
    .quick-actions-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ========================================
   MODERN MODAL STYLES
   ======================================== */

.modal-modern {
    border: none;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-header-modern {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    position: relative;
}

.modal-header-eload {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.modal-header-coins {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.modal-header-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.coin-icon-animated i {
    animation: coinBounce 2s ease-in-out infinite;
}

@keyframes coinBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.modal-header-text {
    flex: 1;
}

.modal-title-modern {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.3px;
}

.modal-subtitle {
    font-size: 0.8rem;
    opacity: 0.9;
    margin: 0.125rem 0 0;
}

.modal-close-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.modal-close-btn:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.modal-body-modern {
    padding: 1.25rem;
    background: #f8fafc;
}

/* E-loading Options Grid */
.eload-options-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.eload-option-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 0.875rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.eload-option-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.eload-option-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.eload-icon-load {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #2563eb;
}

.eload-icon-wallet {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #059669;
}

.eload-icon-bills {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #d97706;
}

.eload-option-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.eload-option-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
}

.eload-option-desc {
    font-size: 0.75rem;
    color: #64748b;
}

.eload-arrow {
    color: #cbd5e1;
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.eload-option-card:hover .eload-arrow {
    transform: translateX(4px);
    color: #94a3b8;
}

/* Coin Insertion Modal Styles */
.coin-timer-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 1rem;
    padding: 1.25rem;
    text-align: center;
    margin-bottom: 1rem;
    border: 1px solid rgba(217, 119, 6, 0.2);
}

.coin-timer-label {
    font-size: 0.8rem;
    color: #92400e;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.coin-timer-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.coin-timer-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: #d97706;
    font-family: 'Poppins', sans-serif;
    line-height: 1;
}

.coin-timer-unit {
    font-size: 0.85rem;
    color: #b45309;
    font-weight: 600;
}

.coin-timer-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 0.75rem;
}

.coin-timer-progress {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
    border-radius: 3px;
    width: 100%;
    transition: width 1s linear;
}

/* Coin Details Card */
.coin-details-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.coin-details-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    background: #f1f5f9;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
}

.coin-details-header i {
    color: #64748b;
}

.coin-details-list {
    padding: 0.5rem 0;
}

.coin-detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.coin-detail-item:last-child {
    border-bottom: none;
}

.coin-detail-icon {
    width: 32px;
    height: 32px;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 0.85rem;
}

.coin-detail-label {
    flex: 1;
    font-size: 0.85rem;
    color: #64748b;
}

.coin-detail-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
}

.coin-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-top: 1px solid rgba(34, 197, 94, 0.2);
}

.coin-total-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #166534;
}

.coin-total-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #15803d;
}

/* Coin Action Buttons */
.coin-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.coin-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border: none;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 0.85rem;
}

.coin-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.coin-action-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.coin-action-time {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

.coin-action-data {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
}

.coin-action-voucher {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
}

/* Modal responsive */
@media (max-width: 400px) {
    .modal-header-modern {
        padding: 1rem;
    }

    .modal-header-icon {
        width: 42px;
        height: 42px;
        font-size: 1.15rem;
    }

    .modal-title-modern {
        font-size: 1rem;
    }

    .coin-timer-value {
        font-size: 2rem;
    }

    .coin-actions-grid {
        grid-template-columns: 1fr;
    }

    .coin-action-btn {
        flex-direction: row;
        justify-content: center;
    }
}

/* WiFi icon styles */
.wifi-icon {
    color: var(--bs-primary);
    filter: drop-shadow(0 0 5px rgba(49, 130, 206, 0.8));
}

/* Improved user info card */
.card {
    border-radius: 0.75rem;
    border: 1px solid rgba(0,0,0,0.08);
    transition: var(--transition-default);
}

.card.bg-light {
    background-color: rgba(245, 247, 250, 0.5) !important;
}

/* Enhanced remaining time display */
.remaining-time {
    font-family: 'Poppins', 'Inter', monospace;
    font-weight: 700;
    letter-spacing: 1.5px;
    font-size: 36px;
    color: var(--bs-primary);
    text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

@media (max-width: 375px) {
    .remaining-time {
        font-size: 30px;
    }
}

.remaining-time.paused {
    color: var(--bs-warning);
}

@keyframes rotate-hourglass {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.time-icon {
    animation: rotate-hourglass 6s infinite linear;
    display: inline-block;
    color: var(--bs-primary);
}

/* Enhanced button styling with gradients */
.btn {
    border-radius: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: var(--transition-default);
    border: none;
    box-shadow: var(--box-shadow-sm);
}

.btn:hover {
    box-shadow: var(--box-shadow-md);
}

.btn:active {
    box-shadow: var(--box-shadow-sm);
}

.btn-primary {
    background: var(--bs-primary-gradient) !important;
    border: none;
}

.btn-success {
    background: var(--bs-success-gradient) !important;
    border: none;
}

.btn-warning {
    background: var(--bs-warning-gradient) !important;
    border: none;
}

.btn-info {
    background: var(--bs-info-gradient) !important;
    border: none;
}

.btn-secondary {
    background: linear-gradient(135deg, #718096, #4a5568) !important;
    border: none;
}

/* Improved action buttons */
.action-btn {
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
    font-weight: 600;
}

@media (max-width: 375px) {
    .action-btn {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
        font-size: 0.9rem;
    }
}

/* Enhanced toggle button animations */
.btn-toggle {
    position: relative;
    overflow: hidden;
}

.btn-toggle .btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    transition: transform 0.3s ease;
}

.btn-toggle .icon-container {
    width: 1.25em;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

/* Button ripple effect */
.btn-toggle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.btn-toggle:focus:not(:active)::after {
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0) translate(-50%, -50%);
        opacity: 0.5;
    }
    100% {
        transform: scale(30, 30) translate(-50%, -50%);
        opacity: 0;
    }
}

/* Improved data usage toggle button */
#stats-toggle {
    color: var(--bs-secondary);
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    border-radius: 1rem;
    transition: var(--transition-default);
}

#stats-toggle:hover {
    background-color: rgba(0,0,0,0.05);
    color: var(--bs-dark);
}

/* Enhanced data usage cards */
.data-usage-card {
    border-radius: 0.75rem;
    overflow: hidden;
}

/* Improved timer styles */
.timer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}

.timer-display {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 40px;
    font-weight: 700;
    color: var(--bs-danger);
    line-height: 1.2;
}

@media (max-width: 375px) {
    .timer-display {
        font-size: 36px;
    }
}

.timer-progress {
    width: 100%;
    height: 6px;
    background-color: rgba(0,0,0,0.05);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.timer-progress-bar {
    height: 100%;
    width: 100%;
    background-color: var(--bs-danger);
    border-radius: 3px;
    transition: width 1s linear;
    will-change: width;
}

/* Enhanced voucher input */
.voucher-input-group {
    margin-top: 1.5rem;
}

.voucher-input-group .form-control {
    border-top-left-radius: 0.75rem;
    border-bottom-left-radius: 0.75rem;
    border: 1px solid rgba(0,0,0,0.1);
    padding: 0.625rem 1rem;
    height: 48px;
}

.voucher-input-group .btn {
    border-top-right-radius: 0.75rem !important;
    border-bottom-right-radius: 0.75rem !important;
    padding: 0.625rem 1.25rem;
}

/* Enhanced modal styling */
.modal-content {
    border-radius: 1rem;
    border: none;
    box-shadow: var(--box-shadow-lg);
}

.modal-header {
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1.25rem 1.5rem;
    background-color: #f8f9fa;
}

.modal-footer {
    border-top: 1px solid rgba(0,0,0,0.05);
    padding: 1.25rem 1.5rem;
    background-color: #f8f9fa;
}

.modal-body {
    padding: 1.5rem;
}

/* Loading overlay improvements */
.loading-overlay-custom {
    border-radius: 1.25rem;
    backdrop-filter: blur(10px);
}

/* Toast enhancements */
.toast-container-custom {
    max-width: 90vw;
    z-index: 1051;
}

.toast {
    border-radius: 0.75rem;
    border: none;
    box-shadow: var(--box-shadow-md);
    overflow: hidden;
}

/* List group enhancements */
.list-group-item {
    border-color: rgba(0,0,0,0.05);
    transition: var(--transition-default);
}

.list-group-item:hover {
    background-color: rgba(49, 130, 206, 0.05);
}

/* Add responsive adjustments for the status badge */
@media (max-width: 375px) {
    .status-badge {
        font-size: 1rem;
        padding: 0.625rem 1.25rem;
        min-width: 180px;
    }

    .status-badge .status-icon {
        width: 24px;
        height: 24px;
    }

    .status-badge .status-icon i {
        font-size: 1.1rem;
    }
}

/* IMPROVED INSERT MONEY MODAL STYLES */

/* Payment Timer Container */
.payment-timer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.75rem;
    padding: 1.25rem;
    background: linear-gradient(to bottom, rgba(255,255,255,0.9), rgba(245,247,250,0.9));
    border-radius: 1rem;
    box-shadow: var(--box-shadow-sm);
    position: relative;
    overflow: hidden;
}

/* Enhanced animated border */
.payment-timer-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: 1rem;
    background: linear-gradient(90deg,
        var(--bs-danger) 0%,
        var(--bs-warning) 50%,
        var(--bs-danger) 100%) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: border-rotate 4s linear infinite;
}

@keyframes border-rotate {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.payment-timer-container .text-center {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--bs-secondary);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-timer-display {
    font-family: 'Poppins', 'Inter', monospace;
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--bs-danger);
    line-height: 1;
    margin: 0.5rem 0;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
}

/* New pulsing animation for the timer */
@keyframes pulse-timer {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
    100% { transform: scale(1); opacity: 1; }
}

.payment-timer-display {
    animation: pulse-timer 1s infinite;
}

.payment-timer-progress {
    width: 100%;
    height: 6px;
    background-color: rgba(229, 62, 62, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.75rem;
    position: relative;
}

.payment-timer-progress-bar {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #e53e3e, #c53030);
    border-radius: 4px;
    transition: width 1s linear;
    will-change: width;
    box-shadow: 0 0 8px rgba(229, 62, 62, 0.4);
    position: relative;
    overflow: hidden;
}

/* Add shine effect to progress bar */
.payment-timer-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.3) 50%,
        rgba(255,255,255,0) 100%);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Payment Instructions */
.payment-instructions {
    background-color: rgba(56, 161, 105, 0.05);
    border-radius: 1rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--bs-info);
}

.payment-instruction-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--bs-info);
}

.payment-steps {
    margin: 0;
    padding-left: 1.5rem;
}

.payment-steps li {
    margin-bottom: 0.5rem;
    color: var(--bs-dark);
}

.payment-steps li:last-child {
    margin-bottom: 0;
}

/* Payment Actions - UPDATED FOR NORMAL SIZE BUTTONS */
.payment-actions {
    display: flex;
    width: 100%;
    gap: 0.875rem;
}

.payment-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;  /* Reduced padding */
    font-size: 0.9rem;     /* Smaller font size */
    font-weight: 600;
    border-radius: 0.75rem;
    flex: 1;
    transition: all 0.3s ease;
    line-height: 1.2;
}

.payment-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-md);
}

.payment-btn:active {
    transform: translateY(1px);
}

.payment-btn i {
    font-size: 0.9rem;  /* Smaller icon */
}

/* Responsive Adjustments for Insert Money Modal */
@media (max-width: 576px) {
    .payment-actions {
        flex-direction: row;  /* Keep buttons side by side on small screens */
    }

    .payment-timer-display {
        font-size: 2.5rem;  /* Slightly smaller on mobile */
    }

    .modal-body {
        padding: 1.25rem;
    }

    .payment-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    .payment-btn i {
        font-size: 0.85rem;
    }
}

@media (max-width: 400px) {
    .payment-actions {
        flex-direction: column;  /* Stack buttons on very small screens */
    }
}

/* IMPROVED RATES DESIGN */

/* Rates cards container */
.rates-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Rate card design */
.rate-card {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: var(--box-shadow-sm);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.25s ease;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.rate-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-md);
    border-color: rgba(49, 130, 206, 0.2);
}

/* Corner ribbon design */
.rate-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 40px 40px 0;
    border-color: transparent rgba(49, 130, 206, 0.1) transparent transparent;
    transition: all 0.25s ease;
}

.rate-card:hover::before {
    border-color: transparent var(--bs-primary) transparent transparent;
}

.rate-card.best-value::before {
    border-color: transparent var(--bs-success) transparent transparent;
}

.rate-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(49, 130, 206, 0.1), rgba(49, 130, 206, 0.2));
    border-radius: 50%;
    margin-bottom: 0.75rem;
    color: var(--bs-primary);
    font-size: 1.1rem;
}

.rate-time {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--bs-dark);
    margin-bottom: 0.5rem;
}

.rate-price {
    font-weight: 600;
    color: var(--bs-primary);
    background-color: rgba(49, 130, 206, 0.1);
    padding: 0.35rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.9rem;
}

.rate-card.best-value .rate-price {
    background-color: rgba(56, 161, 105, 0.15);
    color: var(--bs-success);
}

/* Best value badge */
.best-value-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 0.65rem;
    font-weight: 600;
    color: white;
    z-index: 1;
    transform: rotate(45deg);
}

/* Rates header */
.rates-header {
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.rates-title {
    font-weight: 700;
    color: var(--bs-dark);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.rates-subtitle {
    color: var(--bs-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Rates info section */
.rates-info {
    background-color: rgba(49, 130, 206, 0.05);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-top: 1rem;
    border-left: 3px solid var(--bs-primary);
}

.rates-info-title {
    font-weight: 600;
    color: var(--bs-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.rates-info-text {
    color: var(--bs-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Complete redesign of rates display */
.rates-container {
    border-radius: 0.75rem;
    overflow: hidden;
    border: none;
}

.rate-row {
    display: flex;
    margin-bottom: 10px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
}













































.rate-row:last-child {
    margin-bottom: 0;
}

/* WiFi Rates - 3 Column Design with Headers */

#rates-modal .modal-content,
#data-rates-modal .modal-content,
#voucher-list-modal .modal-content,
#session-list-modal .modal-content {
    border-radius: 12px !important;
    overflow: hidden !important;
}

#rates-modal .modal-header,
#data-rates-modal .modal-header,
#voucher-list-modal .modal-header,
#session-list-modal .modal-header {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    border: none !important;
    padding: 1rem 1.25rem !important;
}

#rates-modal .modal-body,
#data-rates-modal .modal-body,
#voucher-list-modal .modal-body,
#session-list-modal .modal-body {
    padding: 1rem !important;
    background: white !important;
}

/* Rates List - Simple Design */
.wifi-rates-list {
    display: flex;
    flex-direction: column;
}

/* Header Row */
.rate-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 0.75rem 1rem;
    background: #f3f4f6;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px 8px 0 0;
}

.rate-header span {
    color: #6b7280;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Rate Rows */
.rate-plan {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.875rem;
    align-items: center;
}

.rate-plan:last-child {
    border-bottom: none;
}

/* Columns */
.plan-price {
    font-weight: 700;
    color: #16a34a;
}

.plan-time {
    font-weight: 500;
    color: #374151;
}

.plan-data {
    font-weight: 500;
    color: #6b7280;
}

.plan-name {
    font-weight: 600;
    color: #374151;
}

/* Voucher List - Simple Design */

/* Voucher List */
.voucher-list {
    display: flex;
    flex-direction: column;
}

/* Header Row */
.voucher-header {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 0.8fr;
    padding: 0.75rem 1rem;
    background: #f3f4f6;
    font-size: 0.7rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px 8px 0 0;
}

.voucher-header span {
    color: #6b7280;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Voucher Rows */
.voucher-item {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 0.8fr;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.8rem;
    align-items: center;
}

.voucher-item:last-child {
    border-bottom: none;
}

/* Columns */
.voucher-code {
    font-weight: 700;
    color: #3b82f6;
    font-family: 'SF Mono', 'Monaco', monospace;
}

.voucher-amount {
    font-weight: 600;
    color: #16a34a;
}

.voucher-duration {
    font-weight: 500;
    color: #374151;
}

.voucher-action-btn {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.375rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.voucher-action-btn:hover {
    background: #2563eb;
}

/* Session List - Simple Design */

/* Session List */
.session-list {
    display: flex;
    flex-direction: column;
}

/* Header Row */
.session-header {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 0.8fr;
    padding: 0.75rem 1rem;
    background: #f3f4f6;
    font-size: 0.7rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px 8px 0 0;
}

.session-header span {
    color: #6b7280;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Session Rows */
.session-item {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 0.8fr;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.8rem;
    align-items: center;
}

.session-item:last-child {
    border-bottom: none;
}

/* Columns */
.session-type {
    font-weight: 600;
    color: #374151;
}

.session-remaining {
    font-weight: 700;
    color: #3b82f6;
}

.session-status {
    display: flex;
    align-items: center;
}

.status-badge-small {
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge-small.status-active {
    color: #047857;
    background: #d1fae5;
}

.status-badge-small.status-paused {
    color: #b45309;
    background: #fef3c7;
}

.status-badge-small.status-completed {
    color: #1e40af;
    background: #dbeafe;
}

.status-badge-small.status-expired {
    color: #dc2626;
    background: #fee2e2;
}

.session-action-btn {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.375rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.session-action-btn:hover {
    background: #2563eb;
}

/* Responsive adjustments for rates */
@media (max-width: 400px) {
    .rates-cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

    /* Data mode styles */
    #time-container.border-info-subtle {
        border-color: rgba(66, 153, 225, 0.3) !important;
    }

    #time-container.border-info-subtle .remaining-time {
        color: var(--bs-info);
        font-family: 'Poppins', 'Inter', monospace;
    }

    #time-container.border-info-subtle .time-label {
        color: var(--bs-info);
        font-weight: 600;
    }

    /* Animation for data mode label */
    @keyframes data-pulse {
        0% { opacity: 0.7; }
        50% { opacity: 1; }
        100% { opacity: 0.7; }
    }

    #time-container.border-info-subtle .time-label i {
        animation: data-pulse 2s infinite;
    }
 #expiry-info {
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

#expiry-time {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Warning state */
#expiry-info.expiry-warning {
    color: var(--bs-warning) !important;
}

/* Critical state */
#expiry-info.expiry-critical {
    color: var(--bs-danger) !important;
}

/* Paused state */
#expiry-time.paused {
    color: var(--bs-warning);
    opacity: 0.9;
}

/* For very small screens, stack the info items */
@media (max-width: 400px) {
    .card-body .d-flex.justify-content-between {
        flex-direction: column;
        align-items: flex-start !important;
    }

    #expiry-info {
        margin-left: 0.5rem;
        margin-top: 0.5rem !important;
    }
}

    .eloading-option {
        border: 1px solid #ddd;
        border-radius: 10px;
        padding: 0.75rem 0.5rem;
        text-align: center;
        cursor: pointer;
        transition: all 0.3s ease;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .eloading-option:hover {
        border-color: #3b82f6;
        background-color: #eff6ff;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    }

    .eloading-icon {
        font-size: 2rem;
        color: #28a745;
        margin-bottom: 0.5rem;
    }

    .eloading-label {
        font-weight: 500;
    }

    .eloading-desc {
        font-size: 0.8rem;
        margin-top: 0.5rem;
    }

/* Add these styles to your CSS file for better e-loading category display */

.category-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.category-card .card-header {
    padding: 0.75rem 1.25rem;
    border-bottom: none;
}

.product-categories .list-group-item {
    border-left: none;
    border-right: none;
    padding: 0.75rem 1.25rem;
    transition: background-color 0.2s ease;
}

.product-categories .list-group-item:first-child {
    border-top: none;
}

.product-categories .list-group-item.active {
    background-color: #e9f2ff;
    color: #0d6efd;
    border-color: #dee2e6;
}

.product-categories .list-group-item:hover {
    background-color: #f8f9fa;
}

.product-categories .list-group-item.active:hover {
    background-color: #dae9ff;
}

.promo-item .badge {
    transition: transform 0.2s ease;
}

.promo-item:hover .badge {
    transform: scale(1.1);
}

/* Improve the provider selection UI */
.provider-option {
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    padding: 10px;
    background-color: #f8f9fa;
    text-align: center;
    cursor: pointer;
}

.provider-option:hover {
    background-color: #e9ecef;
}

.provider-option.selected {
    border-color: #0d6efd;
    background-color: #e7f1ff;
}

.provider-option img {
    display: block;
    margin: 0 auto 8px;
    max-width: 100%;
    height: auto;
}

/* Add animation for screen transitions */
.animate-fade {
    animation: fadeIn 0.3s ease;
}

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


    @media (max-width: 576px) {
        .eloading-icon {
            font-size: 1.5rem;
        }

        .eloading-label {
            font-size: 0.9rem;
        }

        .provider-logo {
            max-width: 60px;
        }
    }

.provider-option {
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    background-color: #f8f9fa;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.provider-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background-color: #f0f7ff;
    border-color: #cce3ff;
}

.provider-option.selected {
    border-color: #3182ce;
    background-color: #ebf5ff;
}

.provider-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 8px;
    border-radius: 4px;
}

.provider-option span {
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.4em;
    color: #1a202c !important;
}

@media (max-width: 576px) {
    .provider-option {
        padding: 8px;
    }

    .provider-logo {
        width: 40px;
        height: 40px;
    }

    .provider-option span {
        font-size: 0.75rem;
    }
}
/* Bill Categories Styling */
.bill-category-option {
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    background-color: #f8f9fa;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.bill-category-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background-color: #f0f7ff;
    border-color: #cce3ff;
}

.bill-category-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3182ce, #2c5282);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.bill-category-option:hover .bill-category-icon {
    transform: scale(1.1);
}

.bill-category-label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.bill-category-count {
    font-size: 0.75rem;
    color: #718096;
}

/* Biller Option Styling */
.biller-option {
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    background-color: #f8f9fa;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.biller-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background-color: #f0f7ff;
    border-color: #cce3ff;
}

.biller-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.biller-option:hover .biller-logo {
    transform: scale(1.05);
}

.biller-option span {
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.4em;
}

/* Biller Header Logo */
.biller-header-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
    border-radius: 4px;
}

/* Policy List Styling */
.policy-list {
    padding-left: 1.25rem;
    margin-bottom: 0;
}

.policy-list li {
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: #4a5568;
}

.policy-list li:last-child {
    margin-bottom: 0;
}

/* Responsive Adjustments */
@media (max-width: 576px) {
    .bill-category-icon {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }

    .bill-category-label {
        font-size: 0.8rem;
    }

    .biller-logo {
        width: 50px;
        height: 50px;
    }

    .biller-option span {
        font-size: 0.75rem;
    }
}

/* Animation for screen transitions */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

#bills-categories-container,
#billers-container,
#bill-payment-form-container {
    animation: fadeIn 0.3s ease;
}
/* ========== WIFI DISCONNECTED OVERLAY ========== */
#disconnected-overlay {
    animation: fadeIn 0.3s ease;
}

#disconnected-overlay .wifi-disconnected-icon {
    position: relative;
    display: inline-block;
}

#disconnected-overlay h3 {
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

#disconnected-overlay p {
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
}

#disconnected-overlay .spinner-border {
    width: 1rem;
    height: 1rem;
}

#reconnect-status {
    font-size: 0.95rem;
}

#reconnect-counter {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

/* Pulsing animation for the wifi icon */
@keyframes pulse-disconnect {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

#disconnected-overlay .fa-wifi {
    animation: pulse-disconnect 2s ease-in-out infinite;
}

/* ========== CHAT STYLES ========== */

/* Floating Chat Button */
.chat-floating-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3182ce, #2c5282);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(49, 130, 206, 0.4);
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chat-floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(49, 130, 206, 0.5);
}

.chat-floating-btn i {
    font-size: 1.5rem;
}

.chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--bs-danger);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Chat Modal */
#chatModal .modal-content {
    border-radius: 1rem;
    overflow: hidden;
}

#chatModal .modal-header {
    background: linear-gradient(135deg, #3182ce, #2c5282);
    border-bottom: none;
    padding: 1rem 1.25rem;
}

#chatModal .modal-title {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

#chatModal .btn-close-white {
    filter: brightness(0) invert(1);
}

/* Chat Messages Container */
.chat-messages {
    height: 350px;
    overflow-y: auto;
    padding: 1rem;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Chat Message Bubbles */
.chat-message {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    position: relative;
    animation: fadeInUp 0.3s ease;
}

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

.chat-message.user {
    align-self: flex-end;
    background: linear-gradient(135deg, #3182ce, #2c5282);
    color: white;
    border-bottom-right-radius: 0.25rem;
}

.chat-message.admin {
    align-self: flex-start;
    background: white;
    color: #2d3748;
    border-bottom-left-radius: 0.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.chat-message .message-text {
    word-wrap: break-word;
    font-size: 0.9rem;
    line-height: 1.4;
}

.chat-message .message-time {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 0.25rem;
    display: block;
}

.chat-message.user .message-time {
    text-align: right;
}

.chat-message.admin .message-time {
    text-align: left;
}

/* Chat Input */
#chatModal .modal-footer {
    padding: 0.75rem;
    background: white;
    border-top: 1px solid rgba(0,0,0,0.1);
}

#chat-input {
    border-radius: 1.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(0,0,0,0.1);
    font-size: 0.9rem;
}

#chat-input:focus {
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

#chat-send-btn {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Typing Indicator */
.chat-typing {
    align-self: flex-start;
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    gap: 0.25rem;
}

.chat-typing span {
    width: 8px;
    height: 8px;
    background: #718096;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.chat-typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.chat-typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

/* Mobile adjustments */
@media (max-width: 576px) {
    .chat-floating-btn {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
    }

    .chat-floating-btn i {
        font-size: 1.25rem;
    }

    .chat-messages {
        height: 300px;
    }

    .chat-message {
        max-width: 85%;
    }
}

/* ========================================
   BANNER V2 - NEW MODERN HEADER DESIGN
   ======================================== */

.banner-container-v2 {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

/* Background Carousel */
.banner-carousel-v2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.banner-img-v2 {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Gradient Overlay */
.banner-overlay-v2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(26, 26, 46, 0.85) 0%,
        rgba(22, 33, 62, 0.75) 50%,
        rgba(15, 52, 96, 0.85) 100%
    );
    z-index: 1;
}

/* Animated Particles */
.banner-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
}

.banner-particles .particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float-particle 8s infinite ease-in-out;
}

.banner-particles .particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.banner-particles .particle:nth-child(2) {
    top: 60%;
    left: 25%;
    animation-delay: 1.5s;
}

.banner-particles .particle:nth-child(3) {
    top: 30%;
    left: 70%;
    animation-delay: 3s;
}

.banner-particles .particle:nth-child(4) {
    top: 70%;
    left: 85%;
    animation-delay: 4.5s;
}

.banner-particles .particle:nth-child(5) {
    top: 50%;
    left: 50%;
    animation-delay: 6s;
}

@keyframes float-particle {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-20px) translateX(10px) scale(1.2);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-10px) translateX(-10px) scale(1);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-25px) translateX(5px) scale(1.1);
        opacity: 0.5;
    }
}

/* Main Content Container */
.banner-content-v2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3;
    padding: 1rem;
}

/* WiFi Logo with Pulse Rings */
.banner-logo-v2 {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.banner-logo-v2 i {
    font-size: 2rem;
    color: #4fd1c5;
    z-index: 4;
    filter: drop-shadow(0 0 10px rgba(79, 209, 197, 0.5));
}

.wifi-pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 2px solid rgba(79, 209, 197, 0.4);
    border-radius: 50%;
    animation: wifi-pulse 2s infinite ease-out;
}

.wifi-pulse-ring.delay-1 {
    animation-delay: 0.5s;
}

.wifi-pulse-ring.delay-2 {
    animation-delay: 1s;
}

@keyframes wifi-pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
    }
}

/* Brand Text */
.banner-brand-v2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.banner-brand-v2 .brand-piso {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 2.25rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 3px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.banner-brand-v2 .brand-wifi {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 2.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, #4fd1c5 0%, #38b2ac 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 3px;
    filter: drop-shadow(0 2px 4px rgba(79, 209, 197, 0.3));
}

/* Tagline */
.banner-tagline-v2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.banner-tagline-v2 i {
    color: #f6e05e;
    font-size: 0.65rem;
    animation: bolt-flash 1.5s infinite;
}

@keyframes bolt-flash {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.9);
    }
}

/* Signal Bars Animation */
.signal-bars-v2 {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 20px;
}

.signal-bars-v2 .signal-bar {
    width: 6px;
    background: linear-gradient(to top, #4fd1c5, #38b2ac);
    border-radius: 2px;
    animation: signal-wave 1.2s infinite ease-in-out;
}

.signal-bars-v2 .signal-bar:nth-child(1) {
    height: 6px;
    animation-delay: 0s;
}

.signal-bars-v2 .signal-bar:nth-child(2) {
    height: 10px;
    animation-delay: 0.15s;
}

.signal-bars-v2 .signal-bar:nth-child(3) {
    height: 14px;
    animation-delay: 0.3s;
}

.signal-bars-v2 .signal-bar:nth-child(4) {
    height: 18px;
    animation-delay: 0.45s;
}

@keyframes signal-wave {
    0%, 100% {
        opacity: 0.4;
        transform: scaleY(0.8);
    }
    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* Responsive Adjustments */
@media (min-width: 576px) {
    .banner-container-v2 {
        height: 220px;
    }

    .banner-img-v2 {
        height: 220px;
    }

    .banner-logo-v2 {
        width: 70px;
        height: 70px;
    }

    .banner-logo-v2 i {
        font-size: 2.5rem;
    }

    .banner-brand-v2 .brand-piso,
    .banner-brand-v2 .brand-wifi {
        font-size: 2.5rem;
        letter-spacing: 4px;
    }

    .banner-tagline-v2 {
        font-size: 0.8rem;
        letter-spacing: 3px;
    }
}

@media (max-width: 375px) {
    .banner-container-v2 {
        height: 180px;
    }

    .banner-img-v2 {
        height: 180px;
    }

    .banner-logo-v2 {
        width: 50px;
        height: 50px;
        margin-bottom: 0.5rem;
    }

    .banner-logo-v2 i {
        font-size: 1.75rem;
    }

    .wifi-pulse-ring {
        width: 40px;
        height: 40px;
    }

    .banner-brand-v2 .brand-piso,
    .banner-brand-v2 .brand-wifi {
        font-size: 1.75rem;
        letter-spacing: 2px;
    }

    .banner-tagline-v2 {
        font-size: 0.65rem;
        letter-spacing: 1px;
    }

    .signal-bars-v2 .signal-bar {
        width: 5px;
    }
}

/* ========================================
   BANNER MODERN - NEW SLEEK HEADER DESIGN
   ======================================== */

.banner-modern {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
}

/* Animated Gradient Background */
.banner-gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        #0f0c29 0%,
        #302b63 25%,
        #24243e 50%,
        #1a1a2e 75%,
        #0f0c29 100%
    );
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
    z-index: 0;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Banner Carousel as Background */
.banner-modern .banner-carousel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.3;
}

.banner-modern .banner-carousel-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(15, 12, 41, 0.7) 0%,
        rgba(48, 43, 99, 0.5) 50%,
        rgba(36, 36, 62, 0.9) 100%
    );
    z-index: 2;
}

/* Floating Particles */
.banner-modern .banner-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.banner-modern .particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    animation: particle-float 6s infinite ease-in-out;
}

.banner-modern .particle:nth-child(1) { top: 15%; left: 10%; animation-delay: 0s; animation-duration: 5s; }
.banner-modern .particle:nth-child(2) { top: 45%; left: 20%; animation-delay: 1s; animation-duration: 7s; }
.banner-modern .particle:nth-child(3) { top: 25%; left: 65%; animation-delay: 2s; animation-duration: 6s; }
.banner-modern .particle:nth-child(4) { top: 60%; left: 80%; animation-delay: 0.5s; animation-duration: 8s; }
.banner-modern .particle:nth-child(5) { top: 70%; left: 40%; animation-delay: 1.5s; animation-duration: 5.5s; }

@keyframes particle-float {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.4;
    }
    25% {
        transform: translateY(-15px) translateX(8px) scale(1.3);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-8px) translateX(-5px) scale(1);
        opacity: 0.5;
    }
    75% {
        transform: translateY(-20px) translateX(3px) scale(1.2);
        opacity: 0.7;
    }
}

/* Main Banner Content */
.banner-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
    padding: 1.5rem;
}

/* WiFi Signal Animation */
.wifi-signal-container {
    margin-bottom: 0.75rem;
}

.wifi-signal {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    height: 24px;
}

.wifi-signal .signal-bar {
    width: 8px;
    background: linear-gradient(to top, #00d9ff, #00ffcc);
    border-radius: 3px;
    animation: signal-grow 1.5s infinite ease-in-out;
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

.wifi-signal .signal-bar.bar-1 {
    height: 8px;
    animation-delay: 0s;
}

.wifi-signal .signal-bar.bar-2 {
    height: 14px;
    animation-delay: 0.2s;
}

.wifi-signal .signal-bar.bar-3 {
    height: 20px;
    animation-delay: 0.4s;
}

@keyframes signal-grow {
    0%, 100% {
        opacity: 0.5;
        transform: scaleY(0.85);
    }
    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* Brand Container */
.brand-container {
    text-align: center;
    margin-bottom: 0.5rem;
}

.brand-label {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 8px;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.brand-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.brand-wifi {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 2.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00d9ff 0%, #00ffcc 50%, #00ff88 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 4px;
    text-shadow: none;
    filter: drop-shadow(0 0 20px rgba(0, 217, 255, 0.3));
}

.brand-icon {
    font-size: 2rem;
    color: #00d9ff;
    filter: drop-shadow(0 0 15px rgba(0, 217, 255, 0.6));
    animation: icon-pulse 2s infinite ease-in-out;
}

@keyframes icon-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* Tagline */
.tagline-container {
    margin-bottom: 0.75rem;
}

.tagline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.tagline-icon {
    color: #ffd700;
    font-size: 0.65rem;
    animation: bolt-pulse 1s infinite;
}

@keyframes bolt-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(0.9);
    }
}

/* Connection Status */
.banner-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.banner-status .status-dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    animation: status-blink 1.5s infinite;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.6);
}

@keyframes status-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.banner-status .status-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Responsive Adjustments for Banner Modern */
@media (min-width: 576px) {
    .banner-modern {
        height: 220px;
    }

    .brand-wifi {
        font-size: 3rem;
        letter-spacing: 5px;
    }

    .brand-icon {
        font-size: 2.25rem;
    }

    .brand-label {
        font-size: 0.85rem;
        letter-spacing: 10px;
    }

    .tagline {
        font-size: 0.75rem;
        letter-spacing: 3px;
    }

    .wifi-signal .signal-bar {
        width: 10px;
    }

    .wifi-signal .signal-bar.bar-1 { height: 10px; }
    .wifi-signal .signal-bar.bar-2 { height: 16px; }
    .wifi-signal .signal-bar.bar-3 { height: 24px; }
}

@media (max-width: 375px) {
    .banner-modern {
        height: 180px;
    }

    .brand-wifi {
        font-size: 2.25rem;
        letter-spacing: 3px;
    }

    .brand-icon {
        font-size: 1.75rem;
    }

    .brand-label {
        font-size: 0.7rem;
        letter-spacing: 6px;
    }

    .tagline {
        font-size: 0.6rem;
        letter-spacing: 1.5px;
    }

    .wifi-signal .signal-bar {
        width: 6px;
    }

    .wifi-signal .signal-bar.bar-1 { height: 6px; }
    .wifi-signal .signal-bar.bar-2 { height: 10px; }
    .wifi-signal .signal-bar.bar-3 { height: 16px; }

    .banner-status {
        padding: 0.3rem 0.75rem;
    }

    .banner-status .status-label {
        font-size: 0.55rem;
    }
}


/* Increase height for WiFi Rates, Data Rates, Vouchers, Sessions, E-loading, E-Payment buttons */
#wifi-rates-btn,
#data-rates-btn,
#voucher-list-btn,
#session-list-btn,
#eloading-btn,
#epayment-btn {
    padding-top: 0.65rem !important;
    padding-bottom: 0.65rem !important;
    min-height: 50px;
}

/* Voucher Footer */
.voucher-footer {
    text-align: center;
    font-size: 0.95rem;
    color: #64748b;
    margin-top: 1rem;
}

.voucher-footer .footer-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.voucher-footer .footer-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* E-loading modal images - Apple SF Pro Display typography with gradient */
.eloading-option .eloading-label {
    margin-top: 0.5rem;
    margin-bottom: 0.65rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: -0.018em;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.19;
    text-align: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.eloading-image {
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
}

.eloading-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Select Load Type - Professional Styling */
.load-type-header {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: #1d1d1f;
    letter-spacing: -0.015em;
    margin-bottom: 0.5rem !important;
}

.load-type-option {
    padding: 0.65rem 0.75rem;
}

.load-type-option .eloading-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 0.25rem;
    background: none;
    -webkit-text-fill-color: #1d1d1f;
}

.load-type-option .eloading-desc {
    font-size: 0.75rem;
    color: #6e6e73;
    margin-top: 0.15rem;
}

/* E-loading modal border radius fix */
#eloading-modal .modal-content {
    border-radius: 12px !important;
    overflow: hidden;
}

#eloading-modal .modal-body {
    border-radius: 0 0 12px 12px !important;
}



/* Modal headings - Design2 style */
#eloading-modal h6,
#provider-selection h6,
#load-type-container h6 {
    font-weight: 600;
    font-size: 1rem;
    color: #2d3748;
}

/* Provider Selection - Design1 Copy */
.provider-option {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.provider-option:hover {
    border-color: #3b82f6;
    background: #eff6ff;
    transform: translateY(-2px);
}

.provider-option.selected {
    border-color: #3b82f6;
    background: #eff6ff;
}

.provider-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.provider-option span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1f2937;
}

/* Modal headings */
#provider-selection h6,
#load-type-container h6 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f2937;
}

/* Proceed to Payment button styling */
#confirm-eload-btn {
    padding: 0.875rem 1rem !important;
    font-weight: 600;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    border: none !important;
    font-size: 1rem;
}

#confirm-eload-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

/* Select Load Type - Bottom Popup Animation */

/* Select Load Type - Bottom of Modal */
#load-type-container {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

/* Selected Provider Display */
#selected-provider-display {
    background: #f0f9ff !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

#selected-provider-display small {
    font-size: 0.75rem;
    color: #64748b;
    display: block;
    margin-bottom: 0.25rem;
}

.selected-provider-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

#selected-provider-name {
    font-size: 1rem;
    font-weight: 700;
    color: #3b82f6;
}

/* Provider Search Box */
.provider-search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.provider-search-box i {
    position: absolute;
    left: 1rem;
    color: #9ca3af;
    font-size: 0.875rem;
    pointer-events: none;
}

.provider-search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.9375rem;
    color: #1f2937;
    background: white;
    transition: all 0.2s ease;
}

.provider-search-input:focus {
    outline: none;
    border-color: #3b82f6;
    background: #f8fafc;
}

.provider-search-input::placeholder {
    color: #9ca3af;
}

/* Enhanced voucher input - Professional & Clean (from design1) */
.voucher-container {
    margin-top: 0.75rem !important;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 8px !important;
    padding: 0.35rem !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

.voucher-container .voucher-input {
    background: transparent !important;
    border: none !important;
    padding: 0.5rem 0.75rem !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    color: #1f2937 !important;
    height: auto !important;
}

.voucher-container .voucher-input:focus {
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.voucher-container .voucher-input::placeholder {
    color: #9ca3af !important;
    font-weight: 400 !important;
    font-size: 0.85rem !important;
}

.voucher-container .submit-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 0.5rem 0.9rem !important;
    color: white !important;
    font-size: 0.9rem !important;
    transition: none !important;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3) !important;
}

.voucher-container .submit-btn:hover {
    transform: none !important;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3) !important;
}

.voucher-container .submit-btn:active {
    transform: none !important;
}

/* E-Payment Modal Styles */
.epay-section-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f2937;
}

/* E-Payment Options */
.epay-payment-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.epay-payment-option {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.epay-payment-option:hover {
    border-color: #3b82f6;
    background: #eff6ff;
    transform: scale(1.02);
}

.epay-payment-option:active {
    transform: scale(0.98);
}

.epay-payment-img {
    max-width: 100%;
    height: auto;
    max-height: 60px;
    object-fit: contain;
}

@media (max-width: 576px) {
    .epay-payment-option {
        padding: 1.25rem 0.75rem;
    }

    .epay-payment-img {
        max-height: 50px;
    }
}

/* ========================================
   NEW PORTAL DESIGN STYLES (2024)
   ======================================== */

/* E-Loading Modal - New Design */
.eloading-option {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.eloading-option:hover {
    border-color: #3b82f6;
    background: #eff6ff;
    transform: scale(1.02);
}

.eloading-option.load-type-option {
    padding: 1.25rem;
}

.eloading-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.eloading-desc {
    font-size: 0.75rem;
    color: #9ca3af;
}

.eloading-image {
    margin-top: 0.75rem;
}

.eloading-image img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    border-radius: 8px;
}

/* Provider Options */
.provider-option {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.provider-option:hover {
    border-color: #3b82f6;
    background: #eff6ff;
    transform: scale(1.02);
}

.provider-option.selected {
    border-color: #3b82f6;
    background: #eff6ff;
}

.provider-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
}

.provider-option span {
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
}

.selected-provider-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 4px;
}

/* Provider Search Box */
.provider-search-box {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
}

.provider-search-box i {
    color: #9ca3af;
    font-size: 0.85rem;
}

.provider-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.85rem;
    color: #374151;
    background: transparent;
}

.provider-search-input::placeholder {
    color: #9ca3af;
}

/* WiFi Rates List - New Design */
.wifi-rates-list {
    display: flex;
    flex-direction: column;
}

.rate-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 0.75rem 1rem;
    background: #f3f4f6;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px 8px 0 0;
}

.rate-plan {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.875rem;
}

.rate-plan:last-child {
    border-bottom: none;
}

.plan-price {
    font-weight: 700;
    color: #16a34a;
}

.plan-time {
    font-weight: 500;
    color: #374151;
}

.plan-data {
    font-weight: 500;
    color: #6b7280;
}

.plan-name {
    font-weight: 600;
    color: #374151;
}

/* Voucher List - New Design */
.voucher-list {
    display: flex;
    flex-direction: column;
}

.voucher-header {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 0.8fr;
    padding: 0.75rem 1rem;
    background: #f3f4f6;
    font-size: 0.7rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px 8px 0 0;
}

.voucher-item {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 0.8fr;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.8rem;
    align-items: center;
}

.voucher-item:last-child {
    border-bottom: none;
}

.voucher-code {
    font-weight: 700;
    color: #3b82f6;
    font-family: 'SF Mono', 'Monaco', monospace;
}

.voucher-amount {
    font-weight: 600;
    color: #16a34a;
}

.voucher-duration {
    font-weight: 500;
    color: #374151;
}

.voucher-action-btn {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.375rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.voucher-action-btn:hover {
    background: #2563eb;
}

/* Session List - New Design */
.session-list {
    display: flex;
    flex-direction: column;
}

.session-header {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 0.8fr;
    padding: 0.75rem 1rem;
    background: #f3f4f6;
    font-size: 0.7rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px 8px 0 0;
}

.session-item {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 0.8fr;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.8rem;
    align-items: center;
}

.session-item:last-child {
    border-bottom: none;
}

.session-type {
    font-weight: 600;
    color: #374151;
}

.session-remaining {
    font-weight: 700;
    color: #3b82f6;
}

.session-status {
    display: flex;
    align-items: center;
}

.status-badge-small {
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge-small.status-active {
    background: #d1fae5;
    color: #059669;
}

.status-badge-small.status-paused {
    background: #fef3c7;
    color: #d97706;
}

.status-badge-small.status-expired {
    background: #fee2e2;
    color: #dc2626;
}

.status-badge-small.status-completed {
    background: #dbeafe;
    color: #2563eb;
}

.session-action-btn {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.375rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.session-action-btn:hover {
    background: #2563eb;
}

/* Footer Link */
.footer-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.footer-link:hover {
    text-decoration: underline;
    color: #2563eb;
}

.voucher-footer {
    padding-top: 0.5rem;
}

/* Responsive adjustments for new elements */
@media (max-width: 576px) {
    .voucher-header,
    .voucher-item {
        grid-template-columns: 1.2fr 0.8fr 0.8fr 0.6fr;
        font-size: 0.7rem;
    }

    .session-header,
    .session-item {
        grid-template-columns: 1fr 0.8fr 0.8fr 0.6fr;
        font-size: 0.7rem;
    }

    .eloading-image img {
        max-height: 60px;
    }
}

/* Payment Details Styles */
.payment-details {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.payment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.payment-item:last-child {
    border-bottom: none;
}

.payment-item.payment-total {
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    border-top: 2px solid #e5e7eb;
    border-bottom: none;
}

.payment-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.payment-value {
    font-size: 0.875rem;
    color: #1f2937;
    font-weight: 600;
}

.payment-total-value {
    font-size: 1.1rem;
    color: #16a34a !important;
    font-weight: 700;
}

/* ========================================
   LOW SCREEN / SMALL DEVICE RESPONSIVE
   Targets devices with small viewport height
   or narrow width (320px-375px)
   ======================================== */

/* Small width devices (iPhone SE, Galaxy S8, etc.) */
@media (max-width: 375px) {
    .banner-img {
        height: 150px !important;
    }

    .card-body-custom {
        padding: 0.75rem !important;
    }

    #remaining-time {
        font-size: 1.5rem !important;
    }

    #time-container .card-body {
        padding: 0.375rem 0.5rem !important;
    }

    #time-container .text-secondary.small {
        font-size: 0.65rem !important;
    }

    .alert.mb-2 {
        padding: 0.35rem 0.5rem !important;
        margin-bottom: 0.375rem !important;
        font-size: 12px !important;
    }

    .status-badge {
        padding: 0.375rem 0.75rem !important;
        font-size: 0.8rem !important;
    }

    .status-container {
        margin-bottom: 0.375rem !important;
    }

    .info-card {
        padding: 0.375rem !important;
    }

    .info-card-header {
        font-size: 0.6rem !important;
    }

    .info-card-value {
        font-size: 0.8rem !important;
    }

    .account-info-grid {
        gap: 0.375rem !important;
        margin-bottom: 0.5rem !important;
    }

    .row.g-2.mb-3 {
        margin-bottom: 0.5rem !important;
    }

    .btn.py-3 {
        padding-top: 0.625rem !important;
        padding-bottom: 0.625rem !important;
    }

    .btn.py-2 {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    .btn .fw-semibold {
        font-size: 0.8rem !important;
    }

    .row.g-2.mb-2 {
        margin-bottom: 0.375rem !important;
    }

    .action-buttons-container .mb-2 {
        margin-bottom: 0.375rem !important;
    }

    .voucher-footer {
        padding-top: 0.25rem !important;
    }

    .wifi-text {
        font-size: 1.25rem !important;
    }
}

/* Very short viewport height (landscape or small phones) */
@media (max-height: 667px) {
    .banner-img {
        height: 140px !important;
    }

    .card-body-custom {
        padding: 0.625rem 0.75rem !important;
    }

    #remaining-time {
        font-size: 1.5rem !important;
    }

    #time-container .card-body {
        padding: 0.375rem 0.5rem !important;
    }

    .alert.mb-2 {
        padding: 0.35rem 0.5rem !important;
        margin-bottom: 0.375rem !important;
    }

    .status-container {
        margin-bottom: 0.375rem !important;
    }

    .account-info-grid {
        margin-bottom: 0.5rem !important;
    }

    .btn.py-3 {
        padding-top: 0.625rem !important;
        padding-bottom: 0.625rem !important;
    }

    .btn.py-2 {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    .row.g-2.mb-2 {
        margin-bottom: 0.375rem !important;
    }

    .action-buttons-container .mb-2 {
        margin-bottom: 0.375rem !important;
    }
}

/* Extra small devices (iPhone SE 1st gen, 320px width) */
@media (max-width: 320px) {
    .banner-img {
        height: 120px !important;
    }

    .card-body-custom {
        padding: 0.5rem !important;
    }

    #remaining-time {
        font-size: 1.3rem !important;
    }

    .info-card-header {
        font-size: 0.55rem !important;
    }

    .info-card-value {
        font-size: 0.75rem !important;
    }

    .btn .fw-semibold {
        font-size: 0.75rem !important;
    }

    .btn i {
        font-size: 0.75rem !important;
    }

    .wifi-text {
        font-size: 1rem !important;
    }
}