/* ================================================
   KM Beauty CMS - Styles principaux
   Palette: Or #C8A97E / Noir #1a1a1a / Blanc #fff
   ================================================ */

:root {
  --gold: #C8A97E;
  --gold-light: #e0c9a6;
  --gold-dark: #a8895e;
  --black: #1a1a1a;
  --black-soft: #2d2d2d;
  --white: #ffffff;
  --cream: #f9f4ef;
  --cream-dark: #f0e8de;
  --gray: #888;
  --gray-light: #f5f5f5;
  --text: #333;
  --border: #e8e0d5;
  --shadow: 0 4px 20px rgba(200,169,126,0.15);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --radius: 4px;
  --radius-md: 8px;
  --transition: 0.3s ease;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--white); line-height: 1.7; }
body[dir="rtl"] { font-family: 'Noto Sans Arabic', 'Inter', sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-dark); }
ul { list-style: none; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; font-weight: 700; line-height: 1.3; color: var(--black); }
body[dir="rtl"] h1, body[dir="rtl"] h2, body[dir="rtl"] h3 { font-family: 'Noto Sans Arabic', serif; }
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.8rem); }
h4 { font-size: 1.2rem; }

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.bg-cream { background: var(--cream); }
.bg-black { background: var(--black); color: var(--white); }

/* Section title */
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { color: var(--black); margin-bottom: 12px; }
.section-title::after { content: ''; display: block; width: 60px; height: 2px; background: var(--gold); margin: 16px auto 0; }
.section-title p { color: var(--gray); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* Grid */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border: none; border-radius: var(--radius); cursor: pointer;
  font-family: inherit; font-size: 0.9rem; font-weight: 600; letter-spacing: 0.5px;
  text-transform: uppercase; transition: all var(--transition); white-space: nowrap;
}
.btn-primary { background: var(--gold); color: var(--white); }
.btn-primary:hover { background: var(--gold-dark); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-secondary { background: transparent; color: var(--gold); border: 1.5px solid var(--gold); }
.btn-secondary:hover { background: var(--gold); color: var(--white); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--black-soft); color: var(--white); }
.btn-sm { padding: 9px 20px; font-size: 0.8rem; }
.btn-lg { padding: 18px 48px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(26,26,26,0.97); backdrop-filter: blur(10px);
  padding: 0; transition: all var(--transition);
  border-bottom: 1px solid rgba(200,169,126,0.2);
}
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 70px; }
.nav-brand { display: flex; align-items: center; gap: 4px; }
.brand-km { color: var(--gold); font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; }
.brand-beauty { color: var(--white); font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 400; letter-spacing: 3px; }
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-link { color: rgba(255,255,255,0.8); padding: 8px 14px; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.3px; border-radius: var(--radius); transition: all var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--gold); }
.nav-cta { background: var(--gold); color: var(--white) !important; padding: 8px 18px; }
.nav-cta:hover { background: var(--gold-dark); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 5px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--white); margin: 5px 0; transition: var(--transition); }
.lang-switcher { display: flex; gap: 6px; }
.lang-btn { color: rgba(255,255,255,0.5); font-size: 0.75rem; padding: 4px 8px; border: 1px solid rgba(255,255,255,0.2); border-radius: 3px; font-weight: 600; letter-spacing: 0.5px; transition: all var(--transition); }
.lang-btn:hover, .lang-btn.active { color: var(--gold); border-color: var(--gold); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden; background: var(--black);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(26,26,26,0.7) 0%, rgba(26,26,26,0.3) 100%); }
.hero-content { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 0 24px 0; padding-top: 70px; }
.hero-content h1 { color: var(--white); line-height: 1.1; margin-bottom: 24px; }
.hero-content h1 em { color: var(--gold); font-style: normal; }
.hero-content p { color: rgba(255,255,255,0.85); font-size: 1.15rem; max-width: 550px; margin-bottom: 40px; }
.hero-content strong { color: var(--gold); }

/* ===== CARDS ===== */
.card { background: var(--white); border-radius: var(--radius-md); overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.06); transition: all var(--transition); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-img { width: 100%; height: 250px; object-fit: cover; }
.card-body { padding: 24px; }
.card-title { font-size: 1.2rem; margin-bottom: 8px; color: var(--black); }
.card-text { color: var(--gray); font-size: 0.9rem; margin-bottom: 16px; }
.card-price { font-size: 1.1rem; font-weight: 700; color: var(--gold); }
.card-price .original { text-decoration: line-through; color: var(--gray); font-size: 0.9rem; font-weight: 400; margin-left: 8px; }

