@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #1a237e;
  --primary-light: #3949ab;
  --primary-dark: #0d1453;
  --gold: #ffd700;
  --gold-light: #ffe44d;
  --gold-dark: #c7a600;
  --accent-cyan: #00e5ff;
  --accent-magenta: #e040fb;
  --bg-dark: #0a0e27;
  --bg-card: #111538;
  --bg-card-hover: #191f4a;
  --surface: #141836;
  --text-primary: #f0f0f5;
  --text-secondary: #a0a4c8;
  --text-muted: #6b6f94;
  --success: #00e676;
  --danger: #ff5252;
  --whatsapp: #25d366;
  --facebook: #1877f2;
  --border: rgba(255, 215, 0, 0.1);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-gold: 0 4px 20px rgba(255, 215, 0, 0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg-dark: #f5f7ff;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f2ff;
  --surface: #eef0ff;
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a6a;
  --text-muted: #8a8aaa;
  --border: rgba(26, 35, 126, 0.1);
  --shadow: 0 8px 32px rgba(26, 35, 126, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Cairo', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  direction: rtl;
  overflow-x: hidden;
  line-height: 1.7;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--gold), var(--primary)); border-radius: 4px; }

/* ===== PARTICLE CANVAS ===== */
#particles-canvas {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}

/* ===== HEADER ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10, 14, 39, 0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
[data-theme="light"] .header { background: rgba(245, 247, 255, 0.9); }
.header.scrolled { box-shadow: var(--shadow-gold); }

.header-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 0 2rem; height: 75px;
  display: flex; align-items: center; justify-content: space-between;
}

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-img {
  width: 50px; height: 50px; border-radius: 12px;
  object-fit: contain;
  animation: logoPulse 3s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.4));
  transition: var(--transition);
}
.logo:hover .logo-img { transform: rotate(10deg) scale(1.15); filter: drop-shadow(0 0 16px rgba(255, 215, 0, 0.7)); }
.logo-text { font-size: 1.5rem; font-weight: 800; }
.logo-text span:first-child { color: var(--gold); }
.logo-text span:last-child { color: var(--text-primary); font-weight: 600; font-size: 0.85rem; display: block; margin-top: -6px; }

@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.4)); }
  50% { filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8)); }
}

.nav { display: flex; align-items: center; gap: 2rem; }
.nav-links { display: flex; gap: 1.5rem; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--text-secondary);
  font-weight: 600; font-size: 0.95rem;
  padding: 8px 16px; border-radius: var(--radius-sm);
  transition: var(--transition); position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; right: 0;
  width: 0; height: 2px; background: var(--gold);
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 1rem; }

.theme-toggle, .mobile-toggle {
  width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--gold); cursor: pointer; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.theme-toggle:hover, .mobile-toggle:hover { background: var(--gold); color: var(--bg-dark); transform: rotate(20deg); }
.mobile-toggle { display: none; }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 120px 2rem 80px; text-align: center;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(26, 35, 126, 0.3) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 80%, rgba(255, 215, 0, 0.08) 0%, transparent 40%);
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 900px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px; border-radius: 50px;
  background: rgba(255, 215, 0, 0.1); border: 1px solid rgba(255, 215, 0, 0.2);
  color: var(--gold); font-size: 0.9rem; font-weight: 600;
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.8s ease;
}
.hero-badge i { animation: pulse 2s infinite; }

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 900;
  line-height: 1.3; margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease 0.2s both;
}
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.2rem; color: var(--text-secondary);
  max-width: 700px; margin: 0 auto 2.5rem;
  animation: fadeInUp 0.8s ease 0.4s both;
}

/* ===== SEARCH BAR ===== */
.search-container {
  max-width: 600px; margin: 0 auto; position: relative;
  animation: fadeInUp 0.8s ease 0.6s both;
}
.search-container input {
  width: 100%; padding: 18px 55px 18px 24px;
  border-radius: 50px; border: 2px solid var(--border);
  background: var(--surface); color: var(--text-primary);
  font-family: 'Cairo', sans-serif; font-size: 1rem;
  transition: var(--transition);
}
.search-container input:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.15);
}
.search-container input::placeholder { color: var(--text-muted); }
.search-container .search-icon {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  color: var(--gold); font-size: 1.2rem;
}

