* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #ff4757;
    --primary-dark: #ee5a6f;
    --secondary: #ffa502;
    --accent: #ff6348;
    --dark: #1e1e2e;
    --darker: #16161e;
    --card: #27293d;
    --text: #ffffff;
    --text-gray: #b8b9c5;
    --border: rgba(255, 255, 255, 0.1);
    --glow-red: 0 0 40px rgba(255, 71, 87, 0.4);
    --glow-orange: 0 0 40px rgba(255, 165, 2, 0.4);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

body {
    font-family: 'Almarai', sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
    direction: rtl;
    overflow-x: hidden;
    font-size: 16px;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 71, 87, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 165, 2, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.navbar { background: linear-gradient(135deg, rgba(30, 30, 46, 0.95), rgba(22, 22, 30, 0.95)); backdrop-filter: blur(20px); border-bottom: 2px solid rgba(255, 71, 87, 0.3); position: sticky; top: 0; z-index: 1000; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8); }

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px; padding: 0 30px;
}

.nav-brand h1 {
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    filter: drop-shadow(0 0 20px rgba(255, 71, 87, 0.3));
}

.nav-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-links a {
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-gray);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-links a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.nav-links a:hover { color: white; transform: translateY(-2px); border-color: var(--primary); box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3); }

.nav-links a:hover::before {
    opacity: 0.15;
}

.dashboard-link {
    background: linear-gradient(135deg, var(--primary), var(--accent)) !important;
    color: white !important;
    box-shadow: var(--glow-red);
}

.dashboard-link::before {
    display: none;
}

.user-name {
    font-size: 13px;
    color: var(--text-gray);
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.hero {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 71, 87, 0.15) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 165, 2, 0.1) 0%, transparent 70%);
    animation: pulse 10s ease-in-out infinite reverse;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
}

.hero-content {
    max-width: 750px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(255, 165, 2, 0.2), rgba(255, 165, 2, 0.05));
    border: 1px solid rgba(255, 165, 2, 0.4);
    color: var(--secondary);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 25px;
    animation: float 3s ease-in-out infinite;
    box-shadow: 0 4px 20px rgba(255, 165, 2, 0.2);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 25px;
    line-height: 1.1;
    letter-spacing: -2px;
    background: linear-gradient(135deg, var(--text) 0%, var(--text-gray) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 35px;
    line-height: 1.8;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 16px 36px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--glow-red);
    position: relative;
    overflow: hidden;
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-red), var(--glow-orange);
}

.hero-cta:hover::before {
    left: 100%;
}

.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 50px;
}

.category-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.4s;
}

.category-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 71, 87, 0.3);
}

.category-card:hover::before {
    opacity: 0.1;
}

.category-icon {
    font-size: 32px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.category-card h3 {
    font-size: 13px;
    font-weight: 700;
    position: relative;
    z-index: 1;
    line-height: 1.3;
}

.filters {
    margin-bottom: 50px;
}

.search-box form {
    display: flex;
    gap: 12px;
    max-width: 700px;
    margin: 0 auto 25px;
}

.search-box input {
    flex: 1;
    padding: 16px 22px;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 71, 87, 0.15);
}

.search-box input::placeholder {
    color: var(--text-gray);
}

.search-box button {
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    color: white;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--glow-red);
}

.search-box button:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-red), var(--glow-orange);
}

.filter-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 28px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.filter-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.filter-btn:hover {
    color: var(--text);
    transform: translateY(-2px);
}

.filter-btn:hover::before {
    opacity: 0.15;
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: var(--primary);
    color: white;
    box-shadow: var(--glow-red);
}

.filter-btn.active::before {
    display: none;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.product-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
}

.product-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    z-index: 0;
}

.product-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow), var(--glow-red);
}

.product-card:hover::after {
    opacity: 0.05;
}

.product-image {
    position: relative;
    height: 380px;
    background: linear-gradient(135deg, var(--darker), var(--dark));
    overflow: hidden;
}

.product-image::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, var(--card) 0%, transparent 100%);
    z-index: 1;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    box-shadow: var(--glow-red);
}

