/* ═══════════════════════════════════════════
   MARASSIA — Global Styles
   Obsidian × Gold — Arabic-first luxury
═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;900&family=Orbitron:wght@700;900&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

/* ── Tokens ── */
:root {
  --gold:        #C9A84C;
  --gold-light:  #E8C97A;
  --gold-dark:   #8B6914;
  --gold-glow:   rgba(201,168,76,0.15);
  --obsidian:    #080810;
  --obs-2:       #0F0F1A;
  --obs-3:       #161624;
  --obs-4:       #1E1E2E;
  --pearl:       #F5F0E8;
  --pearl-2:     #D4CCB8;
  --muted:       #6B6B80;
  --border:      rgba(201,168,76,0.12);
  --border-hover:rgba(201,168,76,0.35);
  --success:     #2ECC71;
  --danger:      #E74C3C;
  --warning:     #F39C12;

  --ff-ar:  'Cairo', sans-serif;
  --ff-en:  'DM Sans', sans-serif;
  --ff-dis: 'Orbitron', sans-serif;

  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  32px;

  --shadow-gold: 0 4px 24px rgba(201,168,76,0.18);
  --shadow-card: 0 2px 16px rgba(0,0,0,0.4);
  --header-h: 68px;

  --transition: 0.25s cubic-bezier(0.16,1,0.3,1);
}

/* ══════════════════════════════════════
   LIGHT MODE — from the old site palette
══════════════════════════════════════ */
body.light-mode {
  /* CSS Variable overrides */
  --obsidian:    #F0F2F5;
  --obs-2:       #FFFFFF;
  --obs-3:       #E8EBF0;
  --obs-4:       #DDE1E8;
  --pearl:       #1A1A2E;
  --pearl-2:     #2D2D44;
  --muted:       #6B7280;
  --border:      rgba(26,35,126,0.12);
  --border-hover:rgba(26,35,126,0.30);
  --shadow-card: 0 2px 16px rgba(0,0,0,0.10);
  --shadow-gold: 0 4px 24px rgba(26,35,126,0.15);
  /* Explicit overrides (vars don't always apply to background) */
  background: #F0F2F5 !important;
  color: #1A1A2E !important;
}

/* Light mode — header: deep blue like old site */
body.light-mode #header {
  background: #1a237e;
  border-bottom: none;
  box-shadow: 0 2px 12px rgba(26,35,126,0.3);
}
body.light-mode #header .logo span { color: #ffffff; }
body.light-mode #header nav a      { color: rgba(255,255,255,0.85); }
body.light-mode #header nav a:hover,
body.light-mode #header nav a.active { color: #ffffff; }
body.light-mode #header .lang-btn  { color: rgba(255,255,255,0.9); border-color: rgba(255,255,255,0.25); }
body.light-mode #header .btn-outline{ color: #fff; border-color: rgba(255,255,255,0.4); }
body.light-mode #header .btn-ghost  { color: rgba(255,255,255,0.85); }
body.light-mode #header.scrolled    { background: #1a237e; box-shadow: 0 4px 20px rgba(26,35,126,0.4); }

