        :root {
            --primary: #610fff;
            --primary-dark: #3b00d9;
            --primary-light: #8735ff;
            --primary-glow: rgba(97, 15, 255, 0.3);
            --bg-dark: #0f091e;
            --card-dark: #191a30;
            --success: #10b981;
            --danger: #ef4444;
            --warning: #f59e0b;
            --text-main: #ededed;
            --text-sub: #9b8fc4;
            --border-color: #2a1f4e;
            --shadow-lg: 0 20px 40px -10px rgba(97, 15, 255, 0.15);
            --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.4);
            --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        /* ═══════════════════════════════════════════════════
           ANIMATED BACKGROUND
           ═══════════════════════════════════════════════════ */
        .animated-bg {
            position: fixed;
            inset: 0;
            z-index: -1;
            overflow: hidden;
            pointer-events: none;
        }
        .bg-orb {
            position: absolute;
            border-radius: 50%;
            filter: blur(80px);
            opacity: 0.4;
            animation: orbFloat 20s ease-in-out infinite;
        }
        [data-theme="dark"] .bg-orb { opacity: 0.25; }
        :not([data-theme="dark"]) .bg-orb { opacity: 0.08; }
        .bg-orb-1 {
            width: 400px; height: 400px;
            background: var(--primary);
            top: -100px; right: -100px;
            animation-delay: 0s;
        }
        .bg-orb-2 {
            width: 300px; height: 300px;
            background: var(--primary-light);
            bottom: 10%; left: -80px;
            animation-delay: -7s;
            animation-duration: 25s;
        }
        .bg-orb-3 {
            width: 200px; height: 200px;
            background: #6366f1;
            top: 40%; right: 20%;
            animation-delay: -14s;
            animation-duration: 18s;
        }
        @keyframes orbFloat {
            0%, 100% { transform: translate(0, 0) scale(1); }
            25% { transform: translate(40px, -30px) scale(1.1); }
            50% { transform: translate(-20px, 40px) scale(0.9); }
            75% { transform: translate(30px, 20px) scale(1.05); }
        }

        /* ═══════════════════════════════════════════════════
           LIQUID GLASS BASE MIXIN
           ═══════════════════════════════════════════════════ */
        .glass {
            background: rgba(255, 255, 255, 0.12) !important;
            backdrop-filter: blur(20px) saturate(180%);
            -webkit-backdrop-filter: blur(20px) saturate(180%);
            border: 1px solid rgba(255, 255, 255, 0.18) !important;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.25);
        }
        [data-theme="dark"] .glass {
            background: rgba(25, 26, 48, 0.35) !important;
            border: 1px solid rgba(97, 15, 255, 0.15) !important;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
        }

        /* ═══════════════════════════════════════════════════
           CARD GLOW EFFECT
           ═══════════════════════════════════════════════════ */
        .card-glow {
            position: absolute;
            top: -1px; left: -1px; right: -1px; bottom: -1px;
            border-radius: inherit;
            background: radial-gradient(circle at 50% 50%, var(--primary-light) 0%, var(--primary) 30%, transparent 70%);
            opacity: 0;
            z-index: -1;
            transition: opacity 0.55s ease, background 0.05s linear;
            pointer-events: none;
        }
        .card:hover {
            transform: scale(1.012) translateY(-2px);
            box-shadow: 0 20px 50px -10px rgba(97, 15, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.6);
        }
        [data-theme="dark"] .card:hover {
            box-shadow: 0 20px 50px -10px rgba(97, 15, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
        }

        /* ═══════════════════════════════════════════════════
           REDESIGNED HERO SECTION
           ═══════════════════════════════════════════════════ */
        .hero-section {
            margin-bottom: 24px;
        }
        .order-form-card .order-form-heading {
            font-size: clamp(22px, 5vw, 30px);
            font-weight: 800;
            margin-bottom: 8px;
            background: linear-gradient(135deg, var(--text-color) 0%, var(--primary-light) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        [data-theme="dark"] .order-form-card .order-form-heading {
            background: linear-gradient(135deg, #ffffff 30%, var(--primary-light) 100%);
            -webkit-background-clip: text;
            background-clip: text;
        }
        .order-form-card .order-form-subtitle {
            font-size: 14px;
            color: var(--text-secondary);
            margin: 0;
            line-height: 1.6;
        }

        /* ═══════════════════════════════════════════════════
           INLINE SEARCH BAR (input + button merged)
           ═══════════════════════════════════════════════════ */
        .order-form-card .order-input-group {
            position: relative;
            display: flex;
            align-items: center;
            flex-direction: row;
            direction: ltr;
            border-radius: 16px;
            overflow: hidden;
            border: 2px solid var(--border-color-light);
            background: var(--card-color);
            transition: border-color 0.3s, box-shadow 0.3s;
        }
        .order-form-card .order-input-group:focus-within {
            border-color: var(--primary);
            box-shadow: 0 0 0 4px rgba(97, 15, 255, 0.12);
        }
        [data-theme="dark"] .order-form-card .order-input-group {
            background: rgba(15, 9, 30, 0.35);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-color: rgba(97, 15, 255, 0.2);
        }
        [data-theme="dark"] .order-form-card .order-input-group:focus-within {
            border-color: var(--primary);
            box-shadow: 0 0 0 4px rgba(97, 15, 255, 0.15);
        }
        .order-form-card .order-input {
            border: none !important;
            background: transparent !important;
            box-shadow: none !important;
            flex: 1;
            min-width: 0;
            width: auto !important;
            padding: 14px 16px !important;
            font-size: 15px;
            font-family: inherit;
            color: var(--text-color);
            outline: none;
            direction: rtl;
            text-align: right;
        }
        .order-form-card .order-input::placeholder {
            color: var(--text-secondary);
            opacity: 0.6;
        }
        .order-form-card .input-icon {
            padding: 0 0 0 16px;
            color: var(--primary);
            font-size: 16px;
            opacity: 0.7;
            position: static !important;
            transform: none !important;
        }
        .input-submit-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 48px;
            height: 48px;
            min-width: 48px;
            margin: 4px;
            border-radius: 12px;
            border: none;
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
            color: #fff;
            font-size: 18px;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        .input-submit-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 4px 20px rgba(97, 15, 255, 0.4);
        }
        .input-submit-btn:active {
            transform: scale(0.95);
        }
        /* Hide old standalone submit button */
        .order-form-card .order-submit-btn[type="submit"] { display: none; }

        /* ═══════════════════════════════════════════════════
           ORDER ID ROW (tracking card header)
           ═══════════════════════════════════════════════════ */
        .order-id-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            padding: 0;
            margin-bottom: 18px;
        }
        .order-id-chip {
            display: flex;
            direction: ltr;
            align-items: center;
            gap: 8px;
            padding: 7px 14px;
            border-radius: 50px;
            background: rgba(97, 15, 255, 0.08);
            border: 1px solid rgba(97, 15, 255, 0.18);
            width: max-content;
            max-width: 65%;
            overflow: hidden;
            flex-shrink: 0;
        }
        [data-theme="dark"] .order-id-chip {
            background: rgba(97, 15, 255, 0.1);
            border-color: rgba(97, 15, 255, 0.22);
        }
        .order-id-dot {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: var(--primary);
            flex-shrink: 0;
            box-shadow: 0 0 6px rgba(97, 15, 255, 0.6);
        }
        .order-id-label {
            font-size: 11px;
            color: var(--text-secondary);
            white-space: nowrap;
            flex-shrink: 0;
        }
        .order-id-value {
            font-size: 13px;
            font-weight: 700;
            color: var(--primary);
            font-family: monospace;
            letter-spacing: 0.5px;
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            direction: ltr;
            flex: 1;
        }
        .last-updated-text {
            font-size: 11px;
            color: var(--text-secondary);
            opacity: 0.65;
            white-space: nowrap;
            flex-shrink: 0;
        }

        /* ═══════════════════════════════════════════════════
           ORDER HISTORY BADGES
           ═══════════════════════════════════════════════════ */
        .order-history-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            padding: 10px 14px;
            border-radius: 12px;
            background: rgba(255,255,255,0.5);
            border: 1px solid rgba(97,15,255,0.1);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            cursor: pointer;
            transition: all 0.2s;
            font-size: 13px;
            font-weight: 600;
            color: var(--text-color);
            text-align: right;
            width: 100%;
            margin-bottom: 6px;
        }
        .order-history-item:last-child { margin-bottom: 0; }
        .order-history-item:hover {
            border-color: rgba(97,15,255,0.35);
            background: rgba(97,15,255,0.06);
            transform: translateY(-1px);
        }
        [data-theme="dark"] .order-history-item {
            background: rgba(255,255,255,0.04);
            border-color: rgba(97,15,255,0.15);
        }
        [data-theme="dark"] .order-history-item:hover {
            background: rgba(97,15,255,0.1);
        }
        .history-id-btn {
            flex: 1;
            min-width: 0;
            background: none;
            border: none;
            cursor: pointer;
            padding: 0;
        }
        .history-item-id {
            display: block;
            font-family: monospace;
            font-size: 13px;
            font-weight: 600;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            direction: ltr;
            text-align: left;
            color: var(--text-color);
        }
        .history-delete-btn {
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 26px;
            height: 26px;
            border-radius: 6px;
            border: 1px solid rgba(239, 68, 68, 0.2);
            background: rgba(239, 68, 68, 0.06);
            color: #ef4444;
            font-size: 11px;
            cursor: pointer;
            transition: all 0.2s;
            opacity: 1;
        }
        .history-delete-btn:hover {
            background: rgba(239, 68, 68, 0.18) !important;
            transform: scale(1.1);
        }
        .history-badge {
            font-size: 11px;
            font-weight: 600;
            padding: 3px 8px;
            border-radius: 20px;
            white-space: nowrap;
        }
        .badge-coins {
            background: rgba(97,15,255,0.12);
            color: var(--primary);
            border: 1px solid rgba(97,15,255,0.2);
        }
        .badge-sbc {
            background: rgba(234,88,12,0.1);
            color: #ea580c;
            border: 1px solid rgba(234,88,12,0.2);
        }
        [data-theme="dark"] .badge-coins {
            background: rgba(97,15,255,0.2);
        }
        [data-theme="dark"] .badge-sbc {
            background: rgba(234,88,12,0.15);
        }

        /* ═══════════════════════════════════════════════════
           TRUST BADGES
           ═══════════════════════════════════════════════════ */
        .trust-badges {
            display: flex;
            justify-content: center;
            gap: 16px;
            margin-top: 20px;
            flex-wrap: wrap;
        }
        .trust-badge {
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 11px;
            color: var(--text-secondary);
            opacity: 0.7;
        }
        .trust-badge i {
            color: var(--primary);
            font-size: 12px;
        }

        /* ═══════════════════════════════════════════════════
           ORDER TYPE TOGGLE - PILL REDESIGN
           ═══════════════════════════════════════════════════ */
        .order-form-card .order-type-toggle {
            display: flex;
            background: rgba(255, 255, 255, 0.18);
            backdrop-filter: blur(20px) saturate(180%);
            -webkit-backdrop-filter: blur(20px) saturate(180%);
            border-radius: 16px;
            padding: 5px;
            margin-bottom: 24px;
            border: 1px solid rgba(255, 255, 255, 0.35);
            box-shadow:
                0 2px 12px rgba(97, 15, 255, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.5),
                inset 0 -1px 0 rgba(0, 0, 0, 0.04);
            position: relative;
        }
        [data-theme="dark"] .order-form-card .order-type-toggle {
            background: rgba(255, 255, 255, 0.06);
            border-color: rgba(255, 255, 255, 0.12);
            box-shadow:
                0 2px 12px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1),
                inset 0 -1px 0 rgba(0, 0, 0, 0.2);
        }
        /* Sliding pill */
        .order-form-card .tab-slider {
            position: absolute;
            top: 5px;
            left: 0;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.72);
            backdrop-filter: blur(12px) saturate(200%);
            -webkit-backdrop-filter: blur(12px) saturate(200%);
            border: 1px solid rgba(255, 255, 255, 0.7);
            box-shadow:
                0 2px 10px rgba(97, 15, 255, 0.15),
                0 1px 3px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 1);
            transition: transform 0.32s cubic-bezier(0.34, 1.4, 0.64, 1),
                        width  0.32s cubic-bezier(0.34, 1.4, 0.64, 1);
            pointer-events: none;
            z-index: 0;
        }
        [data-theme="dark"] .order-form-card .tab-slider {
            background: rgba(97, 15, 255, 0.28);
            border-color: rgba(97, 15, 255, 0.45);
            box-shadow:
                0 2px 14px rgba(97, 15, 255, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.18);
        }
        .order-form-card .type-btn {
            flex: 1;
            padding: 10px 16px;
            border: none;
            border-radius: 12px;
            background: transparent;
            font-family: inherit;
            font-weight: 600;
            font-size: 13px;
            color: var(--text-secondary);
            cursor: pointer;
            transition: color 0.25s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            position: relative;
            z-index: 1;
        }
        .order-form-card .type-btn.active {
            color: var(--primary);
        }
        [data-theme="dark"] .order-form-card .type-btn.active {
            color: #fff;
        }
        .order-form-card .type-btn:not(.active):hover {
            color: var(--text-color);
        }

        /* ═══════════════════════════════════════════════════
           ORDER HISTORY REDESIGN
           ═══════════════════════════════════════════════════ */
        .order-history-title {
            font-size: 12px;
            color: var(--text-secondary);
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .order-history-list {
            display: flex;
            flex-direction: column;
            gap: 0;
        }

        /* Light Mode */
        :root {
            --bg-color: #ede9f8;
            --card-color: #f5f2ff;
            --text-color: #1a1033;
            --text-secondary: #6b5b8a;
            --border-color-light: rgba(97, 15, 255, 0.1);
            --header-bg: #e4dff5;
            --footer-bg: #e4dff5;
            --header-border: rgba(97, 15, 255, 0.12);
            --header-text: #1a1033;
        }

        /* Dark Mode (Default) */
        [data-theme="dark"] {
            --bg-color: #0f091e;
            --card-color: rgba(25, 26, 48, 0.8);
            --text-color: #ededed;
            --text-secondary: #9b8fc4;
            --border-color-light: rgba(97, 15, 255, 0.15);
            --header-bg: #0f091e;
            --footer-bg: #0f091e;
            --header-border: rgba(255, 255, 255, 0.1);
            --header-text: #ffffff;
        }

        * {
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
            margin: 0;
            padding: 0;
        }

        body {
            margin: 0;
            padding: 0;
            font-family: 'Cairo', sans-serif;
            background: var(--bg-color);
            color: var(--text-color);
            display: flex;
            flex-direction: column;
            min-height: 100vh;
            overflow-x: hidden;
            transition: background-color 0.3s ease, color 0.3s ease;
        }

        [data-theme="dark"] body {
            background: #0f091e !important;
        }

        /* Utility Classes */
        .flex {
            display: flex;
        }

        .flex-col {
            flex-direction: column;
        }

        .items-center {
            align-items: center;
        }

        .items-start {
            align-items: flex-start;
        }

        .items-stretch {
            align-items: stretch;
        }

        .justify-center {
            justify-content: center;
        }

        .justify-between {
            justify-content: space-between;
        }

        .justify-start {
            justify-content: flex-start;
        }

        .justify-end {
            justify-content: flex-end;
        }

        .relative {
            position: relative;
        }

        .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border-width: 0;
        }

        .gap-2 {
            gap: 0.5rem;
        }

        .gap-4 {
            gap: 1rem;
        }

        .w-1\/3 {
            width: 33.333333%;
        }

        .w-max {
            width: max-content;
        }

        .h-full {
            height: 100%;
        }

        .p-1 {
            padding: 0.25rem;
        }

        .pb-2 {
            padding-bottom: 0.5rem;
        }

        .pt-4 {
            padding-top: 1rem;
        }

        .py-4 {
            padding-top: 1rem;
            padding-bottom: 1rem;
        }

        .mb-2\.5 {
            margin-bottom: 0.625rem;
        }

        .mb-0 {
            margin-bottom: 0;
        }

        .text-sm {
            font-size: 0.875rem;
        }

        .text-base {
            font-size: 1rem;
        }

        .text-2xl {
            font-size: 1.5rem;
        }

        .text-primary {
            color: var(--primary);
        }

        .text-black {
            color: #000;
        }

        .text-gray-400 {
            color: #9ca3af;
        }

        .opacity-75 {
            opacity: 0.75;
        }

        .overflow-hidden {
            overflow: hidden;
        }

        .ltr\:mr-1 {
            margin-right: 0.25rem;
        }

        .rtl\:ml-1 {
            margin-left: 0.25rem;
        }

        @media (min-width: 1024px) {
            .lg\:flex-row {
                flex-direction: row;
            }
        }

        @media (min-width: 768px) {
            .md\:mb-0 {
                margin-bottom: 0;
            }
        }

        .hover\:text-primary:hover {
            color: var(--primary);
        }

        .da-tm {
            direction: ltr;
        }

        /* Layout */
        .main-content {
            padding: 20px;
            flex-grow: 1;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .container {
            width: 100%;
            max-width: 450px;
            margin: 0 auto;
        }

        /* Header */
        .header {
            background-color: var(--header-bg) !important;
            padding: 12px 15px;
            border-bottom: 1px solid var(--header-border);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            position: sticky;
            top: 0;
            z-index: 1000;
            transition: background-color 0.3s;
        }

        @media (min-width: 768px) {
            .header {
                padding: 15px 20px;
            }
        }

        .header .text-primary {
            color: var(--primary) !important;
        }

        .header .text-black {
            color: var(--header-text) !important;
        }

        .header-btn {
            color: var(--header-text) !important;
        }

        .header-container {
            max-width: 1200px;
            margin: 0 auto;
            width: 100%;
        }

        .mburger {
            background: none;
            border: none;
            color: var(--primary);
            cursor: pointer;
            padding: 6px;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        @media (min-width: 768px) {
            .mburger {
                padding: 8px;
            }
        }

        .mburger i {
            font-size: 20px;
        }

        @media (min-width: 768px) {
            .mburger i {
                font-size: 24px;
            }
        }

        .mburger p {
            font-size: 14px;
            margin: 0;
            color: #fff;
        }

        @media (min-width: 768px) {
            .mburger p {
                font-size: 16px;
            }
        }

        .hidden {
            display: none;
        }

        @media (min-width: 768px) {
            .md\:block {
                display: block;
            }
        }

        .md\:flex-row {
            flex-direction: column;
        }

        @media (min-width: 768px) {
            .md\:flex-row {
                flex-direction: row;
            }
        }

        .md\:items-center {
            align-items: flex-start;
        }

        @media (min-width: 768px) {
            .md\:items-center {
                align-items: center;
            }
        }

        .md\:gap-4 {
            gap: 1rem;
        }

        .md\:max-w-xs {
            max-width: 100%;
        }

        @media (min-width: 768px) {
            .md\:max-w-xs {
                max-width: 20rem;
            }
        }

        .md\:\!mb-0 {
            margin-bottom: 0.5rem;
        }

        @media (min-width: 768px) {
            .md\:\!mb-0 {
                margin-bottom: 0;
            }
        }

        .align-center {
            align-items: center;
        }

        .da-brdr {
            border: none;
        }

        .da-cp {
            cursor: pointer;
        }

        .text-lg {
            font-size: 1.125rem;
        }

        .mb-1 {
            margin-bottom: 0.25rem;
        }

        .shrink-0 {
            flex-shrink: 0;
        }

        .flex-center {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .follow {
            font-weight: 600;
        }

        .social-links {
            gap: 0.5rem;
        }

        @media (min-width: 768px) {
            .social-links {
                gap: 1rem;
            }
        }

        .footer-list {
            display: flex;
            flex-direction: column;
            text-align: right;
            align-items: flex-end;
        }

        .footer-list a {
            text-align: right;
            width: 100%;
        }

        .contact-links {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.75rem;
        }

        .footer-images {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .pay-mada,
        .pay-mastercard,
        .pay-visa,
        .pay-stc_pay,
        .pay-apple_pay,
        .pay-cod {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 35px;
            height: 20px;
            overflow: hidden;
        }

        @media (min-width: 768px) {

            .pay-mada,
            .pay-mastercard,
            .pay-visa,
            .pay-stc_pay,
            .pay-apple_pay,
            .pay-cod {
                width: 48px;
                height: 28px;
            }
        }

        .pay-mada img,
        .pay-mastercard img,
        .pay-visa img,
        .pay-stc_pay img,
        .pay-apple_pay img,
        .pay-cod img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            width: 100%;
            height: 100%;
        }

        .sbc-link {
            width: 35px;
            height: 35px;
            overflow: hidden;
        }

        @media (min-width: 768px) {
            .sbc-link {
                width: 48px;
                height: 32px;
            }
        }

        .sbc-link img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
        }

        .mburger:hover {
            transform: scale(1.05);
        }

        .navbar-brand {
            display: inline-block;
            text-decoration: none;
        }

        .logo-light {
            height: 2.5rem;
            width: auto;
            object-fit: contain;
            transition: var(--transition);
        }

        @media (min-width: 768px) {
            .logo-light {
                height: 3.5rem;
            }
        }

        .logo-light:hover {
            transform: scale(1.05);
        }

        .header-btn {
            background: none;
            border: none;
            color: #fff;
            cursor: pointer;
            padding: 6px;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        @media (min-width: 768px) {
            .header-btn {
                padding: 8px;
            }
        }

        .header-btn i {
            font-size: 18px;
        }

        @media (min-width: 768px) {
            .header-btn i {
                font-size: 20px;
            }
        }

        .header-btn:hover {
            transform: scale(1.1);
        }

        /* Footer */
        .footer-container {
            background-color: var(--footer-bg) !important;
            padding: 20px 15px;
            border-top: 1px solid var(--header-border);
            margin-top: auto;
            transition: background-color 0.3s;
        }

        @media (min-width: 768px) {
            .footer-container {
                padding: 30px 20px;
            }
        }

        .footer-container * {
            color: var(--header-text) !important;
        }

        .footer-container a {
            color: var(--header-text) !important;
        }

        .footer-container a:hover {
            color: var(--primary) !important;
        }

        .footer-container .footer-description,
        .footer-container .copyrights,
        .footer-container .sbc-certificate p {
            color: var(--text-secondary) !important;
        }

        .footer-container .footer-list a {
            color: var(--text-secondary) !important;
            transition: color 0.2s ease !important;
        }

        .footer-container .footer-list a:hover {
            color: var(--primary) !important;
        }

        .footer-container .menu-list h3,
        .footer-container .title,
        .footer-container .footer-social h3 {
            color: var(--header-text) !important;
        }

        /* Footer logo — constrain clickable area */
        a.logo-footer {
            display: inline-block !important;
            width: fit-content !important;
            line-height: 0;
        }
        a.logo-footer img {
            pointer-events: none;
        }

        .footer-container .container {
            max-width: 1200px;
            margin: 0 auto;
            width: 100%;
        }

        .footer a {
            color: var(--text-color);
            text-decoration: none;
            transition: var(--transition);
        }

        .footer a:hover {
            color: var(--primary);
        }

        .footer-top,
        .footer-middle {
            padding: 20px 15px;
            border-bottom: 1px solid var(--border-color-light);
        }

        @media (min-width: 768px) {

            .footer-top,
            .footer-middle {
                padding: 30px 20px;
            }
        }

        .footer-profile {
            margin-bottom: 20px;
        }

        @media (min-width: 768px) {
            .footer-profile {
                margin-bottom: 0;
            }
        }

        .footer-profile .logo-light {
            height: 3rem;
        }

        @media (min-width: 768px) {
            .footer-profile .logo-light {
                height: 5rem;
            }
        }

        .footer-description {
            font-size: 13px;
            margin-top: 15px;
        }

        @media (min-width: 768px) {
            .footer-description {
                font-size: 14px;
            }
        }

        .menu-list {
            margin-bottom: 20px;
        }

        @media (min-width: 768px) {
            .menu-list {
                margin-bottom: 0;
            }
        }

        .menu-list h3,
        .title {
            font-size: 14px;
            margin-bottom: 12px;
        }

        @media (min-width: 768px) {

            .menu-list h3,
            .title {
                font-size: 16px;
                margin-bottom: 15px;
            }
        }

        .footer-list a {
            font-size: 12px;
            margin-bottom: 10px;
        }

        @media (min-width: 768px) {
            .footer-list a {
                font-size: 14px;
                margin-bottom: 12px;
            }
        }

        .footer-bottom {
            padding: 15px;
        }

        @media (min-width: 768px) {
            .footer-bottom {
                padding: 20px;
            }
        }

        .sbc-certificate {
            margin-bottom: 15px;
        }

        @media (min-width: 1024px) {
            .sbc-certificate {
                margin-bottom: 0;
            }
        }


        .copyrights {
            font-size: 11px;
            text-align: center;
        }

        @media (min-width: 768px) {
            .copyrights {
                font-size: 14px;
                text-align: right;
            }
        }

        .footer-social h3 {
            color: #191a30;
            margin: 0;
        }

        .footer-profile {
            margin-bottom: 20px;
        }

        .footer-description {
            color: #64748b;
            font-size: 14px;
            line-height: 1.6;
        }

        .social-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            border-radius: 10px;
            background: rgba(97, 15, 255, 0.15);
            color: var(--primary);
            font-size: 18px;
            transition: var(--transition);
        }
        .social-icon:hover {
            background: var(--primary);
            color: #fff;
            transform: translateY(-2px);
        }

        .menu-list h3,
        .title {
            color: #191a30;
            font-size: 16px;
            font-weight: 700;
            margin-bottom: 15px;
        }

        .footer-list a {
            color: #64748b;
            transition: var(--transition);
        }

        .footer-list a:hover {
            color: var(--primary);
        }

        .sbc-certificate p {
            color: #64748b;
            font-size: 12px;
        }

        .copyrights {
            color: #64748b;
        }

        .copyrights a {
            color: #64748b !important;
        }

        .copyrights a:hover {
            color: var(--primary) !important;
        }

        .flex-center {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .icon {
            font-size: 1rem;
        }

        /* Splash Screen */
        #splash-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            z-index: 9999;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            transition: opacity 0.6s ease-out, visibility 0.6s;
            opacity: 1;
            visibility: visible;
        }

        #splash-screen.hidden {
            opacity: 0;
            pointer-events: none;
            visibility: hidden;
        }

        .splash-logo-container {
            background: transparent;
            width: 200px;
            height: 200px;
            display: flex;
            justify-content: center;
            align-items: center;
            animation: logo-float 3s ease-in-out infinite;
            padding: 20px;
            position: relative;
        }

        .splash-logo {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            animation: logo-pulse 2s ease-in-out infinite;
            filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
        }

        @keyframes logo-float {

            0%,
            100% {
                transform: translateY(0px);
            }

            50% {
                transform: translateY(-15px);
            }
        }

        @keyframes logo-pulse {

            0%,
            100% {
                transform: scale(1);
                opacity: 1;
            }

            50% {
                transform: scale(1.05);
                opacity: 0.95;
            }
        }

        .splash-text {
            margin-top: 30px;
            color: #ffffff;
            font-size: 18px;
            font-weight: 600;
            letter-spacing: 1px;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
            animation: text-fade 2s ease-in-out infinite;
        }

        @keyframes text-fade {

            0%,
            100% {
                opacity: 1;
            }

            50% {
                opacity: 0.7;
            }
        }

        .splash-loader {
            margin-top: 20px;
            width: 60px;
            height: 4px;
            background: rgba(255, 255, 255, 0.3);
            border-radius: 2px;
            overflow: hidden;
            position: relative;
        }

        .splash-loader::after {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: #ffffff;
            border-radius: 2px;
            animation: loader-slide 1.5s ease-in-out infinite;
        }

        @keyframes loader-slide {
            0% {
                left: -100%;
            }

            100% {
                left: 100%;
            }
        }

        /* Main Card - Liquid Glass */
        .card {
            background: rgba(255, 255, 255, 0.55);
            backdrop-filter: blur(24px) saturate(180%);
            -webkit-backdrop-filter: blur(24px) saturate(180%);
            border-radius: 20px;
            padding: 24px;
            box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6);
            border: 1px solid rgba(255, 255, 255, 0.4);
            text-align: center;
            position: relative;
            overflow: hidden;
            animation: fadeIn 0.6s ease-out;
            transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
        }

        @media (min-width: 768px) {
            .card {
                border-radius: 26px;
                padding: 32px;
                box-shadow: 0 18px 50px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.6);
            }
        }

        [data-theme="dark"] .card {
            background: rgba(25, 26, 48, 0.4);
            border: 1px solid rgba(97, 15, 255, 0.15);
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(24px) saturate(180%);
            -webkit-backdrop-filter: blur(24px) saturate(180%);
        }

        /* Dashboards & Tabs */
        .dashboard-pane {
            display: none;
            animation: fadeTab 0.4s ease-out forwards;
        }

        .dashboard-pane.active {
            display: block;
        }

        @keyframes fadeTab {
            from {
                opacity: 0;
                transform: translateY(10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .tracking-tabs {
            display: flex;
            background: rgba(255, 255, 255, 0.18);
            backdrop-filter: blur(20px) saturate(180%);
            -webkit-backdrop-filter: blur(20px) saturate(180%);
            border: 1px solid rgba(255, 255, 255, 0.35);
            border-radius: 16px;
            padding: 5px;
            margin: 0 auto 24px;
            max-width: 400px;
            position: relative;
            box-shadow:
                0 2px 12px rgba(97, 15, 255, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.5),
                inset 0 -1px 0 rgba(0, 0, 0, 0.04);
        }

        .tracking-tabs.hidden {
            display: none !important;
        }

        [data-theme="dark"] .tracking-tabs {
            background: rgba(255, 255, 255, 0.06);
            border-color: rgba(255, 255, 255, 0.12);
            box-shadow:
                0 2px 12px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1),
                inset 0 -1px 0 rgba(0, 0, 0, 0.2);
        }

        /* Shared slider style for both toggles */
        .tracking-tabs .tab-slider {
            position: absolute;
            top: 5px;
            left: 0;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.72);
            backdrop-filter: blur(12px) saturate(200%);
            -webkit-backdrop-filter: blur(12px) saturate(200%);
            border: 1px solid rgba(255, 255, 255, 0.7);
            box-shadow:
                0 2px 10px rgba(97, 15, 255, 0.15),
                0 1px 3px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 1);
            transition: transform 0.32s cubic-bezier(0.34, 1.4, 0.64, 1),
                        width  0.32s cubic-bezier(0.34, 1.4, 0.64, 1);
            pointer-events: none;
            z-index: 0;
        }
        [data-theme="dark"] .tracking-tabs .tab-slider {
            background: rgba(97, 15, 255, 0.28);
            border-color: rgba(97, 15, 255, 0.45);
            box-shadow:
                0 2px 14px rgba(97, 15, 255, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.18);
        }

        .tracking-tab {
            flex: 1;
            padding: 10px 16px;
            border-radius: 12px;
            border: none;
            background: transparent;
            font-family: inherit;
            font-weight: 600;
            font-size: 14px;
            color: var(--text-secondary);
            cursor: pointer;
            transition: color 0.25s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            position: relative;
            z-index: 1;
        }

        .tracking-tab:hover {
            color: var(--text-color);
        }

        .tracking-tab.active {
            color: var(--primary);
        }

        [data-theme="dark"] .tracking-tab.active {
            color: #fff;
        }

        /* Glowing indicator dot on SBC tab when active but not selected */
        .tracking-tab.has-notification::after {
            content: '';
            position: absolute;
            top: 6px;
            right: 12px;
            width: 8px;
            height: 8px;
            background-color: var(--success, #10b981);
            border-radius: 50%;
            box-shadow: 0 0 8px var(--success, #10b981);
            animation: pulse-dot 2s infinite;
        }

        @keyframes pulse-dot {
            0% {
                transform: scale(0.95);
                box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
            }

            70% {
                transform: scale(1);
                box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
            }

            100% {
                transform: scale(0.95);
                box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
            }
        }

        .tab-icon-img {
            width: 18px;
            height: 18px;
            object-fit: contain;
            filter: grayscale(100%) opacity(0.6);
            transition: all 0.3s ease;
        }

        .tracking-tab.active .tab-icon-img {
            filter: grayscale(0%) opacity(1);
        }

        [data-theme="dark"] .stat-box {
            background: rgba(25, 26, 48, 0.35);
            border: 1px solid rgba(97, 15, 255, 0.12);
            backdrop-filter: blur(16px) saturate(160%);
            -webkit-backdrop-filter: blur(16px) saturate(160%);
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.03);
        }

        [data-theme="dark"] .stat-box:hover {
            background: rgba(97, 15, 255, 0.1);
            border-color: rgba(97, 15, 255, 0.25);
            box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
        }

        [data-theme="dark"] .stat-label {
            color: #e2e8f0 !important;
        }

        [data-theme="dark"] .stat-val {
            color: #f8fafc !important;
        }

        /* Override any inline styles in dark mode */
        [data-theme="dark"] #delivered-coins,
        [data-theme="dark"] #remaining-coins,
        [data-theme="dark"] .stat-val {
            color: #f8fafc !important;
        }

        [data-theme="dark"] .progress-track {
            background: rgba(255, 255, 255, 0.1);
        }

        [data-theme="dark"] .action-box {
            background: rgba(239, 68, 68, 0.1);
            border: 1px solid rgba(239, 68, 68, 0.3);
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .status-ring-container {
            position: relative;
            width: 96px;
            height: 96px;
            margin: 0 auto 18px;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .status-ring-container::after {
            content: '';
            position: absolute;
            inset: -10px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(97, 15, 255, 0.08) 0%, transparent 70%);
            pointer-events: none;
        }

        @media (min-width: 768px) {
            .status-ring-container {
                width: 120px;
                height: 120px;
            }
        }

        .status-ring {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border-radius: 50%;
            border: 4px solid rgba(255, 255, 255, 0.1);
            transition: var(--transition);
        }

        @keyframes spin {
            from {
                transform: rotate(0deg);
            }

            to {
                transform: rotate(360deg);
            }
        }

        .status-icon {
            font-size: 32px;
            color: var(--text-color);
            z-index: 2;
            transition: var(--transition);
        }

        @media (min-width: 768px) {
            .status-icon {
                font-size: 40px;
            }
        }

        .main-status-text {
            font-size: clamp(18px, 2.4vw, 24px);
            font-weight: 800;
            margin-bottom: 5px;
            transition: var(--transition);
            color: var(--text-color);
        }

        @media (min-width: 768px) {
            .main-status-text {
                font-size: 24px;
            }
        }

        .sub-status-text {
            font-size: clamp(12px, 1.8vw, 14px);
            color: var(--text-secondary);
            margin-bottom: 20px;
        }

        @media (min-width: 768px) {
            .sub-status-text {
                font-size: 14px;
                margin-bottom: 25px;
            }
        }

        .progress-area {
            margin-bottom: 22px;
            text-align: right;
        }

        @media (min-width: 768px) {
            .progress-area {
                margin-bottom: 30px;
            }
        }

        .progress-info {
            display: flex;
            justify-content: space-between;
            margin-bottom: 8px;
            font-size: 12px;
            font-weight: 600;
            color: var(--text-secondary);
        }

        @media (min-width: 768px) {
            .progress-info {
                font-size: 13px;
            }
        }

        .progress-track {
            height: 9px;
            background: rgba(148, 163, 184, 0.25);
            border-radius: 12px;
            overflow: hidden;
            position: relative;
        }

        [data-theme="dark"] .progress-track {
            background: rgba(255, 255, 255, 0.1);
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--primary-dark, #3b00d9), var(--primary), var(--primary-light, #8735ff));
            width: 0%;
            transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s;
            border-radius: 12px;
            position: relative;
            box-shadow: 0 0 12px rgba(97, 15, 255, 0.4);
        }

        .progress-fill::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            animation: shimmer 2s infinite;
        }

        @keyframes shimmer {
            0% {
                transform: translateX(-100%);
            }

            100% {
                transform: translateX(100%);
            }
        }

        .stats-row {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 12px;
            justify-content: center;
            margin-bottom: 18px;
        }

        /* When remaining box is hidden (order complete), expand to 2 equal columns */
        .stats-row.two-cols {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        @media (max-width: 640px) {
            .stats-row {
                grid-template-columns: 1fr 1fr;
            }
        }

        @media (max-width: 420px) {
            .stats-row {
                grid-template-columns: 1fr;
            }

            /* Keep 2 cols even on tiny screens when remaining is gone */
            .stats-row.two-cols {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }

        .stat-box {
            background: rgba(255, 255, 255, 0.4);
            backdrop-filter: blur(16px) saturate(160%);
            -webkit-backdrop-filter: blur(16px) saturate(160%);
            padding: 14px 12px;
            border-radius: 16px;
            flex: 1;
            min-width: 110px;
            border: 1px solid rgba(255, 255, 255, 0.35);
            transition: var(--transition);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.5);
        }

        @media (min-width: 768px) {
            .stat-box {
                padding: 20px;
                border-radius: 16px;
            }
        }

        .stat-box:hover {
            background: rgba(255, 255, 255, 0.55);
            transform: translateY(-3px);
            box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6);
        }

        .stat-label {
            font-size: 12px;
            color: #191a30;
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
        }

        @media (min-width: 768px) {
            .stat-label {
                font-size: 14px;
                margin-bottom: 10px;
            }
        }

        .stat-val {
            font-size: clamp(18px, 3vw, 26px);
            font-weight: 800;
            color: #000000;
            text-align: center;
        }

        @media (min-width: 768px) {
            .stat-val {
                font-size: 28px;
            }
        }

        /* Dark mode styles for stat boxes */
        [data-theme="dark"] .stat-label {
            color: #e2e8f0 !important;
        }

        [data-theme="dark"] .stat-val {
            color: #f8fafc !important;
        }

        /* Override inline styles in dark mode */
        [data-theme="dark"] .stat-val[style*="color: #000000"],
        [data-theme="dark"] .stat-val[style*="color:#000000"] {
            color: #f8fafc !important;
        }

        .action-box {
            display: none;
            margin-top: 20px;
            padding: 16px;
            background: rgba(239, 68, 68, 0.08);
            backdrop-filter: blur(16px) saturate(140%);
            -webkit-backdrop-filter: blur(16px) saturate(140%);
            border: 1px solid rgba(239, 68, 68, 0.25);
            border-radius: 16px;
            text-align: right;
            animation: slideIn 0.3s ease-out;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
        }

        #sbc-dashboard.active~#action-box {
            display: none !important;
        }

        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .action-title {
            color: var(--danger);
            font-weight: 700;
            font-size: 13px;
            margin-bottom: 5px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        @media (min-width: 768px) {
            .action-title {
                font-size: 14px;
                gap: 8px;
            }
        }

        .action-title i {
            font-size: 14px;
        }

        @media (min-width: 768px) {
            .action-title i {
                font-size: 16px;
            }
        }

        .action-desc {
            font-size: 12px;
            color: #fca5a5;
            line-height: 1.5;
        }

        .action-desc a {
            color: #fca5a5;
            text-decoration: underline;
            transition: color 0.2s ease;
        }

        .action-desc a:hover {
            color: #000000;
        }

        @media (min-width: 768px) {
            .action-desc {
                font-size: 13px;
            }
        }

        .live-indicator {
            margin-top: 20px;
            font-size: 11px;
            color: #64748b;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }

        .connection-status {
            color: #64748b;
        }

        .dot {
            width: 8px;
            height: 8px;
            background: var(--success);
            border-radius: 50%;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0% {
                opacity: 1;
                transform: scale(1);
            }

            50% {
                opacity: 0.3;
                transform: scale(0.8);
            }

            100% {
                opacity: 1;
                transform: scale(1);
            }
        }

        .connection-status {
            margin-top: 8px;
            font-size: 9px;
            color: var(--text-secondary);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
        }

        @media (min-width: 768px) {
            .connection-status {
                margin-top: 10px;
                font-size: 10px;
                gap: 5px;
            }
        }

        .connection-status.offline .status-dot {
            background: var(--danger);
        }

        .status-dot {
            width: 5px;
            height: 5px;
            border-radius: 50%;
            background: var(--success);
            animation: pulse 2s infinite;
        }

        @media (min-width: 768px) {
            .status-dot {
                width: 6px;
                height: 6px;
            }
        }

        /* WhatsApp - Premium Design */
        .whatsapp-opener {
            position: fixed !important;
            bottom: 20px;
            right: 20px;
            background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
            color: #FFF;
            border-radius: 50%;
            width: 60px;
            height: 60px;
            font-size: 28px;
            box-shadow:
                0 4px 20px rgba(37, 211, 102, 0.4),
                0 0 0 0 rgba(37, 211, 102, 0.7),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            z-index: 9999 !important;
            transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            animation: float 3s ease-in-out infinite, pulse 2s ease-in-out infinite;
            overflow: hidden;
            margin: 0;
            padding: 0;
            border: none;
        }

        .whatsapp-opener::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.3);
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
        }

        .whatsapp-opener:hover::before {
            width: 300px;
            height: 300px;
        }

        .whatsapp-opener i {
            position: relative;
            z-index: 1;
            transition: transform 0.3s ease;
        }

        @keyframes float {

            0%,
            100% {
                transform: translateY(0px) rotate(0deg);
            }

            50% {
                transform: translateY(-12px) rotate(5deg);
            }
        }

        @keyframes pulse {

            0%,
            100% {
                box-shadow:
                    0 4px 20px rgba(37, 211, 102, 0.4),
                    0 0 0 0 rgba(37, 211, 102, 0.7),
                    inset 0 1px 0 rgba(255, 255, 255, 0.2);
            }

            50% {
                box-shadow:
                    0 4px 25px rgba(37, 211, 102, 0.6),
                    0 0 0 10px rgba(37, 211, 102, 0),
                    inset 0 1px 0 rgba(255, 255, 255, 0.2);
            }
        }

        .whatsapp-opener:hover {
            transform: scale(1.15) translateY(-5px) rotate(5deg);
            box-shadow:
                0 8px 30px rgba(37, 211, 102, 0.6),
                0 0 0 15px rgba(37, 211, 102, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
            background: linear-gradient(135deg, #2fe576 0%, #25d366 100%);
        }

        .whatsapp-opener:hover i {
            transform: scale(1.1);
        }

        .whatsapp-opener:active {
            transform: scale(1.05) translateY(-2px);
            animation: none;
        }

        /* Order complete - move to left */
        .whatsapp-opener.order-complete {
            right: auto !important;
            left: 20px;
            animation: slideInLeft 0.5s ease-out, float 3s ease-in-out infinite 0.5s, pulse 2s ease-in-out infinite 0.5s;
        }

        @keyframes slideInLeft {
            from {
                right: 20px;
                left: auto;
                opacity: 0;
                transform: translateX(50px);
            }

            to {
                right: auto;
                left: 20px;
                opacity: 1;
                transform: translateX(0);
            }
        }

        /* Responsive - Mobile */
        @media (max-width: 640px) {
            .whatsapp-opener {
                width: 56px;
                height: 56px;
                font-size: 26px;
                bottom: 16px;
                right: 16px;
            }

            .whatsapp-opener.order-complete {
                left: 16px;
                bottom: 16px;
            }
        }

        /* Responsive - Tablet */
        @media (min-width: 641px) and (max-width: 1024px) {
            .whatsapp-opener {
                bottom: 24px;
                right: 24px;
            }

            .whatsapp-opener.order-complete {
                left: 24px;
            }
        }

        /* Responsive - Desktop */
        @media (min-width: 1025px) {
            .whatsapp-opener {
                bottom: 30px;
                right: 30px;
            }

            .whatsapp-opener.order-complete {
                left: 30px;
            }
        }

        /* WhatsApp Popup Backdrop */
        #whatsapp-popup-backdrop {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            z-index: 9997;
            animation: fadeIn 0.3s ease-out;
        }

        #whatsapp-popup-backdrop.show {
            display: block;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        /* WhatsApp Popup - Premium Design */
        #whatsapp-popup {
            display: none;
            position: fixed;
            bottom: 85px;
            right: 20px;
            width: 320px;
            max-width: calc(100vw - 40px);
            background: rgba(255, 255, 255, 0.65);
            backdrop-filter: blur(24px) saturate(180%);
            -webkit-backdrop-filter: blur(24px) saturate(180%);
            border-radius: 20px;
            box-shadow:
                0 10px 40px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
            border: 1px solid rgba(255, 255, 255, 0.35);
            z-index: 9998 !important;
            overflow: hidden;
            animation: slideUpBounce 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            transform-origin: bottom right;
        }
        [data-theme="dark"] #whatsapp-popup {
            background: rgba(25, 26, 48, 0.55);
            border: 1px solid rgba(97, 15, 255, 0.15);
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
        }
        [data-theme="dark"] .contact-item {
            color: #ededed !important;
            border-bottom-color: rgba(255, 255, 255, 0.06);
        }
        [data-theme="dark"] .contact-item:hover {
            background: rgba(37, 211, 102, 0.08);
        }
        [data-theme="dark"] .contact-item:hover span {
            color: #25d366 !important;
        }

        @keyframes slideUpBounce {
            0% {
                opacity: 0;
                transform: translateY(30px) scale(0.9);
            }

            60% {
                transform: translateY(-5px) scale(1.02);
            }

            100% {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        #whatsapp-popup.show {
            display: block;
        }

        /* Popup positioning when order is complete */
        .whatsapp-opener.order-complete~#whatsapp-popup {
            right: auto;
            left: 20px;
            transform-origin: bottom left;
        }

        .popup-header {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light, #8735ff) 100%);
            color: #ffffff;
            padding: 18px 20px;
            text-align: center;
            font-weight: 800;
            position: relative;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .popup-close-btn {
            background: rgba(0, 0, 0, 0.1);
            border: none;
            color: #191a30;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            transition: all 0.3s ease;
            position: relative;
            z-index: 2;
            flex-shrink: 0;
        }

        .popup-close-btn:hover {
            background: rgba(0, 0, 0, 0.2);
            transform: rotate(90deg) scale(1.1);
        }

        .popup-close-btn:active {
            transform: rotate(90deg) scale(0.95);
        }

        .popup-header h4 {
            flex: 1;
            margin: 0;
        }

        .popup-header::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
            animation: rotate 10s linear infinite;
        }

        @keyframes rotate {
            from {
                transform: rotate(0deg);
            }

            to {
                transform: rotate(360deg);
            }
        }

        .popup-header h4 {
            font-size: 15px;
            position: relative;
            z-index: 1;
            letter-spacing: 0.3px;
            text-align: center;
        }

        @media (min-width: 768px) {
            .popup-header {
                padding: 20px 24px;
            }

            .popup-header h4 {
                font-size: 16px;
            }
        }

        .contact-list {
            padding: 8px 0;
            max-height: 350px;
            overflow-y: auto;
            overflow-x: hidden;
        }

        .contact-list::-webkit-scrollbar {
            width: 6px;
        }

        .contact-list::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.05);
            border-radius: 10px;
        }

        .contact-list::-webkit-scrollbar-thumb {
            background: rgba(37, 211, 102, 0.3);
            border-radius: 10px;
        }

        .contact-list::-webkit-scrollbar-thumb:hover {
            background: rgba(37, 211, 102, 0.5);
        }

        .contact-item {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 14px 20px;
            text-decoration: none;
            color: #191a30;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
            position: relative;
            overflow: hidden;
        }

        .contact-item::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            width: 4px;
            height: 100%;
            background: linear-gradient(180deg, #25d366 0%, #128c7e 100%);
            transform: scaleY(0);
            transition: transform 0.3s ease;
        }

        .contact-item:last-child {
            border-bottom: none;
        }

        .contact-item:hover {
            background: linear-gradient(90deg,
                    rgba(37, 211, 102, 0.08) 0%,
                    rgba(37, 211, 102, 0.05) 100%);
            transform: translateX(5px);
            padding-right: 24px;
        }

        .contact-item:hover::before {
            transform: scaleY(1);
        }

        .contact-item i {
            font-size: 22px;
            color: #25d366;
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(37, 211, 102, 0.1);
            border-radius: 50%;
            transition: all 0.3s ease;
            position: relative;
            z-index: 1;
        }

        .contact-item:hover i {
            background: rgba(37, 211, 102, 0.2);
            transform: scale(1.15) rotate(5deg);
            box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
        }

        @media (min-width: 768px) {
            .contact-item i {
                font-size: 24px;
                width: 32px;
                height: 32px;
            }
        }

        .contact-item span {
            flex: 1;
            font-size: 14px;
            font-weight: 600;
            position: relative;
            z-index: 1;
            transition: color 0.3s ease;
        }

        .contact-item:hover span {
            color: #128c7e;
        }

        @media (min-width: 768px) {
            .contact-item span {
                font-size: 15px;
            }
        }

        /* Mobile responsive for popup */
        @media (max-width: 640px) {
            #whatsapp-popup {
                right: 16px;
                left: 16px;
                width: auto;
                bottom: 80px;
                max-width: calc(100vw - 32px);
            }

            .whatsapp-opener.order-complete~#whatsapp-popup {
                left: 16px;
                right: 16px;
            }
        }

        /* Tablet responsive */
        @media (min-width: 641px) and (max-width: 1024px) {
            #whatsapp-popup {
                bottom: 90px;
                right: 24px;
            }

            .whatsapp-opener.order-complete~#whatsapp-popup {
                left: 24px;
            }
        }

        /* Desktop responsive */
        @media (min-width: 1025px) {
            #whatsapp-popup {
                bottom: 95px;
                right: 30px;
            }

            .whatsapp-opener.order-complete~#whatsapp-popup {
                left: 30px;
            }
        }

        /* Loading States */
        .loading-shimmer {
            background: linear-gradient(90deg,
                    rgba(255, 255, 255, 0.05) 0%,
                    rgba(255, 255, 255, 0.1) 50%,
                    rgba(255, 255, 255, 0.05) 100%);
            background-size: 200% 100%;
            animation: shimmer-load 1.5s infinite;
        }

        @keyframes shimmer-load {
            0% {
                background-position: 200% 0;
            }

            100% {
                background-position: -200% 0;
            }
        }

        /* Error States */
        .error-message {
            background: rgba(239, 68, 68, 0.1);
            border: 1px solid var(--danger);
            border-radius: 12px;
            padding: 15px;
            margin-top: 20px;
            text-align: center;
            color: #fca5a5;
        }

        /* Responsive Design */
        @media (max-width: 640px) {
            .main-content {
                padding: 15px;
            }

            .container {
                max-width: 100%;
            }

            .stats-row {
                flex-direction: column;
                gap: 10px;
            }

            #whatsapp-popup {
                right: 10px;
                left: 10px;
                width: auto;
                bottom: 80px;
            }

            .footer-top,
            .footer-middle {
                padding: 20px 15px;
            }

            .footer-middle {
                flex-direction: column;
                gap: 25px;
            }

            .menu-list,
            .footer-profile {
                width: 100%;
            }

            .footer-bottom {
                flex-direction: column;
                gap: 15px;
                text-align: center;
            }

            .sbc-certificate {
                justify-content: center;
            }

            .header {
                padding: 10px 15px;
            }
        }

        @media (min-width: 641px) and (max-width: 1023px) {
            .footer-middle {
                flex-wrap: wrap;
            }

            .footer-profile {
                width: 100%;
                margin-bottom: 20px;
            }
        }

        /* Edit Order Button */
        .edit-order-btn {
            margin-top: 15px;
            width: 100%;
            padding: 10px;
            background: var(--primary);
            color: var(--text-color);
            border: none;
            border-radius: 10px;
            font-size: 13px;
            font-weight: 700;
            font-family: 'Cairo', sans-serif;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }

        @media (min-width: 768px) {
            .edit-order-btn {
                padding: 12px;
                font-size: 14px;
                gap: 8px;
            }
        }

        .edit-order-btn i {
            font-size: 14px;
        }

        @media (min-width: 768px) {
            .edit-order-btn i {
                font-size: 16px;
            }
        }

        .edit-order-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 15px rgba(97, 15, 255, 0.3);
        }

        /* Resume Order Button */
        .resume-order-btn {
            margin-top: 15px;
            width: 100%;
            padding: 10px;
            background: var(--success);
            color: var(--text-color);
            border: none;
            border-radius: 10px;
            font-size: 13px;
            font-weight: 700;
            font-family: 'Cairo', sans-serif;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }

        @media (min-width: 768px) {
            .resume-order-btn {
                padding: 12px;
                font-size: 14px;
                gap: 8px;
            }
        }

        .resume-order-btn i {
            font-size: 14px;
        }

        @media (min-width: 768px) {
            .resume-order-btn i {
                font-size: 16px;
            }
        }

        .resume-order-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 15px rgba(76, 175, 80, 0.3);
        }

        .resume-order-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }

        /* Edit Modal */
        .edit-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            z-index: 10000;
            justify-content: center;
            align-items: center;
            padding: 20px;
            backdrop-filter: blur(5px);
        }

        .edit-modal.show {
            display: flex;
        }

        .edit-modal-content {
            background: rgba(255, 255, 255, 0.75);
            backdrop-filter: blur(24px) saturate(180%);
            -webkit-backdrop-filter: blur(24px) saturate(180%);
            border-radius: 20px;
            padding: 30px;
            max-width: 600px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.6);
            border: 1px solid rgba(255, 255, 255, 0.35);
            animation: slideUp 0.3s ease-out;
            position: relative;
        }
        [data-theme="dark"] .edit-modal-content {
            background: rgba(25, 26, 48, 0.65);
            border: 1px solid rgba(97, 15, 255, 0.15);
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
        }
        [data-theme="dark"] .edit-modal-title { color: #ededed; }
        [data-theme="dark"] .edit-modal-header { border-bottom-color: rgba(255, 255, 255, 0.08); }
        [data-theme="dark"] .edit-form-label { color: #e2e8f0; }
        [data-theme="dark"] .edit-form-input,
        [data-theme="dark"] .edit-form-select {
            background: rgba(15, 9, 30, 0.5);
            border-color: rgba(97, 15, 255, 0.15);
            color: #ededed;
        }
        [data-theme="dark"] .edit-form-input:focus,
        [data-theme="dark"] .edit-form-select:focus {
            background: rgba(15, 9, 30, 0.7);
            border-color: var(--primary);
        }

        .edit-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        }

        .edit-modal-title {
            font-size: 22px;
            font-weight: 800;
            color: #191a30;
        }

        .edit-modal-close {
            background: none;
            border: none;
            color: #64748b;
            font-size: 24px;
            cursor: pointer;
            padding: 5px;
            transition: var(--transition);
        }

        .edit-modal-close:hover {
            color: #191a30;
            transform: rotate(90deg);
        }

        .edit-form-group {
            margin-bottom: 20px;
        }

        .edit-form-group[style*="display: none"] {
            display: none !important;
        }

        .edit-form-row[style*="display: none"] {
            display: none !important;
        }

        .edit-form-label {
            display: block;
            margin-bottom: 8px;
            font-size: 14px;
            font-weight: 600;
            color: #191a30;
        }

        .edit-form-input {
            width: 100%;
            padding: 12px 15px;
            background: #f8fafc;
            border: 2px solid #e2e8f0;
            border-radius: 10px;
            color: #191a30;
            font-size: 14px;
            font-family: 'Cairo', sans-serif;
            transition: var(--transition);
            text-align: right;
        }

        .edit-form-input:focus {
            outline: none;
            border-color: var(--primary);
            background: #ffffff;
        }

        .edit-form-select {
            width: 100%;
            padding: 12px 15px;
            background: #f8fafc;
            border: 2px solid #e2e8f0;
            border-radius: 10px;
            color: #191a30;
            font-size: 14px;
            font-family: 'Cairo', sans-serif;
            cursor: pointer;
            transition: var(--transition);
        }

        .edit-form-select:focus {
            outline: none;
            border-color: var(--primary);
        }

        .edit-form-note {
            color: #64748b;
        }

        .edit-form-btn-secondary {
            background: #f1f5f9;
            color: #191a30;
        }

        .edit-form-btn-secondary:hover {
            background: #e2e8f0;
        }

        .edit-form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
        }

        @media (max-width: 640px) {
            .edit-form-row {
                grid-template-columns: 1fr;
            }
        }

        .edit-form-actions {
            display: flex;
            gap: 15px;
            margin-top: 25px;
            justify-content: center;
            align-items: center;
        }

        .edit-form-actions button {
            min-width: 200px;
        }

        .edit-form-btn {
            padding: 12px 20px;
            border: none;
            border-radius: 12px;
            font-size: 14px;
            font-weight: 700;
            font-family: 'Cairo', sans-serif;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        @media (min-width: 768px) {
            .edit-form-btn {
                padding: 15px 25px;
                font-size: 16px;
            }
        }

        .edit-form-btn i {
            font-size: 16px;
        }

        @media (min-width: 768px) {
            .edit-form-btn i {
                font-size: 18px;
            }
        }

        .edit-form-btn-secondary {
            background: #f1f5f9;
            color: #191a30;
        }

        .edit-form-btn-secondary:hover {
            background: #e2e8f0;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        .edit-form-btn-primary {
            background: var(--primary);
            color: var(--text-color);
        }

        .edit-form-btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(97, 15, 255, 0.3);
        }

        .edit-form-btn-primary:active {
            transform: translateY(0);
        }

        .edit-form-btn-primary:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }

        .edit-form-btn-secondary {
            background: rgba(255, 255, 255, 0.1);
            color: var(--text-main);
        }

        .edit-form-btn-secondary:hover {
            background: rgba(255, 255, 255, 0.15);
        }

        .edit-form-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }

        .edit-form-note {
            font-size: 12px;
            color: var(--text-sub);
            margin-top: 5px;
            line-height: 1.5;
        }

        .edit-form-error {
            color: #ef4444 !important;
            font-size: 12px;
            margin-top: 5px;
            display: none;
            font-weight: 500;
            line-height: 1.4;
        }

        .edit-form-error.show {
            display: block;
            animation: slideIn 0.3s ease-out;
            color: #ef4444 !important;
        }

        /* Ensure error is red in both light and dark modes */
        [data-theme="dark"] .edit-form-error,
        [data-theme="dark"] .edit-form-error.show,
        .edit-form-error,
        .edit-form-error.show {
            color: #ef4444 !important;
        }

        .edit-form-input.error {
            border-color: #ef4444 !important;
            background: #fef2f2;
        }

        .edit-form-input.valid {
            border-color: #10b981 !important;
        }

        /* Scrollbar Styling */
        .contact-list::-webkit-scrollbar {
            width: 6px;
        }

        .contact-list::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.05);
        }

        .contact-list::-webkit-scrollbar-thumb {
            background: var(--primary);
            border-radius: 3px;
        }

        .contact-list::-webkit-scrollbar-thumb:hover {
            background: var(--warning);
        }

        /* Order ID Input Form */
        .order-form-card {
            background: rgba(255, 255, 255, 0.5);
            backdrop-filter: blur(24px) saturate(180%);
            -webkit-backdrop-filter: blur(24px) saturate(180%);
            border-radius: 20px;
            padding: 26px 20px;
            box-shadow: 0 14px 40px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.6);
            border: 1px solid rgba(255, 255, 255, 0.4);
            text-align: center;
            animation: fadeIn 0.6s ease-out;
            max-width: 100%;
            margin: 0 auto;
            transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
        }

        [data-theme="dark"] .order-form-card {
            background: rgba(25, 26, 48, 0.4);
            border: 1px solid rgba(97, 15, 255, 0.12);
            box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
            backdrop-filter: blur(24px) saturate(180%);
            -webkit-backdrop-filter: blur(24px) saturate(180%);
        }

        @media (min-width: 768px) {
            .order-form-card {
                border-radius: 26px;
                padding: 40px 30px;
                max-width: 500px;
                box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
            }
        }

        .order-form-title {
            font-size: 20px;
            font-weight: 800;
            margin-bottom: 10px;
            color: var(--text-color);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .order-form-title::after {
            content: '';
            display: block;
            width: 38px;
            height: 3px;
            border-radius: 999px;
            background: linear-gradient(90deg, var(--primary), rgba(255, 255, 255, 0.2));
            margin: 8px auto 0;
        }

        @media (min-width: 768px) {
            .order-form-title {
                font-size: 24px;
            }
        }

        .order-form-title i {
            font-size: 20px;
        }

        @media (min-width: 768px) {
            .order-form-title i {
                font-size: 24px;
            }
        }

        .order-form-subtitle {
            font-size: 13px;
            color: var(--text-secondary);
            margin-bottom: 22px;
        }

        /* Order History */
        .order-history {
            text-align: right;
            margin-top: 10px;
        }

        .order-history-title {
            font-size: 12px;
            color: var(--text-secondary);
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .order-history-list {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .order-history-item {
            padding: 6px 12px;
            background: var(--card-color);
            border: 1px solid var(--border-color-light);
            border-radius: 10px;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s ease;
            color: var(--text-color);
        }

        [data-theme="dark"] .order-history-item {
            background: rgba(255, 255, 255, 0.05);
            border-color: rgba(255, 255, 255, 0.08);
        }

        .order-history-item:hover {
            background: var(--primary);
            color: var(--text-color);
            transform: translateY(-2px);
            box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
        }

        @media (min-width: 768px) {
            .order-form-subtitle {
                font-size: 14px;
                margin-bottom: 30px;
            }
        }

        .order-input-group {
            position: relative;
            margin-bottom: 18px;
        }

        .order-input {
            width: 100%;
            padding: 15px 20px 15px 50px;
            background: #f8fafc;
            border: 2px solid #e2e8f0;
            border-radius: 14px;
            direction: ltr;
            text-align: left;
            color: var(--text-color);
            font-size: 16px;
            font-family: 'Cairo', sans-serif;
            transition: var(--transition);
            box-sizing: border-box;
            box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
        }

        [data-theme="dark"] .order-input {
            background: rgba(255, 255, 255, 0.06);
            border-color: rgba(255, 255, 255, 0.12);
            box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
        }

        [data-theme="dark"] .order-input {
            background: rgba(255, 255, 255, 0.05);
            border-color: rgba(255, 255, 255, 0.1);
        }

        .order-input:focus {
            outline: none;
            border-color: var(--primary);
            background: var(--card-color);
            box-shadow: 0 0 0 3px rgba(97, 15, 255, 0.1);
        }

        [data-theme="dark"] .order-input:focus {
            background: rgba(255, 255, 255, 0.08);
            box-shadow: 0 0 0 3px rgba(97, 15, 255, 0.12);
        }

        .order-input::placeholder {
            color: var(--text-secondary);
        }

        .input-icon {
            color: var(--text-secondary);
        }

        .order-submit-btn {
            width: 100%;
            padding: 12px;
            background: var(--primary);
            color: var(--text-color);
            border: none;
            border-radius: 14px;
            font-size: 15px;
            font-weight: 700;
            font-family: 'Cairo', sans-serif;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            color: #ffffff;
            box-shadow: 0 10px 24px rgba(97, 15, 255, 0.3);
        }

        @media (min-width: 768px) {
            .order-submit-btn {
                padding: 15px;
                font-size: 16px;
                gap: 10px;
            }
        }

        .order-submit-btn i {
            font-size: 16px;
        }

        @media (min-width: 768px) {
            .order-submit-btn i {
                font-size: 18px;
            }
        }

        .order-submit-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 14px 30px rgba(97, 15, 255, 0.45);
            background: var(--primary-light, #8735ff);
        }

        .order-submit-btn:active {
            transform: translateY(0);
        }

        .order-submit-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }

        .input-error {
            color: var(--danger);
            font-size: 13px;
            margin-top: 8px;
            text-align: right;
            display: none;
        }

        .input-error.show {
            display: block;
            animation: slideIn 0.3s ease-out;
        }

        .input-icon {
            position: absolute;
            left: 18px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-sub);
            font-size: 18px;
            z-index: 1;
            pointer-events: none;
        }

        /* Back Button */
        .back-button {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 8px 14px;
            margin-bottom: 12px;
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.16);
            border-radius: 18px;
            color: var(--text-color);
            font-size: 12px;
            font-weight: 700;
            font-family: var(--font-main, inherit);
            cursor: pointer;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            width: fit-content;
        }

        .back-button:hover {
            background: rgba(255, 255, 255, 0.18);
            transform: translateX(-2px);
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
        }

        .back-button i {
            font-size: 13px;
        }

        .back-button span {
            font-family: inherit;
            font-weight: 600;
        }

        @media (max-width: 640px) {
            .back-button {
                top: 10px;
                right: 10px;
                padding: 8px 14px;
                font-size: 12px;
                min-height: 36px;
                border-radius: 18px;
            }

            .back-button span {
                display: inline;
            }
        }

        /* On small phones, collapse to icon-only to prevent overlap */
        @media (max-width: 480px) {
            .back-button {
                padding: 8px 10px;
                gap: 0;
            }

            .back-button span {
                display: none;
            }
        }

        .order-form-card.hidden {
            display: none;
        }

        .tracking-card.hidden {
            display: none;
        }

        .sbc-tracking-card.hidden {
            display: none;
        }

        /* Professional Notification Toast */
        .notification-toast {
            position: fixed;
            top: 20px;
            right: 20px;
            max-width: 420px;
            width: calc(100% - 40px);
            background: linear-gradient(135deg,
                    rgba(255, 255, 255, 0.1) 0%,
                    rgba(255, 255, 255, 0.05) 50%,
                    rgba(255, 255, 255, 0.1) 100%);
            backdrop-filter: blur(30px) saturate(180%);
            -webkit-backdrop-filter: blur(30px) saturate(180%);
            border-radius: 16px;
            box-shadow:
                0 8px 32px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2),
                inset 0 -1px 0 rgba(255, 255, 255, 0.1);
            z-index: 10001;
            opacity: 0;
            pointer-events: none;
            transform: translateX(500px);
            transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.18);
        }

        .notification-toast.show {
            opacity: 1;
            pointer-events: auto;
            transform: translateX(0);
        }

        .notification-content {
            display: flex;
            align-items: flex-start;
            padding: 18px;
            gap: 12px;
        }

        .notification-icon {
            flex-shrink: 0;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: linear-gradient(135deg, #10b981, #059669);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 20px;
        }

        .notification-icon i {
            animation: scaleIn 0.3s ease-out;
        }

        .notification-body {
            flex: 1;
            min-width: 0;
        }

        .notification-title {
            font-size: 16px;
            font-weight: 700;
            color: var(--text-main);
            margin-bottom: 6px;
            line-height: 1.4;
        }

        .notification-message {
            font-size: 14px;
            color: var(--text-secondary);
            line-height: 1.6;
            white-space: pre-line;
        }

        .notification-close {
            flex-shrink: 0;
            background: none;
            border: none;
            color: var(--text-secondary);
            cursor: pointer;
            padding: 4px;
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 6px;
            transition: all 0.2s;
            opacity: 0.6;
        }

        .notification-close:hover {
            opacity: 1;
            background: rgba(0, 0, 0, 0.05);
        }

        .notification-progress {
            height: 3px;
            background: linear-gradient(90deg, #10b981, #059669);
            width: 100%;
            transform: scaleX(0);
            transform-origin: left;
            animation: progressBar 5s linear forwards;
        }

        @keyframes progressBar {
            to {
                transform: scaleX(1);
            }
        }

        @keyframes scaleIn {
            from {
                transform: scale(0);
            }

            to {
                transform: scale(1);
            }
        }

        @media (max-width: 480px) {
            .notification-toast {
                right: 10px;
                left: 10px;
                width: calc(100% - 20px);
                max-width: none;
            }

            .notification-content {
                padding: 16px;
            }

            .notification-title {
                font-size: 15px;
            }

            .notification-message {
                font-size: 13px;
            }
        }

        /* ============================================================
   SBC Tracking Feature Styles
   ============================================================ */

        /* Order type toggle */
        .order-type-toggle {
            display: flex;
            background: rgba(255, 255, 255, 0.07);
            border-radius: 14px;
            padding: 5px;
            gap: 4px;
            margin-bottom: 18px;
            border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
            position: relative;
            z-index: 2;
            width: 100%;
        }

        .type-btn {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 12px 18px;
            border: none;
            border-radius: 10px;
            background: transparent;
            color: var(--text-sub, #94a3b8);
            font-family: 'Cairo', sans-serif;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition, all 0.3s ease);
            white-space: nowrap;
        }

        .type-btn.active {
            background: transparent;
            color: #191a30;
        }

        .type-btn:not(.active):hover {
            background: rgba(255, 255, 255, 0.08);
            color: var(--text-main, #f8fafc);
        }

        /* SBC tracking card */
        .sbc-tracking-card {
            display: flex;
            flex-direction: column;
            gap: 20px;
            padding: 28px 24px;
        }

        /* SBC Loading Spinner */
        .sbc-loading-spinner {
            display: flex;
            justify-content: center;
            margin-bottom: 8px;
        }
        .sbc-loading-spinner.hidden { display: none; }
        .sbc-spinner {
            width: 36px;
            height: 36px;
            border: 3px solid rgba(97, 15, 255, 0.15);
            border-top-color: var(--primary);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

        .sbc-card-header {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
            text-align: center;
            padding-bottom: 14px;
            margin-bottom: 4px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        }

        /* SBC header badge image */
        .sbc-header-icon-img {
            width: 64px;
            height: 64px;
            border-radius: 50%;
            object-fit: cover;
            filter: drop-shadow(0 4px 16px rgba(139, 92, 246, 0.35));
            transition: transform 0.3s ease;
        }

        .sbc-header-icon-img:hover {
            transform: scale(1.05);
        }

        /* SBC tab icon (inline in toggle button) */
        .sbc-tab-icon {
            width: 18px;
            height: 18px;
            border-radius: 50%;
            object-fit: cover;
            display: block;
            /* removes inline baseline offset (fixes iOS misalignment) */
            flex-shrink: 0;
            /* prevent shrinking in flex container */
            align-self: center;
            /* explicit vertical centering in flex row */
        }

        /* Keep old icon style as fallback */
        .sbc-header-icon {
            font-size: 2.2rem;
            color: var(--primary-color, #610fff);
            margin-bottom: 2px;
        }

        /* Container gap between cards */
        #sbc-jobs-container {
            display: flex;
            flex-direction: column;
            gap: 14px;
        }

        /* Individual SBC job card */
        .sbc-job-card {
            background: rgba(255, 255, 255, 0.06);
            backdrop-filter: blur(12px) saturate(150%);
            -webkit-backdrop-filter: blur(12px) saturate(150%);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 16px;
            padding: 18px 20px;
            display: flex;
            flex-direction: column;
            gap: 14px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            animation: fadeIn 0.4s ease-out both;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
        }

        /* Subtle accent line at top of each job card */
        .sbc-job-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 20%;
            right: 20%;
            height: 2px;
            background: linear-gradient(90deg, transparent, var(--primary-color, #610fff), transparent);
            opacity: 0.3;
            transition: opacity 0.3s ease;
        }

        .sbc-job-card:hover {
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
            border-color: rgba(255, 255, 255, 0.15);
        }

        .sbc-job-card:hover::before {
            opacity: 0.7;
        }

        /* Staggered entrance animation */
        .sbc-job-card:nth-child(1) {
            animation-delay: 0s;
        }

        .sbc-job-card:nth-child(2) {
            animation-delay: 0.08s;
        }

        .sbc-job-card:nth-child(3) {
            animation-delay: 0.16s;
        }

        .sbc-job-card:nth-child(4) {
            animation-delay: 0.24s;
        }

        .sbc-job-card:nth-child(5) {
            animation-delay: 0.32s;
        }

        .sbc-job-card:nth-child(6) {
            animation-delay: 0.40s;
        }

        .sbc-job-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            flex-wrap: nowrap;
            flex-direction: row;
            gap: 8px;
        }

        /* Name + thumbnail wrapper */
        .sbc-job-name-wrap {
            display: flex;
            align-items: center;
            gap: 8px;
            min-width: 0;
        }

        /* SBC set badge thumbnail (fut.gg badge PNG: shield in top-left of transparent canvas) */
        .sbc-job-thumb {
            width: 64px;
            height: 64px;
            flex-shrink: 0;
            border-radius: 10px;
            background-repeat: no-repeat;
            background-size: contain;
            background-position: top left;
            background-color: transparent;
        }

        .sbc-job-index {
            font-size: 0.95rem;
            font-weight: 700;
            color: var(--text-main, #f8fafc);
            line-height: 1.3;
        }

        /* SBC name as a fut.gg link */
        .sbc-job-name-link {
            font-size: 0.95rem;
            font-weight: 700;
            color: var(--text-main, #f8fafc);
            line-height: 1.3;
            text-decoration: none;
            transition: color 0.15s;
            word-break: break-word;
        }

        .sbc-job-name-link:hover {
            color: var(--primary, #6d4fc2);
            text-decoration: underline;
        }

        /* Clickable thumbnail */
        .sbc-job-thumb {
            cursor: pointer;
        }

        /* SBC image lightbox */
        #sbc-lb-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.85);
            z-index: 9999;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(4px);
        }

        #sbc-lb-overlay.sbc-lb-open {
            display: flex;
        }

        .sbc-lb-box {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 14px;
            padding: 24px;
            animation: sbc-lb-in 0.18s ease;
        }

        @keyframes sbc-lb-in {
            from {
                opacity: 0;
                transform: scale(0.88);
            }

            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        #sbc-lb-img {
            max-width: min(380px, 88vw);
            max-height: 75vh;
            border-radius: 14px;
            box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
        }

        #sbc-lb-name {
            color: #fff;
            font-size: 1rem;
            font-weight: 700;
            letter-spacing: 0.02em;
            text-align: center;
        }

        .sbc-job-status {
            font-size: 0.9rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        /* SBC progress bar */
        .sbc-progress-wrap {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .sbc-progress-info {
            display: flex;
            justify-content: space-between;
            font-size: 0.82rem;
            font-weight: 600;
            color: var(--text-sub, #94a3b8);
        }

        .sbc-progress-track {
            height: 9px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            overflow: hidden;
            position: relative;
        }

        .sbc-progress-fill {
            height: 100%;
            border-radius: 12px;
            transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
        }

        /* Shimmer effect on SBC progress bar (reuses existing shimmer keyframe) */
        .sbc-progress-fill::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            animation: shimmer 2s infinite;
        }

        /* SBC instruction box (shown when customer action is required) */
        .sbc-instr-box {
            background: linear-gradient(180deg, rgba(239, 68, 68, 0.10), rgba(239, 68, 68, 0.05));
            border: 1px solid rgba(239, 68, 68, 0.25);
            border-radius: 10px;
            padding: 12px 14px;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .sbc-instr-title {
            font-size: 0.8rem;
            font-weight: 700;
            color: var(--danger);
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .sbc-instr-desc {
            font-size: 0.82rem;
            color: var(--text-main);
            line-height: 1.6;
        }

        .sbc-instr-desc a {
            color: var(--primary);
            text-decoration: underline;
        }

        /* SBC job stats */
        .sbc-job-stats {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
            padding: 12px 14px;
            background: rgba(255, 255, 255, 0.03);
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .sbc-stat {
            display: flex;
            flex-direction: column;
            gap: 4px;
            flex: 1;
            min-width: 80px;
            text-align: center;
        }

        .sbc-stat-label {
            font-size: 0.78rem;
            font-weight: 600;
            color: var(--text-sub, #94a3b8);
        }

        .sbc-retry-btn {
            margin-top: 12px;
            width: 100%;
            padding: 9px 14px;
            background: var(--warning, #f59e0b);
            color: #fff;
            border: none;
            border-radius: 10px;
            font-size: 13px;
            font-weight: 700;
            font-family: 'Cairo', sans-serif;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }

        .sbc-retry-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 15px rgba(245, 158, 11, 0.35);
        }

        .sbc-retry-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }

        .sbc-stat-val {
            font-size: 1.05rem;
            font-weight: 800;
            color: var(--text-main, #f8fafc);
        }

        /* SBC refresh button */
        .sbc-refresh-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            width: 100%;
            padding: 13px 20px;
            border: 2px solid var(--primary-color, #610fff);
            border-radius: 14px;
            background: transparent;
            color: var(--primary-color, #610fff);
            font-family: 'Cairo', sans-serif;
            font-size: 0.95rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            margin-top: 4px;
            position: relative;
            overflow: hidden;
        }

        .sbc-refresh-btn:hover {
            background: var(--primary-color, #610fff);
            color: #191a30;
            box-shadow: 0 4px 16px rgba(97, 15, 255, 0.3);
            transform: translateY(-1px);
        }

        .sbc-refresh-btn:active {
            transform: scale(0.97) translateY(0);
        }

        /* Light theme SBC overrides */
        :root .sbc-job-card,
        [data-theme="light"] .sbc-job-card {
            background: linear-gradient(180deg, #ffffff, #f8fafc);
            border: 1px solid rgba(0, 0, 0, 0.08);
        }

        :root .sbc-job-card:hover,
        [data-theme="light"] .sbc-job-card:hover {
            background: #ffffff;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
            border-color: rgba(0, 0, 0, 0.12);
        }

        :root .sbc-job-card::before,
        [data-theme="light"] .sbc-job-card::before {
            background: linear-gradient(90deg, transparent, var(--primary-color, #610fff), transparent);
        }

        :root .sbc-job-index,
        [data-theme="light"] .sbc-job-index {
            color: #191a30;
        }

        :root .sbc-stat-val,
        [data-theme="light"] .sbc-stat-val {
            color: #000000;
        }

        :root .sbc-stat-label,
        [data-theme="light"] .sbc-stat-label {
            color: #64748b;
        }

        :root .sbc-progress-track,
        [data-theme="light"] .sbc-progress-track {
            background: rgba(148, 163, 184, 0.25);
        }

        :root .sbc-job-stats,
        [data-theme="light"] .sbc-job-stats {
            background: rgba(0, 0, 0, 0.02);
            border-color: rgba(0, 0, 0, 0.05);
        }

        :root .sbc-card-header,
        [data-theme="light"] .sbc-card-header {
            border-bottom-color: rgba(0, 0, 0, 0.06);
        }

        /* Dark theme SBC overrides */
        [data-theme="dark"] .order-type-toggle {
            background: rgba(0, 0, 0, 0.2);
        }

        [data-theme="dark"] .sbc-job-card {
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
            border-color: rgba(255, 255, 255, 0.1);
        }

        [data-theme="dark"] .sbc-job-card:hover {
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
            border-color: rgba(255, 255, 255, 0.15);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
        }

        [data-theme="dark"] .sbc-job-index {
            color: #f8fafc;
        }

        [data-theme="dark"] .sbc-stat-val {
            color: #f8fafc;
        }

        [data-theme="dark"] .sbc-job-stats {
            background: rgba(255, 255, 255, 0.03);
            border-color: rgba(255, 255, 255, 0.05);
        }

        [data-theme="dark"] .sbc-card-header {
            border-bottom-color: rgba(255, 255, 255, 0.06);
        }

        /* Responsive SBC */
        @media (max-width: 480px) {
            .type-btn {
                font-size: 0.88rem;
                padding: 9px 10px;
            }

            .sbc-job-header {
                align-items: flex-start;
                flex-wrap: nowrap;
                flex-direction: row;
            }

            .sbc-header-icon-img {
                width: 52px;
                height: 52px;
            }

            .sbc-tracking-card {
                padding: 22px 16px;
            }

            .sbc-job-card {
                padding: 14px 16px;
            }
        }

        /* ============================================================
   MOBILE FIRST OVERHAUL — v3.1
   Comprehensive improvements for phones (≤ 640px)
   ============================================================ */

        @media (max-width: 640px) {

            /* ── Layout ─────────────────────────────────────── */
            .main-content {
                padding: 12px;
            }

            /* ── Form card ───────────────────────────────────── */
            .order-form-card {
                padding: 22px 16px;
                border-radius: 20px;
            }

            .order-form-title {
                font-size: 18px;
                gap: 8px;
            }

            .order-form-subtitle {
                font-size: 13px;
                margin-bottom: 18px;
                line-height: 1.5;
            }

            /* ── Toggle ──────────────────────────────────────── */
            .order-type-toggle {
                margin-bottom: 16px;
            }

            .type-btn {
                padding: 10px 12px;
                font-size: 0.9rem;
                gap: 6px;
                min-height: 44px;
                /* accessibility touch target */
            }

            .sbc-tab-icon {
                width: 16px;
                height: 16px;
            }

            /* ── Input ───────────────────────────────────────── */
            .order-input {
                padding: 12px 14px;
                font-size: 15px;
                border-radius: 12px;
            }

            /* ── Order ID row (mobile) ───────────────────────── */
            .order-id-row {
                padding: 7px 12px;
                gap: 6px;
            }
            .order-id-value {
                font-size: 12px;
            }
            .last-updated-text {
                width: 100%;
                margin-right: 0;
                text-align: center;
            }

            /* ── Submit button ───────────────────────────────── */
            .order-submit-btn {
                padding: 14px;
                font-size: 15px;
                border-radius: 12px;
                min-height: 50px;
            }

            /* ── Order history chips ─────────────────────────── */
            .order-history-item {
                padding: 7px 12px;
                font-size: 12px;
                min-height: 32px;
            }

            /* ── Tracking card ───────────────────────────────── */
            .card {
                border-radius: 20px;
            }

            .tracking-card {
                padding: 22px 16px;
            }

            /* ── Status ring ─────────────────────────────────── */
            .status-ring-container {
                width: 84px;
                height: 84px;
                margin-bottom: 14px;
            }

            .status-icon {
                font-size: 1.6rem;
            }

            /* ── Main status text ────────────────────────────── */
            .main-status-text {
                font-size: clamp(16px, 4.5vw, 20px);
            }

            .sub-status-text {
                font-size: 12px;
            }

            /* ── Progress bar ────────────────────────────────── */
            .progress-section {
                gap: 8px;
            }

            .progress-info {
                font-size: 12px;
            }

            .progress-track {
                height: 8px;
            }

            /* ── Stats row ───────────────────────────────────── */
            .stats-row {
                gap: 8px;
            }

            .stat-box {
                padding: 12px 10px;
                border-radius: 14px;
            }

            .stat-label {
                font-size: 11px;
            }

            .stat-value {
                font-size: clamp(15px, 4vw, 20px);
            }

            /* ── Action / error box ──────────────────────────── */
            .action-box {
                padding: 14px;
                border-radius: 14px;
            }

            .action-title {
                font-size: 13px;
            }

            .action-description {
                font-size: 12px;
            }

            /* ── Edit / Resume buttons ───────────────────────── */
            .edit-order-btn,
            .resume-order-btn {
                padding: 12px;
                font-size: 14px;
                border-radius: 12px;
                min-height: 46px;
            }

            /* ── Back button ─────────────────────────────────── */
            .back-button {
                padding: 8px 14px;
                font-size: 12px;
                min-height: 36px;
            }

            /* ── SBC tracking card ───────────────────────────── */
            .sbc-tracking-card {
                padding: 20px 14px;
                gap: 16px;
            }

            .sbc-card-header {
                gap: 10px;
                padding-bottom: 12px;
            }

            .sbc-header-icon-img {
                width: 50px;
                height: 50px;
            }

            .sbc-job-card {
                padding: 14px 14px;
                gap: 12px;
                border-radius: 14px;
            }

            .sbc-job-index {
                font-size: 0.9rem;
            }

            .sbc-job-status {
                font-size: 0.85rem;
            }

            .sbc-progress-track {
                height: 8px;
            }

            .sbc-progress-info {
                font-size: 11px;
            }

            .sbc-job-stats {
                padding: 10px 12px;
                gap: 8px;
            }

            .sbc-stat-label {
                font-size: 11px;
            }

            .sbc-stat-val {
                font-size: 0.95rem;
            }

            .sbc-refresh-btn {
                padding: 12px 16px;
                font-size: 0.9rem;
                min-height: 48px;
                border-radius: 12px;
            }

            /* ── Connection status ───────────────────────────── */
            .connection-status {
                font-size: 12px;
            }

            /* ── Edit modal ──────────────────────────────────── */
            .edit-modal-content {
                margin: 10px;
                padding: 20px 16px;
                border-radius: 18px;
                max-height: 85vh;
            }

            .edit-form-group {
                margin-bottom: 14px;
            }

            .edit-form-label {
                font-size: 13px;
            }

            .edit-form-input,
            .edit-form-select {
                padding: 12px 14px;
                font-size: 14px;
                border-radius: 10px;
            }

            /* ── Notification toast ──────────────────────────── */
            .notification-toast {
                top: 10px;
                right: 10px;
                left: 10px;
                width: auto;
                max-width: none;
            }

            .notification-content {
                padding: 14px;
                gap: 10px;
            }

            /* ── Header ──────────────────────────────────────── */
            .header {
                padding: 12px 14px;
            }

            .logo {
                height: 2.2rem;
            }
        }

        /* ── Extra-small phones (≤ 390px) ─────────────────────────── */
        @media (max-width: 390px) {
            .main-content {
                padding: 10px;
            }

            .order-form-card {
                padding: 18px 14px;
            }

            .order-form-title {
                font-size: 17px;
            }

            .type-btn {
                padding: 9px 8px;
                font-size: 0.82rem;
                gap: 5px;
            }

            .sbc-tab-icon {
                width: 14px;
                height: 14px;
            }

            .order-input {
                padding: 13px 14px 13px 42px;
                font-size: 14px;
            }

            .order-submit-btn {
                padding: 13px;
                font-size: 14px;
            }

            .sbc-job-card {
                padding: 12px;
            }

            .sbc-job-header {
                align-items: flex-start;
                flex-wrap: nowrap;
                flex-direction: row;
                gap: 4px;
            }

            .stat-box {
                padding: 10px 8px;
            }
        }

        /* ============================================================ */
        /* NEW PROFESSIONAL ORDER FORM STYLES */
        /* ============================================================ */

        .order-form-card {
            max-width: 480px;
            margin: 40px auto;
            padding: 40px 30px;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }

        .hero-icon-container {
            position: relative;
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
            display: flex;
            justify-content: center;
            align-items: center;
            margin-bottom: 24px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        }

        [data-theme="dark"] .hero-icon-container {
            background: linear-gradient(135deg, rgba(30, 41, 59, 1), rgba(15, 23, 42, 0.5));
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .hero-icon-glow {
            position: absolute;
            width: 100%;
            height: 100%;
            border-radius: 50%;
            background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
            opacity: 0.15;
            filter: blur(8px);
            animation: glow-pulse 3s infinite;
        }

        @keyframes glow-pulse {
            0% {
                transform: scale(0.95);
                opacity: 0.1;
            }

            50% {
                transform: scale(1.1);
                opacity: 0.25;
            }

            100% {
                transform: scale(0.95);
                opacity: 0.1;
            }
        }

        .hero-icon {
            font-size: 32px;
            color: var(--primary);
            z-index: 2;
        }

        .order-form-heading {
            font-size: 26px;
            font-weight: 800;
            color: var(--text-color);
            margin-bottom: 12px;
            letter-spacing: -0.5px;
        }

        .order-form-subtitle {
            font-size: 15px;
            color: var(--text-secondary);
            line-height: 1.6;
            margin-bottom: 32px;
            max-width: 90%;
        }

        .order-input-group {
            position: relative;
            width: 100%;
            margin-bottom: 24px;
        }

        .order-input {
            width: 100%;
            padding: 16px 20px 16px 48px;
            border-radius: 14px;
            border: 2px solid rgba(0, 0, 0, 0.05);
            background: rgba(255, 255, 255, 0.8);
            font-family: inherit;
            font-size: 16px;
            font-weight: 600;
            color: var(--text-color);
            transition: all 0.3s ease;
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
        }

        [data-theme="dark"] .order-input {
            background: rgba(15, 23, 42, 0.4);
            border: 2px solid rgba(255, 255, 255, 0.05);
            color: #f8fafc;
        }

        .order-input:focus {
            outline: none;
            border-color: var(--primary);
            background: #ffffff;
            box-shadow: 0 0 0 4px rgba(var(--primary-rgb, 16, 185, 129), 0.1);
        }

        [data-theme="dark"] .order-input:focus {
            background: rgba(30, 41, 59, 0.8);
            box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
        }

        .order-input-group .input-icon {
            position: absolute;
            left: 18px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-secondary);
            font-size: 18px;
            transition: color 0.3s ease;
        }

        .order-input:focus+.input-icon {
            color: var(--primary);
        }

        .submit-btn {
            width: 100%;
            padding: 16px;
            border-radius: 14px;
            background: linear-gradient(135deg, var(--primary) 0%, rgba(var(--primary-rgb, 16, 185, 129), 0.8) 100%);
            color: #ffffff;
            font-family: inherit;
            font-size: 16px;
            font-weight: 700;
            border: none;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 10px;
            box-shadow: 0 4px 12px rgba(var(--primary-rgb, 16, 185, 129), 0.3);
        }

        .submit-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(var(--primary-rgb, 16, 185, 129), 0.4);
        }

        .submit-btn:active {
            transform: translateY(0);
        }

        .sbc-amount-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background-color: var(--primary);
            color: #191a30;
            font-size: 0.75rem;
            font-weight: 700;
            padding: 2px 8px;
            border-radius: 12px;
            margin-right: 8px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        /* SBC Help Button and Modal */
        .sbc-status-wrap {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .sbc-help-btn {
            background: rgba(255, 255, 255, 0.1);
            color: var(--text-main);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            width: 20px;
            height: 20px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 0.75rem;
            cursor: pointer;
            transition: all 0.2s;
        }

        .sbc-help-btn:hover {
            background: var(--primary);
            border-color: var(--primary);
            color: #191a30;
        }

        .help-modal-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.8);
            z-index: 10000;
            align-items: center;
            justify-content: center;
            padding: 20px;
            backdrop-filter: blur(5px);
        }

        .help-modal-overlay.show {
            display: flex;
        }

        .help-modal-content {
            background: var(--card-color);
            border-radius: 16px;
            padding: 24px;
            max-width: 400px;
            width: 100%;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            animation: slideUp 0.3s ease-out;
            position: relative;
        }

        [data-theme="dark"] .help-modal-content {
            background: #191a30;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .help-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
            border-bottom: 1px solid var(--border-color-light);
            padding-bottom: 12px;
        }

        .help-modal-title {
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--text-color);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .help-modal-title i {
            color: var(--primary);
        }

        .help-modal-close {
            background: none;
            border: none;
            color: var(--text-secondary);
            font-size: 1.2rem;
            cursor: pointer;
            transition: color 0.2s;
        }

        .help-modal-close:hover {
            color: var(--danger);
        }

        .help-modal-body {
            color: var(--text-secondary);
            font-size: 0.9rem;
            line-height: 1.6;
            margin-bottom: 20px;
        }

        .help-modal-action {
            background: rgba(255, 255, 255, 0.05);
            padding: 12px;
            border-radius: 8px;
            font-size: 0.85rem;
            color: var(--text-color);
            border-right: 3px solid var(--primary);
        }