/* ═══════════════════════════════════════════════════════════════════
   BULLET SERVER — COMPREHENSIVE MULTI-DEVICE RESPONSIVE SYSTEM
   Optimized for: 4K (≥2560px) · Desktop (1440px) · Laptop (992px) ·
   Tablet (768px) · Mobile / iPhone / Android (320px – 480px)
   ═══════════════════════════════════════════════════════════════════ */

/* ── 1. Universal Reset & Touch Optimizations ────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    margin: 0;
    padding: 0;
}

img, video, canvas, svg {
    max-width: 100%;
    height: auto;
}

/* ── 2. Mobile Navigation Toggle Button ──────────────────────── */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4.5px;
    width: 38px;
    height: 38px;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.35);
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
    transition: all 0.25s ease;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
    flex-shrink: 0;
    touch-action: manipulation;
    position: relative !important;
    z-index: 100005 !important;
    pointer-events: auto !important;
}

.mobile-menu-toggle * {
    pointer-events: none !important;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle.is-active {
    background: rgba(0, 240, 255, 0.2);
    border-color: #00f0ff;
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.4);
}

.mobile-menu-toggle .bar {
    width: 18px;
    height: 2px;
    background: #00f0ff;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-toggle.is-active .bar-1 {
    transform: translateY(6.5px) rotate(45deg);
}

.mobile-menu-toggle.is-active .bar-2 {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.is-active .bar-3 {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* ── 3. Mobile Navigation Drawer & Backdrop ─────────────────── */
/* ── 3. Cyber Glassmorphism Mobile Navigation Drawer & Backdrop ────── */
.mobile-nav-backdrop {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: radial-gradient(circle at 80% 20%, rgba(0, 240, 255, 0.08), transparent 60%), rgba(2, 6, 14, 0.82) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    z-index: 9999998 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.mobile-nav-backdrop.is-open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.mobile-nav-drawer {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    right: 0 !important;
    left: auto !important;
    width: min(88vw, 340px) !important;
    height: 100% !important;
    height: 100dvh !important;
    background: linear-gradient(168deg, rgba(10, 16, 32, 0.98) 0%, rgba(5, 8, 18, 0.99) 100%) !important;
    border-left: 1px solid rgba(0, 240, 255, 0.3) !important;
    border-right: none !important;
    box-shadow: -15px 0 50px rgba(0, 0, 0, 0.9), inset 1px 0 0 rgba(0, 240, 255, 0.15) !important;
    z-index: 9999999 !important;
    display: flex !important;
    flex-direction: column !important;
    padding: calc(env(safe-area-inset-top, 16px) + 14px) 16px calc(env(safe-area-inset-bottom, 16px) + 14px) 16px !important;
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1) !important;
    transform: translateX(100%) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

html[dir="rtl"] .mobile-nav-drawer {
    right: auto !important;
    left: 0 !important;
    border-left: none !important;
    border-right: 1px solid rgba(0, 240, 255, 0.3) !important;
    box-shadow: 15px 0 50px rgba(0, 0, 0, 0.9), inset -1px 0 0 rgba(0, 240, 255, 0.15) !important;
    transform: translateX(-100%) !important;
}

.mobile-nav-drawer.is-open {
    transform: translateX(0) !important;
    pointer-events: auto !important;
    visibility: visible !important;
}

/* Custom subtle scrollbar */
.mobile-nav-drawer::-webkit-scrollbar {
    width: 4px;
}
.mobile-nav-drawer::-webkit-scrollbar-thumb {
    background: rgba(0, 240, 255, 0.25);
    border-radius: 4px;
}

/* ── Drawer Header ── */
.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.15);
    margin-bottom: 14px;
}

.cyber-nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cyber-brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(124, 58, 237, 0.2));
    border: 1px solid rgba(0, 240, 255, 0.4);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00f0ff;
    font-size: 16px;
}

.cyber-brand-text {
    display: flex;
    flex-direction: column;
}

.cyber-brand-name {
    font-family: 'Space Grotesk', 'Orbitron', 'Cairo', sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1px;
    line-height: 1.2;
}

.cyber-brand-tag {
    font-family: 'Space Grotesk', 'Cairo', monospace;
    font-size: 9.5px;
    font-weight: 700;
    color: #00f0ff;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.mobile-drawer-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.25);
    color: #00f0ff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
    touch-action: manipulation;
}

.mobile-drawer-close:active {
    background: rgba(255, 76, 96, 0.2);
    border-color: #ff4c60;
    color: #ff4c60;
    transform: scale(0.92);
}

