:root {
    /* Color Palette */
    --bg-dark: #06080C;
    --bg-card: #0A0E17;
    --bg-lighter: #111827;
    --accent-primary: #00F0FF;
    --accent-secondary: #0070F3;
    --accent-hover: #38BDF8;
    --text-main: #FFFFFF;
    --text-muted: #9CA3AF;
    --danger: #EF4444;
    --success: #10B981;
    
    /* Typography */
    --font-en: 'Inter', system-ui, sans-serif;
    --font-ar: 'Tajawal', system-ui, sans-serif;
    
    /* Effects */
    --glass-bg: rgba(10, 14, 23, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --neon-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Eco Mode overrides (removes heavy effects) */
body.eco-mode .glass { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg-card); }
body.eco-mode .shadow-neon { box-shadow: none; border: 1px solid var(--accent-primary); }
body.eco-mode .tilt-card, body.eco-mode .tilt-card-subtle { transform: none !important; transition: none; }
body.eco-mode .neon-text { background: none; -webkit-text-fill-color: var(--accent-primary); color: var(--accent-primary); }

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-dark); color: var(--text-main);
    font-family: var(--font-en); line-height: 1.5; overflow-x: hidden;
}
body[dir="rtl"] { font-family: var(--font-ar); }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button, input, select { font-family: inherit; }

/* Custom Scrollbars */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--bg-lighter); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-secondary); }

/* Utilities */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 10; }
.glass {
    background: var(--glass-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border); border-radius: 16px; position: relative;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}
.neon-text {
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: bold;
}
.shadow-neon { box-shadow: var(--neon-shadow); }
.icon { width: 20px; height: 20px; }
.text-muted { color: var(--text-muted); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }

/* Skeleton Loader */
.skeleton-wrapper:empty { 
    height: 200px; border-radius: 16px;
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-lighter) 50%, var(--bg-card) 75%);
    background-size: 200% 100%; animation: skeletonLoading 1.5s infinite;
}
@keyframes skeletonLoading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* 3D Tilt Physics (Preserved from V2) */
.tilt-card { transition: transform 0.1s; transform-style: preserve-3d; perspective: 1000px; }
.tilt-card:hover { z-index: 20; border-color: var(--accent-primary); box-shadow: 0 0 20px rgba(0,240,255,0.15); }
.tilt-card-subtle { transition: transform 0.1s; transform-style: preserve-3d; }

/* Ticker */
.top-ticker { background: var(--accent-secondary); color: white; font-weight: bold; padding: 6px 0; font-size: 0.9rem; }

/* Header */
.glass-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(6, 8, 12, 0.85); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
}
.header-container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; flex-direction: row; }
.brand .logo-text { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.5px; }
.d7 { color: var(--accent-primary); font-size: 1.9rem; }
.search-bar {
    flex: 1; max-width: 400px; position: relative; display: flex; align-items: center;
    background: var(--bg-card); border: 1px solid var(--glass-border); border-radius: 24px; padding: 0 16px; transition: var(--transition);
}
.search-bar:focus-within { border-color: var(--accent-primary); box-shadow: 0 0 0 2px rgba(0, 240, 255, 0.2); }
.search-bar input { width: 100%; background: transparent; border: none; color: var(--text-main); padding: 10px 12px; outline: none; }
.search-results {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; display: none; flex-direction: column;
    max-height: 400px; overflow-y: auto; z-index: 1001; padding: 8px 0;
}
.search-bar:focus-within .search-results:not(:empty) { display: flex; }
.search-result-item { padding: 12px 16px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--glass-border); transition: var(--transition); cursor: pointer; }
.search-result-item:hover { background: var(--bg-lighter); }
.search-result-item img { width: 40px; height: 40px; border-radius: 8px; object-fit: contain; background: var(--bg-dark); }

.main-nav { display: flex; gap: 24px; flex-direction: row; }
.main-nav a { font-weight: 500; transition: var(--transition); color: var(--text-muted); }
.main-nav a:hover, .main-nav a.active { color: var(--accent-primary); text-shadow: 0 0 10px rgba(0,240,255,0.4); }