/* ===== SERVICE CARDS ===== */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.service-card { position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 3/4; cursor: pointer; }
.service-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.service-card:hover img { transform: scale(1.05); }
.service-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,26,26,0.9) 0%, rgba(26,26,26,0) 50%); display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; }
.service-card-overlay h4 { color: var(--white); font-size: 1.3rem; margin-bottom: 6px; }
.service-card-overlay p { color: rgba(255,255,255,0.75); font-size: 0.85rem; margin-bottom: 16px; }
.service-card-overlay .btn { width: fit-content; }

/* ===== PRODUCTS ===== */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.product-card { background: var(--white); border-radius: var(--radius-md); overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.06); transition: all var(--transition); border: 1px solid var(--border); }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-card .product-img-wrap { position: relative; height: 260px; overflow: hidden; background: var(--cream); }
.product-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.product-card:hover img { transform: scale(1.06); }
.badge-sale { position: absolute; top: 12px; left: 12px; background: #e74c3c; color: #fff; font-size: 0.75rem; padding: 3px 10px; border-radius: 20px; font-weight: 600; }
.product-info { padding: 18px; }
.product-name { font-size: 1rem; font-weight: 600; margin-bottom: 6px; color: var(--black); }
.product-price { font-size: 1.1rem; color: var(--gold); font-weight: 700; }
.product-price .old-price { text-decoration: line-through; color: var(--gray); font-size: 0.85rem; margin-left: 6px; font-weight: 400; }
.product-stock { font-size: 0.8rem; margin-top: 4px; }
.stock-in { color: #27ae60; }
.stock-out { color: #e74c3c; }

/* Single product */
.product-single { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding-top: 100px; }
.product-gallery-main { border-radius: var(--radius-md); overflow: hidden; }
.product-gallery-main img { width: 100%; height: 450px; object-fit: cover; }
.product-gallery-thumbs { display: flex; gap: 10px; margin-top: 10px; }
.product-gallery-thumbs img { width: 80px; height: 80px; object-fit: cover; border-radius: 4px; cursor: pointer; border: 2px solid transparent; transition: border-color var(--transition); }
.product-gallery-thumbs img.active, .product-gallery-thumbs img:hover { border-color: var(--gold); }
.product-detail-title { font-size: 2rem; margin-bottom: 12px; }
.product-detail-price { font-size: 1.8rem; color: var(--gold); font-weight: 700; margin-bottom: 20px; }
.product-detail-desc { color: var(--gray); line-height: 1.8; margin-bottom: 28px; }
.product-qty { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.qty-btn { width: 36px; height: 36px; background: var(--cream); border: 1px solid var(--border); border-radius: 3px; cursor: pointer; font-size: 1.2rem; transition: all var(--transition); }
.qty-btn:hover { background: var(--gold); color: var(--white); border-color: var(--gold); }
.qty-input { width: 60px; text-align: center; border: 1px solid var(--border); height: 36px; border-radius: 3px; font-family: inherit; }

/* ===== GALLERY / BEFORE-AFTER ===== */
.before-after-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.ba-card { border-radius: var(--radius-md); overflow: hidden; background: var(--black); position: relative; }
.ba-slider { position: relative; height: 300px; overflow: hidden; cursor: col-resize; }
.ba-img { width: 100%; height: 100%; object-fit: cover; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 50% 0 0); }
.ba-after { position: absolute; inset: 0; }
.ba-divider { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--gold); transform: translateX(-50%); cursor: col-resize; }
.ba-divider::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 36px; height: 36px; background: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.ba-labels { display: flex; justify-content: space-between; padding: 10px 16px; background: var(--black); }
.ba-labels span { color: var(--white); font-size: 0.8rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }

/* ===== TESTIMONIALS ===== */
.testimonials-track { display: flex; gap: 24px; overflow-x: auto; padding-bottom: 20px; scroll-snap-type: x mandatory; }
.testimonials-track::-webkit-scrollbar { height: 4px; }
.testimonials-track::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }
.testimonial-card { min-width: 280px; background: var(--white); border-radius: var(--radius-md); padding: 28px; box-shadow: var(--shadow); scroll-snap-align: start; border: 1px solid var(--border); }
.testimonial-stars { color: var(--gold); font-size: 1rem; letter-spacing: 2px; margin-bottom: 14px; }
.testimonial-text { color: var(--text); font-size: 0.95rem; font-style: italic; margin-bottom: 18px; line-height: 1.7; }
.testimonial-author { font-weight: 600; color: var(--black); font-size: 0.9rem; }

/* ===== COMPARISON TABLE ===== */
.compare-table { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow); }
.compare-col { padding: 0; }
.compare-col.col-without { background: var(--gray-light); }
.compare-col.col-with { background: var(--black); }
.compare-header { padding: 24px 28px; font-weight: 700; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; }
.col-without .compare-header { color: var(--black); background: #e8e8e8; }
.col-with .compare-header { color: var(--gold); background: var(--black-soft); }
.compare-item { padding: 14px 28px; font-size: 0.9rem; display: flex; align-items: center; gap: 10px; border-top: 1px solid rgba(255,255,255,0.05); }
.col-without .compare-item { color: #666; border-color: #ddd; }
.col-without .compare-item::before { content: '✗'; color: #e74c3c; font-weight: 700; }
.col-with .compare-item { color: rgba(255,255,255,0.85); }
.col-with .compare-item::before { content: '✓'; color: var(--gold); font-weight: 700; }

/* ===== CONTACT FORM ===== */
.contact-form { max-width: 600px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--black); margin-bottom: 7px; text-transform: uppercase; letter-spacing: 0.5px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border);
  border-radius: var(--radius); font-family: inherit; font-size: 0.95rem;
  background: var(--white); color: var(--text); transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,169,126,0.15); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-msg { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 0.9rem; }
.form-msg.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.form-msg.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ===== PARTNERS ===== */
.partners-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 40px; }
.partner-logo { height: 50px; filter: grayscale(1); opacity: 0.5; transition: all var(--transition); }
.partner-logo:hover { filter: grayscale(0); opacity: 1; }

