/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #0a0a0f;
    --surface: #12121a;
    --surface2: #1a1a26;
    --border: #2a2a3a;
    --text: #e8e8f0;
    --muted: #6b6b80;
    --accent: #a855f7;
    --accent2: #d946ef;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --whatsapp: #25d366;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 4px 24px rgba(0,0,0,0.4);
    --shadow-accent: 0 0 20px rgba(168,85,247,0.3);
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Tajawal', 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.ltr { font-family: 'Inter', 'Tajawal', sans-serif; direction: ltr; }
body.rtl { font-family: 'Tajawal', 'Inter', sans-serif; direction: rtl; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
main { flex: 1; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
::selection { background: rgba(168,85,247,0.3); color: #fff; }

/* ===== TYPOGRAPHY ===== */
h1,h2,h3,h4,h5 { color: var(--text); font-weight: 700; line-height: 1.3; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: 1.3rem; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: inherit; font-size: 0.95rem; font-weight: 600;
    padding: 12px 24px; border-radius: var(--radius);
    border: none; cursor: pointer; transition: all 0.2s;
    text-decoration: none; white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff;
    box-shadow: 0 0 20px rgba(168,85,247,0.3);
}
.btn-primary:hover { box-shadow: 0 0 30px rgba(168,85,247,0.5); filter: brightness(1.1); }

.btn-secondary {
    background: rgba(255,255,255,0.05);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: var(--accent); }

.btn-whatsapp {
    background: var(--whatsapp);
    color: #fff;
    box-shadow: 0 0 20px rgba(37,211,102,0.3);
}
.btn-whatsapp:hover { filter: brightness(1.1); box-shadow: 0 0 30px rgba(37,211,102,0.5); }

.btn-danger { background: rgba(239,68,68,0.15); color: var(--error); border: 1px solid rgba(239,68,68,0.3); }
.btn-danger:hover { background: rgba(239,68,68,0.25); }

.btn-success { background: rgba(16,185,129,0.15); color: var(--success); border: 1px solid rgba(16,185,129,0.3); }

.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.1rem; }
.btn-full { width: 100%; justify-content: center; }

/* ===== INPUTS ===== */
.input, .select, .textarea {
    width: 100%; background: rgba(255,255,255,0.05);
    border: 1px solid var(--border); color: var(--text);
    padding: 12px 16px; border-radius: var(--radius);
    font-family: inherit; font-size: 0.95rem;
    outline: none; transition: all 0.2s;
}
.input:focus, .select:focus, .textarea:focus {
    border-color: rgba(168,85,247,0.6);
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 0 3px rgba(168,85,247,0.1);
}
.input::placeholder, .textarea::placeholder { color: rgba(255,255,255,0.3); }
.textarea { resize: vertical; min-height: 120px; }
.select option { background: var(--surface2); }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-bottom: 6px; font-weight: 500; }
.form-hint { color: var(--muted); font-size: 0.8rem; margin-top: 4px; }

/* ===== CARDS ===== */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s;
}
.card:hover { border-color: rgba(168,85,247,0.3); box-shadow: 0 8px 32px rgba(168,85,247,0.1); }