/* Light mode — hero */
body.light-mode .hero {
  background: linear-gradient(135deg, #1a237e 0%, #283593 50%, #3949ab 100%);
}
body.light-mode .hero-tag    { background: rgba(255,255,255,0.15); color: #fff; border-color: rgba(255,255,255,0.2); }
body.light-mode .hero h1,
body.light-mode .hero p      { color: #fff !important; }
body.light-mode .hero-canvas { opacity: 0.15; }

/* Light mode — cards */
body.light-mode .product-card {
  background: #ffffff;
  border-color: rgba(26,35,126,0.10);
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
body.light-mode .product-card:hover {
  border-color: #1a237e;
  box-shadow: 0 8px 24px rgba(26,35,126,0.15);
}
body.light-mode .product-card__name  { color: #1a237e; }
body.light-mode .product-card__cat   { color: #6B7280; }
body.light-mode .price-new           { color: #1a237e; }

/* Light mode — filter bar */
body.light-mode .filter-bar   { background: transparent; }
body.light-mode .filter-btn   { background: #fff; color: #1a237e; border-color: rgba(26,35,126,0.2); }
body.light-mode .filter-btn:hover,
body.light-mode .filter-btn.active {
  background: #1a237e; color: #fff; border-color: #1a237e;
}

/* Light mode — section titles */
body.light-mode .section-title { color: #1a237e; }
body.light-mode .section-title::after { background: #1a237e; }

/* ── Light mode — footer ── */
body.light-mode #footer {
  background: #1a237e;
  border-top: none;
  box-shadow: 0 -4px 24px rgba(26,35,126,0.15);
}
body.light-mode .footer-brand p   { color: rgba(255,255,255,0.75); }
body.light-mode .footer-brand .logo span { color: #C9A84C; }
body.light-mode .footer-links h4  { color: #C9A84C; }
body.light-mode .footer-links a   { color: rgba(255,255,255,0.75); }
body.light-mode .footer-links a:hover { color: #fff; }
body.light-mode #footer-legal-links a { color: rgba(255,255,255,0.75); }
body.light-mode #footer-legal-links a:hover { color: #fff; }
body.light-mode .footer-bottom {
  border-color: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.5);
}
body.light-mode .social-links { margin-top: 18px; }
body.light-mode .social-btn {
  border-color: rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.08);
}
body.light-mode .social-btn:hover { color: #fff; border-color: transparent; }

/* Light mode — mobile nav */
body.light-mode .mobile-nav { background: #1a237e; }
body.light-mode .mobile-nav a { color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.1); }

/* Light mode — modal */
body.light-mode .modal-overlay { background: rgba(26,35,126,0.5); }
body.light-mode .modal { background: #fff; border-color: rgba(26,35,126,0.15); }
body.light-mode .modal__title { color: #1a237e; }
body.light-mode .form-control { background: #F0F2F5; border-color: rgba(26,35,126,0.2); color: #1a1a2e; }
body.light-mode .form-control:focus { border-color: #1a237e; }
body.light-mode label { color: #2D2D44; }

/* Light mode — blog cards */
body.light-mode .blog-card { background: #fff; border-color: rgba(26,35,126,0.10); }
body.light-mode .blog-card:hover { border-color: #1a237e; box-shadow: 0 8px 24px rgba(26,35,126,0.12); }
body.light-mode .blog-card__title { color: #1a237e; }
body.light-mode .blog-card__cta   { color: #1a237e; }

/* Light mode — search */
body.light-mode .search-wrap { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.25); }
body.light-mode .search-input { color: #fff; }
body.light-mode .search-input::placeholder { color: rgba(255,255,255,0.6); }
body.light-mode .search-icon  { color: rgba(255,255,255,0.6); }

/* Light mode — search within store section (white bg) */
body.light-mode #store-section .search-wrap { background: #fff; border-color: rgba(26,35,126,0.2); }
body.light-mode #store-section .search-input { color: #1a1a2e; }
body.light-mode #store-section .search-input::placeholder { color: #6B7280; }
body.light-mode #store-section .search-icon  { color: #6B7280; }

/* Light mode — FAQ */
body.light-mode .faq-item { background: #fff; border-color: rgba(26,35,126,0.10); }
body.light-mode .faq-item summary { color: #1a237e; }
body.light-mode .faq-item details[open] summary { color: #1a237e; border-color: rgba(26,35,126,0.12); }

/* Light mode — answer capsule */
body.light-mode .answer-capsule {
  background: rgba(26,35,126,0.05);
  border-right-color: #1a237e;
  color: #1a1a2e;
}
[dir="ltr"] body.light-mode .answer-capsule { border-left-color: #1a237e; }

/* Light mode — breadcrumb */
body.light-mode .breadcrumb a { color: #1a237e; }

/* Light mode — related cards */
body.light-mode .related-card { background: #fff; border-color: rgba(26,35,126,0.10); }
body.light-mode .related-card:hover { border-color: #1a237e; }
body.light-mode .related-card__name  { color: #1a237e; }
body.light-mode .related-card__price { color: #1a237e; }

/* Light mode — legal */
body.light-mode .legal-article { background: #fff; border-color: rgba(26,35,126,0.10); }
body.light-mode .legal-article h1 { color: #1a237e; }
body.light-mode .legal-article h2 { color: #1a237e; border-color: rgba(26,35,126,0.12); }

/* Light mode — lang modal */
body.light-mode .lang-modal { background: #fff; }
body.light-mode .lang-card { background: #F0F2F5; border-color: rgba(26,35,126,0.12); }
body.light-mode .lang-card:hover { border-color: #1a237e; }
body.light-mode .lang-card.active { border-color: #1a237e; background: rgba(26,35,126,0.06); }
body.light-mode .lang-card .native { color: #1a237e; }
body.light-mode .lang-modal__title { color: #1a237e; }

/* Light mode — scrollbar */
body.light-mode::-webkit-scrollbar-track { background: #F0F2F5; }
body.light-mode::-webkit-scrollbar-thumb { background: #1a237e; }

/* Light mode — gold accent stays gold */
body.light-mode .text-gold,
body.light-mode .btn-gold { /* keep gold buttons */ }

/* ── Theme Toggle Button ── */
.theme-toggle {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
  transition: all 0.25s var(--transition);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: rgba(255,255,255,0.18);
  color: #fff;
  transform: scale(1.1);
}
/* In dark mode header */
body:not(.light-mode) .theme-toggle {
  border-color: var(--border-hover);
  color: var(--pearl-2);
  background: var(--obs-3);
}
body:not(.light-mode) .theme-toggle:hover {
  background: var(--gold-glow);
  color: var(--gold);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--obsidian);
  color: var(--pearl);
  font-family: var(--ff-ar);
  font-size: 16px;
  line-height: 1.7;
  direction: rtl;
  min-height: 100vh;
}

body.lang-en {
  font-family: var(--ff-en);
  direction: ltr;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--obsidian); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 2px; }
::selection { background: var(--gold); color: var(--obsidian); }

/* ── Typography ── */
h1,h2,h3,h4,h5 { font-weight: 700; line-height: 1.3; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
p  { color: var(--pearl-2); }

/* ── Layout ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 64px 0; }

/* ── Header ── */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(8,8,16,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

#header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.logo span {
  font-family: var(--ff-dis);
  letter-spacing: 4px;
  font-size: 1.25rem;
}

nav { display: flex; align-items: center; gap: 8px; }

nav a {
  padding: 7px 16px;
  border-radius: var(--r-sm);
  color: var(--pearl-2);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

nav a:hover, nav a.active {
  color: var(--gold);
  background: var(--gold-glow);
}

.nav-actions { display: flex; align-items: center; gap: 8px; }

/* Desktop: hide hamburger */
.menu-btn { display: none; }

/* ── Mobile: hide text in lang-btn on small screens ── */
@media (max-width: 480px) {
  .lang-btn span { display: none; }
  .lang-btn { padding: 7px 10px !important; gap: 4px; }
  .nav-actions { gap: 5px; }
  .logo span { font-size: 1rem; letter-spacing: 3px; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold);
  color: var(--obsidian);
}
.btn-gold:hover {
  background: var(--gold-light);
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}

.btn-outline {
  border: 1px solid var(--border-hover);
  color: var(--gold);
  background: transparent;
}
.btn-outline:hover {
  background: var(--gold-glow);
}

.btn-ghost {
  color: var(--pearl-2);
  background: var(--obs-3);
}
.btn-ghost:hover { background: var(--obs-4); color: var(--pearl); }

.btn-danger {
  background: var(--danger);
  color: white;
}
.btn-danger:hover { opacity: 0.85; }

.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-full { width: 100%; }

.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ── Cards ── */
.card {
  background: var(--obs-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

/* ── Product Card ── */
.product-card {
  background: var(--obs-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(201,168,76,0.12);
}

.product-card__img {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--obs-3);
  position: relative;
}

.product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card__img img {
  transform: scale(1.05);
}

.product-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-affiliate {
  background: rgba(201,168,76,0.2);
  color: var(--gold);
  border: 1px solid var(--gold-dark);
}

.badge-own {
  background: rgba(46,204,113,0.15);
  color: var(--success);
  border: 1px solid rgba(46,204,113,0.3);
}

.badge-featured {
  background: rgba(201,168,76,0.9);
  color: var(--obsidian);
}

.product-card__body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-card__cat {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-card__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--pearl);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.price-new { font-size: 1.1rem; font-weight: 800; color: var(--gold); }
.price-old { font-size: 0.85rem; color: var(--muted); text-decoration: line-through; }

.product-card__actions {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
}

/* ── Products Grid ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

/* ── Hero ── */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  position: relative;
  overflow: hidden;
}

/* Video background */
.hero-video-wrap {
  position: absolute;
  inset: 0; z-index: 0;
}
.hero-video-wrap video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-video-overlay {
  position: absolute; inset: 0;
  background: rgba(8,8,16,0.55);
}

/* Particles canvas */
.hero-canvas {
  position: absolute;
  inset: 0; z-index: 0;
  pointer-events: none;
}

/* Gradient fallback */
.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(201,168,76,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(201,168,76,0.05) 0%, transparent 60%);
  pointer-events: none;
  transition: opacity 0.5s;
}

.hero__content {
  position: relative; z-index: 1; max-width: 600px;
}
.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid var(--border-hover);
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  background: var(--gold-glow);
}

.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero__title span { color: var(--gold); }

.hero__sub {
  font-size: 1.1rem;
  color: var(--pearl-2);
  margin-bottom: 36px;
  max-width: 480px;
}

.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Filter Bar ── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--pearl-2);
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}

.filter-btn:hover, .filter-btn.active {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-glow);
}

/* ── Search ── */
.search-wrap {
  position: relative;
  max-width: 520px;
  width: 100%;
}

.search-wrap input {
  width: 100%;
  padding: 12px 44px 12px 40px;
  background: var(--obs-3);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--pearl);
  font-size: 0.9rem;
  font-family: inherit;
  transition: var(--transition);
}

.search-wrap input:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--obs-4);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}

.search-wrap .search-icon {
  position: absolute;
  top: 50%; right: 14px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  transition: color 0.2s;
}

.search-wrap input:focus ~ .search-icon { color: var(--gold); }

body.lang-en .search-wrap .search-icon { right: auto; left: 14px; }

.search-clear {
  position: absolute;
  top: 50%; left: 12px;
  transform: translateY(-50%);
  background: var(--obs-4); border: none;
  color: var(--muted); font-size: 0.8rem;
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s;
}
.search-clear:hover { background: var(--danger); color: white; }

/* Search Dropdown */
.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--obs-2);
  border: 1px solid var(--border-hover);
  border-radius: var(--r-md);
  overflow: hidden;
  z-index: 500;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  animation: fadeUp 0.2s ease;
  max-height: 420px;
  overflow-y: auto;
}

.search-section-label {
  padding: 8px 14px 4px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.search-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.search-item:last-child { border-bottom: none; }
.search-item:hover { background: var(--obs-3); }

.search-item img {
  width: 42px; height: 42px;
  border-radius: var(--r-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--obs-3);
}

.search-item-info { flex: 1; min-width: 0; }
.search-item-name {
  font-size: 0.88rem; font-weight: 600;
  color: var(--pearl); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.search-item-name mark {
  background: rgba(201,168,76,0.25);
  color: var(--gold); border-radius: 2px;
  padding: 0 2px;
}
.search-item-meta {
  font-size: 0.75rem; color: var(--muted); margin-top: 2px;
}
.search-item-price {
  font-size: 0.85rem; font-weight: 700; color: var(--gold);
  flex-shrink: 0;
}

.search-item-cat {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; cursor: pointer;
  transition: background 0.15s;
}
.search-item-cat:hover { background: var(--obs-3); }
.search-item-cat .cat-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--gold-glow); border: 1px solid var(--border-hover);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; color: var(--gold);
}

.search-no-results {
  padding: 24px; text-align: center;
  color: var(--muted); font-size: 0.88rem;
}

.search-footer {
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  background: var(--obs-3);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.75rem; color: var(--muted);
}

.search-highlight {
  background: rgba(201,168,76,0.08);
  border-color: var(--gold) !important;
}

/* ── Blog Cards ── */
.blog-card {
  background: var(--obs-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.blog-card__img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--obs-3);
}

.blog-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.blog-card:hover .blog-card__img img { transform: scale(1.04); }

.blog-card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.blog-card__date { font-size: 0.78rem; color: var(--muted); }
.blog-card__title { font-size: 1.05rem; font-weight: 700; color: var(--pearl); }
.blog-card__excerpt { font-size: 0.88rem; color: var(--pearl-2); flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.blogs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* ── Forms ── */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--pearl-2); }

.form-control {
  padding: 11px 14px;
  background: var(--obs-3);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--pearl);
  font-size: 0.9rem;
  font-family: inherit;
  transition: var(--transition);
  width: 100%;
}

.form-control:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--obs-4);
}

.form-control::placeholder { color: var(--muted); }

textarea.form-control { resize: vertical; min-height: 100px; }

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--obs-2);
  border: 1px solid var(--border-hover);
  border-radius: var(--r-xl);
  padding: 32px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.modal__title { font-size: 1.3rem; font-weight: 700; color: var(--gold); }

.modal__close {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--obs-3);
  color: var(--pearl-2);
  transition: var(--transition);
  font-size: 1.1rem;
}

.modal__close:hover { background: var(--danger); color: white; }

/* ── Auth Tabs ── */
.auth-tabs {
  display: flex;
  gap: 4px;
  background: var(--obs-3);
  border-radius: var(--r-sm);
  padding: 4px;
  margin-bottom: 24px;
}

.auth-tab {
  flex: 1;
  padding: 9px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  transition: var(--transition);
  text-align: center;
}

.auth-tab.active {
  background: var(--gold);
  color: var(--obsidian);
}

/* ── Toast ── */
#toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}

.toast {
  padding: 12px 24px;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  font-weight: 600;
  animation: toastIn 0.3s ease forwards;
  pointer-events: none;
  white-space: nowrap;
}

.toast-success { background: var(--success); color: white; }
.toast-error   { background: var(--danger);  color: white; }
.toast-info    { background: var(--gold);    color: var(--obsidian); }

  to   { opacity: 1; transform: translateY(0); }
}

/* ── Loader ── */
#page-loader {
  position: fixed;
  inset: 0;
  background: #080810;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.loader-logo {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--gold);
  font-family: var(--ff-dis);
  letter-spacing: 6px;
  animation: goldPulse 1.8s ease-in-out infinite;
}

.loader-bar {
  width: 140px;
  height: 3px;
  background: rgba(201,168,76,0.15);
  border-radius: 3px;
  overflow: hidden;
}

.loader-bar-fill {
  height: 100%;
  width: 30%;
  background: var(--gold);
  border-radius: 3px;
  animation: loaderSlide 1.4s ease-in-out infinite;
}

@keyframes loaderSlide {
  0%   { transform: translateX(-100%); width: 30%; }
  50%  { width: 60%; }
  100% { transform: translateX(400%); width: 30%; }
}

.loader-dots {
  display: flex;
  gap: 6px;
}
.loader-dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.3;
  animation: dotPulse 1.2s ease-in-out infinite;
}
.loader-dots span:nth-child(2) { animation-delay: 0.2s; }
.loader-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotPulse {
  0%,100% { opacity: 0.3; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.4); }
}

/* ── Empty State ── */
.empty-state {
  text-align: center;
  padding: 64px 20px;
  color: var(--muted);
}

.empty-state .icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state h3 { color: var(--pearl-2); margin-bottom: 8px; }

/* ── Section Header ── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.section-title {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 800;
}

.section-title span { color: var(--gold); }

/* ── Footer ── */
#footer {
  background: var(--obs-2);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo { margin-bottom: 14px; font-size: 1.2rem; }
.footer-brand p { font-size: 0.88rem; color: var(--pearl-2); max-width: 280px; }

.footer-links h4 { font-size: 0.9rem; color: var(--gold); margin-bottom: 14px; font-weight: 700; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 0.85rem; color: var(--pearl-2); transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }

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