/* ── Cyber Preferences Pills ── */
.mobile-drawer-preferences {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.drawer-pref-pill {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: linear-gradient(135deg, rgba(16, 24, 48, 0.75), rgba(8, 14, 28, 0.85));
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 10px;
    color: #e2f8ff;
    cursor: pointer;
    transition: all 0.2s ease;
    touch-action: manipulation;
}

.drawer-pref-pill:active {
    border-color: #00f0ff;
    background: rgba(0, 240, 255, 0.12);
    transform: scale(0.97);
}

.pref-pill-icon {
    font-size: 13px;
    color: #00f0ff;
    opacity: 0.9;
}

.pref-pill-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    line-height: 1.15;
}

html[dir="rtl"] .pref-pill-info {
    align-items: flex-start;
}

.pref-pill-label {
    font-size: 8.5px;
    font-weight: 700;
    color: rgba(0, 240, 255, 0.7);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    font-family: 'Space Grotesk', 'Cairo', sans-serif;
}

.pref-pill-val {
    font-size: 11.5px;
    font-weight: 700;
    color: #ffffff;
}

.pref-pill-sync {
    font-size: 10px;
    color: rgba(226, 248, 255, 0.4);
}

/* ── Section Header ── */
.mobile-section-header {
    font-family: 'Space Grotesk', 'Cairo', sans-serif;
    font-size: 10px;
    font-weight: 800;
    color: rgba(0, 240, 255, 0.65);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    padding-left: 4px;
}

html[dir="rtl"] .mobile-section-header {
    padding-left: 0;
    padding-right: 4px;
}

/* ── Menu List & Navigation Tiles ── */
.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav-tile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 13px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(0, 240, 255, 0.015) 100%);
    border: 1px solid rgba(0, 240, 255, 0.12);
    text-decoration: none;
    color: #ffffff;
    transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
    touch-action: manipulation;
    user-select: none;
}

.mobile-nav-tile:hover,
.mobile-nav-tile:active,
.mobile-nav-tile.is-active {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.12) 0%, rgba(124, 58, 237, 0.08) 100%);
    border-color: rgba(0, 240, 255, 0.45);
    box-shadow: 0 4px 18px rgba(0, 240, 255, 0.15);
    transform: translateX(4px);
}

html[dir="rtl"] .mobile-nav-tile:hover,
html[dir="rtl"] .mobile-nav-tile:active,
html[dir="rtl"] .mobile-nav-tile.is-active {
    transform: translateX(-4px);
}

/* Tile Icons */
.nav-tile-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.nav-tile-icon.icon-cyan {
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.35);
    color: #00f0ff;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.nav-tile-icon.icon-orange {
    background: rgba(255, 107, 0, 0.12);
    border: 1px solid rgba(255, 107, 0, 0.4);
    color: #ff7a00;
    box-shadow: 0 0 10px rgba(255, 107, 0, 0.2);
}

.nav-tile-icon.icon-green {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.2);
}

.nav-tile-icon.icon-purple {
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #c084fc;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
}

/* Tile Info */
.nav-tile-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    line-height: 1.25;
}

.nav-tile-title {
    font-family: 'Space Grotesk', 'Cairo', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.2px;
}

.nav-tile-sub {
    font-size: 10.5px;
    color: rgba(226, 248, 255, 0.55);
}

/* Tile Badges */
.nav-tile-badge {
    font-size: 9.5px;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: 'Space Grotesk', 'Cairo', monospace;
}

.badge-fire {
    background: linear-gradient(135deg, rgba(255, 76, 96, 0.25), rgba(255, 107, 0, 0.25));
    border: 1px solid #ff4c60;
    color: #ff6b81;
    box-shadow: 0 0 8px rgba(255, 76, 96, 0.35);
}

.badge-green {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid #22c55e;
    color: #4ade80;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.3);
}

.badge-purple {
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid #a855f7;
    color: #d8b4fe;
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.3);
}

.nav-tile-arrow {
    font-size: 11px;
    color: rgba(0, 240, 255, 0.4);
    transition: transform 0.2s ease, color 0.2s ease;
}

.mobile-nav-tile:hover .nav-tile-arrow,
.mobile-nav-tile:active .nav-tile-arrow {
    color: #00f0ff;
    transform: translateX(2px);
}

html[dir="rtl"] .mobile-nav-tile:hover .nav-tile-arrow,
html[dir="rtl"] .mobile-nav-tile:active .nav-tile-arrow {
    transform: translateX(-2px);
}

/* ── Services Accordion ── */
.mobile-accordion {
    border-radius: 12px;
    overflow: hidden;
}

.mobile-accordion-header {
    cursor: pointer;
}

.mobile-chevron {
    font-size: 11px;
    color: #00f0ff;
    transition: transform 0.28s ease;
}

.mobile-accordion-header.is-expanded .mobile-chevron {
    transform: rotate(180deg);
}

/* Services Submenu Tray with Circuit Rail */
.mobile-submenu {
    list-style: none;
    padding: 6px 0 6px 14px;
    margin: 6px 0 6px 14px;
    border-left: 2px solid rgba(0, 240, 255, 0.22);
    display: none;
    flex-direction: column;
    gap: 5px;
}