/* ===== STATS ===== */
.stats-row { display: flex; justify-content: center; gap: 60px; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-number { font-size: 2.5rem; font-weight: 700; color: var(--gold); font-family: 'Playfair Display', serif; }
.stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 1px; }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 58px; height: 58px; background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: all var(--transition); animation: pulse-wa 3s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.5); color: #fff; background: #1ebe5c; }
body[dir="rtl"] .whatsapp-float { right: auto; left: 28px; }
@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 35px rgba(37,211,102,0.7); }
}

/* ===== FOOTER ===== */
.footer { background: var(--black); color: rgba(255,255,255,0.75); padding: 70px 0 0; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 2fr 1.5fr 1fr 1fr; gap: 48px; }
.footer-logo { font-size: 1.8rem; font-family: 'Playfair Display', serif; margin-bottom: 16px; }
.footer-logo span { color: var(--gold); }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; color: rgba(255,255,255,0.55); }
.footer h4 { color: var(--gold); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 20px; font-family: 'Inter', sans-serif; font-weight: 700; }
.footer-hours .hours-row { display: flex; justify-content: space-between; font-size: 0.8rem; padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.footer-links ul li { margin-bottom: 8px; }
.footer-links ul a { color: rgba(255,255,255,0.6); font-size: 0.85rem; transition: color var(--transition); }
.footer-links ul a:hover { color: var(--gold); }
.social-links { display: flex; flex-direction: column; gap: 8px; }
.social-link { color: rgba(255,255,255,0.6); font-size: 0.85rem; transition: color var(--transition); }
.social-link:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 24px; text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.35); margin-top: 60px; }