.product-rating {
    position: absolute;
    top: 18px;
    left: 18px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    color: var(--secondary);
    z-index: 2;
    border: 1px solid rgba(255, 165, 2, 0.3);
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-quick-desc {
    position: fixed;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 12px;
    color: var(--text-gray);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 300px;
}

.product-card:hover .product-quick-desc {
    opacity: 1;
}

.product-info {
    padding: 25px;
    position: relative;
    z-index: 1;
}

.product-tags {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.product-tag {
    padding: 4px 10px;
    background: rgba(255, 165, 2, 0.15);
    border: 1px solid rgba(255, 165, 2, 0.3);
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
}

.product-info h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.4;
    min-height: 50px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-description {
    color: var(--text-gray);
    font-size: 13px;
    margin-bottom: 18px;
    min-height: 42px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

.product-features {
    display: flex;
    gap: 15px;
    margin-bottom: 18px;
    padding: 12px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.product-feature {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-gray);
}

.product-feature span {
    font-weight: 700;
    color: var(--secondary);
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-price {
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.product-price-label {
    font-size: 11px;
    color: var(--text-gray);
    font-weight: 600;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.btn-icon {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.btn-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.btn-icon:hover {
    border-color: var(--primary);
    color: white;
    transform: scale(1.1);
}

.btn-icon:hover::before {
    opacity: 1;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--glow-red);
    font-family: 'Almarai', sans-serif;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-red), var(--glow-orange);
}

.btn-primary {
    width: 100%;
    justify-content: center;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    box-shadow: none;
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(255, 71, 87, 0.1);
    box-shadow: none;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), #ff8c00);
    box-shadow: var(--glow-orange);
}

.btn-secondary:hover {
    box-shadow: var(--glow-orange), var(--glow-red);
}

.auth-form, .order-form {
    max-width: 480px;
    margin: 60px auto;
    background: var(--card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.auth-form h2, .order-form h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-gray);
}

.form-control, .form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--dark);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 10px;
    font-family: 'Almarai', sans-serif;
    font-size: 15px;
    transition: all 0.3s;
}

.form-control:focus, .form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 71, 87, 0.15);
}

.auth-link {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: var(--text-gray);
}

.auth-link a {
    color: var(--primary);
    font-weight: 700;
}

.messages-container {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 90%;
    max-width: 500px;
}

.alert {
    padding: 16px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 10px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #22c55e;
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

.alert-warning {
    background: rgba(255, 165, 2, 0.15);
    border: 1px solid rgba(255, 165, 2, 0.4);
    color: var(--secondary);
}

footer {
    background: var(--card);
    border-top: 1px solid var(--border);
    padding: 50px 0;
    margin-top: 80px;
    text-align: center;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
}

footer p {
    color: var(--text-gray);
    font-size: 14px;
}

.no-products {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-gray);
    font-size: 16px;
    grid-column: 1 / -1;
}

.dashboard {
    display: flex;
    gap: 25px;
    margin: 40px 0;
}

.dashboard-sidebar {
    width: 280px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 25px 0;
    height: fit-content;
    position: sticky;
    top: 95px;
    box-shadow: var(--shadow);
}

.dashboard-sidebar h3 {
    font-size: 18px;
    font-weight: 800;
    padding: 0 25px 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dashboard-sidebar ul {
    list-style: none;
}

.dashboard-sidebar ul li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 25px;
    color: var(--text-gray);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    border-right: 3px solid transparent;
    position: relative;
}

.dashboard-sidebar ul li a::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    transition: all 0.3s;
    opacity: 0;
}

.dashboard-sidebar ul li a:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
}

.dashboard-sidebar ul li a:hover::before {
    width: 6px;
    height: 6px;
    opacity: 1;
    right: 10px;
}

.dashboard-sidebar ul li a.active {
    background: linear-gradient(90deg, rgba(255, 71, 87, 0.15), transparent);
    color: var(--primary);
    border-right-color: var(--primary);
}

.dashboard-content {
    flex: 1;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.dashboard-content h2 {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 30px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.dashboard-actions {
    display: flex;
    gap: 10px;
}

.btn-add {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--glow-red);
    transition: all 0.3s;
}

.btn-add:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-red), var(--glow-orange);
}

.btn-export {
    background: rgba(255, 165, 2, 0.15);
    color: var(--secondary);
    border: 1px solid rgba(255, 165, 2, 0.3);
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-export:hover {
    background: rgba(255, 165, 2, 0.25);
    transform: translateY(-2px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: linear-gradient(135deg, var(--dark), var(--darker));
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 71, 87, 0.15) 0%, transparent 70%);
    transition: all 0.5s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow), var(--glow-red);
    border-color: var(--primary);
}