html[dir="rtl"] .mobile-submenu {
    padding: 6px 14px 6px 0;
    margin: 6px 14px 6px 0;
    border-left: none;
    border-right: 2px solid rgba(0, 240, 255, 0.22);
}

.mobile-submenu.is-expanded {
    display: flex;
}

.mobile-sublink {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 11px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 240, 255, 0.08);
    text-decoration: none;
    color: #e2f8ff;
    transition: all 0.2s ease;
    touch-action: manipulation;
}

.mobile-sublink:hover,
.mobile-sublink:active,
.mobile-sublink.is-active {
    background: rgba(0, 240, 255, 0.08);
    border-color: rgba(0, 240, 255, 0.35);
    color: #00f0ff;
    transform: translateX(3px);
}

html[dir="rtl"] .mobile-sublink:hover,
html[dir="rtl"] .mobile-sublink:active,
html[dir="rtl"] .mobile-sublink.is-active {
    transform: translateX(-3px);
}

.sub-tile-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.sub-tile-icon.icon-cyan { background: rgba(0, 240, 255, 0.1); border: 1px solid rgba(0, 240, 255, 0.3); color: #00f0ff; }
.sub-tile-icon.icon-amber { background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.35); color: #fbbf24; }
.sub-tile-icon.icon-blue { background: rgba(56, 189, 248, 0.12); border: 1px solid rgba(56, 189, 248, 0.35); color: #38bdf8; }
.sub-tile-icon.icon-purple { background: rgba(168, 85, 247, 0.12); border: 1px solid rgba(168, 85, 247, 0.35); color: #c084fc; }
.sub-tile-icon.icon-gold { background: rgba(234, 179, 8, 0.12); border: 1px solid rgba(234, 179, 8, 0.35); color: #facc15; }
.sub-tile-icon.icon-pink { background: rgba(236, 72, 153, 0.12); border: 1px solid rgba(236, 72, 153, 0.35); color: #f472b6; }

.sub-tile-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    line-height: 1.2;
}

.sub-tile-title {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Space Grotesk', 'Cairo', sans-serif;
}

.sub-tile-sub {
    font-size: 9.5px;
    color: rgba(226, 248, 255, 0.5);
}

.sub-tile-arrow {
    font-size: 10px;
    color: rgba(0, 240, 255, 0.3);
}

/* ── VIP Auth Footer Card ── */
.mobile-drawer-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 240, 255, 0.15);
}

.mobile-vip-auth-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.12) 0%, rgba(124, 58, 237, 0.14) 100%);
    border: 1px solid rgba(0, 240, 255, 0.4);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.18), inset 0 0 10px rgba(0, 240, 255, 0.08);
    text-decoration: none;
    color: #ffffff;
    transition: all 0.22s ease;
    touch-action: manipulation;
}

.mobile-vip-auth-card:active {
    transform: scale(0.98);
    border-color: #00f0ff;
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.35);
}

.auth-card-avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(0, 240, 255, 0.15);
    border: 1px solid rgba(0, 240, 255, 0.45);
    color: #00f0ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
}

.auth-card-details {
    display: flex;
    flex-direction: column;
    flex: 1;
    line-height: 1.25;
}

.auth-card-username {
    font-family: 'Space Grotesk', 'Orbitron', 'Cairo', sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: #00f0ff;
    letter-spacing: 0.4px;
}

.auth-card-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    color: rgba(226, 248, 255, 0.7);
}

.status-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
    animation: statusPulse 1.8s infinite;
}

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