/* ===== ADMIN STYLES ===== */
.admin-body { background: #f0f2f5; font-size: 0.9rem; }
.admin-wrapper { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 260px; background: var(--black); position: fixed; top: 0; left: 0; bottom: 0;
  display: flex; flex-direction: column; z-index: 100; transition: transform var(--transition);
  overflow-y: auto;
}
.sidebar-brand { padding: 24px 20px; border-bottom: 1px solid rgba(200,169,126,0.2); }
.sidebar-brand .brand-name { font-family: 'Playfair Display', serif; font-size: 1.1rem; }
.sidebar-brand .brand-name span { color: var(--gold); }
.sidebar-brand small { color: rgba(255,255,255,0.4); font-size: 0.75rem; }
.sidebar-nav { flex: 1; padding: 16px 0; }
.sidebar-section-title { color: rgba(255,255,255,0.3); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; padding: 12px 20px 6px; }
.sidebar-link {
  display: flex; align-items: center; gap: 12px; padding: 11px 20px;
  color: rgba(255,255,255,0.65); font-size: 0.85rem; font-weight: 500;
  transition: all var(--transition); border-left: 3px solid transparent;
}
.sidebar-link:hover, .sidebar-link.active { color: var(--gold); background: rgba(200,169,126,0.08); border-left-color: var(--gold); }
.sidebar-link .icon { width: 18px; height: 18px; opacity: 0.7; }
.admin-main { margin-left: 260px; flex: 1; min-height: 100vh; }
.admin-topbar {
  background: var(--white); padding: 0 28px; height: 62px; display: flex; align-items: center;
  justify-content: space-between; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.admin-topbar h1 { font-size: 1.25rem; font-family: 'Inter', sans-serif; font-weight: 700; }
.admin-content { padding: 28px; }
.admin-card { background: var(--white); border-radius: var(--radius-md); padding: 24px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); margin-bottom: 24px; border: 1px solid var(--border); }
.admin-card h3 { font-size: 1.05rem; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-bottom: 28px; }
.stat-card { background: var(--white); border-radius: var(--radius-md); padding: 22px; border: 1px solid var(--border); position: relative; overflow: hidden; }
.stat-card::after { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--gold); }
.stat-card h4 { font-size: 0.78rem; color: var(--gray); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; font-family: 'Inter', sans-serif; }
.stat-card .stat-val { font-size: 2rem; font-weight: 700; color: var(--black); font-family: 'Playfair Display', serif; }