/* ===== STATS BAR ===== */
.stats-bar {
  display: flex; justify-content: center; gap: 3rem;
  margin-top: 3rem; animation: fadeInUp 0.8s ease 0.8s both;
}
.stat-item { text-align: center; }
.stat-number {
  font-size: 2rem; font-weight: 900;
  background: linear-gradient(135deg, var(--gold), var(--accent-cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

/* ===== SECTIONS ===== */
.section {
  position: relative; z-index: 2;
  padding: 80px 2rem; max-width: 1400px;
  margin: 0 auto;
}
.section-header { text-align: center; margin-bottom: 3rem; }
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800;
  margin-bottom: 0.8rem;
}
.section-title .highlight {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-subtitle { color: var(--text-secondary); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* ===== CATEGORIES ===== */
.categories-grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 1rem; margin-bottom: 3rem;
}
.cat-btn {
  padding: 10px 24px; border-radius: 50px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-secondary); font-family: 'Cairo', sans-serif;
  font-weight: 600; cursor: pointer; transition: var(--transition);
  font-size: 0.9rem;
}
.cat-btn:hover, .cat-btn.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg-dark); border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}

/* ===== BOOKS GRID ===== */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}
.book-card {
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
  transition: var(--transition); position: relative;
}
.book-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-gold);
  border-color: rgba(255, 215, 0, 0.3);
}
.book-card-img {
  position: relative; height: 320px; overflow: hidden;
  background: var(--surface);
}
.book-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: var(--transition);
}
.book-card:hover .book-card-img img { transform: scale(1.08); }

.book-badge {
  position: absolute; top: 12px; right: 12px;
  padding: 4px 14px; border-radius: 50px;
  font-size: 0.75rem; font-weight: 700;
  z-index: 3;
}
.book-badge.sale { background: var(--danger); color: #fff; }
.book-badge.new { background: var(--gold); color: var(--bg-dark); }
.book-badge.best { background: var(--success); color: var(--bg-dark); }

.book-brand {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 12px; border-radius: 50px;
  background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(8px);
  color: #fff; font-size: 0.75rem; font-weight: 600; z-index: 3;
}

.book-card-body { padding: 1.2rem; }
.book-title {
  font-size: 1.05rem; font-weight: 700;
  margin-bottom: 0.5rem; line-height: 1.4;
}
.book-desc {
  font-size: 0.85rem; color: var(--text-muted);
  margin-bottom: 1rem; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.book-prices { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; }
.price-new {
  font-size: 1.3rem; font-weight: 800;
  color: var(--gold);
}
.price-old {
  font-size: 0.9rem; color: var(--text-muted);
  text-decoration: line-through;
}
.book-actions { display: flex; gap: 0.8rem; }
.btn-preview, .btn-buy {
  flex: 1; padding: 10px; border-radius: var(--radius-sm);
  border: none; cursor: pointer; font-family: 'Cairo', sans-serif;
  font-weight: 700; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: var(--transition);
}
.btn-preview {
  background: var(--surface); color: var(--gold);
  border: 1px solid rgba(255, 215, 0, 0.2);
}
.btn-preview:hover { background: rgba(255, 215, 0, 0.1); border-color: var(--gold); }
.btn-buy {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg-dark);
}
.btn-buy:hover { transform: scale(1.03); box-shadow: var(--shadow-gold); }

/* ===== ABOUT SECTION ===== */
.about-section { background: var(--surface); border-radius: var(--radius-lg); padding: 4rem 3rem; margin: 2rem auto; max-width: 1200px; border: 1px solid var(--border); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-text h2 { font-size: 2rem; font-weight: 800; margin-bottom: 1rem; }
.about-text p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 1.5rem; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.about-stat {
  text-align: center; padding: 1.5rem; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
}
.about-stat .number { font-size: 2.2rem; font-weight: 900; color: var(--gold); display: block; }
.about-stat .label { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

/* ===== FEATURES ===== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.feature-card {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 2rem; border: 1px solid var(--border);
  text-align: center; transition: var(--transition);
}
.feature-card:hover { transform: translateY(-5px); border-color: rgba(255, 215, 0, 0.3); box-shadow: var(--shadow-gold); }
.feature-icon {
  width: 60px; height: 60px; border-radius: 16px;
  background: rgba(255, 215, 0, 0.1);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem; font-size: 1.5rem; color: var(--gold);
}
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.9rem; color: var(--text-muted); }

/* ===== REQUEST SECTION ===== */
.request-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius-lg); padding: 3rem; text-align: center;
  margin: 2rem auto; max-width: 800px;
  border: 1px solid rgba(255, 215, 0, 0.15);
}
.request-section h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 0.8rem; color: #fff; }
.request-section p { color: rgba(255, 255, 255, 0.7); margin-bottom: 1.5rem; }
.request-form { display: flex; gap: 1rem; max-width: 500px; margin: 0 auto; }
.request-form input {
  flex: 1; padding: 14px 20px; border-radius: 50px;
  border: 1px solid rgba(255, 215, 0, 0.2); background: rgba(255, 255, 255, 0.1);
  color: #fff; font-family: 'Cairo', sans-serif; font-size: 0.95rem;
}
.request-form input::placeholder { color: rgba(255, 255, 255, 0.4); }
.request-form input:focus { outline: none; border-color: var(--gold); }
.request-form button {
  padding: 14px 30px; border-radius: 50px; border: none;
  background: var(--gold); color: var(--bg-dark);
  font-family: 'Cairo', sans-serif; font-weight: 700; cursor: pointer;
  transition: var(--transition); white-space: nowrap;
}
.request-form button:hover { transform: scale(1.05); box-shadow: var(--shadow-gold); }

/* ===== FOOTER ===== */
.footer {
  position: relative; z-index: 2;
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 3rem 2rem 1.5rem; margin-top: 4rem;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 2rem; margin-bottom: 2rem; }
.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }
.footer-col h4 { font-size: 1rem; font-weight: 700; color: var(--gold); margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--gold); padding-right: 5px; }