.header-actions { display: flex; align-items: center; gap: 12px; flex-direction: row; }
.glass-select { background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border); color: var(--text-main); outline:none; border-radius: 12px; font-weight: 600;}
.glass-select option { background: var(--bg-card); color: var(--text-main); }
.btn-icon {
    background: var(--bg-card); border: 1px solid var(--glass-border); color: var(--text-main);
    width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    transition: var(--transition); font-size: 0.85rem; font-weight: bold; position: relative; cursor: pointer;
}
.btn-icon:hover { background: var(--bg-lighter); border-color: var(--accent-primary); color: var(--accent-primary); }
.cart-btn .badge {
    position: absolute; top: -5px; right: -5px; background: var(--accent-secondary); color: white;
    font-size: 0.7rem; font-weight: bold; width: 20px; height: 20px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #000; border: none; padding: 10px 24px; border-radius: 24px; font-weight: 700; transition: var(--transition); cursor: pointer;
}
.btn-primary:hover { box-shadow: 0 4px 15px rgba(0, 240, 255, 0.4); transform: translateY(-2px); }
.btn-secondary {
    background: var(--bg-card); border: 1px solid var(--accent-primary); color: var(--accent-primary);
    padding: 10px 24px; border-radius: 24px; font-weight: 600; transition: var(--transition); cursor: pointer;
}
.btn-secondary:hover { background: rgba(0, 240, 255, 0.1); }
.mobile-menu-btn { display: none; background: none; border: none; color: var(--text-main); font-size: 2rem; cursor:pointer;}

/* Sections */
.section { padding: 60px 0; position: relative; z-index: 10; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.section-header h2 { font-size: 1.8rem; display: flex; align-items: center; gap: 12px; }
.badge-discount { background: var(--danger); color: white; font-size: 0.8rem; padding: 4px 8px; border-radius: 6px; font-weight: bold; }

/* Redeemer Box */
.redeemer-box { padding: 30px; text-align: center; border-color: var(--accent-primary); background: linear-gradient(180deg, rgba(0,240,255,0.05), transparent); }

/* Product Cards */
.prod-card {
    background: var(--bg-card); border: 1px solid var(--glass-border); border-radius: 16px; overflow: hidden;
    transition: var(--transition); display: flex; flex-direction: column; cursor: pointer;
}
.horizontal-scroll { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 20px; }
.horizontal-scroll .prod-card { min-width: 280px; }
.card-img-wrap { position: relative; padding-top: 100%; overflow: hidden; background: var(--bg-lighter); }
.card-img-wrap img { position: absolute; top: 20px; left: 20px; width: calc(100% - 40px); height: calc(100% - 40px); object-fit: contain; transition: transform 0.5s ease; }
.prod-card:hover .card-img-wrap img { transform: scale(1.1); }
.card-badge {
    position: absolute; top: 12px; left: 12px; background: rgba(239, 68, 68, 0.9); color: white;
    font-size: 0.75rem; font-weight: bold; padding: 4px 10px; border-radius: 12px; z-index: 2;
}
body[dir="rtl"] .card-badge { left: auto; right: 12px; }
.card-info { padding: 20px; flex: 1; display: flex; flex-direction: column; border-top: 1px solid rgba(255,255,255,0.05); }
.card-info h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--text-main); }
.card-price { margin-top: auto; font-size: 1.25rem; font-weight: 700; color: var(--accent-primary); }

