        :root {
            --color-white: #ffffff;
            --color-light: #f9f7f7;
            --color-rose: #f8d7da;
            --color-coral: #f08080;
            --color-muted-green: #d8e2dc;
            --color-vivid-coral: #ff7e6f;
            --color-accent: #fec89a;
            --text-dark: #5a5a5a;
            --text-muted: #8a8a8a;
            --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
            --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
            --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
            --transition: all 0.3s ease;
            --gradient-primary: linear-gradient(135deg, var(--color-vivid-coral), #ff6b5b);
            --gradient-secondary: linear-gradient(135deg, var(--color-accent), var(--color-coral));
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Almarai', sans-serif;
        }

        html,
        body {
            width: 100%;
            overflow-x: hidden;
            scroll-behavior: smooth;
        }

        body {
            background-color: var(--color-light);
            color: var(--text-dark);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        .top-nav {
            background-color: var(--color-white);
            box-shadow: var(--shadow-sm);
            padding: 1rem 2rem;
            position: sticky;
            top: 0;
            z-index: 1000;
            width: 100%;
        }

        .nav-container {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
        }

        .logo {
            height: 60px;
            max-width: 100%;
        }

        .nav-links {
            display: flex;
            gap: 1.5rem;
            flex-wrap: wrap;
            justify-content: center;
        }

        .nav-links a {
            text-decoration: none;
            color: var(--text-dark);
            font-weight: 700;
            font-size: 1.1rem;
            transition: var(--transition);
            position: relative;
            white-space: nowrap;
        }

        .nav-links a:hover,
        .nav-links a.active {
            color: var(--color-vivid-coral);
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background-color: var(--color-vivid-coral);
            transition: var(--transition);
        }

        .nav-links a:hover::after,
        .nav-links a.active::after {
            width: 100%;
        }

        .nav-icons {
            display: flex;
            gap: 1.5rem;
            align-items: center;
            position: relative;
        }

        .nav-icons a {
            color: var(--text-dark);
            font-size: 1.3rem;
            transition: var(--transition);
            cursor: pointer;
            position: relative;
        }

        .nav-icons a:hover {
            color: var(--color-vivid-coral);
        }

        .profile-dropdown {
            position: relative;
            display: inline-block;
        }

        .dropdown-menu {
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            background-color: var(--color-white);
            border-radius: 12px;
            box-shadow: var(--shadow-lg);
            padding: 1rem 0;
            min-width: 200px;
            z-index: 1000;
            display: none;
            margin-top: 10px;
        }

        .dropdown-menu a {
            display: flex;
            align-items: center;
            gap: 0.8rem;
            padding: 0.8rem 1.5rem;
            text-decoration: none;
            color: var(--text-dark);
            font-size: 1.1rem;
            transition: var(--transition);
            white-space: nowrap;
        }

        .dropdown-menu a:hover {
            background-color: var(--color-light);
            color: var(--color-vivid-coral);
        }

        .dropdown-menu a i {
            width: 20px;
            text-align: center;
        }

        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: var(--text-dark);
        }

        .mobile-menu {
            position: fixed;
            top: 0;
            right: -100%;
            width: 300px;
            height: 100vh;
            background-color: var(--color-white);
            box-shadow: var(--shadow-lg);
            z-index: 2000;
            transition: var(--transition);
            padding: 1rem;
            overflow-y: auto;
        }

        .mobile-menu.active {
            right: 0;
        }

        .mobile-menu-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-bottom: 1rem;
            border-bottom: 1px solid #eee;
            margin-bottom: 1rem;
        }

        .close-menu-btn {
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: var(--text-dark);
        }

        .mobile-links {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .mobile-links a {
            text-decoration: none;
            color: var(--text-dark);
            font-weight: 700;
            font-size: 1.2rem;
            padding: 0.8rem 1rem;
            border-radius: 8px;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .mobile-links a:hover,
        .mobile-links a.active {
            background-color: var(--color-light);
            color: var(--color-vivid-coral);
        }

        .mobile-profile-links {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            margin-top: 1.5rem;
            border-top: 1px solid #eee;
            padding-top: 1.5rem;
        }

        .mobile-profile-links a {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 1.1rem;
        }

        .search-container {
            position: relative;
            margin-top: 1rem;
        }

        .search-container input {
            width: 100%;
            padding: 0.8rem 1rem 0.8rem 2.5rem;
            border: 2px solid var(--color-muted-green);
            border-radius: 50px;
            font-size: 1rem;
            transition: var(--transition);
        }

        .search-container input:focus {
            outline: none;
            border-color: var(--color-vivid-coral);
            box-shadow: 0 0 0 3px rgba(255, 126, 111, 0.3);
        }

        .search-container button {
            position: absolute;
            right: 10px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: var(--text-muted);
            font-size: 1.2rem;
            cursor: pointer;
        }

        .main-content {
            flex: 1;
            max-width: 1400px;
            margin: 0 auto;
            padding: 2rem;
            width: 100%;
        }

        .profile-hero {
            background: var(--gradient-primary);
            color: white;
            padding: 3rem 2rem;
            border-radius: 25px;
            margin-bottom: 2rem;
            position: relative;
            overflow: hidden;
            text-align: center;
        }

        .profile-hero::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 200%;
            height: 200%;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="pattern" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23pattern)"/></svg>') repeat;
            animation: float 20s linear infinite;
        }

        @keyframes float {
            0% {
                transform: translate(-50%, -50%) rotate(0deg);
            }

            100% {
                transform: translate(-50%, -50%) rotate(360deg);
            }
        }

        .profile-info {
            position: relative;
            z-index: 2;
        }

        .profile-avatar {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            border: 6px solid rgba(255, 255, 255, 0.3);
            margin: 0 auto 1.5rem;
            background: var(--color-white);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 3rem;
            color: var(--color-vivid-coral);
            position: relative;
            overflow: hidden;
        }

        .avatar-upload {
            position: absolute;
            bottom: 0;
            right: 0;
            background: var(--color-white);
            color: var(--color-vivid-coral);
            width: 35px;
            height: 35px;
            border-radius: 50%;
            border: 3px solid white;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: var(--transition);
        }

        .avatar-upload:hover {
            transform: scale(1.1);
        }

        .profile-welcome h1 {
            font-size: 2.5rem;
            margin-bottom: 0.5rem;
            font-weight: 800;
        }

        .profile-welcome p {
            font-size: 1.2rem;
            opacity: 0.9;
        }

        .profile-tabs {
            display: flex;
            gap: 1rem;
            margin-bottom: 2rem;
            background: var(--color-white);
            padding: 1rem;
            border-radius: 15px;
            box-shadow: var(--shadow-sm);
            flex-wrap: wrap;
            justify-content: center;
        }

        .tab-btn {
            background: transparent;
            border: none;
            padding: 1rem 2rem;
            border-radius: 10px;
            font-weight: 700;
            font-size: 1.1rem;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 0.8rem;
            color: var(--text-muted);
            position: relative;
        }

        .tab-btn.active {
            background: var(--gradient-primary);
            color: white;
            box-shadow: 0 4px 15px rgba(255, 126, 111, 0.3);
        }

        .tab-btn:not(.active):hover {
            background: var(--color-light);
            color: var(--color-vivid-coral);
        }

        .tab-content {
            display: none;
        }

        .tab-content.active {
            display: block;
        }

        .account-section {
            background: var(--color-white);
            border-radius: 20px;
            padding: 2.5rem;
            box-shadow: var(--shadow-md);
            margin-bottom: 2rem;
        }

        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2rem;
            padding-bottom: 1rem;
            border-bottom: 2px solid var(--color-light);
        }

        .section-title {
            display: flex;
            align-items: center;
            gap: 1rem;
            font-size: 1.8rem;
            font-weight: 800;
            color: var(--text-dark);
        }

        .section-title i {
            width: 40px;
            height: 40px;
            background: var(--gradient-primary);
            color: white;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
        }

        .edit-btn {
            background: var(--color-muted-green);
            color: var(--text-dark);
            border: none;
            padding: 0.8rem 1.5rem;
            border-radius: 10px;
            font-weight: 700;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .edit-btn:hover {
            background: var(--color-vivid-coral);
            color: white;
        }

        .orders-list {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        .order-card {
            background: var(--color-white);
            border-radius: 20px;
            padding: 2rem;
            box-shadow: var(--shadow-md);
            position: relative;
            overflow: hidden;
        }

        .order-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
            padding-bottom: 1rem;
            border-bottom: 2px solid var(--color-light);
            flex-wrap: wrap;
            gap: 1rem;
        }

        .order-info h3 {
            font-size: 1.4rem;
            margin-bottom: 0.5rem;
            color: var(--text-dark);
        }

        .order-date {
            color: var(--text-muted);
            font-size: 1rem;
        }

        .order-status {
            padding: 0.6rem 1.2rem;
            border-radius: 20px;
            font-weight: 700;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .status-preparing {
            background: #fff3cd;
            color: #856404;
        }

        .status-shipping {
            background: #d1ecf1;
            color: #0c5460;
        }

        .status-delivered {
            background: #d4edda;
            color: #155724;
        }

        .order-items {
            display: flex;
            gap: 1rem;
            margin-bottom: 1.5rem;
            flex-wrap: wrap;
        }

        .order-item {
            display: flex;
            align-items: center;
            gap: 1rem;
            background: var(--color-light);
            padding: 1rem;
            border-radius: 12px;
            min-width: 280px;
        }

        .item-img {
            width: 60px;
            height: 60px;
            border-radius: 8px;
            object-fit: cover;
        }

        .item-details h4 {
            font-size: 1.1rem;
            margin-bottom: 0.3rem;
        }

        .item-quantity {
            color: var(--text-muted);
            font-size: 0.9rem;
        }

        .order-total {
            text-align: left;
            font-size: 1.5rem;
            font-weight: 800;
            color: var(--color-vivid-coral);
            margin-bottom: 1.5rem;
        }

        .order-actions {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
        }

        .order-btn {
            padding: 0.8rem 1.5rem;
            border: none;
            border-radius: 10px;
            font-weight: 700;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .track-btn {
            background: var(--color-vivid-coral);
            color: white;
        }

        .details-btn {
            background: var(--color-muted-green);
            color: var(--text-dark);
        }

        .order-btn:hover {
            transform: translateY(-2px);
        }

        .tracking-section {
            margin-top: 2rem;
            background: var(--color-white);
            border-radius: 15px;
            overflow: hidden;
            box-shadow: var(--shadow-sm);
        }

        .tracking-header {
            background: var(--gradient-primary);
            color: white;
            padding: 1.5rem;
            text-align: center;
        }

        .tracking-steps {
            padding: 2rem;
        }

        .step {
            display: flex;
            align-items: center;
            margin-bottom: 2rem;
            position: relative;
        }

        .step:not(:last-child)::after {
            content: '';
            position: absolute;
            left: 20px;
            top: 60px;
            width: 2px;
            height: 40px;
            background: #e0e0e0;
        }

        .step.completed::after {
            background: var(--color-vivid-coral);
        }

        .step-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #e0e0e0;
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-left: 1.5rem;
            position: relative;
            z-index: 2;
        }

        .step.completed .step-icon {
            background: var(--color-vivid-coral);
        }

        .step.current .step-icon {
            background: var(--color-accent);
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0% {
                transform: scale(1);
                box-shadow: 0 0 0 0 rgba(255, 126, 111, 0.7);
            }

            70% {
                transform: scale(1.05);
                box-shadow: 0 0 0 10px rgba(255, 126, 111, 0);
            }

            100% {
                transform: scale(1);
                box-shadow: 0 0 0 0 rgba(255, 126, 111, 0);
            }
        }

        .step-content h4 {
            margin-bottom: 0.3rem;
            color: var(--text-dark);
        }

        .step-time {
            color: var(--text-muted);
            font-size: 0.9rem;
        }

        footer {
            background-color: #233341;
            color: var(--color-white);
            padding: 4rem 2rem 2rem;
            width: 100%;
            margin-top: auto;
        }

        .footer-container {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 3rem;
        }

        .footer-logo {
            width: 200px;
            max-width: 100%;
            margin-bottom: 1.5rem;
        }

        .footer-slogan {
            font-size: 1.3rem;
            text-align: center;
            color: #d8e2dc;
            margin-bottom: 2rem;
        }

        .footer-social {
            display: flex;
            gap: 1.5rem;
            flex-wrap: wrap;
            justify-content: center;
        }

        .footer-social a {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background-color: #3a506b;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 1.5rem;
            color: var(--color-white);
            transition: var(--transition);
        }

        .footer-social a:hover {
            background-color: var(--color-vivid-coral);
            transform: translateY(-5px);
        }

        .footer-divider {
            height: 2px;
            background-color: #3a506b;
            width: 70%;
            border-radius: 1px;
        }

        .footer-copyright {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 1rem;
            text-align: center;
            color: #8a8a8a;
            font-size: 1.1rem;
        }

        .footer-copyright a {
            color: var(--color-vivid-coral);
            text-decoration: none;
            transition: var(--transition);
        }

        .footer-copyright a:hover {
            color: var(--color-white);
        }

        @media (max-width: 992px) {
            .nav-links {
                display: none;
            }

            .mobile-menu-btn {
                display: block;
            }

            .nav-icons a:not(.mobile-menu-btn) {
                display: none;
            }

            .nav-icons {
                gap: 1rem;
            }

            .profile-tabs {
                flex-direction: column;
                gap: 0.5rem;
            }

            .tab-btn {
                justify-content: center;
                padding: 1rem;
            }

            .order-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 1rem;
            }

            .order-items {
                flex-direction: column;
            }

            .order-item {
                min-width: auto;
            }

            .order-actions {
                justify-content: center;
                width: 100%;
            }

            .order-btn {
                flex: 1;
                justify-content: center;
            }
        }

        @media (max-width: 768px) {
            .main-content {
                padding: 1rem;
            }

            .profile-hero {
                padding: 2rem 1rem;
            }

            .profile-welcome h1 {
                font-size: 2rem;
            }

            .account-section {
                padding: 1.5rem;
            }

            .section-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 1rem;
            }

            .tracking-steps {
                padding: 1rem;
            }
        }

        @media (max-width: 576px) {
            .top-nav {
                padding: 0.8rem;
            }

            .profile-avatar {
                width: 100px;
                height: 100px;
                font-size: 2.5rem;
            }

            .profile-welcome h1 {
                font-size: 1.8rem;
            }

            .section-title {
                font-size: 1.5rem;
            }

            .step {
                flex-direction: column;
                text-align: center;
                margin-bottom: 3rem;
            }

            .step::after {
                display: none;
            }

            .step-icon {
                margin: 0 0 1rem 0;
            }
        }

        .loading {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 3px solid rgba(255, 255, 255, .3);
            border-radius: 50%;
            border-top-color: #fff;
            animation: spin 1s ease-in-out infinite;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        .success-message {
            background: #d4edda;
            color: #155724;
            padding: 1rem;
            border-radius: 8px;
            margin-bottom: 1rem;
            display: none;
        }

        .error-message {
            background: #f8d7da;
            color: #721c24;
            padding: 1rem;
            border-radius: 8px;
            margin-bottom: 1rem;
            display: none;
        }