.social-links { display: flex; gap: 0.8rem; margin-top: 1rem; }
.social-link {
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; text-decoration: none; transition: var(--transition);
  border: 1px solid var(--border);
}
.social-link.whatsapp { color: var(--whatsapp); }
.social-link.whatsapp:hover { background: var(--whatsapp); color: #fff; }
.social-link.facebook { color: var(--facebook); }
.social-link.facebook:hover { background: var(--facebook); color: #fff; }

.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.85rem; color: var(--text-muted);
}

/* ===== WHATSAPP FLOATING ===== */
.whatsapp-float {
  position: fixed; bottom: 30px; left: 30px; z-index: 999;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--whatsapp); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; text-decoration: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  animation: whatsappBounce 2s infinite;
  transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.15); box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6); }
@keyframes whatsappBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px); z-index: 2000;
  display: none; align-items: center; justify-content: center;
  padding: 2rem;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--bg-card); border-radius: var(--radius-lg);
  border: 1px solid var(--border); max-width: 700px; width: 100%;
  max-height: 90vh; overflow-y: auto; padding: 2rem;
  animation: modalIn 0.3s ease;
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.9) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal-close {
  float: left; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-secondary); cursor: pointer; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.modal-close:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.modal h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 1rem; clear: both; padding-top: 0.5rem; }
.modal .video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; border-radius: var(--radius); overflow: hidden; margin-bottom: 1rem; }
.modal .video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

/* ===== SCROLL TO TOP ===== */
.scroll-top {
  position: fixed; bottom: 30px; right: 30px; z-index: 999;
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg-dark); border: none; cursor: pointer;
  font-size: 1.2rem; display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(20px); transition: var(--transition);
  box-shadow: var(--shadow-gold);
}
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { transform: translateY(-3px) scale(1.1); }

/* ===== LOADING ===== */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg-dark);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s ease;
}
.loader.hidden { opacity: 0; pointer-events: none; }
.loader-content { text-align: center; }
.loader-logo { width: 80px; animation: loaderPulse 1.5s ease-in-out infinite; }
.loader-bar { width: 200px; height: 4px; background: var(--surface); border-radius: 4px; margin-top: 1.5rem; overflow: hidden; }
.loader-bar-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--accent-cyan)); border-radius: 4px; animation: loaderFill 1.5s ease forwards; }
@keyframes loaderPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
@keyframes loaderFill { from { width: 0; } to { width: 100%; } }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== HIDDEN UTILITY ===== */
.hidden { display: none !important; }
.book-card { cursor: pointer; }

/* ===== DETAIL VIEW ===== */
.detail-container {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto;
  padding: 100px 2rem 4rem;
}
.back-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 50px;
  background: var(--surface); color: var(--gold);
  border: 1px solid rgba(255, 215, 0, 0.2);
  font-family: 'Cairo', sans-serif; font-weight: 700;
  font-size: 0.95rem; cursor: pointer;
  transition: var(--transition); margin-bottom: 2rem;
}
.back-btn:hover { background: rgba(255, 215, 0, 0.1); border-color: var(--gold); transform: translateX(5px); }