/* Quadrant Grid */
.quadrant-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.quadrant-card { padding: 24px; display: flex; flex-direction: column; }
.quadrant-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px solid var(--glass-border); padding-bottom: 12px; }
.quadrant-list { display: flex; flex-direction: column; gap: 12px; }
.q-item { display: flex; align-items: center; gap: 16px; padding: 10px; border-radius: 12px; transition: var(--transition); border: 1px solid transparent; cursor:pointer;}
.q-item:hover { background: rgba(0, 240, 255, 0.05); border-color: rgba(0, 240, 255, 0.1); transform: translateX(5px); }
body[dir="rtl"] .q-item:hover { transform: translateX(-5px); }
.q-item img { width: 50px; height: 50px; border-radius: 12px; object-fit: contain; background: var(--bg-lighter); padding: 4px; border: 1px solid var(--glass-border); }
.q-item-info { flex: 1; }
.q-item-title { font-weight: 600; font-size: 1.05rem; margin-bottom: 4px; }
.q-item-price { color: var(--accent-primary); font-weight: 700; font-size: 0.95rem; }

/* Hero Slider */
.hero-slider { position: relative; height: 500px; overflow: hidden; margin-top: -1px; z-index:1; }
.slider-container { display: flex; height: 100%; transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); }
.slide { min-width: 100%; height: 100%; background-size: cover; background-position: center; position: relative; display: flex; align-items: center; }
.slide-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,8,12,0.95) 0%, rgba(6,8,12,0.6) 50%, rgba(6,8,12,0) 100%); }
body[dir="rtl"] .slide-overlay { background: linear-gradient(270deg, rgba(6,8,12,0.95) 0%, rgba(6,8,12,0.6) 50%, rgba(6,8,12,0) 100%); }
.slide-content { position: relative; z-index: 10; max-width: 600px; }
.slide-content h2 { font-size: 3.5rem; margin-bottom: 16px; line-height: 1.1; text-shadow: 0 4px 12px rgba(0,0,0,0.5); }
.slide-content p { font-size: 1.2rem; margin-bottom: 30px; color: #E5E7EB; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.slider-controls button { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(10,14,23,0.6); backdrop-filter: blur(4px); border: 1px solid var(--glass-border); color: white; width: 48px; height: 48px; border-radius: 50%; font-size: 1.5rem; cursor:pointer;}
.prev-btn { left: 20px; } .next-btn { right: 20px; }
body[dir="rtl"] .prev-btn { left: auto; right: 20px; transform: translateY(-50%) rotate(180deg); }
body[dir="rtl"] .next-btn { right: auto; left: 20px; transform: translateY(-50%) rotate(180deg); }

/* Cart Drawer */
.cart-drawer {
    position: fixed; top: 0; right: 0; width: 450px; max-width: 100vw; height: 100vh;
    background: rgba(6, 8, 12, 0.98); backdrop-filter: blur(16px); z-index: 2002;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); border-left: 1px solid var(--glass-border);
    display: flex; flex-direction: column; transform: translateX(100%);
}
.cart-drawer.active { transform: translateX(0); }
body[dir="rtl"] .cart-drawer { right: auto; left: 0; border-left: none; border-right: 1px solid var(--glass-border); transform: translateX(-100%); }
body[dir="rtl"] .cart-drawer.active { transform: translateX(0); }
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(6px); z-index: 2001; display: none; opacity: 0; transition: opacity 0.3s; }
.cart-overlay.active { display: block; opacity: 1; }
.cart-header { display: flex; justify-content: space-between; align-items: center; padding: 24px; border-bottom: 1px solid var(--glass-border); }
.close-drawer { background: none; border: none; color: var(--text-main); font-size: 2rem; cursor:pointer;}
.cart-items { flex: 1; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.cart-item { display: flex; gap: 16px; align-items: center; padding: 12px; background: var(--bg-card); border-radius: 12px; border: 1px solid var(--glass-border); }
.cart-item img { width: 60px; height: 60px; border-radius: 8px; object-fit: contain; background: var(--bg-lighter); padding: 4px; }
.cart-item-info { flex: 1; }
.cart-item-title { font-weight: 600; margin-bottom: 4px; }
.cart-item-price { color: var(--accent-primary); font-weight: 700; }
.cart-item-remove { color: var(--danger); background: none; border: none; padding: 8px; border-radius: 8px; cursor:pointer; }
.cart-footer { padding: 24px; border-top: 1px solid var(--glass-border); background: var(--bg-dark); }
.cart-total { display: flex; justify-content: space-between; font-size: 1.25rem; margin-bottom: 16px; font-weight: 600; }
.pill-btn { background: var(--bg-card); border: 1px solid var(--glass-border); color: var(--text-main); padding: 8px 16px; border-radius: 30px; cursor: pointer; transition: var(--transition); font-weight: 500; white-space:nowrap; }
.pill-btn.active { background: var(--accent-primary); color: #000; border-color: var(--accent-primary); }

/* Modals & Forms */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.85); backdrop-filter: blur(10px); display: none; align-items: center; justify-content: center; z-index: 3000; opacity: 0; transition: opacity 0.3s; }
.modal-overlay.active { display: flex; opacity: 1; }
.modal-content { padding: 40px; width: 100%; max-width: 500px; position: relative; border-radius: 24px; transform: scale(0.9); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); max-height:90vh; overflow-y:auto;}
.modal-overlay.active .modal-content { transform: scale(1); }
.close-modal { position: absolute; top: 20px; right: 20px; background: none; border: none; color: var(--text-muted); font-size: 1.8rem; cursor:pointer; }
body[dir="rtl"] .close-modal { right: auto; left: 20px; }
.form-input { width: 100%; background: var(--bg-dark); border: 1px solid var(--glass-border); color: var(--text-main); padding: 14px 16px; border-radius: 12px; outline: none; font-size: 1rem; transition: var(--transition); }
.form-input:focus { border-color: var(--accent-primary); box-shadow: 0 0 0 2px rgba(0,240,255,0.2); }
.auth-tabs { display: flex; border-bottom: 1px solid var(--glass-border); margin-bottom: 24px; gap: 10px; }
.auth-tab { background: none; border: none; color: var(--text-muted); padding: 12px 0; margin-right: 20px; font-weight: 600; border-bottom: 2px solid transparent; cursor:pointer;}
body[dir="rtl"] .auth-tab { margin-right: 0; margin-left: 20px; }
.auth-tab.active { color: var(--accent-primary); border-bottom-color: var(--accent-primary); }