.stat-card:hover::before {
    top: -30%;
    right: -30%;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.stat-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.2), rgba(255, 165, 2, 0.2));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    position: relative;
    z-index: 1;
}

.stat-trend {
    padding: 4px 10px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    color: #22c55e;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-trend.down {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.stat-value {
    font-size: 36px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.stat-label {
    font-size: 13px;
    color: var(--text-gray);
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.stat-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-gray);
    position: relative;
    z-index: 1;
}

.quick-actions {
    margin-bottom: 40px;
}

.quick-actions h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text);
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.action-btn {
    background: var(--dark);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.action-btn:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--glow-red);
}

.action-btn-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.2), rgba(255, 165, 2, 0.2));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.action-btn-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

.table-container {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 30px;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
}

.dashboard-table thead {
    background: var(--dark);
}

.dashboard-table thead th {
    padding: 16px 20px;
    text-align: right;
    font-weight: 700;
    font-size: 12px;
    color: var(--text-gray);
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
}

.dashboard-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: all 0.2s;
}

.dashboard-table tbody tr:hover {
    background: rgba(255, 71, 87, 0.05);
}

.dashboard-table tbody td {
    padding: 18px 20px;
    font-size: 14px;
}

.table-img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--border);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
}

.status-pending {
    background: rgba(255, 165, 2, 0.15);
    color: var(--secondary);
    border: 1px solid rgba(255, 165, 2, 0.3);
}

