/* ==============================================
   RESET & BASE STYLES
   ============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #faf9f8;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 56px;
    transition: padding 0.3s ease;
    position: relative;
}

/* Mobile padding */
@media (min-width: 768px) {
    body {
        padding-top: 80px;
    }
}

/* Desktop padding - MORE BREATHING ROOM */
@media (min-width: 1024px) {
    body {
        padding-top: 100px !important;
    }
}

/* Large Desktop */
@media (min-width: 1440px) {
    body {
        padding-top: 110px !important;
    }
}

/* Pull-to-refresh indicator */
.pull-to-refresh {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(135deg, #FF8C00, #FFD700);
    z-index: 10000;
    transform: translateY(-100%);
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.pull-to-refresh.show {
    transform: translateY(0);
}

.pull-to-refresh i {
    font-size: 20px;
    animation: spin 0.5s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (min-width: 768px) {
    body {
        padding-top: 70px;
    }
}

/* Dark Mode Styles */
html.dark-mode body {
    background: #1a1a1a;
    color: #f0f0f0;
}

html.dark-mode .navbar {
    background: #2d2d2d;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

html.dark-mode .nav-links a:not(.profile-link):not(.buy-data-link):not(.result-checker-link) {
    color: #e0e0e0;
}

html.dark-mode .mobile-nav {
    background: #2d2d2d;
}

/* ==============================================
   FIXED HEADER (NAVBAR)
   ============================================= */
.navbar {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.8rem;
    width: 100%;
    height: 56px;
}

@media (min-width: 768px) {
    .nav-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0.6rem 2rem;
        height: 70px;
    }
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    text-decoration: none;
    background: linear-gradient(135deg, #FF8C00, #FFD700);
    border-radius: 50px;
    padding: 4px 12px 4px 6px;
}

.logo img {
    height: 28px;
    width: auto;
    display: block;
    border-radius: 50%;
}

@media (min-width: 768px) {
    .logo img {
        height: 32px;
    }
}

.logo-text {
    font-size: 0.85rem;
    font-weight: 700;
    background: white;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
    color: #333;
}

@media (min-width: 768px) {
    .logo-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 0.7rem;
        white-space: normal;
        line-height: 1.1;
    }
    .logo img {
        height: 24px;
    }
}

html.dark-mode .logo-text {
    background: #f0f0f0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wallet-badge {
    background: linear-gradient(135deg, #FF8C00, #FFD700);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 40px;
    font-size: 0.65rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

@media (max-width: 480px) {
    .wallet-badge {
        display: none;
    }
}

/* Notification Bell */
.notification-bell {
    position: relative;
    cursor: pointer;
    background: none;
    border: none;
    color: #FF8C00;
    font-size: 1.1rem;
    padding: 0.3rem;
    transition: transform 0.2s;
}

.notification-bell:hover {
    transform: scale(1.05);
}

.notification-bell.has-new {
    animation: bellShake 0.5s ease-in-out;
}

@keyframes bellShake {
    0%, 100% { transform: rotate(0deg); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(15deg); }
    20%, 40%, 60%, 80% { transform: rotate(-15deg); }
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 0.6rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    animation: badgePulse 1s infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Profile Link */
.profile-link {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.85rem;
    transition: color 0.2s;
    padding: 0.3rem 0;
    position: relative;
}

.profile-link:hover {
    color: #FF8C00;
}

.profile-link.active {
    color: #FF8C00;
    font-weight: 600;
}

.profile-avatar-small {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #FF8C00, #FFD700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
}

.profile-avatar-small img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.profile-name {
    display: inline-block;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .profile-name {
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    .profile-name {
        display: none;
    }
}

.profile-link .fa-chevron-down {
    transition: transform 0.3s ease;
}

.profile-link.active .fa-chevron-down {
    transform: rotate(180deg);
}

/* Desktop Navigation Links */
.nav-links {
    display: none;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
        gap: 1.2rem;
        align-items: center;
    }

    .nav-links a:not(.profile-link):not(.buy-data-link):not(.result-checker-link) {
        text-decoration: none;
        color: #333;
        font-weight: 500;
        font-size: 0.85rem;
        transition: color 0.2s;
        padding: 0.3rem 0;
        position: relative;
    }

    .nav-links a:not(.profile-link):not(.buy-data-link):not(.result-checker-link):hover {
        color: #FF8C00;
    }

    .nav-links a:not(.profile-link):not(.buy-data-link):not(.result-checker-link).active {
        color: #FF8C00;
        font-weight: 600;
    }

    .nav-links a:not(.profile-link):not(.buy-data-link):not(.result-checker-link).active::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(135deg, #FF8C00, #FFD700);
        border-radius: 2px;
    }
}

/* Buy Data Link */
.nav-links a.buy-data-link {
    background: linear-gradient(135deg, #FF8C00, #FFD700);
    color: white !important;
    padding: 0.4rem 1rem;
    border-radius: 40px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.nav-links a.buy-data-link:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

.buy-data-link.shake {
    animation: shakeData 0.5s ease-in-out;
}

@keyframes shakeData {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-3px); }
    20%, 40%, 60%, 80% { transform: translateX(3px); }
}

/* Result Checker Nav Link */
.result-checker-link {
    background: linear-gradient(135deg, #2e7d32, #4caf50);
    color: white !important;
    padding: 0.4rem 1rem;
    border-radius: 40px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.result-checker-link:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.result-checker-link i {
    margin-right: 6px;
}

/* WhatsApp Community Button */
.whatsapp-community-btn {
    background: #25D366;
    color: white !important;
    padding: 0.4rem 1rem;
    border-radius: 40px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.whatsapp-community-btn:hover {
    background: #20b859;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* Hamburger Menu */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.4rem;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    position: relative;
    z-index: 1002;
}

.hamburger span {
    width: 20px;
    height: 2px;
    background: #FF8C00;
    margin: 2.5px 0;
    transition: 0.25s ease;
    border-radius: 2px;
    display: block;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation Menu */
.mobile-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    padding: 0;
    z-index: 999;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    visibility: hidden;
}

.mobile-nav.show {
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding: 0.3rem 0;
    visibility: visible;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav a {
    display: block;
    padding: 0.7rem 1rem;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.85rem;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s;
}

.mobile-nav a:hover,
.mobile-nav a.active {
    background: #fff5e8;
    color: #FF8C00;
}

/* Mobile Buy Data & Result Checker Links */
.mobile-nav a.buy-data-link,
.mobile-nav a.result-checker-link {
    background: linear-gradient(135deg, #FF8C00, #FFD700);
    color: white !important;
    margin: 0.3rem 0.8rem;
    border-radius: 40px;
    text-align: center;
    font-weight: 600;
}

.mobile-nav a.result-checker-link {
    background: linear-gradient(135deg, #2e7d32, #4caf50);
}

.mobile-nav a.whatsapp-community-link {
    background: #25D366;
    color: white !important;
    margin: 0.3rem 0.8rem;
    border-radius: 40px;
    text-align: center;
    font-weight: 600;
}

.mobile-nav a.whatsapp-community-link:hover {
    background: #20b859;
}

.mobile-profile-info {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1rem;
    background: linear-gradient(135deg, #fff9f0, #ffffff);
    border-bottom: 1px solid #f0f0f0;
}

.mobile-profile-avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #FF8C00, #FFD700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(255,140,0,0.2);
}

.mobile-profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.mobile-profile-details {
    flex: 1;
}

.mobile-profile-name {
    font-weight: 700;
    color: #333;
    font-size: 0.9rem;
}

.mobile-profile-email {
    font-size: 0.65rem;
    color: #666;
}

/* Profile Dropdown Menu */
.profile-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 280px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12), 0 5px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.profile-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-bottom: 8px solid white;
    filter: drop-shadow(0 -2px 2px rgba(0, 0, 0, 0.05));
}

.dropdown-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 20px;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.25s ease;
    background: white;
    border: none;
    cursor: pointer;
}

.dropdown-item i {
    width: 20px;
    font-size: 1.1rem;
    color: #FF8C00;
    transition: all 0.25s ease;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #fff9f0, #fff5e8);
    transform: translateX(5px);
}

.dropdown-item:hover i {
    transform: scale(1.15);
    color: #e67e00;
}

.dropdown-item.whatsapp-item i {
    color: #25D366;
}

.dropdown-item.whatsapp-item:hover {
    background: linear-gradient(135deg, #e8f5e9, #d4edda);
}

.dropdown-item.logout-item i {
    color: #e74c3c;
}

.dropdown-item.logout-item:hover {
    background: linear-gradient(135deg, #fee, #fdd);
}

.dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e0e0e0, #e0e0e0, #e0e0e0, transparent);
    margin: 0;
    width: 100%;
}

/* Mobile Dropdown Adjustments */
@media (max-width: 768px) {
    .profile-dropdown-menu {
        position: fixed;
        top: auto;
        bottom: 20px;
        left: 20px;
        right: 20px;
        min-width: auto;
        width: calc(100% - 40px);
        transform: translateY(20px) scale(0.95);
    }
    
    .profile-dropdown-menu::before {
        display: none;
    }
    
    .profile-dropdown-menu.show {
        transform: translateY(0) scale(1);
    }
    
    .dropdown-item {
        padding: 16px 20px;
        font-size: 1rem;
        justify-content: center;
    }
    
    .dropdown-item.whatsapp-item::after {
        display: none;
    }
}

/* Dark Mode Dropdown */
html.dark-mode .profile-dropdown-menu {
    background: #2d2d2d;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

html.dark-mode .profile-dropdown-menu::before {
    border-bottom-color: #2d2d2d;
}

html.dark-mode .dropdown-item {
    color: #e0e0e0;
    background: #2d2d2d;
}

html.dark-mode .dropdown-item i {
    color: #FF8C00;
}

html.dark-mode .dropdown-item:hover {
    background: linear-gradient(135deg, #3d3d3d, #353535);
}

html.dark-mode .dropdown-divider {
    background: linear-gradient(90deg, transparent, #444, #444, #444, transparent);
}

/* ==============================================
   GLOBAL MARQUEE
   ============================================= */
.global-marquee {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    padding: 8px 0;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, #FF8C00, #FFD700, #FF8C00);
    border-image-slice: 1;
    z-index: 999;
    cursor: pointer;
    transition: all 0.3s ease;
    height: auto;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
    margin: 0;
    border-top: none;
}

@media (min-width: 768px) {
    .global-marquee {
        top: 70px;
        padding: 10px 0;
        min-height: 50px;
    }
}

.global-marquee:active {
    background: linear-gradient(135deg, #1a1747 0%, #3a3568 50%, #2a274e 100%);
    transform: scale(0.99);
}

.marquee-wrapper {
    display: inline-flex;
    align-items: center;
    animation: scrollMarqueeMobile 25s linear infinite;
    white-space: nowrap;
    will-change: transform;
}

@media (min-width: 768px) {
    .marquee-wrapper {
        animation: scrollMarqueeMobile 35s linear infinite;
    }
}

@keyframes scrollMarqueeMobile {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.global-marquee:hover .marquee-wrapper,
.global-marquee:active .marquee-wrapper {
    animation-play-state: paused;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    margin: 0 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    position: relative;
    padding: 4px 0;
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 768px) {
    .marquee-item {
        margin: 0 8px;
        padding: 8px 4px;
    }
}

@media (min-width: 768px) {
    .marquee-item {
        margin: 0 20px;
    }
}

.marquee-item::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #FF8C00, #FFD700);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.marquee-item:active::after {
    transform: scaleX(1);
}

.marquee-logo {
    height: 28px;
    width: auto;
    margin-right: 8px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
    pointer-events: none;
}

@media (min-width: 768px) {
    .marquee-logo {
        height: 32px;
        margin-right: 12px;
    }
}

@media (max-width: 380px) {
    .marquee-logo {
        height: 20px;
        margin-right: 4px;
    }
}

.marquee-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    white-space: nowrap;
    pointer-events: none;
}

@media (min-width: 768px) {
    .marquee-text {
        font-size: 0.95rem;
    }
}

@media (max-width: 380px) {
    .marquee-text {
        font-size: 0.65rem;
    }
}

.marquee-price {
    font-size: 0.7rem;
    color: #FFD700;
    margin-left: 6px;
    font-weight: 700;
    background: rgba(255,215,0,0.2);
    padding: 2px 6px;
    border-radius: 20px;
    white-space: nowrap;
    pointer-events: none;
}

@media (min-width: 768px) {
    .marquee-price {
        font-size: 0.85rem;
        padding: 2px 8px;
    }
}

@media (max-width: 380px) {
    .marquee-price {
        font-size: 0.6rem;
        padding: 1px 4px;
    }
}

.marquee-divider {
    width: 1px;
    height: 20px;
    background: linear-gradient(135deg, #FF8C00, #FFD700);
    margin: 0 8px;
    display: inline-block;
    opacity: 0.4;
}

@media (min-width: 768px) {
    .marquee-divider {
        height: 25px;
        margin: 0 15px;
    }
}

.marquee-badge {
    background: linear-gradient(135deg, #FF416C, #FF4B2B);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.6rem;
    font-weight: 700;
    margin-left: 6px;
    letter-spacing: 0.5px;
    animation: pulse 1.5s infinite;
    white-space: nowrap;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.click-hint {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 0.6rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(5px);
    z-index: 1000;
    pointer-events: none;
    animation: bounce 2s infinite;
    white-space: nowrap;
}

@keyframes bounce {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-50%) translateX(-5px); }
}

@media (min-width: 768px) {
    .click-hint {
        display: flex;
        right: 20px;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .click-hint {
        display: none;
    }
    .global-marquee::after {
        content: '👇 Tap';
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(0,0,0,0.5);
        padding: 3px 8px;
        border-radius: 20px;
        font-size: 0.55rem;
        color: #FFD700;
        white-space: nowrap;
        z-index: 1000;
        pointer-events: none;
        font-weight: 500;
        backdrop-filter: blur(4px);
    }
}

@media (max-width: 380px) {
    .global-marquee::after {
        content: '👇';
        padding: 2px 6px;
    }
}

/* ==============================================
   NOTIFICATION PANEL
   ============================================= */
.notification-panel {
    display: none;
    position: fixed;
    top: 70px;
    right: 20px;
    width: 320px;
    max-width: calc(100% - 40px);
    background: white;
    border-radius: 12px;
    z-index: 10001;
    overflow: hidden;
    animation: slideDown 0.2s ease;
}

@media (max-width: 768px) {
    .notification-panel {
        top: 60px;
        right: 10px;
        width: 300px;
    }
}

@media (max-width: 480px) {
    .notification-panel {
        top: 60px;
        left: 10px;
        right: 10px;
        width: auto;
        max-width: none;
    }
}

.notification-panel.show {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification-header {
    background: linear-gradient(135deg, #FF8C00, #FFD700);
    padding: 12px 15px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h4 {
    margin: 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
}

.notification-item:hover {
    background: #faf9f8;
}

.notification-item.unread {
    background: #fff9f0;
}

.notification-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.notification-message {
    font-size: 0.7rem;
    color: #666;
    line-height: 1.3;
}

.notification-time {
    font-size: 0.6rem;
    color: #999;
    margin-top: 4px;
}

.empty-notifications {
    padding: 30px 20px;
    text-align: center;
    color: #999;
}

.empty-notifications i {
    font-size: 2rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

/* Dark Mode Notification Panel */
html.dark-mode .notification-panel {
    background: #2d2d2d;
}

html.dark-mode .notification-item {
    border-bottom-color: #444;
}

html.dark-mode .notification-item:hover {
    background: #3d3d3d;
}

html.dark-mode .notification-item.unread {
    background: #3a2a1a;
}

/* ==============================================
   ANNOUNCEMENT MODAL
   ============================================= */
/* ==============================================
   ANNOUNCEMENT MODAL - Always on TOP, Centered
   ============================================= */
.announcement-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 200000 !important; /*超高优先级，确保在最上层 */
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.announcement-modal.show {
    display: flex;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(8px);
    }
}

.announcement-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1;
}

.announcement-modal-container {
    position: relative;
    z-index: 2;
    max-width: 500px;
    width: 90%;
    margin: 20px;
    animation: modalSlideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (max-width: 480px) {
    .announcement-modal-container {
        width: 95%;
        margin: 10px;
    }
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.announcement-modal-content {
    border-radius: 28px;
    padding: 30px 25px;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
}

@media (max-width: 480px) {
    .announcement-modal-content {
        padding: 24px 20px;
        border-radius: 24px;
    }
}

.announcement-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
    opacity: 0.7;
    transition: all 0.2s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 3;
}

.announcement-modal-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.4);
    transform: rotate(90deg);
}

.announcement-modal-icon {
    font-size: 56px;
    margin-bottom: 20px;
    animation: iconPop 0.5s ease;
}

@keyframes iconPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .announcement-modal-icon {
        font-size: 48px;
        margin-bottom: 16px;
    }
}

.announcement-modal-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.3;
}

@media (max-width: 480px) {
    .announcement-modal-title {
        font-size: 1.3rem;
    }
}

.announcement-modal-message {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    max-height: 300px;
    overflow-y: auto;
    padding: 0 5px;
}

@media (max-width: 480px) {
    .announcement-modal-message {
        font-size: 0.9rem;
        max-height: 250px;
        margin-bottom: 20px;
    }
}

.announcement-modal-message::-webkit-scrollbar {
    width: 4px;
}

.announcement-modal-message::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.announcement-modal-message::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.announcement-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 5px;
}

.announcement-modal-acknowledge-btn,
.announcement-modal-dismiss-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 480px) {
    .announcement-modal-acknowledge-btn,
    .announcement-modal-dismiss-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

.announcement-modal-acknowledge-btn {
    background: rgba(255, 255, 255, 0.25);
    color: inherit;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.announcement-modal-acknowledge-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.announcement-modal-acknowledge-btn:active {
    transform: translateY(0);
}

.announcement-modal-dismiss-btn {
    background: rgba(0, 0, 0, 0.2);
    color: inherit;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.announcement-modal-dismiss-btn:hover {
    background: rgba(0, 0, 0, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.announcement-modal-dismiss-btn:active {
    transform: translateY(0);
}

/* Ensure modal is above everything in PWA mode too */
body.pwa-installed .announcement-modal {
    z-index: 200000 !important;
}

/* When modal is open, prevent body scroll */
body.modal-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
}

/* ==============================================
   SPLASH SCREEN & LOADING ANIMATIONS
   ============================================= */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fff9f0 0%, #ffffff 100%);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
    opacity: 1;
    visibility: visible;
}

html.dark-mode .splash-screen {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.splash-container {
    text-align: center;
    animation: fadeInScale 0.5s ease-out;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.logo-spinner {
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
    position: relative;
    animation: pulseGlow 1.5s ease-in-out infinite;
}

@media (max-width: 768px) {
    .logo-spinner {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .logo-spinner {
        width: 100px;
        height: 100px;
    }
}

@keyframes pulseGlow {
    0%, 100% { filter: drop-shadow(0 0 5px rgba(255, 140, 0, 0.3)); }
    50% { filter: drop-shadow(0 0 20px rgba(255, 140, 0, 0.6)); }
}

.spinning-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: spinLogo 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    border-radius: 50%;
}

@keyframes spinLogo {
    0% { transform: rotate(0deg) scale(0.9); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(0.9); }
}

.loading-text {
    margin-top: 20px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #FF8C00;
}

@media (max-width: 768px) {
    .loading-text {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .loading-text {
        font-size: 14px;
    }
}

.loading-progress {
    width: 200px;
    height: 3px;
    background: rgba(255, 140, 0, 0.2);
    border-radius: 3px;
    margin: 20px auto 0;
    overflow: hidden;
}

.loading-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #FF8C00, #FFD700);
    border-radius: 3px;
    animation: progressLoad 1.5s ease-out forwards;
}

@keyframes progressLoad {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

.logo-loading {
    animation: bounce 0.8s ease-in-out 3;
    transform-origin: center;
}

@keyframes bounce {
    0%, 100% { transform: scale(1) translateY(0); }
    25% { transform: scale(1.1) translateY(-5px); }
    50% { transform: scale(1.2) translateY(-10px); }
    75% { transform: scale(1.1) translateY(-5px); }
}

/* ==============================================
   PWA INSTALLED MODE - Proper Spacing for Content & Footer
   ============================================= */

/* When PWA is installed */
body.pwa-installed {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #faf9f8;
}

html.dark-mode body.pwa-installed {
    background: #1a1a1a;
}

/* Main content wrapper - fills available space and scrolls */
body.pwa-installed .pwa-content-wrapper {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-top: 60px; /* Space for marquee */
    padding-bottom: 80px; /* Space for navbar at bottom */
    scroll-behavior: smooth;
}

/* ==============================================
   MARQUEE AT TOP - Fixed with proper spacing
   ============================================= */
body.pwa-installed .global-marquee {
    position: fixed;
    top: 0 !important;
    bottom: auto !important;
    left: 0;
    right: 0;
    z-index: 998;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    border-radius: 0;
    padding: 10px 0;
    min-height: 50px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Add spacer for iOS status bar */
@supports (padding-top: env(safe-area-inset-top)) {
    body.pwa-installed .global-marquee {
        padding-top: calc(10px + env(safe-area-inset-top));
        min-height: calc(50px + env(safe-area-inset-top));
    }
}

/* ==============================================
   NAVBAR AT BOTTOM - Fixed with safe area
   ============================================= */
body.pwa-installed .navbar {
    position: fixed;
    top: auto !important;
    bottom: 0 !important;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    border-radius: 0;
}

html.dark-mode body.pwa-installed .navbar {
    background: #2d2d2d;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}

/* Add safe area for bottom home indicator */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    body.pwa-installed .navbar {
        padding-bottom: env(safe-area-inset-bottom);
        height: calc(56px + env(safe-area-inset-bottom));
    }
    
    body.pwa-installed .nav-container {
        height: auto;
        padding-bottom: calc(0.5rem + env(safe-area-inset-bottom));
    }
}

/* ==============================================
   CONTENT SECTIONS - Proper spacing
   ============================================= */

/* All content sections get consistent spacing */
body.pwa-installed .hero-section,
body.pwa-installed .result-pins-section,
body.pwa-installed .agent-section,
body.pwa-installed .auth-section,
body.pwa-installed .howitworks-section,
body.pwa-installed .networks-section,
body.pwa-installed .welcome-section,
body.pwa-installed .reseller-section,
body.pwa-installed .cta-section {
    margin: 0;
    padding: 1.5rem 1rem;
    position: relative;
}

/* First section needs extra top margin to clear marquee */
body.pwa-installed .hero-section:first-of-type,
body.pwa-installed .result-pins-section:first-of-type,
body.pwa-installed .welcome-section:first-of-type {
    margin-top: 0;
    padding-top: 1.5rem;
}

/* Last section needs extra bottom margin to clear navbar */
body.pwa-installed .hero-section:last-of-type,
body.pwa-installed .result-pins-section:last-of-type,
body.pwa-installed .agent-section:last-of-type,
body.pwa-installed .auth-section:last-of-type,
body.pwa-installed .howitworks-section:last-of-type,
body.pwa-installed .networks-section:last-of-type,
body.pwa-installed .welcome-section:last-of-type,
body.pwa-installed .reseller-section:last-of-type,
body.pwa-installed .cta-section:last-of-type {
    margin-bottom: 0;
    padding-bottom: 1.5rem;
}

/* ==============================================
   FOOTER - Fully visible, not hidden
   ============================================= */

/* Footer in PWA mode - ensure it's fully visible */
body.pwa-installed .footer,
body.pwa-installed footer {
    position: relative;
    margin-bottom: 0 !important;
    padding: 1.5rem 1rem 2rem !important;
    background: white;
    border-top: 1px solid #e0e0e0;
    width: 100%;
    clear: both;
}

/* Dark mode footer */
html.dark-mode body.pwa-installed .footer,
html.dark-mode body.pwa-installed footer {
    background: #2d2d2d;
    border-top-color: #444;
}

/* Extra bottom padding for footer to clear navbar */
body.pwa-installed .footer::after,
body.pwa-installed footer::after {
    content: '';
    display: block;
    height: 10px;
    width: 100%;
}

/* Add safe area for footer */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    body.pwa-installed .footer,
    body.pwa-installed footer {
        padding-bottom: calc(1.5rem + env(safe-area-inset-bottom)) !important;
    }
}

/* ==============================================
   MOBILE NAVIGATION MENU - Slides UP
   ============================================= */
body.pwa-installed .mobile-nav {
    position: fixed;
    bottom: 70px;
    top: auto;
    left: 0;
    right: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    z-index: 1001;
    background: white;
    box-shadow: 0 -2px 15px rgba(0,0,0,0.15);
    border-radius: 20px 20px 0 0;
}

body.pwa-installed .mobile-nav.show {
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    padding: 0.5rem 0;
}

/* Adjust mobile nav for safe area */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    body.pwa-installed .mobile-nav.show {
        bottom: calc(70px + env(safe-area-inset-bottom));
        max-height: calc(100vh - 140px - env(safe-area-inset-bottom));
    }
}

html.dark-mode body.pwa-installed .mobile-nav {
    background: #2d2d2d;
}

/* ==============================================
   NOTIFICATION PANEL - Below marquee
   ============================================= */
body.pwa-installed .notification-panel {
    position: fixed;
    top: 60px;
    bottom: auto;
    left: 10px;
    right: 10px;
    z-index: 1002;
    background: white;
    border-radius: 12px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* Adjust notification panel for iOS safe area */
@supports (padding-top: env(safe-area-inset-top)) {
    body.pwa-installed .notification-panel {
        top: calc(60px + env(safe-area-inset-top));
    }
}

html.dark-mode body.pwa-installed .notification-panel {
    background: #2d2d2d;
}

/* ==============================================
   FLOATING CART BUTTON - Above navbar
   ============================================= */
body.pwa-installed .floating-cart,
body.pwa-installed .cart-floating,
body.pwa-installed .fixed-cart,
body.pwa-installed [class*="floating-cart"],
body.pwa-installed [class*="cart-floating"],
body.pwa-installed .cart-button-fixed {
    position: fixed;
    bottom: 90px !important;
    right: 20px;
    z-index: 1001;
}

@media (max-width: 768px) {
    body.pwa-installed .floating-cart,
    body.pwa-installed .cart-floating,
    body.pwa-installed [class*="floating-cart"] {
        bottom: 85px !important;
        right: 15px;
    }
}

/* Default floating cart position (browser mode) */
.floating-cart,
.cart-floating,
.fixed-cart,
[class*="floating-cart"],
[class*="cart-floating"] {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    transition: bottom 0.3s ease;
}

/* Back to top button */
body.pwa-installed .back-to-top,
body.pwa-installed .scroll-top {
    position: fixed;
    bottom: 90px !important;
    right: 20px;
    z-index: 1001;
}

/* ==============================================
   BUY DATA PAGE SPECIFIC FIXES
   ============================================= */
body.pwa-installed .buy-data-container,
body.pwa-installed .data-plans-container,
body.pwa-installed .cart-sidebar {
    margin-bottom: 20px;
}

/* Ensure product cards don't get cut off */
body.pwa-installed .product-card,
body.pwa-installed .network-card,
body.pwa-installed .pricing-card {
    margin-bottom: 1rem;
}

/* ==============================================
   EXTRA SAFE AREA SUPPORT
   ============================================= */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    body.pwa-installed .floating-cart,
    body.pwa-installed .cart-floating,
    body.pwa-installed [class*="floating-cart"] {
        bottom: calc(90px + env(safe-area-inset-bottom)) !important;
    }
    
    body.pwa-installed .back-to-top,
    body.pwa-installed .scroll-top {
        bottom: calc(90px + env(safe-area-inset-bottom)) !important;
    }
}

/* Android status bar specific */
@media (max-width: 768px) {
    body.pwa-installed.android-device .global-marquee {
        padding-top: 8px;
    }
}
/* ==============================================
   PULL TO REFRESH STYLES
   ============================================= */
.pull-indicator {
    position: fixed;
    top: -50px;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(135deg, #FF8C00, #FFD700);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    z-index: 9999;
    transition: top 0.2s ease;
    pointer-events: none;
}

.pull-indicator i {
    font-size: 18px;
}

.pull-indicator.active {
    top: 0;
}

.pull-indicator.refreshing i {
    animation: spinRefresh 0.5s linear infinite;
}

@keyframes spinRefresh {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==============================================
   DESKTOP CONTENT SPACING FIXES (All Pages)
   ============================================= */

/* Desktop body padding - more breathing room for content */
@media (min-width: 1024px) {
    body {
        padding-top: 90px !important;
    }
    
    /* Main content containers - add top spacing */
    .pwa-content-wrapper,
    .main-content-wrapper,
    .orders-section,
    .dashboard-section,
    .buy-data-section,
    .profile-section,
    .wallet-section,
    .settings-section {
        padding-top: 20px;
    }
    
    /* First element after navbar needs spacing */
    .hero-section:first-of-type,
    .orders-section:first-of-type,
    .dashboard-section:first-of-type,
    .buy-data-section:first-of-type {
        margin-top: 10px;
    }
    
    /* Section containers - consistent padding */
    .section-container,
    .orders-section .section-container,
    .dashboard-container,
    .profile-container {
        padding-top: 20px;
        padding-bottom: 40px;
    }
}

/* Extra large desktop */
@media (min-width: 1440px) {
    body {
        padding-top: 100px !important;
    }
    
    .section-container,
    .orders-section .section-container {
        padding-top: 30px;
        padding-bottom: 50px;
    }
}

/* ==============================================
   ORDERS PAGE SPECIFIC DESKTOP SPACING
   ============================================= */

@media (min-width: 1024px) {
    /* Hero section on orders page */
    .hero-section {
        padding: 2rem 1rem 1rem !important;
        margin-bottom: 0;
    }
    
    /* Orders section container */
    .orders-section {
        padding-top: 0 !important;
    }
    
    .orders-section .section-container {
        padding-top: 10px;
    }
    
    /* Stats grid spacing */
    .stats-grid {
        margin-top: 20px;
        margin-bottom: 25px;
        gap: 1.2rem;
    }
    
    /* Stat cards - larger padding */
    .stat-card {
        padding: 1.2rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    /* Toggle container spacing */
    .refresh-toggle-container {
        margin-bottom: 1.5rem;
        padding: 15px 20px;
    }
    
    /* Filter bar spacing */
    .filter-bar {
        margin: 20px 0;
        gap: 0.8rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }
    
    /* Search bar spacing */
    .search-bar {
        margin-bottom: 20px;
    }
    
    .search-bar input {
        padding: 0.8rem 1rem 0.8rem 2.8rem;
        font-size: 0.85rem;
    }
    
    /* Data card spacing */
    .data-card {
        margin-bottom: 30px;
    }
    
    .data-card-header {
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }
    
    .data-card-header h3 {
        font-size: 1.1rem;
    }
    
    /* Table spacing */
    .data-table th,
    .data-table td {
        padding: 1rem 0.8rem;
    }
    
    .data-table th {
        font-size: 0.7rem;
    }
    
    .data-table td {
        font-size: 0.85rem;
    }
    
    /* Action buttons */
    .action-btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
}

/* ==============================================
   DASHBOARD & BUY-DATA PAGES SPACING
   ============================================= */

@media (min-width: 1024px) {
    .dashboard-stats,
    .buy-data-stats {
        margin-top: 20px;
        margin-bottom: 25px;
    }
    
    .dashboard-card,
    .buy-data-card {
        margin-bottom: 25px;
    }
}

/* ==============================================
   PROFILE & WALLET PAGES SPACING
   ============================================= */

@media (min-width: 1024px) {
    .profile-container,
    .wallet-container {
        padding-top: 30px;
        padding-bottom: 50px;
    }
    
    .profile-sidebar,
    .wallet-sidebar {
        margin-bottom: 25px;
    }
    
    .profile-content,
    .wallet-content {
        padding: 25px;
    }
}

/* ==============================================
   FOOTER SPACING ON DESKTOP
   ============================================= */

@media (min-width: 1024px) {
    footer.footer,
    .footer {
        margin-top: 40px;
        padding: 30px 20px 40px;
    }
}

/* ==============================================
   ENSURE PROPER SCROLL PADDING FOR ANCHOR LINKS
   ============================================= */

html {
    scroll-padding-top: 100px;
}

@media (min-width: 1024px) {
    html {
        scroll-padding-top: 120px;
    }
}
/* ==============================================
   DESKTOP CONTENT SPACING - BREATHING ROOM
   ============================================= */

/* Main content wrapper - adds spacing below navbar */
.pwa-content-wrapper,
.main-content-wrapper {
    padding-top: 0;
}

/* Add top margin to all main sections on desktop */
@media (min-width: 1024px) {
    /* Hero section spacing */
    .hero-section {
        margin-top: 10px;
        padding-top: 2rem;
    }
    
    /* Orders section spacing */
    .orders-section {
        padding-top: 0;
    }
    
    .orders-section .section-container {
        padding-top: 20px;
    }
    
    /* Dashboard section spacing */
    .dashboard-section {
        padding-top: 10px;
    }
    
    /* Buy Data section spacing */
    .buy-data-section {
        padding-top: 10px;
    }
    
    /* Stats grid spacing */
    .stats-grid {
        margin-top: 20px;
        margin-bottom: 30px;
    }
    
    /* First element after navbar - ensure spacing */
    .hero-section:first-of-type,
    .orders-section:first-of-type,
    .dashboard-section:first-of-type,
    .buy-data-section:first-of-type,
    .profile-section:first-of-type,
    .wallet-section:first-of-type {
        margin-top: 0;
        padding-top: 1rem;
    }
}

/* Extra breathing room for content sections */
@media (min-width: 1024px) {
    .section-container {
        padding-top: 20px;
        padding-bottom: 40px;
    }
    
    /* Cards and containers spacing */
    .data-card,
    .dashboard-card,
    .buy-data-card,
    .profile-card,
    .wallet-card {
        margin-bottom: 25px;
    }
    
    /* Stats cards */
    .stat-card {
        padding: 1.2rem;
    }
    
    .stat-value {
        font-size: 1.3rem;
    }
}
/* ==============================================
   ORDERS PAGE - EXTRA BREATHING ROOM
   ============================================= */

@media (min-width: 1024px) {
    /* Orders page hero section */
    .orders-page .hero-section,
    .page-no-hero .hero-section {
        padding: 1.5rem 1rem 0.5rem !important;
        margin-bottom: 0;
    }
    
    /* Orders stats grid - more top spacing */
    .orders-section .stats-grid {
        margin-top: 25px;
        margin-bottom: 30px;
    }
    
    /* Toggle container spacing */
    .refresh-toggle-container {
        margin-bottom: 25px;
        margin-top: 10px;
    }
    
    /* Filter bar spacing */
    .filter-bar {
        margin: 25px 0;
    }
    
    /* Search bar spacing */
    .search-bar {
        margin-bottom: 25px;
    }
    
    /* Data table container spacing */
    .data-card {
        margin-top: 10px;
        margin-bottom: 40px;
    }
}