/* Toggle Switch */
.toggle-switch { position: relative; display: inline-block; width: 50px; height: 26px; vertical-align:middle; margin-right:10px; }
body[dir="rtl"] .toggle-switch { margin-right:0; margin-left:10px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; inset: 0; background-color: var(--bg-lighter); border: 1px solid var(--glass-border); transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 4px; bottom: 3px; background-color: var(--text-muted); transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: rgba(0, 240, 255, 0.2); border-color: var(--accent-primary); }
input:checked + .slider:before { transform: translateX(24px); background-color: var(--accent-primary); box-shadow: 0 0 10px var(--accent-primary); }

/* Spin Wheel */
.floating-gamify { position: fixed; bottom: 30px; right: 30px; background: var(--bg-card); border: 1px solid var(--accent-primary); color: var(--text-main); padding: 12px 24px; border-radius: 30px; font-weight: bold; font-size: 1.1rem; z-index: 900; cursor:pointer;}
body[dir="rtl"] .floating-gamify { right: auto; left: 30px; }
.spin-wheel-container { position: relative; width: 250px; height: 250px; margin: 0 auto; border-radius: 50%; overflow: hidden; border: 4px solid var(--glass-border); box-shadow: var(--neon-shadow); }
.wheel { width: 100%; height: 100%; border-radius: 50%; transition: transform 4s cubic-bezier(0.1, 0.7, 0.1, 1); background: conic-gradient(#EF4444 0 60deg, #F59E0B 60deg 120deg, #10B981 120deg 180deg, #3B82F6 180deg 240deg, #8B5CF6 240deg 300deg, #EC4899 300deg 360deg); }
.wheel-pointer { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); font-size: 2rem; color: var(--text-main); text-shadow: 0 2px 4px rgba(0,0,0,0.5); z-index: 10; }

/* User Center */
.user-center-layout { display: flex; gap: 30px; }
.user-profile-summary { text-align: center; margin-bottom: 30px; border-bottom: 1px solid var(--glass-border); padding-bottom: 20px; }
.avatar { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)); margin: 0 auto 15px; display: flex; align-items: center; justify-content: center; font-size: 2rem; box-shadow: var(--neon-shadow); }
.vip-badge { display:inline-block; margin-top:10px; padding:4px 12px; border-radius:12px; font-size:0.8rem; font-weight:bold; background: linear-gradient(90deg, #F59E0B, #D97706); color:#fff; }
.xp-bar-wrap { width:100%; height:8px; background:var(--bg-dark); border-radius:4px; margin-top:15px; overflow:hidden; }
.xp-bar { height:100%; background:var(--accent-primary); width:40%; }
.uc-nav li { margin-bottom: 10px; }
.uc-nav a { display: block; padding: 12px 16px; border-radius: 12px; transition: var(--transition); font-weight: 500; }
.uc-nav a:hover, .uc-nav a.active { background: rgba(0,240,255,0.1); color: var(--accent-primary); }
.uc-content { flex: 1; padding: 30px; }
.uc-tab-pane { display: none; }
.uc-tab-pane.active { display: block; animation: fadeIn 0.4s ease; }
.wallet-card { background: linear-gradient(135deg, rgba(0,240,255,0.1), rgba(0,112,243,0.1)); border: 1px solid var(--accent-primary); padding: 40px; border-radius: 20px; display: flex; justify-content: space-between; align-items: center; margin-top: 20px; }

/* Admin Dashboard (Arabic RTL Forced) */
.admin-layout { display: flex; min-height: 100vh; text-align: right; }
.admin-sidebar { width: 260px; padding: 30px 20px; border-left: 1px solid var(--glass-border); }
.admin-nav li { margin-bottom: 10px; }
.admin-nav a { display: block; padding: 12px 16px; border-radius: 12px; transition: var(--transition); color: var(--text-muted); font-weight: 500; }
.admin-nav a:hover, .admin-nav a.active { background: rgba(0,240,255,0.1); color: var(--accent-primary); }
.admin-content { flex: 1; padding: 40px; }
.admin-tab-pane { display: none; }
.admin-tab-pane.active { display: block; animation: fadeIn 0.4s ease; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-top: 20px; }
.kpi-card { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.kpi-card h3 { color: var(--text-muted); font-size: 1rem; font-weight: 500; }

/* Data Tables */
.table-responsive { overflow-x: auto; margin-top: 20px; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 16px; text-align: left; border-bottom: 1px solid var(--glass-border); }
body[dir="rtl"] .data-table th, body[dir="rtl"] .data-table td { text-align: right; }
.data-table th { color: var(--text-muted); font-weight: 500; }
.status-badge { padding: 4px 10px; border-radius: 12px; font-size: 0.85rem; font-weight: bold; }
.status-completed { background: rgba(16, 185, 129, 0.2); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.4); }

/* Footer */
footer { background: #030406; padding-top: 80px; margin-top: 80px; border-top: 1px solid var(--glass-border); position: relative; z-index: 10; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.footer-brand p { color: var(--text-muted); margin-top: 20px; max-width: 320px; font-size: 1.05rem; }
.footer-links { display: flex; flex-direction: column; gap: 16px; }
.footer-links a { color: var(--text-muted); transition: var(--transition); }
.footer-links a:hover { color: var(--accent-primary); }
.payment-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.payment-badges .badge { background: var(--bg-card); padding: 10px 20px; border-radius: 12px; border: 1px solid var(--glass-border); }
.footer-bottom { background: #000; text-align: center; padding: 24px; color: var(--text-muted); border-top: 1px solid var(--glass-border); }

/* Product Page Shared Rules */
.category-layout { display: flex; gap: 30px; margin-top: 40px; }
.sidebar { width: 280px; padding: 24px; height: fit-content; }
.cat-list li { margin-bottom: 10px; }
.cat-list a { display: flex; justify-content: space-between; padding: 12px; border-radius: 12px; transition: var(--transition); }
.cat-list a:hover, .cat-list a.active { background: rgba(0,240,255,0.1); color: var(--accent-primary); }
.cat-count { background: var(--bg-dark); padding: 2px 8px; border-radius: 12px; font-size: 0.8rem; }
.category-content { flex: 1; }
.category-header { display: flex; justify-content: space-between; margin-bottom: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.product-hero { background: var(--bg-card); padding: 80px 0; border-bottom: 1px solid var(--glass-border); overflow: hidden; }
.product-hero-content { display: flex; gap: 50px; align-items: center; }
.product-main-img { width: 250px; height: 250px; object-fit: contain; background: var(--bg-dark); padding: 20px; border-radius: 24px; border: 1px solid rgba(255,255,255,0.1); }
.wishlist-btn { position:absolute; top:10px; right:10px; background:rgba(0,0,0,0.5); border:none; padding:10px; border-radius:50%; font-size:1.2rem; cursor:pointer; z-index:5; }
.product-hero-info h1 { font-size: 3.5rem; margin-bottom: 12px; }
.tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top:20px;}
.tag { background: rgba(0,112,243,0.15); border: 1px solid rgba(0,112,243,0.3); color: var(--accent-primary); padding: 8px 16px; border-radius: 20px; font-size: 0.9rem; }
.product-customizer { display: flex; gap: 40px; margin-top: -40px; position: relative; z-index: 20; padding-bottom: 80px;}
.customizer-panel { flex: 1.5; padding: 40px; }
.customizer-panel h3 { margin: 28px 0 16px; color: #E5E7EB; }
.region-grid, .denom-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 16px; }
.select-btn { background: var(--bg-dark); border: 1px solid var(--glass-border); color: var(--text-main); padding: 16px; border-radius: 12px; cursor: pointer; text-align:center; }
.select-btn.active { border-color: var(--accent-primary); color: var(--accent-primary); box-shadow: 0 4px 12px rgba(0,240,255,0.1); }
.purchase-summary { margin-top: 40px; border-top: 1px solid var(--glass-border); padding-top: 30px; }
.price-calc { display: flex; justify-content: space-between; align-items: center; font-size: 1.2rem; margin-bottom: 30px; }
.price-calc .total-price { font-size: 2.8rem; }
.action-buttons { display: flex; gap: 20px; }
.action-buttons button { flex: 1; padding: 18px; font-size: 1.15rem; border-radius: 16px; }
.product-tabs { flex: 1; padding: 30px; height: fit-content; }
.tab-headers { display: flex; border-bottom: 1px solid var(--glass-border); margin-bottom: 24px; gap: 10px; }
.tab-btn { background: none; border: none; color: var(--text-muted); padding: 12px 0; margin-right: 20px; cursor:pointer; border-bottom: 2px solid transparent; }
body[dir="rtl"] .tab-btn { margin-right: 0; margin-left: 20px; }
.tab-btn.active { color: var(--accent-primary); border-bottom-color: var(--accent-primary); }
.tab-content { display: none; color: var(--text-muted); }
.tab-content.active { display: block; animation: fadeIn 0.3s ease; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.pulse { animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.4); } 70% { box-shadow: 0 0 0 15px rgba(0, 240, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0); } }

@media (max-width: 992px) {
    .product-customizer { flex-direction: column; margin-top: 20px;}
    .product-tabs { width: 100%; }
    .product-hero-content { flex-direction: column; text-align: center; gap: 30px; }
    .tags { justify-content: center; }
    .user-center-layout, .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--glass-border); }
}
@media (max-width: 768px) {
    .main-nav { display: none; }
    .mobile-menu-btn { display: block; }
    .header-actions { gap: 8px; }
    .search-bar { display: none; }
    .quadrant-grid { grid-template-columns: 1fr; }
    .category-layout { flex-direction: column; }
    .sidebar { width: 100%; }
    .footer-content { grid-template-columns: 1fr; gap: 40px; }
    .action-buttons { flex-direction: column; }
}
