/* Mobile App-like Experience Styles */

/* Hide avatar/account dropdown on mobile */
@media (max-width: 1023px) {
    .header-user-profile {
        display: none !important;
    }
}

/* Service Cards - Mobile App Style */
.service-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 0;
}

@media (min-width: 640px) {
    .service-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (min-width: 768px) {
    .service-cards-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 24px;
    }
}

.service-card-app {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: #ffffff;
    border-radius: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    aspect-ratio: 1;
    min-height: 140px;
}

.service-card-app::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.service-card-app:hover::before,
.service-card-app:active::before {
    opacity: 1;
}

.service-card-app:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.12);
}

.service-card-app:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Dark mode support */
[data-pc-theme="dark"] .service-card-app,
.dark .service-card-app {
    background: #1f2937;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.4);
}

[data-pc-theme="dark"] .service-card-app:hover,
.dark .service-card-app:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4), 0 4px 8px rgba(0, 0, 0, 0.3);
}

.service-card-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: white;
    font-size: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card-icon-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.service-card-app:hover .service-card-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3), 0 3px 6px rgba(0, 0, 0, 0.2);
}

.service-card-app:active .service-card-icon-wrapper {
    transform: scale(1.05) rotate(2deg);
}

.service-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px 0;
    text-align: center;
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}

[data-pc-theme="dark"] .service-card-title,
.dark .service-card-title {
    color: #f9fafb;
}

.service-card-subtitle {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
    text-align: center;
    font-weight: 500;
    transition: color 0.3s ease;
}

[data-pc-theme="dark"] .service-card-subtitle,
.dark .service-card-subtitle {
    color: #9ca3af;
}

/* Mobile-specific enhancements */
@media (max-width: 639px) {
    .service-card-app {
        padding: 20px 12px;
        min-height: 130px;
        border-radius: 18px;
    }
    
    .service-card-icon-wrapper {
        width: 56px;
        height: 56px;
        border-radius: 16px;
        font-size: 28px;
        margin-bottom: 10px;
    }
    
    .service-card-title {
        font-size: 14px;
    }
    
    .service-card-subtitle {
        font-size: 11px;
    }
}

/* Dashboard Container Spacing */
.dashboard-container {
    margin-bottom: 24px;
}

.dashboard-section {
    margin-bottom: 24px;
}

@media (max-width: 639px) {
    .dashboard-section {
        margin-bottom: 20px;
    }
}

/* Stats Cards - Mobile App Style */
.stat-card-app {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    min-height: 140px;
}

.stat-card-app::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.stat-card-app:hover::before {
    opacity: 1;
}

.stat-card-app:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.12);
}

[data-pc-theme="dark"] .stat-card-app,
.dark .stat-card-app {
    background: #1f2937;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.4);
}

[data-pc-theme="dark"] .stat-card-app:hover,
.dark .stat-card-app:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4), 0 4px 8px rgba(0, 0, 0, 0.3);
}

.stat-card-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: white;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card-icon-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.stat-card-app:hover .stat-card-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3), 0 3px 6px rgba(0, 0, 0, 0.2);
}

.stat-card-content {
    flex: 1;
}

.stat-card-value {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px 0;
    letter-spacing: -0.02em;
}

[data-pc-theme="dark"] .stat-card-value,
.dark .stat-card-value {
    color: #f9fafb;
}

.stat-card-label {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 8px 0;
    font-weight: 500;
}

[data-pc-theme="dark"] .stat-card-label,
.dark .stat-card-label {
    color: #9ca3af;
}

.stat-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 8px;
}

.stat-badge-success {
    background: rgba(23, 185, 120, 0.1);
    color: #17B978;
    border: 1px solid rgba(23, 185, 120, 0.2);
}

.stat-badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.stat-card-button {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, #4680FF 0%, #5b8fff 100%);
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 8px;
    box-shadow: 0 2px 8px rgba(70, 128, 255, 0.3);
    transition: all 0.3s ease;
}

.stat-card-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(70, 128, 255, 0.4);
}

@media (max-width: 639px) {
    .stat-card-app {
        padding: 16px;
        min-height: 120px;
        border-radius: 18px;
    }
    
    .stat-card-icon-wrapper {
        width: 48px;
        height: 48px;
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .stat-card-value {
        font-size: 20px;
    }
    
    .stat-card-label {
        font-size: 12px;
    }
}

/* Dashboard Card Container */
.dashboard-card-app {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-card-app:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.1);
}

[data-pc-theme="dark"] .dashboard-card-app,
.dark .dashboard-card-app {
    background: #1f2937;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.4);
}

[data-pc-theme="dark"] .dashboard-card-app:hover,
.dark .dashboard-card-app:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4), 0 4px 8px rgba(0, 0, 0, 0.3);
}