/* Tables admin */
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.admin-table th { text-align: left; padding: 12px 16px; background: var(--cream); color: var(--black); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid var(--border); }
.admin-table td { padding: 13px 16px; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
.admin-table tr:hover td { background: rgba(200,169,126,0.04); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.badge-success { background: #d4edda; color: #155724; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-danger { background: #f8d7da; color: #721c24; }
.badge-info { background: #cce5ff; color: #004085; }
.action-btns { display: flex; gap: 6px; }
.btn-icon { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; border: 1px solid var(--border); background: var(--white); color: var(--gray); cursor: pointer; transition: all var(--transition); font-size: 0.9rem; }
.btn-icon:hover { background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn-icon.delete:hover { background: #e74c3c; border-color: #e74c3c; }

/* Upload zone */
.upload-zone {
  border: 2px dashed var(--border); border-radius: var(--radius-md); padding: 40px;
  text-align: center; cursor: pointer; transition: all var(--transition); background: var(--cream);
}
.upload-zone:hover, .upload-zone.drag-over { border-color: var(--gold); background: rgba(200,169,126,0.08); }
.upload-zone .upload-icon { font-size: 2.5rem; color: var(--gold); margin-bottom: 12px; }
.upload-zone p { color: var(--gray); font-size: 0.9rem; }
.upload-zone strong { color: var(--gold); }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.media-item { border-radius: var(--radius); overflow: hidden; border: 2px solid transparent; cursor: pointer; position: relative; transition: border-color var(--transition); }
.media-item:hover, .media-item.selected { border-color: var(--gold); }
.media-item img { width: 100%; height: 120px; object-fit: cover; }
.media-item .media-delete { position: absolute; top: 5px; right: 5px; background: rgba(231,76,60,0.9); color: #fff; border: none; border-radius: 3px; width: 24px; height: 24px; cursor: pointer; font-size: 0.75rem; display: none; }
.media-item:hover .media-delete { display: flex; align-items: center; justify-content: center; }

/* Image preview in forms */
.img-preview-wrap { position: relative; display: inline-block; }
.img-preview { width: 120px; height: 120px; object-fit: cover; border-radius: var(--radius-md); border: 2px solid var(--border); }
.img-preview-remove { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; background: #e74c3c; color: #fff; border-radius: 50%; border: none; cursor: pointer; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-container { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-menu { display: none; position: fixed; top: 70px; left: 0; right: 0; background: var(--black); flex-direction: column; padding: 20px; gap: 4px; }
  .nav-menu.open { display: flex; }
  .nav-toggle { display: block; }
  .hero-content h1 { font-size: 2.5rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-container { grid-template-columns: 1fr; gap: 32px; }
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .compare-table { grid-template-columns: 1fr; }
  .product-single { grid-template-columns: 1fr; gap: 32px; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .stats-row { gap: 30px; }
  .stat-cards { grid-template-columns: 1fr; }
}

/* ===== RTL Support ===== */
body[dir="rtl"] .admin-sidebar { left: auto; right: 0; }
body[dir="rtl"] .admin-main { margin-left: 0; margin-right: 260px; }
body[dir="rtl"] .admin-table th { text-align: right; }
body[dir="rtl"] .sidebar-link { border-left: none; border-right: 3px solid transparent; }
body[dir="rtl"] .sidebar-link:hover, body[dir="rtl"] .sidebar-link.active { border-right-color: var(--gold); border-left: none; }
body[dir="rtl"] .stat-card::after { left: auto; right: 0; }
body[dir="rtl"] .form-group input, body[dir="rtl"] .form-group textarea { text-align: right; }

/* ===== UTILITIES ===== */
.mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; }
.flex { display: flex; } .flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-2 { gap: 8px; } .gap-4 { gap: 16px; }
.d-none { display: none; }
.text-sm { font-size: 0.85rem; } .text-xs { font-size: 0.75rem; }
.fw-600 { font-weight: 600; } .fw-700 { font-weight: 700; }
.color-gray { color: var(--gray); }
.divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
.page-header { padding: 120px 0 60px; background: var(--black); text-align: center; }
.page-header h1 { color: var(--white); }
.page-header p { color: rgba(255,255,255,0.65); max-width: 500px; margin: 12px auto 0; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: rgba(255,255,255,0.5); justify-content: center; margin-top: 16px; }
.breadcrumb a { color: var(--gold); }
.breadcrumb span { color: rgba(255,255,255,0.3); }

/* Loading */
.spinner { width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Toast notifications */
#toast-container { position: fixed; bottom: 100px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast { min-width: 260px; padding: 14px 20px; border-radius: var(--radius-md); color: #fff; font-size: 0.875rem; box-shadow: var(--shadow-lg); animation: slide-in-toast 0.3s ease; display: flex; align-items: center; gap: 10px; }
.toast.success { background: #27ae60; }
.toast.error { background: #e74c3c; }
.toast.info { background: var(--gold); }
@keyframes slide-in-toast { from { transform: translateX(100px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ===== ADDITIONAL PAGE STYLES ===== */

/* Page hero (inner pages) */
.page-hero { position: relative; padding: 140px 0 80px; background: var(--black) center/cover no-repeat; min-height: 380px; display: flex; align-items: center; justify-content: center; text-align: center; }
.page-hero .hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(26,26,26,.85), rgba(26,26,26,.6)); }
.page-hero .hero-content { position: relative; z-index: 1; }
.page-hero .hero-title { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 5vw, 3.5rem); color: #fff; margin-bottom: .75rem; }
.page-hero .hero-subtitle { color: rgba(255,255,255,.7); font-size: 1.1rem; max-width: 550px; margin: 0 auto; }

/* Services full grid */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; }
.service-card-full { background: #111; border-radius: 12px; overflow: hidden; border: 1px solid #222; transition: transform .3s, box-shadow .3s; }
.service-card-full:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(200,169,126,.15); }
.service-card-full .service-img { height: 200px; overflow: hidden; }
.service-card-full .service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.service-card-full:hover .service-img img { transform: scale(1.05); }
.service-card-full .service-body { padding: 1.5rem; }
.service-card-full h3 { color: #fff; font-size: 1.15rem; margin-bottom: .5rem; }
.service-card-full p { color: #aaa; font-size: .9rem; line-height: 1.6; margin-bottom: 1rem; }
.service-meta { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.service-price { color: var(--gold); font-size: 1.1rem; font-weight: 700; }
.service-duration { color: #666; font-size: .85rem; }
.btn-book { display: inline-block; padding: .6rem 1.5rem; background: transparent; border: 1px solid var(--gold); color: var(--gold); border-radius: 6px; font-size: .9rem; text-decoration: none; transition: all .2s; }
.btn-book:hover { background: var(--gold); color: #000; }
.btn-outline { display: inline-block; padding: .5rem 1.25rem; border: 1px solid var(--gold); color: var(--gold); border-radius: 6px; font-size: .85rem; text-decoration: none; transition: all .2s; margin-top: .75rem; }
.btn-outline:hover { background: var(--gold); color: #000; }
.btn-gold { display: inline-block; padding: .9rem 2.5rem; background: var(--gold); color: #000; border-radius: 8px; font-weight: 700; text-decoration: none; transition: opacity .2s; }
.btn-gold:hover { opacity: .85; }

/* Gallery full page */
.gallery-full-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 2rem; }
.gallery-full-item { }
.gallery-item-caption { padding: 1rem 0; text-align: center; }
.gallery-item-caption h4 { color: #fff; margin-bottom: .25rem; }
.gallery-item-caption p { color: var(--gold); font-size: .85rem; }

/* Before/After on full gallery page */
.before-after-slider { position: relative; overflow: hidden; border-radius: 12px; aspect-ratio: 4/3; cursor: ew-resize; }
.ba-before, .ba-after { position: absolute; inset: 0; }
.ba-before img, .ba-after img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-after { clip-path: inset(0 50% 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: var(--gold); transform: translateX(-50%); cursor: ew-resize; }
.ba-handle span { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 36px; height: 36px; background: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #000; font-size: 1rem; }
.ba-handle span::before { content: '◀▶'; font-size: .6rem; }
.ba-label { position: absolute; bottom: 12px; padding: .3rem .8rem; background: rgba(0,0,0,.6); color: #fff; font-size: .8rem; border-radius: 4px; }
.ba-label-before { left: 12px; }
.ba-label-after { right: 12px; }

/* Contact page */
.contact-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; }
.contact-info h2, .contact-form-wrapper h2 { font-size: 1.75rem; color: #fff; margin-bottom: 1.5rem; font-family: 'Playfair Display', serif; }
.info-items { display: flex; flex-direction: column; gap: 1.25rem; }
.info-item { display: flex; gap: 1rem; align-items: flex-start; }
.info-icon { font-size: 1.25rem; margin-top: .1rem; }
.info-item strong { display: block; color: #fff; font-size: .9rem; margin-bottom: .2rem; }
.info-item p { color: #aaa; font-size: .9rem; margin: 0; }
.contact-form-wrapper input, .contact-form-wrapper select, .contact-form-wrapper textarea { background: #111; border-color: #333; color: #fff; }
.contact-form-wrapper input:focus, .contact-form-wrapper select:focus, .contact-form-wrapper textarea:focus { border-color: var(--gold); }

/* Academy programs */
.programs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; margin-top: 2rem; }
.program-card { background: #1a1a1a; border: 1px solid #2a2a2a; border-radius: 12px; padding: 2rem; transition: border-color .3s, transform .3s; text-align: center; }
.program-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.program-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.program-card h3 { color: #fff; margin-bottom: .75rem; }
.program-card p { color: #aaa; font-size: .9rem; line-height: 1.6; }
.program-duration { color: var(--gold); font-size: .85rem; margin-top: .75rem; }

/* CTA Section */
.cta-section { padding: 100px 0; background: linear-gradient(135deg, #111 0%, #1a1a1a 100%); border-top: 1px solid #222; }
.cta-section h2 { font-family: 'Playfair Display', serif; font-size: 2.25rem; color: #fff; margin-bottom: 1rem; }
.cta-section p { color: #aaa; font-size: 1.05rem; margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; }

/* Expertise stats (services page) */
.expertise-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; padding: 3rem; background: #111; border-radius: 12px; border: 1px solid #222; }
.stat-item { }
.stat-number { display: block; font-size: 2.5rem; font-weight: 700; color: var(--gold); font-family: 'Playfair Display', serif; }
.stat-label { display: block; color: #aaa; font-size: .85rem; margin-top: .25rem; }

/* Admin tabs */
.admin-tabs { display: flex; gap: 0; margin-bottom: 1.5rem; border-bottom: 2px solid #2a2a2a; overflow-x: auto; }
.admin-tabs a { padding: .75rem 1.25rem; color: #888; text-decoration: none; font-size: .9rem; border-bottom: 2px solid transparent; margin-bottom: -2px; white-space: nowrap; transition: color .2s, border-color .2s; }
.admin-tabs a:hover { color: #C8A97E; }
.admin-tabs a.active { color: #C8A97E; border-bottom-color: #C8A97E; }

/* Admin alerts */
.alert { padding: .85rem 1.25rem; border-radius: 8px; margin-bottom: 1.5rem; font-size: .9rem; }
.alert-success { background: rgba(39,174,96,.12); border: 1px solid rgba(39,174,96,.3); color: #7ddc9a; }
.alert-error { background: rgba(231,76,60,.12); border: 1px solid rgba(231,76,60,.3); color: #f89898; }
.alert-info { background: rgba(200,169,126,.1); border: 1px solid rgba(200,169,126,.3); color: #C8A97E; }

/* Admin page header */
.admin-page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
.admin-page-header h1 { font-size: 1.5rem; font-weight: 700; color: #fff; }

/* Admin badge colors */
.badge-gold { background: rgba(200,169,126,.2); color: #C8A97E; }
.badge-dark { background: rgba(255,255,255,.1); color: #fff; }
.badge-gray { background: rgba(255,255,255,.06); color: #888; }
.badge-danger { background: rgba(231,76,60,.15); color: #f88; }

/* Btn styles for admin */
.btn-primary { padding: .6rem 1.25rem; background: var(--gold); color: #000; border: none; border-radius: 6px; font-size: .9rem; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block; transition: opacity .2s; }
.btn-primary:hover { opacity: .85; }
.btn-secondary { padding: .6rem 1.25rem; background: transparent; color: #aaa; border: 1px solid #444; border-radius: 6px; font-size: .9rem; cursor: pointer; text-decoration: none; display: inline-block; transition: all .2s; }
.btn-secondary:hover { border-color: #C8A97E; color: #C8A97E; }
.btn-sm { padding: .35rem .8rem; border-radius: 5px; font-size: .8rem; cursor: pointer; text-decoration: none; display: inline-block; background: rgba(255,255,255,.07); color: #ccc; border: 1px solid #333; transition: all .2s; }
.btn-sm:hover { background: rgba(200,169,126,.15); border-color: #C8A97E; color: #C8A97E; }
.btn-danger { background: rgba(231,76,60,.15) !important; color: #f88 !important; border-color: rgba(231,76,60,.3) !important; }
.btn-danger:hover { background: rgba(231,76,60,.3) !important; }
.actions { white-space: nowrap; }

/* Form elements for admin (dark theme) */
.admin-card .form-group label, .admin-card label { color: #aaa; font-size: .875rem; display: block; margin-bottom: .4rem; }
.admin-card input[type=text], .admin-card input[type=email], .admin-card input[type=password], .admin-card input[type=number], .admin-card input[type=url], .admin-card input[type=tel], .admin-card input[type=date], .admin-card select, .admin-card textarea { width: 100%; padding: .7rem 1rem; background: #1a1a1a; border: 1px solid #333; border-radius: 8px; color: #fff; font-size: .9rem; }
.admin-card input:focus, .admin-card select:focus, .admin-card textarea:focus { outline: none; border-color: #C8A97E; }
.admin-card .form-group { margin-bottom: 1.25rem; }
.admin-card .form-actions { display: flex; gap: 1rem; margin-top: 2rem; align-items: center; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.checkbox-label { display: flex; align-items: center; gap: .5rem; color: #ccc; cursor: pointer; }
.checkbox-label input[type=checkbox] { width: auto; }

/* Media grid in admin */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
.media-item { background: #1a1a1a; border: 1px solid #2a2a2a; border-radius: 8px; overflow: hidden; }
.media-item img { width: 100%; height: 130px; object-fit: cover; display: block; }
.media-icon { width: 100%; height: 130px; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: #444; }
.media-info { padding: .75rem; }
.media-name { color: #ccc; font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: .25rem; }
.media-meta { color: #555; font-size: .75rem; margin-bottom: .5rem; }
.media-actions { display: flex; gap: .4rem; }

/* Upload zone (dark) */
.upload-zone { border: 2px dashed #333; border-radius: 8px; padding: 2rem; text-align: center; cursor: pointer; transition: border-color .2s; background: #1a1a1a; }
.upload-zone:hover { border-color: #C8A97E; }
.upload-zone p { color: #666; font-size: .875rem; margin: .5rem 0 0; }
.upload-zone input[type=file] { opacity: 0; position: absolute; }

@media (max-width: 768px) {
    .contact-layout { grid-template-columns: 1fr; }
    .expertise-stats { grid-template-columns: repeat(2, 1fr); }
    .gallery-full-grid { grid-template-columns: 1fr; }
}
