        :root {
            --primary: var(--primary-color);
            --bg-dark: #0f172a;
            --card-dark: #1e293b;
            --success: #10b981;
            --danger: #ef4444;
            --warning: #f59e0b;
            --text-main: #f8fafc;
            --text-sub: #94a3b8;
            --border-color: #334155;
            --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
            --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.5);
            --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        /* Light Mode (Default) */
        :root {
            --bg-color: #f5f5f5;
            --card-color: #ffffff;
            --text-color: #1e293b;
            --text-secondary: #64748b;
            --border-color-light: rgba(0, 0, 0, 0.1);
            --header-bg: #231F1E;
            --footer-bg: #231F1E;
        }

        /* Dark Mode */
        [data-theme="dark"] {
            --bg-color: #231F1E;
            --card-color: #1e293b;
            --text-color: #f8fafc;
            --text-secondary: #94a3b8;
            --border-color-light: rgba(255, 255, 255, 0.1);
            --header-bg: #231F1E;
            --footer-bg: #231F1E;
        }

        * {
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
            margin: 0;
            padding: 0;
        }

        body {
            margin: 0;
            padding: 0;
            font-family: 'Tajawal', 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: #231F1E !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: #231F1E !important;
            padding: 12px 15px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        @media (min-width: 768px) {
            .header {
                padding: 15px 20px;
            }
        }

        .header .text-primary {
            color: var(--primary) !important;
        }

        .header .text-black {
            color: #fff !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: #231F1E !important;
            padding: 20px 15px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            margin-top: auto;
        }

        @media (min-width: 768px) {
            .footer-container {
                padding: 30px 20px;
            }
        }

        .footer-container * {
            color: #ffffff !important;
        }

        .footer-container a {
            color: #ffffff !important;
        }

        .footer-container a:hover {
            color: var(--primary) !important;
        }

        .footer-container .footer-description,
        .footer-container .copyrights,
        .footer-container .sbc-certificate p {
            color: rgba(255, 255, 255, 0.8) !important;
        }

        .footer-container .footer-list a {
            color: #9ca3af !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: #ffffff !important;
        }

        .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: #1e293b;
            margin: 0;
        }

        .footer-profile {
            margin-bottom: 20px;
        }

        .footer-description {
            color: #64748b;
            font-size: 14px;
            line-height: 1.6;
        }

        .menu-list h3,
        .title {
            color: #1e293b;
            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 */
        .card {
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.92));
            border-radius: 20px;
            padding: 24px;
            box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
            border: 1px solid rgba(255, 255, 255, 0.6);
            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;
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px);
        }

        @media (min-width: 768px) {
            .card {
                border-radius: 26px;
                padding: 32px;
                box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
            }
        }

        [data-theme="dark"] .card {
            background: linear-gradient(180deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.96));
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
        }

        [data-theme="dark"] .stat-box {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        [data-theme="dark"] .stat-box:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.15);
        }

        [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;
        }

        @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 {
            transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
            height: 100%;
            background: linear-gradient(90deg, var(--primary), rgba(255, 255, 255, 0.35));
            width: 0%;
            transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s;
            border-radius: 12px;
            position: relative;
        }

        .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;
        }

        @media (max-width: 640px) {
            .stats-row {
                grid-template-columns: 1fr 1fr;
            }
        }

        @media (max-width: 420px) {
            .stats-row {
                grid-template-columns: 1fr;
            }
        }

        .stat-box {
            background: linear-gradient(180deg, #ffffff, #f8fafc);
            padding: 14px 12px;
            border-radius: 16px;
            flex: 1;
            min-width: 110px;
            border: 1px solid rgba(0, 0, 0, 0.06);
            transition: var(--transition);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
        }

        @media (min-width: 768px) {
            .stat-box {
                padding: 20px;
                border-radius: 16px;
            }
        }

        .stat-box:hover {
            background: #ffffff;
            transform: translateY(-3px);
            box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
        }

        .stat-label {
            font-size: 12px;
            color: #1e293b;
            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: linear-gradient(180deg, rgba(239, 68, 68, 0.12), rgba(239, 68, 68, 0.06));
            border: 1px solid rgba(239, 68, 68, 0.35);
            border-radius: 16px;
            text-align: right;
            animation: slideIn 0.3s ease-out;
        }

        @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: linear-gradient(135deg,
                    rgba(255, 255, 255, 0.98) 0%,
                    rgba(255, 255, 255, 0.95) 100%);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-radius: 20px;
            box-shadow:
                0 10px 40px rgba(0, 0, 0, 0.25),
                0 0 0 1px rgba(255, 255, 255, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
            z-index: 9998 !important;
            overflow: hidden;
            animation: slideUpBounce 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            transform-origin: bottom right;
        }

        @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%, #f0c850 100%);
            color: #1e293b;
            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: #1e293b;
            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: #1e293b;
            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: 'Tajawal', 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(249, 223, 104, 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: 'Tajawal', 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: #ffffff;
            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.3);
            animation: slideUp 0.3s ease-out;
            position: relative;
        }

        .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: #1e293b;
        }

        .edit-modal-close {
            background: none;
            border: none;
            color: #64748b;
            font-size: 24px;
            cursor: pointer;
            padding: 5px;
            transition: var(--transition);
        }

        .edit-modal-close:hover {
            color: #1e293b;
            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: #1e293b;
        }

        .edit-form-input {
            width: 100%;
            padding: 12px 15px;
            background: #f8fafc;
            border: 2px solid #e2e8f0;
            border-radius: 10px;
            color: #1e293b;
            font-size: 14px;
            font-family: 'Tajawal', 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: #1e293b;
            font-size: 14px;
            font-family: 'Tajawal', 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: #1e293b;
        }

        .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: 'Tajawal', 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: #1e293b;
        }

        .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(249, 223, 104, 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: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.92));
            border-radius: 20px;
            padding: 26px 20px;
            box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
            border: 1px solid rgba(255, 255, 255, 0.6);
            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;
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px);
        }

        [data-theme="dark"] .order-form-card {
            background: linear-gradient(180deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.96));
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
        }

        @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: 'Tajawal', 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(249, 223, 104, 0.1);
        }

        [data-theme="dark"] .order-input:focus {
            background: rgba(255, 255, 255, 0.08);
            box-shadow: 0 0 0 3px rgba(249, 223, 104, 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: 'Tajawal', sans-serif;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            box-shadow: 0 10px 24px rgba(249, 223, 104, 0.25);
        }

        @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(249, 223, 104, 0.35);
        }

        .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 {
            position: absolute;
            top: 12px;
            right: 12px;
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 6px 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;
            z-index: 10;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }

        .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: 6px 10px;
                font-size: 11px;
            }

            .back-button span {
                display: none;
            }

            .back-button {
                width: 34px;
                height: 34px;
                border-radius: 50%;
                justify-content: center;
                padding: 0;
            }
        }

        .order-form-card.hidden {
            display: none;
        }

        .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;
            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;
            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;
            }
        }