.dashboard-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

[data-pc-theme="dark"] .dashboard-card-header,
.dark .dashboard-card-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.dashboard-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0;
    letter-spacing: -0.02em;
}

[data-pc-theme="dark"] .dashboard-card-title,
.dark .dashboard-card-title {
    color: #f9fafb;
}

.dashboard-card-body {
    padding: 24px;
}

@media (max-width: 639px) {
    .dashboard-card-header {
        padding: 16px 20px;
    }
    
    .dashboard-card-body {
        padding: 20px;
    }
    
    .dashboard-card-title {
        font-size: 16px;
    }
}

/* Category Cards */
.category-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 640px) {
    .category-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (min-width: 768px) {
    .category-cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .category-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.category-card-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    background: #f9fafb;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.category-card-app:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.1);
    border-color: rgba(70, 128, 255, 0.3);
}

.category-card-app:active {
    transform: translateY(-2px) scale(0.98);
}

[data-pc-theme="dark"] .category-card-app,
.dark .category-card-app {
    background: #111827;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.4);
}

[data-pc-theme="dark"] .category-card-app:hover,
.dark .category-card-app:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4), 0 4px 8px rgba(0, 0, 0, 0.3);
    border-color: rgba(70, 128, 255, 0.5);
}

.category-card-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(70, 128, 255, 0.1) 0%, rgba(70, 128, 255, 0.05) 100%);
    color: #4680FF;
    font-size: 28px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(70, 128, 255, 0.15);
    transition: all 0.3s ease;
}

.category-card-app:hover .category-card-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 12px rgba(70, 128, 255, 0.25);
}

.category-card-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px 0;
    text-align: center;
}

[data-pc-theme="dark"] .category-card-name,
.dark .category-card-name {
    color: #f9fafb;
}

.category-card-count {
    font-size: 11px;
    color: #6b7280;
    margin: 0;
    text-align: center;
    font-weight: 500;
}

[data-pc-theme="dark"] .category-card-count,
.dark .category-card-count {
    color: #9ca3af;
}