.status-completed {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-rejected {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-small {
    padding: 7px 16px;
    font-size: 12px;
    border-radius: 8px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-edit {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.btn-edit:hover {
    background: rgba(59, 130, 246, 0.25);
    transform: translateY(-2px);
}

.btn-delete {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-delete:hover {
    background: rgba(239, 68, 68, 0.25);
    transform: translateY(-2px);
}

.status-select {
    padding: 8px 12px;
    background: var(--dark);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    font-family: 'Almarai', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.status-select:focus {
    outline: none;
    border-color: var(--primary);
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    margin: 40px 0;
    background: var(--card);
    padding: 35px;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.product-detail-image {
    position: relative;
}

.product-detail-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.product-detail-info h1 {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 15px;
}

.product-type-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 6px 14px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 12px;
    box-shadow: var(--glow-red);
}

.product-price-large {
    font-size: 32px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
}

@media (max-width: 1024px) {
    .dashboard {
        flex-direction: column;
    }
    .dashboard-sidebar {
        width: 100%;
        position: static;
    }
    .dashboard-sidebar ul {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        padding: 0 20px;
    }
    .dashboard-sidebar ul li a {
        padding: 12px 20px;
        border-right: none;
        border-radius: 10px;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        height: auto;
        padding: 15px;
        gap: 12px;
    }
    
    .nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .nav-links a {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 32px !important;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .products-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    .product-image {
        height: 280px !important;
    }
    
    .product-info {
        padding: 15px !important;
    }
    
    .product-info h3 {
        font-size: 15px !important;
    }
    
    .product-price {
        font-size: 20px !important;
    }
    
    .product-detail {
        grid-template-columns: 1fr !important;
        padding: 20px !important;
    }
    
    .dashboard {
        flex-direction: column;
    }
    
    .dashboard-sidebar {
        width: 100%;
        position: static;
    }
    
    .dashboard-content {
        padding: 20px !important;
    }
    
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    .dashboard-table {
        font-size: 12px;
    }
    
    .auth-form, .order-form {
        margin: 30px auto;
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    .categories {
        grid-template-columns: 1fr;
    }
    .products-grid {
        grid-template-columns: 1fr;
    }
    .product-image {
        height: 320px;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.text-primary { color: var(--primary) !important; }
.text-muted { color: var(--text-gray) !important; }

/* PROMO SECTION */
.promo-section {
    background: linear-gradient(135deg, var(--card), var(--dark));
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.promo-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 71, 87, 0.1) 0%, transparent 70%);
}

.promo-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.promo-title {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.promo-text {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 25px;
}

/* TESTIMONIALS */
.testimonials {
    margin-bottom: 60px;
}

.testimonials-title {
    text-align: center;
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.testimonial-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.testimonial-info h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
}

.testimonial-rating {
    color: var(--secondary);
    font-size: 14px;
}

.testimonial-text {
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 14px;
}

/* FEATURES SECTION */
.features-section {
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.feature-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow-red);
    border-color: var(--primary);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.2), rgba(255, 165, 2, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
}

.feature-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 8px;
}

.feature-text {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.7;
}

/* NEWSLETTER */
.newsletter {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 20px;
    padding: 50px;
    text-align: center;
    margin-bottom: 60px;
}

.newsletter h3 {
    font-size: 28px;
    font-weight: 900;
    color: white;
    margin-bottom: 15px;
}

.newsletter p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    font-size: 16px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 10px;
    font-size: 15px;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form button {
    padding: 14px 30px;
    background: white;
    color: var(--primary);
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}

/* LOADING SPINNER */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* TOOLTIP */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    text-align: center;
    padding: 8px 12px;
    border-radius: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    white-space: nowrap;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* BREADCRUMB */
.breadcrumb {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 30px;
    font-size: 14px;
    color: var(--text-gray);
}

.breadcrumb a {
    color: var(--text-gray);
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb span {
    color: var(--text-gray);
}

/* PAGINATION */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a, .pagination span {
    padding: 10px 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-gray);
    font-weight: 600;
    transition: all 0.3s;
}

.pagination a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.pagination .active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: var(--primary);
    color: white;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--text);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-close:hover {
    background: var(--primary);
    color: white;
}

/* BACK TO TOP */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: var(--glow-red);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow-red), var(--glow-orange);
}

/* EMPTY STATE */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-state-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text);
}

.empty-state-text {
    color: var(--text-gray);
    margin-bottom: 30px;
}

/* SKELETON LOADER */
.skeleton {
    background: linear-gradient(90deg, var(--card) 25%, var(--dark) 50%, var(--card) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 16px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.skeleton-title {
    height: 24px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.skeleton-image {
    height: 200px;
    border-radius: 12px;
}

/* SMALLER CARDS */
.products-grid {
    grid-template-columns: repeat(auto-fill, minmax(225px, 1fr)) !important;
    gap: 16px !important;
}

.product-image {
    height: 350px !important;
}

.product-info {
    padding: 16px !important;
}

.product-info h3 {
    font-size: 15px !important;
    min-height: 40px !important;
}

.product-description {
    font-size: 12px !important;
    min-height: 36px !important;
}

.product-price {
    font-size: 20px !important;
}

.product-badge {
    padding: 4px 10px !important;
    font-size: 10px !important;
}

/* PRODUCT DETAIL SMALLER */
.product-detail {
    padding: 30px !important;
    gap: 30px !important;
}

.product-detail-info h1 {
    font-size: 24px !important;
    margin-bottom: 15px !important;
}

.product-type-badge {
    padding: 6px 14px !important;
    font-size: 12px !important;
    margin-bottom: 15px !important;
}

.product-price-large {
    font-size: 32px !important;
    margin-bottom: 20px !important;
}

/* WISHLIST BUTTON */
.wishlist-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    z-index: 3;
    transition: all 0.3s;
}

.wishlist-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
}

.wishlist-btn.active {
    background: var(--primary);
    border-color: var(--primary);
}




/* أيقونة السلة في الكروت */
.btn-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
}

.btn-icon.cart-icon {
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.2), rgba(255, 165, 2, 0.2));
    border-color: var(--primary);
}

.btn-icon.cart-icon:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.btn-icon.wishlist-icon {
    color: #ef4444;
}

.btn-icon.wishlist-icon:hover {
    background: #ef4444;
    color: white;
}


/* ============================================
   ENHANCED VISUAL EFFECTS
   ============================================ */

/* Smooth Page Transitions */
main {
    animation: pageLoad 0.4s ease-out;
}

@keyframes pageLoad {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Product Cards */
.product-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    transform: translateY(-12px) scale(1.03);
}

/* Glowing Buttons */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    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;
}

.btn-primary:hover::after {
    width: 300px;
    height: 300px;
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Neon Glow */
.neon-glow {
    text-shadow: 
        0 0 10px rgba(255, 71, 87, 0.8),
        0 0 20px rgba(255, 71, 87, 0.6),
        0 0 30px rgba(255, 71, 87, 0.4);
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    z-index: 9999;
    transition: width 0.1s ease;
}