.auth-card-arrow {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(0, 240, 255, 0.12);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: #00f0ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}

body.mobile-menu-locked {
    overflow: hidden !important;
}

/* ── 4. Large Screens & 4K Displays (≥ 1440px) ───────────────── */
@media (min-width: 1440px) {
    .image-box {
        max-width: 1400px;
        margin-left: auto;
        margin-right: auto;
    }
    .page-cyber-hero {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }
    .offers-grid, .tools-grid, .activation-grid, .plans-grid {
        max-width: 1400px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ── 5. Tablets (769px – 1024px) ────────────────────────────── */
@media (min-width: 769px) and (max-width: 1024px) {
    .mobile-menu-toggle {
        display: flex !important;
    }
    .nav-links {
        display: none !important;
    }
    .image-box {
        padding: 0 16px !important;
        height: 58px !important;
    }
    .prism-grid-container,
    .offers-grid,
    .tools-grid,
    .activation-grid,
    .plans-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
    .hero-welcome-stack, .hero-title {
        font-size: 36px !important;
    }
    .hero-subtitle {
        font-size: 18px !important;
    }
    .hero-content {
        max-width: calc(100% - 300px) !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   6. MOBILE VIEWPORT (≤ 768px) — iPhones & Android Devices
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    /* ── Header Bar Container ── */
    .image-box {
        height: 54px !important;
        min-height: 54px !important;
        border-radius: 14px !important;
        padding: 0 12px !important;
        z-index: 10000 !important;
        display: flex !important;
        align-items: center !important;
        background: rgba(13, 17, 26, 0.94) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border: 1px solid rgba(0, 240, 255, 0.2) !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6) !important;
        box-sizing: border-box !important;
    }

    /* Index Page Absolute Header */
    body.index-page .image-box,
    body:has(.stack-wrapper) .image-box {
        position: absolute !important;
        top: 10px !important;
        left: 10px !important;
        right: 10px !important;
        width: calc(100% - 20px) !important;
        margin: 0 !important;
    }

    /* Subpages Flow Header — Stays in document flow without overlapping hero! */
    body:not(.index-page):not(:has(.stack-wrapper)) .image-box,
    .status-bar + .image-box,
    header.image-box {
        position: relative !important;
        top: 0 !important;
        left: auto !important;
        right: auto !important;
        margin: 10px auto 14px auto !important;
        width: calc(100% - 20px) !important;
    }

    .nav-bar {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        height: 100% !important;
        padding: 0 4px !important;
        gap: 4px !important;
    }

    .nav-brand {
        display: flex !important;
        align-items: center !important;
        flex-shrink: 0 !important;
        max-width: 90px !important;
        min-width: 0 !important;
    }

    .header-logo {
        height: 22px !important;
        width: auto !important;
        max-width: 85px !important;
        object-fit: contain !important;
    }

    .nav-links {
        display: none !important;
    }

    .nav-actions {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 3px !important;
        width: auto !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
        min-width: 0 !important;
    }

    /* ── Streamlined Mobile Navbar Actions ── */
    .nav-actions {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 8px !important;
        width: auto !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
        min-width: 0 !important;
    }

    /* Wallet Badge Button inside Navbar on Mobile */
    .wallet-badge-btn, #navbar-wallet-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 4px 10px !important;
        height: 36px !important;
        min-height: 36px !important;
        font-size: 11.5px !important;
        border-radius: 10px !important;
        gap: 4px !important;
        max-width: none !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        order: 1 !important;
        background: rgba(0, 240, 255, 0.08) !important;
        border: 1px solid rgba(0, 240, 255, 0.3) !important;
        box-shadow: 0 0 10px rgba(0, 240, 255, 0.1) !important;
    }

    .wallet-badge-btn .wallet-amount-val,
    #navbar-wallet-btn .wallet-amount-val {
        font-size: 11px !important;
        font-weight: 700 !important;
        letter-spacing: -0.2px !important;
        color: #00f0ff !important;
    }

    /* Move Currency & Language to Mobile Drawer to declutter top header */
    .currency-badge-btn, #navbar-currency-btn,
    .lang-dropdown-wrapper {
        display: none !important;
    }

    /* Enhanced Thumb-Friendly Account Button (38x38px Touch Target) */
    .nav-account {
        padding: 0 !important;
        height: 38px !important;
        width: 38px !important;
        min-height: 38px !important;
        min-width: 38px !important;
        border-radius: 50% !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
        gap: 0 !important;
        order: 2 !important;
        background: rgba(0, 240, 255, 0.12) !important;
        border: 1.5px solid rgba(0, 240, 255, 0.45) !important;
        box-shadow: 0 0 12px rgba(0, 240, 255, 0.22) !important;
        cursor: pointer !important;
        touch-action: manipulation !important;
        transition: all 0.2s ease !important;
    }

    .nav-account:active {
        transform: scale(0.92) !important;
        background: rgba(0, 240, 255, 0.25) !important;
        border-color: #00f0ff !important;
    }

    /* Hide text inside navbar account button so circular avatar fits cleanly */
    .nav-account span,
    .nav-account #header-user-name,
    .nav-account span[data-i18n] {
        display: none !important;
    }

    .nav-account img,
    .nav-account svg {
        margin: 0 !important;
        width: 20px !important;
        height: 20px !important;
        color: #00f0ff !important;
    }

    /* Enhanced Thumb-Friendly Mobile Menu Button (38x38px Touch Target) */
    .mobile-menu-toggle {
        display: flex !important;
        width: 38px !important;
        height: 38px !important;
        min-height: 38px !important;
        min-width: 38px !important;
        border-radius: 10px !important;
        background: rgba(0, 240, 255, 0.1) !important;
        border: 1.5px solid rgba(0, 240, 255, 0.35) !important;
        box-shadow: 0 0 10px rgba(0, 240, 255, 0.15) !important;
        flex-shrink: 0 !important;
        padding: 0 !important;
        order: 3 !important;
        cursor: pointer !important;
        touch-action: manipulation !important;
        transition: all 0.2s ease !important;
    }

    .mobile-menu-toggle:active {
        transform: scale(0.92) !important;
        background: rgba(0, 240, 255, 0.25) !important;
    }

    .mobile-menu-toggle .bar {
        width: 18px !important;
        height: 2px !important;
        background: #00f0ff !important;
    }

    /* ── Subpage Hero & Header Banners ── */
    .page-cyber-hero {
        padding: 20px 12px 16px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .cyber-badge-magenta {
        font-size: 11px !important;
        padding: 5px 14px !important;
        margin-bottom: 12px !important;
        letter-spacing: 1px !important;
    }

    .hero-title, .page-title, .cyber-title {
        font-size: clamp(20px, 6vw, 32px) !important;
        line-height: 1.25 !important;
        margin-bottom: 8px !important;
        text-align: center !important;
    }

    .hero-subtitle, .page-subtitle, .cyber-subtitle {
        font-size: clamp(13px, 3.8vw, 15px) !important;
        line-height: 1.45 !important;
        margin-bottom: 16px !important;
        text-align: center !important;
        max-width: 95vw !important;
    }

    /* ── Home Page Hero ── */
    .stack-wrapper {
        position: relative !important;
        perspective: none !important;
        height: auto !important;
        min-height: calc(100svh - 70px) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-end !important;
        padding-top: 70px !important;
        padding-bottom: 50px !important;
        margin-top: 0 !important;
    }

    .hero-content {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        margin: auto auto 20px auto !important;
        width: calc(100% - 24px) !important;
        max-width: 520px !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        z-index: 50 !important;
        padding: 0 4px !important;
    }

    .hero-welcome-stack {
        font-size: clamp(24px, 7vw, 36px) !important;
        line-height: 1.15 !important;
        text-align: center !important;
        margin: 0 auto 6px auto !important;
    }

    .hero-cta-image {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 8px auto !important;
        padding: 0 !important;
        cursor: pointer !important;
    }

    .hero-cta-image img {
        display: block !important;
        max-height: 52px !important;
        width: auto !important;
        max-width: 200px !important;
        object-fit: contain !important;
        filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.5)) !important;
    }

    .servix-phone-wrapper,
    .model-overlay, .top-model-overlay, .third-model-overlay,
    .fourth-model-overlay, .fifth-model-overlay {
        display: none !important;
    }

    /* ── Special Offers Page (offers.html) ── */
    .offers-grid,
    .promo-cards-grid,
    .offers-cards-container {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        padding: 10px 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .offer-card, .promo-card, .deal-card {
        width: 100% !important;
        padding: 16px 14px !important;
        border-radius: 14px !important;
        box-sizing: border-box !important;
    }

    .offer-card-image img {
        max-height: 160px !important;
        object-fit: contain !important;
    }

    .claim-btn, .offer-action-btn, .buy-offer-btn {
        min-height: 46px !important;
        width: 100% !important;
        font-size: 15px !important;
        border-radius: 12px !important;
        font-weight: 700 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* ── Tool Rental Page (tool-rental.html) ── */
    .rental-categories, .filter-chips-bar, .rental-tabs {
        display: flex !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        padding: 4px 12px 10px 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        scrollbar-width: none;
    }

    .rental-categories::-webkit-scrollbar,
    .filter-chips-bar::-webkit-scrollbar {
        display: none;
    }

    .category-chip, .rental-tab, .filter-chip {
        flex-shrink: 0 !important;
        padding: 8px 14px !important;
        font-size: 13px !important;
        min-height: 36px !important;
        border-radius: 20px !important;
        white-space: nowrap !important;
    }

    .search-input-wrapper, .tool-search-box {
        width: calc(100% - 24px) !important;
        margin: 10px auto 16px auto !important;
    }

    .tools-grid, .rental-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        padding: 0 12px 24px 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .rental-card, .tool-card {
        padding: 16px 14px !important;
        border-radius: 14px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .duration-pills-wrapper, .duration-options {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        justify-content: center !important;
        margin: 10px 0 !important;
    }

    .duration-pill, .duration-btn {
        flex: 1 1 calc(33.33% - 6px) !important;
        min-width: 70px !important;
        min-height: 38px !important;
        font-size: 12.5px !important;
        padding: 6px 4px !important;
        text-align: center !important;
        border-radius: 8px !important;
    }

    .rent-btn, .order-tool-btn {
        min-height: 46px !important;
        width: 100% !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        border-radius: 12px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* ── Tool Activation Page (tool-activation.html) ── */
    .activation-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        padding: 0 12px 24px 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .tool-act-card, .activation-card {
        padding: 16px 14px !important;
        border-radius: 14px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* ── Business Plans Page (business-plans.html) ── */
    .plans-grid, .pricing-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 0 12px 30px 12px !important;
        width: 100% !important;
        max-width: 440px !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }

    .plan-card, .pricing-card {
        padding: 22px 16px !important;
        border-radius: 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .plan-price {
        font-size: clamp(28px, 8vw, 40px) !important;
    }

    .subscribe-btn, .plan-btn {
        min-height: 48px !important;
        width: 100% !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        border-radius: 12px !important;
    }

    /* ── Remote Services Page (remote-services.html) ── */
    .remote-services-grid, .services-list {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        padding: 0 12px 24px 12px !important;
    }

    .remote-service-card {
        padding: 16px 14px !important;
        border-radius: 14px !important;
    }

    /* ── Support Page (support.html) ── */
    .support-grid, .contact-methods-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        padding: 0 12px 24px 12px !important;
    }

    .support-card {
        padding: 18px 14px !important;
        border-radius: 14px !important;
    }

    /* ── Community & Chat Pages ── */
    .figma-app-wrapper {
        margin: 10px auto 0 auto !important;
        padding: 0 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .figma-chat-frame {
        height: calc(100dvh - 80px) !important;
        border-radius: 14px !important;
        min-height: 420px !important;
    }

    /* ── Modals Universal Mobile Fix ── */
    .modal-overlay, .custom-modal, .activation-modal-wrapper {
        padding: 12px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .modal-content, .custom-modal-content, .activation-modal-box {
        width: min(94vw, 500px) !important;
        max-width: 94vw !important;
        max-height: 88dvh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 20px 16px !important;
        border-radius: 18px !important;
        margin: auto !important;
    }

    .modal-close-btn, .close-modal {
        top: 12px !important;
        right: 12px !important;
        width: 34px !important;
        height: 34px !important;
        font-size: 16px !important;
    }

    html[dir="rtl"] .modal-close-btn,
    html[dir="rtl"] .close-modal {
        right: auto !important;
        left: 12px !important;
    }

    /* Form Controls Touch Optimization & Prevents iOS Safari Auto-Zoom */
    input[type="text"], input[type="email"], input[type="password"],
    input[type="number"], input[type="tel"], select, textarea {
        font-size: 16px !important;
        min-height: 44px !important;
        border-radius: 10px !important;
        padding: 10px 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        -webkit-appearance: none;
    }

    /* Universal Buttons */
    button, .btn, .cyber-button, .action-btn {
        min-height: 44px !important;
        touch-action: manipulation;
    }
}

/* ═══════════════════════════════════════════════════════════════
   7. EXTRA SMALL PHONES (< 380px) — iPhone SE & Small Androids
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 379px) {
    .image-box {
        height: 50px !important;
        padding: 0 8px !important;
    }

    .header-logo {
        height: 22px !important;
        max-width: 100px !important;
    }

    .nav-account span[data-i18n] {
        display: none !important;
    }

    .nav-lang {
        padding: 4px 6px !important;
        font-size: 10.5px !important;
    }

    .hero-welcome-stack, .hero-title, .page-title {
        font-size: 22px !important;
    }

    .hero-subtitle, .page-subtitle {
        font-size: 13px !important;
    }

    .duration-pill, .duration-btn {
        font-size: 11.5px !important;
        min-width: 60px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   8. TOUCH DEVICES & SAFE ARTIFACTS
   ═══════════════════════════════════════════════════════════════ */
@media (hover: none) and (pointer: coarse) {
    .prism-card:hover, .offer-card:hover, .rental-card:hover,
    .tool-act-card:hover, .plan-card:hover {
        transform: none !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   9. CYBER TOOL RENTAL CONFIGURATOR (MOBILE & TABLET RESPONSIVE)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    #monitor-3d-canvas-container {
        width: 100% !important;
        height: 360px !important;
        min-height: 320px !important;
        overflow: visible !important;
        position: relative !important;
    }

    .terminal-canvas-wrapper {
        height: auto !important;
        min-height: auto !important;
        margin-bottom: 20px !important;
        overflow: visible !important;
    }

    .cyber-panel {
        padding: 16px 14px !important;
        border-radius: 16px !important;
        margin: 10px auto !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        background: rgba(11, 13, 18, 0.85) !important;
    }

    .cyber-title-bar {
        padding-bottom: 12px !important;
        margin-bottom: 14px !important;
    }

    .cyber-title {
        font-size: 15px !important;
    }

    .cyber-workspace {
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;
    }

    /* Horizontal scrollable tool chips */
    .cyber-tools-sidebar {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 8px !important;
        padding: 2px 2px 10px 2px !important;
        border-inline-end: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        scrollbar-width: thin !important;
        scrollbar-color: rgba(0, 244, 255, 0.3) transparent !important;
    }

    .cyber-tools-sidebar::-webkit-scrollbar {
        height: 3px !important;
    }

    .cyber-tools-sidebar::-webkit-scrollbar-thumb {
        background: rgba(0, 244, 255, 0.3) !important;
        border-radius: 3px !important;
    }

    .cyber-tool-item {
        flex: 0 0 auto !important;
        min-width: 120px !important;
        padding: 7px 12px !important;
        border-radius: 10px !important;
        gap: 8px !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        transform: none !important;
        justify-content: center !important;
    }

    .cyber-tool-item.active {
        background: rgba(0, 244, 255, 0.12) !important;
        border-color: #00f4ff !important;
        box-shadow: 0 0 15px rgba(0, 244, 255, 0.25) !important;
    }

    .cyber-tool-logo-wrapper {
        width: 24px !important;
        height: 24px !important;
        flex-shrink: 0 !important;
    }

    .cyber-tool-name {
        font-size: 13px !important;
        white-space: nowrap !important;
    }

    .cyber-configurator-main {
        min-height: auto !important;
        width: 100% !important;
    }

    .cyber-control-group {
        width: 100% !important;
        max-width: 100% !important;
        gap: 10px !important;
    }

    .cyber-label {
        font-size: 13px !important;
    }

    .cyber-interactive-container {
        width: 100% !important;
        gap: 8px !important;
    }

    .cyber-interactive {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .cyber-slider {
        width: 100% !important;
        height: 8px !important;
        margin: 4px 0 !important;
    }

    .cyber-input-container {
        width: 100% !important;
        min-width: 0 !important;
        justify-content: center !important;
        background: rgba(0, 244, 255, 0.06) !important;
        border: 1px solid rgba(0, 244, 255, 0.25) !important;
        border-radius: 10px !important;
        padding: 6px 12px !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        height: 38px !important;
    }

    .cyber-input {
        font-size: 18px !important;
        font-weight: 700 !important;
        color: #00f4ff !important;
        width: 34px !important;
        text-align: center !important;
    }

    .cyber-unit {
        font-size: 13px !important;
        font-weight: 600 !important;
        color: #ffffff !important;
        padding-right: 0 !important;
    }

    #slider-labels-container,
    .slider-labels-container {
        padding-inline-start: 0 !important;
        padding-inline-end: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        gap: 6px !important;
        margin-top: 6px !important;
        box-sizing: border-box !important;
    }

    .slider-label {
        flex: 1 1 0 !important;
        text-align: center !important;
        background: rgba(255, 255, 255, 0.04) !important;
        border: 1px solid rgba(0, 244, 255, 0.15) !important;
        border-radius: 8px !important;
        padding: 7px 4px !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
        color: #c0d8e8 !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
    }

    .slider-label:active,
    .slider-label.active {
        background: rgba(0, 244, 255, 0.18) !important;
        border-color: #00f4ff !important;
        color: #00f4ff !important;
        box-shadow: 0 0 10px rgba(0, 244, 255, 0.25) !important;
    }

    /* Stacking footer: Price card on top, Apply button full-width below */
    .cyber-footer {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        align-items: stretch !important;
        margin-top: 16px !important;
        padding-top: 14px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    .cyber-price-display {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        padding: 10px 14px !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: 10px !important;
        box-sizing: border-box !important;
        font-size: 14px !important;
        margin: 0 !important;
    }

    .cyber-price-display .cyber-price {
        font-size: 22px !important;
        font-weight: 700 !important;
        color: #00f4ff !important;
        text-shadow: 0 0 10px rgba(0, 244, 255, 0.5) !important;
    }

    .cyber-btn,
    #win95-apply-btn {
        width: 100% !important;
        min-height: 48px !important;
        font-size: 14.5px !important;
        font-weight: 700 !important;
        letter-spacing: 0.8px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 10px !important;
        background: linear-gradient(135deg, #7c5cff 0%, #00f4ff 100%) !important;
        box-shadow: 0 4px 18px rgba(0, 244, 255, 0.3) !important;
    }

    /* ═══════════════════════════════════════════════════════════════
       HISTORY & ORDERS MOBILE OVERFLOW FIXES (سجل الطلبات والعمليات)
       ═══════════════════════════════════════════════════════════════ */
    .act-orders-section, #act-orders-section {
        padding: 14px 10px !important;
        margin: 15px auto 25px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        border-radius: 12px !important;
        overflow-x: hidden !important;
    }

    .act-orders-header-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        margin-bottom: 16px !important;
        padding-bottom: 12px !important;
    }

    .act-orders-title {
        font-size: 1.15rem !important;
        justify-content: space-between !important;
        width: 100% !important;
        word-break: break-word !important;
    }

    .act-my-orders-grid, #act-my-orders-container {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .act-order-card {
        padding: 12px 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        min-width: 0 !important;
        border-radius: 10px !important;
        overflow: hidden !important;
    }

    .act-order-header {
        flex-wrap: wrap !important;
        gap: 8px !important;
        justify-content: space-between !important;
    }

    .act-order-tool-info {
        gap: 8px !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
        overflow: hidden !important;
    }

    .act-order-tool-img {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
        max-width: 38px !important;
        max-height: 38px !important;
        flex-shrink: 0 !important;
    }

    .act-order-title {
        font-size: 0.95rem !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
        line-height: 1.3 !important;
        margin: 0 !important;
    }

    .act-order-date {
        font-size: 0.7rem !important;
    }

    .act-order-badge {
        padding: 3px 8px !important;
        font-size: 0.7rem !important;
        align-self: flex-start !important;
        flex-shrink: 0 !important;
    }

    .act-order-fields {
        padding: 8px 10px !important;
        gap: 5px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .act-order-field-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 2px !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .act-order-field-key {
        font-size: 0.75rem !important;
    }

    .act-order-field-val {
        font-size: 0.78rem !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .act-order-footer {
        flex-wrap: wrap !important;
        gap: 6px !important;
        font-size: 0.8rem !important;
    }

    /* 2. Wallet Modal History & Tickets */
    .wallet-tx-list, .wallet-ticket-list {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-right: 0 !important;
        overflow-x: hidden !important;
        max-height: 260px !important;
    }

    .wallet-tx-item {
        padding: 8px 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        gap: 8px !important;
        min-width: 0 !important;
        align-items: center !important;
    }

    .wallet-tx-item > div:first-child {
        min-width: 0 !important;
        flex: 1 1 auto !important;
        overflow: hidden !important;
    }

    .wallet-tx-desc {
        font-size: 12px !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
        line-height: 1.3 !important;
    }

    .wallet-tx-date {
        font-size: 10px !important;
        word-break: break-all !important;
        overflow-wrap: anywhere !important;
    }

    .wallet-tx-amount {
        font-size: 12px !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }

    .wallet-ticket-item {
        padding: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        min-width: 0 !important;
    }

    .wallet-ticket-msg {
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
        font-size: 11px !important;
    }

    /* 3. GSM Hub Order History Modal */
    .order-history-modal-overlay {
        padding: 10px 8px !important;
    }

    .order-history-card {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 14px !important;
        max-height: 92vh !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .order-history-header {
        padding: 12px 14px !important;
    }

    .order-history-title {
        font-size: 14px !important;
        word-break: break-word !important;
    }

    .order-history-search-bar {
        padding: 8px 12px !important;
    }

    .order-history-body {
        padding: 10px 8px !important;
        gap: 8px !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .order-card-item {
        padding: 10px !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .order-card-top {
        flex-wrap: wrap !important;
        gap: 6px !important;
    }

    .order-tool-title {
        font-size: 13px !important;
        word-break: break-word !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
    }

    .order-status-badge {
        font-size: 9.5px !important;
        padding: 2px 7px !important;
        flex-shrink: 0 !important;
    }

    .order-card-details {
        font-size: 10.5px !important;
        gap: 8px !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
    }

    /* 4. Account Modal Transaction & Session list */
    .sp-account-overlay {
        padding: 10px 8px !important;
    }

    .sp-account-modal-card {
        width: 98% !important;
        max-width: 98% !important;
        padding: 14px 10px !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
}

/* Ultra-compact screen adjustments (≤ 400px, e.g., iPhone SE, Galaxy Z Flip cover) */
@media (max-width: 400px) {
    .image-box {
        padding: 0 6px !important;
        height: 48px !important;
        min-height: 48px !important;
    }

    .nav-bar {
        gap: 2px !important;
    }

    .nav-brand {
        max-width: 72px !important;
    }

    .header-logo {
        max-width: 68px !important;
        height: 19px !important;
    }

    .nav-actions {
        gap: 2px !important;
    }

    .wallet-badge-btn, #navbar-wallet-btn {
        padding: 2px 4px !important;
        height: 26px !important;
        min-height: 26px !important;
        font-size: 10px !important;
        border-radius: 6px !important;
        gap: 2px !important;
    }

    .wallet-badge-btn .wallet-amount-val,
    #navbar-wallet-btn .wallet-amount-val {
        font-size: 9.5px !important;
    }

    .currency-badge-btn, #navbar-currency-btn {
        padding: 2px 4px !important;
        height: 26px !important;
        min-height: 26px !important;
        font-size: 9px !important;
        border-radius: 6px !important;
        gap: 2px !important;
    }

    .currency-badge-btn .currency-code-text,
    #navbar-currency-btn .currency-code-text {
        font-size: 9px !important;
    }

    .nav-lang {
        padding: 2px 4px !important;
        height: 26px !important;
        min-height: 26px !important;
        max-width: 48px !important;
        font-size: 9px !important;
        border-radius: 6px !important;
    }

    .nav-lang .lang-text {
        font-size: 9px !important;
        max-width: 28px !important;
    }

    .nav-account {
        height: 26px !important;
        width: 26px !important;
        min-height: 26px !important;
        min-width: 26px !important;
    }

    .nav-account img,
    .nav-account svg {
        width: 14px !important;
        height: 14px !important;
    }

    .mobile-menu-toggle {
        width: 26px !important;
        height: 26px !important;
        min-height: 26px !important;
    }
}