@media (max-width: 639px) {
    .category-card-app {
        padding: 16px 12px;
    }
    
    .category-card-icon-wrapper {
        width: 48px;
        height: 48px;
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .category-card-name {
        font-size: 13px;
    }
    
    .category-card-count {
        font-size: 10px;
    }
}

/* Activity Cards Mobile */
.activity-cards-mobile {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-card-app {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.activity-card-app:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.1);
}

[data-pc-theme="dark"] .activity-card-app,
.dark .activity-card-app {
    background: #1f2937;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.4);
}

.activity-card-header-mobile {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.activity-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.activity-badge {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.activity-badge-primary {
    background: rgba(70, 128, 255, 0.1);
    color: #4680FF;
    border: 1px solid rgba(70, 128, 255, 0.2);
}

.activity-badge-success {
    background: rgba(23, 185, 120, 0.1);
    color: #17B978;
    border: 1px solid rgba(23, 185, 120, 0.2);
}

.activity-badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.activity-badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.activity-amount {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
}

.activity-amount-success {
    color: #17B978;
}

.activity-amount-danger {
    color: #ef4444;
}

.activity-description {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 8px 0;
    line-height: 1.5;
}

[data-pc-theme="dark"] .activity-description,
.dark .activity-description {
    color: #9ca3af;
}

.activity-date {
    font-size: 11px;
    color: #9ca3af;
    margin: 0;
}

[data-pc-theme="dark"] .activity-date,
.dark .activity-date {
    color: #6b7280;
}

.activity-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
}

.activity-empty-state i {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.activity-empty-state p {
    font-size: 14px;
    margin: 0;
}

/* Safe area support for notched devices */
.safe-area-bottom {
    padding-bottom: env(safe-area-inset-bottom);
}

.pb-safe {
    padding-bottom: env(safe-area-inset-bottom);
}

/* Mobile bottom navigation - App-like style */
.pc-mob-nav {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.95);
    -webkit-tap-highlight-color: transparent;
    border-top: 1px solid rgba(229, 231, 235, 0.5);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

[data-pc-theme="dark"] .pc-mob-nav,
.dark .pc-mob-nav {
    background: rgba(31, 41, 55, 0.95);
    border-top-color: rgba(55, 65, 81, 0.5);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

/* Navigation links */
.pc-mob-nav .nav-link {
    position: relative;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    transition: all 0.3s ease;
    color: #6b7280;
    text-decoration: none;
}

[data-pc-theme="dark"] .pc-mob-nav .nav-link,
.dark .pc-mob-nav .nav-link {
    color: #9ca3af;
}

/* Icon wrapper for animation */
.pc-mob-nav .nav-icon-wrapper {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

/* Active state */
.pc-mob-nav .nav-link.active {
    color: var(--primary-500, #4680FF);
}

[data-pc-theme="dark"] .pc-mob-nav .nav-link.active,
.dark .pc-mob-nav .nav-link.active {
    color: var(--primary-500, #60a5fa);
}

.pc-mob-nav .nav-link.active .nav-icon-wrapper {
    transform: translateY(-2px);
}

.pc-mob-nav .nav-link.active .nav-icon-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--primary-500, #4680FF);
    opacity: 0.1;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.1;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.2;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Text animation */
.pc-mob-nav .nav-text {
    transition: all 0.3s ease;
    font-weight: 500;
}

.pc-mob-nav .nav-link.active .nav-text {
    font-weight: 600;
    color: var(--primary-500, #4680FF);
}

[data-pc-theme="dark"] .pc-mob-nav .nav-link.active .nav-text,
.dark .pc-mob-nav .nav-link.active .nav-text {
    color: var(--primary-500, #60a5fa);
}

/* Hover/Active press effect */
.pc-mob-nav .nav-link:active {
    transform: scale(0.95);
}

.pc-mob-nav .nav-link:active .nav-icon-wrapper {
    transform: translateY(0) scale(0.9);
}

/* Menu toggle button */
.pc-mob-nav .menu-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

/* Mobile menu offcanvas */
.pc-mobile-menu-offcanvas {
    width: 85%;
    max-width: 320px;
}

.pc-mobile-menu-offcanvas .offcanvas-body {
    padding: 0;
}

.pc-mobile-menu-offcanvas .offcanvas-body a {
    color: inherit;
    text-decoration: none;
}

/* Hide scrollbars on mobile for cleaner look */
@media (max-width: 1024px) {
    body {
        -webkit-overflow-scrolling: touch;
        padding-bottom: 60px; /* Space for bottom nav */
    }
    
    /* Prevent text selection on mobile nav */
    .pc-mob-nav {
        -webkit-user-select: none;
        user-select: none;
    }
    
    /* Ensure content doesn't hide behind nav */
    .pc-container,
    .page-body {
        padding-bottom: 80px;
    }
    
    /* Main content area padding */
    main {
        padding-bottom: 80px;
    }
}

/* Privacy mode styles */
[data-privacy="true"] {
    letter-spacing: 0.1em;
}

/* Smooth balance updates */
.balance-display {
    transition: all 0.3s ease;
}

/* Hide sidebar completely on mobile */
@media (max-width: 1024px) {
    .pc-sidebar {
        display: none !important;
    }
    
    .pc-sidebar.mob-sidebar-active {
        display: none !important;
    }
    
    /* Hide sidebar toggle on mobile */
    #mobile-collapse {
        display: none !important;
    }
    
    /* Remove overlay when sidebar is hidden */
    .pc-menu-overlay {
        display: none !important;
    }
}

/* Top-up Bottom Sheet */
.topup-bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: white;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dark .topup-bottom-sheet {
    background: #1f2937;
}

.topup-bottom-sheet.active {
    transform: translateY(0);
}

.topup-bottom-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1049;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.topup-bottom-sheet-overlay.active {
    opacity: 1;
    visibility: visible;
}

.topup-bottom-sheet-header {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.dark .topup-bottom-sheet-header {
    border-bottom-color: #374151;
}

.topup-bottom-sheet-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}

.dark .topup-bottom-sheet-header h3 {
    color: #f9fafb;
}

.topup-bottom-sheet-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6b7280;
}

.dark .topup-bottom-sheet-close {
    background: #374151;
    color: #9ca3af;
}

.topup-bottom-sheet-close:hover {
    background: #e5e7eb;
    transform: rotate(90deg);
}

.dark .topup-bottom-sheet-close:hover {
    background: #4b5563;
}

.topup-bottom-sheet-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

.topup-service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.topup-service-card {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: block;
    animation: slideUp 0.4s ease backwards;
}

.dark .topup-service-card {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-color: #374151;
}

.topup-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(70, 128, 255, 0.1) 0%, rgba(70, 128, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.topup-service-card:hover::before,
.topup-service-card:active::before {
    opacity: 1;
}

.topup-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(70, 128, 255, 0.2);
    border-color: #4680FF;
}

.topup-service-card:active {
    transform: translateY(-2px) scale(0.98);
}

.topup-service-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4680FF 0%, #5b8fff 100%);
    color: white;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(70, 128, 255, 0.3);
    transition: all 0.3s ease;
}

.topup-service-card:hover .topup-service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 16px rgba(70, 128, 255, 0.4);
}

.topup-service-name {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.dark .topup-service-name {
    color: #f9fafb;
}

.topup-service-desc {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

.dark .topup-service-desc {
    color: #9ca3af;
}

/* Stagger animation for cards */
.topup-service-card:nth-child(1) { animation-delay: 0.05s; }
.topup-service-card:nth-child(2) { animation-delay: 0.1s; }
.topup-service-card:nth-child(3) { animation-delay: 0.15s; }
.topup-service-card:nth-child(4) { animation-delay: 0.2s; }
.topup-service-card:nth-child(5) { animation-delay: 0.25s; }
.topup-service-card:nth-child(6) { animation-delay: 0.3s; }

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Handle indicator */
.topup-bottom-sheet-handle {
    width: 40px;
    height: 4px;
    background: #d1d5db;
    border-radius: 2px;
    margin: 12px auto 0;
    flex-shrink: 0;
}

[data-pc-theme="dark"] .topup-bottom-sheet-handle,
.dark .topup-bottom-sheet-handle {
    background: #4b5563;
}

/* Menu Bottom Sheet - Same styles as Top-up */
.menu-bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: white;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

[data-pc-theme="dark"] .menu-bottom-sheet,
.dark .menu-bottom-sheet {
    background: #1f2937;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.menu-bottom-sheet.active {
    transform: translateY(0);
}

.menu-bottom-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1049;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.menu-bottom-sheet-overlay.active {
    opacity: 1;
    visibility: visible;
}

.menu-bottom-sheet-header {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

[data-pc-theme="dark"] .menu-bottom-sheet-header,
.dark .menu-bottom-sheet-header {
    border-bottom-color: #374151;
}

.menu-bottom-sheet-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}

[data-pc-theme="dark"] .menu-bottom-sheet-header h3,
.dark .menu-bottom-sheet-header h3 {
    color: #f9fafb;
}

.menu-bottom-sheet-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6b7280;
}

[data-pc-theme="dark"] .menu-bottom-sheet-close,
.dark .menu-bottom-sheet-close {
    background: #374151;
    color: #9ca3af;
}

.menu-bottom-sheet-close:hover {
    background: #e5e7eb;
    transform: rotate(90deg);
}

[data-pc-theme="dark"] .menu-bottom-sheet-close:hover,
.dark .menu-bottom-sheet-close:hover {
    background: #4b5563;
}

.menu-bottom-sheet-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

.menu-service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.menu-service-card {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: block;
    animation: slideUp 0.4s ease backwards;
}

[data-pc-theme="dark"] .menu-service-card,
.dark .menu-service-card {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-color: #374151;
}

.menu-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(70, 128, 255, 0.1) 0%, rgba(70, 128, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-service-card:hover::before,
.menu-service-card:active::before {
    opacity: 1;
}

.menu-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(70, 128, 255, 0.2);
    border-color: #4680FF;
}

.menu-service-card:active {
    transform: translateY(-2px) scale(0.98);
}

.menu-service-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.menu-service-card:hover .menu-service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.menu-service-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

[data-pc-theme="dark"] .menu-service-name,
.dark .menu-service-name {
    color: #f9fafb;
}

/* Stagger animation for menu cards */
.menu-service-card:nth-child(1) { animation-delay: 0.05s; }
.menu-service-card:nth-child(2) { animation-delay: 0.1s; }
.menu-service-card:nth-child(3) { animation-delay: 0.15s; }
.menu-service-card:nth-child(4) { animation-delay: 0.2s; }
.menu-service-card:nth-child(5) { animation-delay: 0.25s; }
.menu-service-card:nth-child(6) { animation-delay: 0.3s; }
.menu-service-card:nth-child(7) { animation-delay: 0.35s; }
.menu-service-card:nth-child(8) { animation-delay: 0.4s; }
.menu-service-card:nth-child(9) { animation-delay: 0.45s; }
.menu-service-card:nth-child(10) { animation-delay: 0.5s; }
.menu-service-card:nth-child(11) { animation-delay: 0.55s; }
.menu-service-card:nth-child(12) { animation-delay: 0.6s; }
.menu-service-card:nth-child(13) { animation-delay: 0.65s; }
.menu-service-card:nth-child(14) { animation-delay: 0.7s; }

/* Handle indicator */
.menu-bottom-sheet-handle {
    width: 40px;
    height: 4px;
    background: #d1d5db;
    border-radius: 2px;
    margin: 12px auto 0;
    flex-shrink: 0;
}

[data-pc-theme="dark"] .menu-bottom-sheet-handle,
.dark .menu-bottom-sheet-handle {
    background: #4b5563;
}

/* Logout button */
.menu-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.menu-logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

.menu-logout-btn:active {
    transform: translateY(0) scale(0.98);
}

.menu-logout-btn i {
    font-size: 20px;
}