/* ===== BADGES ===== */
.badge {
    display: inline-flex; align-items: center;
    font-size: 0.75rem; font-weight: 600;
    padding: 4px 10px; border-radius: 20px;
}
.badge-purple { background: rgba(168,85,247,0.15); color: #c084fc; border: 1px solid rgba(168,85,247,0.3); }
.badge-green { background: rgba(16,185,129,0.15); color: #34d399; border: 1px solid rgba(16,185,129,0.3); }
.badge-amber { background: rgba(245,158,11,0.15); color: #fbbf24; border: 1px solid rgba(245,158,11,0.3); }
.badge-red { background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.3); }
.badge-featured { background: linear-gradient(135deg, rgba(168,85,247,0.3), rgba(217,70,239,0.3)); color: #e879f9; border: 1px solid rgba(217,70,239,0.4); }

/* ===== HEADER ===== */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(10,10,15,0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex; align-items: center;
    justify-content: space-between;
    height: 64px; gap: 20px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon {
    width: 38px; height: 38px; border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 15px rgba(168,85,247,0.4);
    flex-shrink: 0;
}
.logo-text { font-size: 1.2rem; font-weight: 800; color: #fff; }
.logo-text span { color: var(--accent); }

.main-nav { display: flex; gap: 4px; }
.main-nav a {
    padding: 8px 16px; border-radius: 8px;
    font-size: 0.9rem; color: rgba(255,255,255,0.6);
    transition: all 0.2s;
}
.main-nav a:hover { color: #fff; background: rgba(255,255,255,0.05); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.lang-btn {
    padding: 7px 14px; border-radius: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    font-size: 0.85rem; color: rgba(255,255,255,0.7);
    transition: all 0.2s; cursor: pointer;
}
.lang-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }

.cart-btn {
    position: relative; padding: 8px;
    color: rgba(255,255,255,0.7); transition: color 0.2s;
}
.cart-btn:hover { color: #fff; }
.cart-badge {
    position: absolute; top: 0; right: 0;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--accent); color: #fff;
    font-size: 0.7rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.rtl .cart-badge { right: auto; left: 0; }

.mobile-menu-btn { display: none; background: none; border: none; color: rgba(255,255,255,0.7); cursor: pointer; padding: 6px; }
.mobile-nav { display: none; padding: 12px 0; border-top: 1px solid var(--border); flex-direction: column; gap: 4px; }
.mobile-nav a { padding: 10px 12px; border-radius: 8px; color: rgba(255,255,255,0.7); font-size: 0.95rem; transition: all 0.2s; }
.mobile-nav a:hover { color: #fff; background: rgba(255,255,255,0.05); }

/* ===== FLASH MESSAGE ===== */
.flash-message { padding: 14px 0; font-size: 0.9rem; font-weight: 500; }
.flash-success { background: rgba(16,185,129,0.15); color: #34d399; border-bottom: 1px solid rgba(16,185,129,0.2); }
.flash-error { background: rgba(239,68,68,0.15); color: #f87171; border-bottom: 1px solid rgba(239,68,68,0.2); }
.flash-info { background: rgba(168,85,247,0.15); color: #c084fc; border-bottom: 1px solid rgba(168,85,247,0.2); }

/* ===== HERO ===== */
.hero {
    min-height: 85vh; display: flex; align-items: center;
    position: relative; overflow: hidden;
    background: radial-gradient(ellipse at 40% 50%, rgba(168,85,247,0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(217,70,239,0.06) 0%, transparent 50%);
}
.hero-content { text-align: center; max-width: 800px; margin: 0 auto; padding: 60px 20px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(168,85,247,0.1); border: 1px solid rgba(168,85,247,0.2);
    color: #c084fc; font-size: 0.85rem; padding: 6px 16px;
    border-radius: 20px; margin-bottom: 24px;
}
.hero-badge .dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; animation: pulse 2s infinite; }
.hero h1 { margin-bottom: 20px; }
.hero h1 span { background: linear-gradient(135deg, var(--accent), var(--accent2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { font-size: 1.15rem; color: rgba(255,255,255,0.6); max-width: 560px; margin: 0 auto 36px; }
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; justify-content: center; margin-top: 60px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 2rem; font-weight: 800; color: #fff; line-height: 1; }
.hero-stat .label { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { margin-bottom: 10px; }
.section-header p { color: rgba(255,255,255,0.5); font-size: 1.05rem; }
.section-header-row { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; flex-wrap: wrap; gap: 16px; }

/* ===== PRODUCT GRID ===== */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }

/* ===== PRODUCT CARD ===== */
.product-card { display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-4px); }
.product-card .card-img {
    position: relative; aspect-ratio: 16/10;
    overflow: hidden; background: var(--surface2);
}
.product-card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.product-card:hover .card-img img { transform: scale(1.05); }
.card-img-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    opacity: 0; transition: opacity 0.3s;
    display: flex; align-items: flex-end; padding: 16px; gap: 8px;
}
.product-card:hover .card-img-overlay { opacity: 1; }
.card-featured-badge { position: absolute; top: 12px; right: 12px; }
.rtl .card-featured-badge { right: auto; left: 12px; }

.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card-category { margin-bottom: 8px; }
.card-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: #fff; transition: color 0.2s; }
.product-card:hover .card-title { color: var(--accent); }
.card-desc { font-size: 0.875rem; color: rgba(255,255,255,0.5); line-height: 1.6; flex: 1; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.card-price { font-size: 1.5rem; font-weight: 800; color: #fff; }
.card-downloads { font-size: 0.75rem; color: var(--muted); display: flex; align-items: center; gap: 4px; margin-top: 8px; border-top: 1px solid var(--border); padding-top: 10px; }

/* ===== CATEGORIES ===== */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.category-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 32px 20px; border-radius: var(--radius-lg);
    border: 1px solid; text-align: center;
    transition: all 0.3s; cursor: pointer; text-decoration: none;
}
.category-card:hover { transform: scale(1.05); }
.category-card .cat-icon { font-size: 2.5rem; margin-bottom: 12px; }
.category-card .cat-label { font-weight: 600; font-size: 0.95rem; }
.cat-ecommerce { background: linear-gradient(135deg, rgba(16,185,129,0.1), rgba(6,182,212,0.1)); border-color: rgba(16,185,129,0.2); color: #34d399; }
.cat-landing { background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(99,102,241,0.1)); border-color: rgba(59,130,246,0.2); color: #60a5fa; }
.cat-dashboard { background: linear-gradient(135deg, rgba(168,85,247,0.1), rgba(217,70,239,0.1)); border-color: rgba(168,85,247,0.2); color: #c084fc; }
.cat-portfolio { background: linear-gradient(135deg, rgba(245,158,11,0.1), rgba(249,115,22,0.1)); border-color: rgba(245,158,11,0.2); color: #fbbf24; }

/* ===== SHOP PAGE ===== */
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; }
.shop-sidebar { position: sticky; top: 84px; }
.sidebar-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.sidebar-card h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 12px; }
.sidebar-links { display: flex; flex-direction: column; gap: 2px; }
.sidebar-link {
    display: flex; align-items: center; justify-content: space-between;
    padding: 9px 12px; border-radius: 8px; font-size: 0.9rem;
    color: rgba(255,255,255,0.6); transition: all 0.2s; cursor: pointer;
    text-decoration: none;
}
.sidebar-link:hover { color: #fff; background: rgba(255,255,255,0.05); }
.sidebar-link.active { color: #c084fc; background: rgba(168,85,247,0.1); }
.search-form { display: flex; gap: 8px; margin-bottom: 24px; }
.shop-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }

/* ===== PRODUCT PAGE ===== */
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.product-images {}
.main-image { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 16/10; background: var(--surface2); }
.main-image img { width: 100%; height: 100%; object-fit: cover; }
.image-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb {
    width: 72px; height: 50px; border-radius: 8px; overflow: hidden;
    border: 2px solid var(--border); cursor: pointer; transition: all 0.2s;
    background: var(--surface2);
}
.thumb:hover, .thumb.active { border-color: var(--accent); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-info {}
.product-info .breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--muted); margin-bottom: 16px; flex-wrap: wrap; }
.product-info .breadcrumb a:hover { color: var(--accent); }
.product-title { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 12px; }
.product-price-box { display: flex; align-items: center; gap: 16px; margin: 20px 0; }
.product-price { font-size: 2.5rem; font-weight: 800; color: #fff; }
.product-desc { color: rgba(255,255,255,0.6); line-height: 1.8; margin-bottom: 24px; }
.product-features h3 { font-size: 1rem; margin-bottom: 14px; }
.feature-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.feature-item { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: rgba(255,255,255,0.7); }
.feature-icon { width: 20px; height: 20px; background: rgba(16,185,129,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--success); font-size: 0.7rem; }
.product-actions { display: flex; flex-direction: column; gap: 12px; }

/* Demo iframe */
.demo-section { margin-top: 60px; }
.demo-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; }
.browser-mockup {
    border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
    background: var(--surface2);
}
.browser-bar {
    background: var(--surface); padding: 10px 16px;
    display: flex; align-items: center; gap: 12px;
    border-bottom: 1px solid var(--border);
}
.browser-dots { display: flex; gap: 6px; }
.browser-dots span { width: 10px; height: 10px; border-radius: 50%; }
.browser-dots span:nth-child(1) { background: #ff5f57; }
.browser-dots span:nth-child(2) { background: #febc2e; }
.browser-dots span:nth-child(3) { background: #28c840; }
.browser-url { flex: 1; background: var(--bg); border-radius: 6px; padding: 5px 12px; font-size: 0.8rem; color: var(--muted); font-family: monospace; }
.demo-iframe { width: 100%; height: 500px; border: none; display: block; }

/* ===== CART ===== */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.cart-item { display: flex; align-items: center; gap: 16px; padding: 16px; border-bottom: 1px solid var(--border); }
.cart-item:last-child { border-bottom: none; }
.cart-item-img { width: 80px; height: 56px; border-radius: 8px; overflow: hidden; background: var(--surface2); flex-shrink: 0; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-title { font-weight: 600; font-size: 0.95rem; margin-bottom: 4px; }
.cart-item-price { font-weight: 700; color: #fff; white-space: nowrap; }
.cart-empty { text-align: center; padding: 80px 20px; }
.cart-empty .empty-icon { font-size: 4rem; margin-bottom: 16px; }
.order-summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; position: sticky; top: 84px; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 0.9rem; color: rgba(255,255,255,0.6); }
.summary-total { border-top: 1px solid var(--border); padding-top: 16px; margin-top: 4px; display: flex; justify-content: space-between; }
.summary-total .label { font-weight: 700; font-size: 1rem; }
.summary-total .amount { font-size: 1.5rem; font-weight: 800; }

/* ===== FOOTER ===== */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding: 60px 0 40px; }
.footer-brand p { color: rgba(255,255,255,0.5); font-size: 0.9rem; margin: 12px 0 20px; max-width: 300px; line-height: 1.7; }
.footer-links h4 { color: #fff; font-size: 0.9rem; margin-bottom: 16px; }
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,0.5); font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding: 20px 0; text-align: center; color: rgba(255,255,255,0.3); font-size: 0.85rem; }
.whatsapp-float-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--whatsapp); color: #fff; padding: 10px 18px; border-radius: var(--radius); font-size: 0.9rem; font-weight: 600; transition: all 0.2s; }
.whatsapp-float-btn:hover { filter: brightness(1.1); }

/* ===== WHATSAPP FLOATING ===== */
.whatsapp-floating {
    position: fixed; bottom: 28px;
    right: 28px;
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--whatsapp); color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    z-index: 999; transition: all 0.3s;
    animation: bounce 3s infinite;
}
.rtl .whatsapp-floating { right: auto; left: 28px; }
.whatsapp-floating:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.6); }

/* ===== ADMIN ===== */
.admin-layout { display: flex; min-height: calc(100vh - 64px); }
.admin-sidebar {
    width: 240px; flex-shrink: 0;
    background: var(--surface); border-left: 1px solid var(--border);
    padding: 24px 16px; position: sticky; top: 64px;
    height: calc(100vh - 64px); overflow-y: auto;
}
.rtl .admin-sidebar { border-left: none; border-right: 1px solid var(--border); }
.ltr .admin-sidebar { border-left: none; border-right: 1px solid var(--border); }
.admin-main { flex: 1; padding: 32px; overflow-x: auto; }
.admin-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 24px; }
.admin-nav a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-radius: 10px;
    font-size: 0.9rem; color: rgba(255,255,255,0.6);
    transition: all 0.2s; text-decoration: none;
}
.admin-nav a:hover { color: #fff; background: rgba(255,255,255,0.05); }
.admin-nav a.active { color: #c084fc; background: rgba(168,85,247,0.1); }
.admin-nav .nav-divider { height: 1px; background: var(--border); margin: 8px 0; }
.admin-info { background: rgba(255,255,255,0.03); border-radius: 10px; padding: 12px; margin-bottom: 8px; }
.admin-info .admin-email { font-size: 0.8rem; color: var(--muted); word-break: break-all; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 32px; }
.stat-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 20px;
    display: flex; align-items: flex-start; justify-content: space-between;
}
.stat-label { font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; }
.stat-value { font-size: 2rem; font-weight: 800; color: #fff; }
.stat-icon { font-size: 2rem; }

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { text-align: right; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--border); font-weight: 600; }
.ltr .admin-table th { text-align: left; }
.admin-table td { padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,0.04); vertical-align: middle; }
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }
.admin-table .product-thumb { width: 60px; height: 40px; border-radius: 6px; object-fit: cover; background: var(--surface2); }

.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 16px; }
.page-header h1 { font-size: 1.8rem; }

.upload-area {
    border: 2px dashed var(--border); border-radius: var(--radius);
    padding: 32px; text-align: center; cursor: pointer;
    transition: all 0.2s; background: rgba(255,255,255,0.02);
}
.upload-area:hover { border-color: var(--accent); background: rgba(168,85,247,0.05); }
.upload-area .upload-icon { font-size: 2rem; margin-bottom: 8px; }
.upload-area p { color: var(--muted); font-size: 0.85rem; }
.upload-preview { margin-top: 12px; }
.upload-preview img { max-width: 200px; border-radius: 8px; border: 1px solid var(--border); }

.features-list-admin { display: flex; flex-direction: column; gap: 8px; }
.feature-row { display: flex; gap: 8px; align-items: center; }
.feature-row .btn-danger { padding: 8px 12px; font-size: 0.8rem; }

/* ===== LOGIN PAGE ===== */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at 50% 50%, rgba(168,85,247,0.06) 0%, transparent 60%); }
.login-box { width: 100%; max-width: 420px; padding: 20px; }
.login-logo { text-align: center; margin-bottom: 32px; }
.login-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; }
.login-card h2 { text-align: center; margin-bottom: 6px; }
.login-card .subtitle { text-align: center; color: var(--muted); font-size: 0.9rem; margin-bottom: 28px; }

/* ===== ALERTS ===== */
.alert { padding: 14px 18px; border-radius: var(--radius); font-size: 0.9rem; margin-bottom: 20px; }
.alert-error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.2); color: #f87171; }
.alert-success { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.2); color: #34d399; }
.alert-info { background: rgba(168,85,247,0.1); border: 1px solid rgba(168,85,247,0.2); color: #c084fc; }

/* ===== CTA ===== */
.cta-section {
    background: linear-gradient(135deg, rgba(168,85,247,0.15), rgba(217,70,239,0.1));
    border: 1px solid rgba(168,85,247,0.2); border-radius: 24px;
    padding: 60px 40px; text-align: center; margin: 40px 0;
}
.cta-section h2 { margin-bottom: 12px; }
.cta-section p { color: rgba(255,255,255,0.6); margin-bottom: 28px; font-size: 1.05rem; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 80px 20px; }
.empty-state .empty-icon { font-size: 4rem; margin-bottom: 16px; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--muted); }

/* ===== BREADCRUMB ===== */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--muted); margin-bottom: 24px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { opacity: 0.4; }

/* ===== PAGINATION ===== */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }
.page-link {
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    border-radius: 10px; font-size: 0.9rem; font-weight: 500;
    background: var(--surface); border: 1px solid var(--border);
    color: rgba(255,255,255,0.6); transition: all 0.2s; text-decoration: none;
}
.page-link:hover { color: #fff; border-color: var(--accent); }
.page-link.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ===== ANIMATIONS ===== */
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { animation: fadeIn 0.5s ease-out forwards; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .product-layout { grid-template-columns: 1fr; }
    .shop-layout { grid-template-columns: 1fr; }
    .shop-sidebar { position: static; }
    .cart-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; height: auto; position: static; display: flex; flex-wrap: wrap; gap: 8px; padding: 16px; }
    .admin-nav { flex-direction: row; flex-wrap: wrap; margin-top: 0; }
}
@media (max-width: 768px) {
    .main-nav { display: none; }
    .mobile-menu-btn { display: block; }
    .mobile-nav.open { display: flex; }
    .hero { min-height: auto; }
    .hero-btns { flex-direction: column; align-items: center; }
    .hero-stats { gap: 24px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-main { padding: 16px; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 2rem; }
    .product-price { font-size: 2rem; }
}