.detail-flex {
  display: grid; grid-template-columns: 1fr 1.5fr;
  gap: 3rem; align-items: start;
}
.main-cover {
  position: sticky; top: 100px;
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.main-cover img {
  width: 100%; height: auto; display: block;
  transition: var(--transition);
}
.main-cover:hover img { transform: scale(1.03); }

.detail-title-text {
  font-size: 2.2rem; font-weight: 900; margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.detail-author {
  color: var(--accent-cyan); font-weight: 600; font-size: 1rem;
  margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 8px;
}
.detail-stats-grid {
  display: flex; gap: 1.5rem; flex-wrap: wrap;
  margin-bottom: 2rem;
}
.detail-stat {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border);
  font-weight: 600; font-size: 0.9rem;
}
.detail-price-old {
  text-decoration: line-through; opacity: 0.6; font-size: 0.85em;
  margin-left: 8px;
}
.detail-price-new { color: var(--gold); font-size: 1.2em; font-weight: 800; }
.detail-discount {
  background: var(--danger); color: #fff;
  padding: 2px 10px; border-radius: 50px;
  font-size: 0.75rem; font-weight: 700; margin-right: 8px;
}

/* ===== FAQ ACCORDION ===== */
.faq-title {
  color: var(--accent-cyan); font-size: 1.1rem; font-weight: 700;
  margin-bottom: 1rem; display: flex; align-items: center; gap: 10px;
}
.faq-item {
  background: var(--surface); border-radius: var(--radius-sm);
  border: 1px solid var(--border); margin-bottom: 0.8rem;
  overflow: hidden; transition: var(--transition);
}
.faq-item:hover { border-color: rgba(255, 215, 0, 0.2); }
.faq-question {
  padding: 1rem 1.2rem; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; font-size: 0.95rem;
  transition: var(--transition);
}
.faq-question:hover { color: var(--gold); }
.faq-question i {
  transition: transform 0.3s ease; font-size: 0.8rem;
  color: var(--gold);
}
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-item.active .faq-answer {
  max-height: 500px; padding: 0 1.2rem 1rem;
}
.faq-answer p {
  color: var(--text-secondary); line-height: 1.8; font-size: 0.9rem;
}

/* ===== MORE VIDEOS ===== */
.more-videos-grid { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.btn-more-video {
  padding: 10px 20px; border-radius: var(--radius-sm);
  background: var(--surface); color: var(--accent-cyan);
  border: 1px solid rgba(0, 229, 255, 0.2);
  font-family: 'Cairo', sans-serif; font-weight: 600;
  cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; gap: 6px;
}
.btn-more-video:hover {
  background: rgba(0, 229, 255, 0.1);
  border-color: var(--accent-cyan);
}

/* ===== DETAIL ACTIONS ===== */
.detail-actions { display: flex; gap: 1rem; margin-top: 2rem; }
.btn-detail-preview, .btn-detail-buy {
  flex: 1; padding: 14px 24px; border-radius: 50px;
  font-family: 'Cairo', sans-serif; font-weight: 700;
  font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: var(--transition); text-decoration: none;
}
.btn-detail-preview {
  background: var(--surface); color: var(--gold);
  border: 2px solid rgba(255, 215, 0, 0.3);
}
.btn-detail-preview:hover { background: rgba(255, 215, 0, 0.1); border-color: var(--gold); }
.btn-detail-buy {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg-dark); border: none;
}
.btn-detail-buy:hover { transform: scale(1.03); box-shadow: var(--shadow-gold); }

.detail-trust {
  margin-top: 1.5rem; padding: 1rem;
  background: rgba(255, 215, 0, 0.05);
  border-radius: var(--radius); border: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
  color: var(--text-muted); font-size: 0.85rem;
}
.detail-trust i { color: var(--gold); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 75px; right: 0; left: 0;
    background: var(--bg-card); padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    animation: fadeInDown 0.3s ease;
  }
  .hero h1 { font-size: 1.8rem; }
  .stats-bar { flex-wrap: wrap; gap: 1.5rem; }
  .books-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .request-form { flex-direction: column; }
  .about-stats { grid-template-columns: 1fr; }
  .detail-flex { grid-template-columns: 1fr; }
  .main-cover { position: static; }
  .detail-title-text { font-size: 1.6rem; }
  .detail-actions { flex-direction: column; }
}
