/* ============================================================
   Arabic News Platform — Premium Stylesheet v2.0
   OLSOUQ Edition — RTL, Dark/Light, Fully Responsive
   ============================================================ */

/* ── Premium Arabic Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Noto+Naskh+Arabic:wght@400;500;600;700&family=Tajawal:wght@300;400;500;700;800;900&family=Amiri:wght@400;700&family=Reem+Kufi:wght@400;500;600;700&display=swap');

/* ── CSS Variables ──────────────────────────── */
:root {
  --bg:          #080b12;
  --bg2:         #0f1420;
  --surface:     #141928;
  --surface2:    #1c2236;
  --border:      #252d42;
  --primary:     #c8102e;
  --primary-d:   #a00d25;
  --primary-glow:rgba(200,16,46,.25);
  --accent:      #f0a500;
  --accent2:     #00c896;
  --gold:        #d4af37;
  --text:        #eef0f6;
  --text-soft:   #b8bdd0;
  --muted:       #6a7590;
  --link:        #8ab4d4;
  --radius:      10px;
  --radius-lg:   18px;
  --shadow:      0 4px 28px rgba(0,0,0,.5);
  --shadow-lg:   0 16px 56px rgba(0,0,0,.6);
  --font-main:   'Tajawal', 'Cairo', Arial, sans-serif;
  --font-heading:'Reem Kufi', 'Tajawal', sans-serif;
  --font-serif:  'Amiri', 'Noto Naskh Arabic', Georgia, serif;
  --font-body:   'Noto Naskh Arabic', 'Tajawal', sans-serif;
  --transition:  .22s ease;
  --max-w:       1240px;
}

body.theme-light {
  --bg:          #f2f3f7;
  --bg2:         #ffffff;
  --surface:     #ffffff;
  --surface2:    #edf0f7;
  --border:      #d0d5e8;
  --text:        #111827;
  --text-soft:   #2d3650;
  --muted:       #687090;
  --link:        #1a4e7a;
  --shadow:      0 2px 14px rgba(0,0,0,.07);
  --shadow-lg:   0 8px 36px rgba(0,0,0,.11);
}

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.85;
  direction: rtl;
  text-align: right;
  transition: background .3s, color .3s;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.4;
}

img { max-width: 100%; display: block; }
a   { color: var(--link); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary); }
ul  { list-style: none; }

/* ── Layout ──────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.main-content { min-height: 70vh; }

/* ── Breaking News Ticker ─────────────────────── */
.ticker-wrap {
  background: linear-gradient(90deg, #9b000d 0%, var(--primary) 40%, #9b000d 100%);
  color: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 40px;
  font-size: 13px;
  font-weight: 600;
  border-bottom: 2px solid rgba(255,255,255,.1);
}
.ticker-label {
  background: #000;
  color: var(--gold);
  padding: 0 18px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-weight: 800;
  letter-spacing: .5px;
  flex-shrink: 0;
  font-family: var(--font-heading);
  border-left: 3px solid var(--gold);
  gap: 6px;
}
.ticker-content { flex: 1; overflow: hidden; }
.ticker-inner {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
  animation: ticker-scroll 35s linear infinite;
}
.ticker-inner a { color: #fff; font-weight: 600; }
.ticker-inner a:hover { color: var(--gold); }
.ticker-sep { opacity: .4; font-size: 16px; }
@keyframes ticker-scroll {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ── Top Bar ─────────────────────────────────── */
.topbar {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  padding: 7px 0;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topbar-date  { color: var(--muted); font-size: 11px; font-family: var(--font-main); }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.tb-link {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 11px;
  border-radius: 20px;
  border: 1px solid transparent;
  transition: all var(--transition);
}
.tb-link:hover { border-color: var(--border); color: var(--text); }
.tb-reg   { background: var(--primary); color: #fff !important; border-color: var(--primary); }
.tb-admin { background: rgba(212,175,55,.12); border-color: var(--gold); color: var(--gold) !important; }
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 14px;
  transition: all var(--transition);
  color: var(--muted);
}
.theme-toggle:hover { background: var(--surface2); border-color: var(--primary); }

/* ── Main Header ─────────────────────────────── */
/* ── Main Header ─────────────────────────────── */
.main-header {
  background: var(--bg2);
  border-bottom: 2px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 28px rgba(0,0,0,.5);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 28px;
  height: 72px;
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ── Logo ──────────────────────────────────────── */
.site-logo {
  display: flex;
  align-items: center;
  gap: 14px;          /* مسافة واضحة بين الأيقونة والنص */
  text-decoration: none;
  flex-shrink: 0;
  overflow: visible;
}
.logo-mark {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--primary);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(200,16,46,.4);
}
.logo-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: visible;
  min-width: 0;
}
.logo-name {
  /* اسم الجريدة — مرئي دائماً بدون gradient-clip */
  display: block;
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
  font-family: var(--font-heading);
  letter-spacing: -.3px;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  background: none;
  white-space: nowrap;
  visibility: visible;
  opacity: 1;
}
/* light theme: header bg becomes white → name must be dark */
body.theme-light .logo-name {
  color: #111827;
  -webkit-text-fill-color: #111827;
}
body.theme-light .logo-tagline {
  color: #687090;
}
/* light theme — header & nav surface colors */
body.theme-light .main-header {
  background: #ffffff;
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
}
body.theme-light .main-nav {
  background: #f5f6fa;
  border-top: 1px solid #d0d5e8;
}
body.theme-light .search-input {
  background: #edf0f7;
  border-color: #d0d5e8;
  color: #111827;
}
body.theme-light .search-input::placeholder { color: #687090; }
body.theme-light .search-input:focus {
  background: #fff;
  border-color: #c8102e;
}
body.theme-light .nav-link { color: #2d3650; }
body.theme-light .nav-link:hover { background: rgba(0,0,0,.05); color: #c8102e; }
body.theme-light .nav-link.active { background: rgba(200,16,46,.08); color: #c8102e; }
body.theme-light .menu-toggle {
  background: #edf0f7;
  border-color: #d0d5e8;
  color: #111827;
}
.logo-tagline {
  display: block;
  font-size: 10.5px;
  color: var(--muted);
  font-family: var(--font-main);
  white-space: nowrap;
  line-height: 1;
  visibility: visible;
}

/* uploaded logo image — sits beside the text */
.logo-img {
  height: 40px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  border-radius: 6px;
}

/* pushes search to the far left (RTL: left = start) */
.header-spacer { flex: 1; }

/* ── Search — fixed to far left ────────────────── */
.header-search {
  flex: 0 0 auto;
  position: relative;
  width: 280px;
}
.search-input {
  width: 100%;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 40px;      /* شكل بيضاوي أنيق */
  padding: 0 52px 0 20px;   /* padding يمين للنص، يسار لزر البحث */
  color: var(--text);
  font-family: var(--font-main);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  direction: rtl;
  height: 46px;
}
.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background: var(--surface);
}
.search-input::placeholder { color: var(--muted); }
.search-btn {
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  border: none;
  border-radius: 50%;    /* زر دائري داخل الحقل */
  cursor: pointer;
  font-size: 15px;
  color: #fff;
  transition: background var(--transition), transform var(--transition);
  flex-shrink: 0;
}
.search-btn:hover {
  background: var(--primary-d);
  transform: translateY(-50%) scale(1.08);
}
.search-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-height: 300px;
  overflow-y: auto;
  z-index: 200;
  box-shadow: var(--shadow-lg);
  display: none;
}
.search-suggestions.show { display: block; }
.suggestion-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  font-size: 13px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
  font-family: var(--font-main);
}
.suggestion-item:hover { background: var(--surface2); }
.suggestion-item img { width: 44px; height: 34px; object-fit: cover; border-radius: 6px; }

/* ── Menu Toggle (mobile) ────────────────────── */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
  color: var(--text);
  transition: all var(--transition);
  flex-shrink: 0;
}
.menu-toggle:hover { border-color: var(--primary); background: var(--surface); }

/* ── Navigation Bar ──────────────────────────── */
.main-nav {
  background: var(--surface);
  border-top: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.main-nav::-webkit-scrollbar { display: none; }

.nav-inner {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 16px;
  max-width: var(--max-w);
  margin: 0 auto;
  height: 46px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  height: 32px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-soft);
  white-space: nowrap;
  border-radius: 8px;
  transition: all var(--transition);
  font-family: var(--font-heading);
  letter-spacing: .2px;
  position: relative;
}
.nav-link:hover {
  background: rgba(255,255,255,.05);
  color: var(--cat-color, var(--primary));
}
.nav-link.active {
  background: rgba(200,16,46,.12);
  color: var(--primary);
  font-weight: 800;
}
.nav-link.active::before {
  content: '';
  position: absolute;
  bottom: -7px;
  right: 14px;
  left: 14px;
  height: 2.5px;
  background: var(--cat-color, var(--primary));
  border-radius: 2px;
}

/* ── Flash Toast ─────────────────────────────── */
.alert-toast {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 999;
  padding: 13px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  animation: slideIn .3s ease;
  font-family: var(--font-main);
}
@keyframes slideIn { from { transform: translateX(120%); opacity: 0; } }
.alert-success { background: #06d6a0; color: #000; }
.alert-error   { background: var(--primary); color: #fff; }
.alert-toast button { background: none; border: none; cursor: pointer; font-size: 18px; color: inherit; }

/* ══════════════════════════════════════
   HOMEPAGE COMPONENTS
══════════════════════════════════════ */

/* Hero / Featured Slider */
.hero-section { padding: 28px 0; }
.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 22px;
}
.hero-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  max-height: 500px;
  cursor: pointer;
}
.hero-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.hero-main:hover img { transform: scale(1.04); }
.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 28px 26px;
  background: linear-gradient(to top, rgba(0,0,0,.95) 0%, rgba(0,0,0,.4) 60%, transparent 100%);
}
.hero-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .8px;
  font-family: var(--font-heading);
  box-shadow: 0 2px 12px rgba(200,16,46,.4);
}
.hero-title {
  font-size: clamp(18px, 2.5vw, 30px);
  font-weight: 800;
  color: #fff;
  line-height: 1.45;
  margin-bottom: 10px;
  font-family: var(--font-heading);
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.hero-meta { font-size: 12px; color: rgba(255,255,255,.75); display: flex; gap: 16px; align-items: center; }

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.hero-side-card {
  display: flex;
  gap: 13px;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
  cursor: pointer;
}
.hero-side-card:hover {
  border-color: var(--primary);
  transform: translateX(-3px);
  box-shadow: 4px 0 0 var(--primary), var(--shadow);
}
.hero-side-img { width: 95px; flex-shrink: 0; overflow: hidden; }
.hero-side-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.hero-side-card:hover .hero-side-img img { transform: scale(1.08); }
.hero-side-info { padding: 12px 12px 12px 0; flex: 1; }
.hero-side-cat  { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 5px; font-family: var(--font-heading); }
.hero-side-title { font-size: 13px; font-weight: 700; line-height: 1.5; color: var(--text); font-family: var(--font-heading); }
.hero-side-time  { font-size: 11px; color: var(--muted); margin-top: 7px; }

/* ── Section Headers ──────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 14px;
}
.section-title-main {
  font-size: 22px;
  font-weight: 800;
  position: relative;
  padding-right: 16px;
  font-family: var(--font-heading);
  letter-spacing: -.3px;
}
.section-title-main::before {
  content: '';
  position: absolute;
  right: 0;
  top: 3px;
  bottom: 3px;
  width: 5px;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  border-radius: 3px;
}
.section-divider { flex: 1; height: 1px; background: linear-gradient(to left, transparent, var(--border)); }
.see-all-link {
  font-size: 13px;
  color: var(--primary);
  font-weight: 700;
  white-space: nowrap;
  padding: 5px 14px;
  border: 1px solid var(--primary);
  border-radius: 20px;
  transition: all var(--transition);
  font-family: var(--font-main);
}
.see-all-link:hover { background: var(--primary); color: #fff; }

/* ── Article Card ─────────────────────────────── */
.articles-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.articles-grid-4 { grid-template-columns: repeat(4,1fr); }
.articles-grid-2 { grid-template-columns: repeat(2,1fr); }

.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
}
.article-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s ease;
}
.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,.4), 0 0 0 1px var(--primary);
  border-color: var(--primary);
}
.article-card:hover::before { transform: scaleX(1); }

.card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.article-card:hover .card-image img { transform: scale(1.06); }
.card-cat {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: var(--cat-color, var(--primary));
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 11px;
  border-radius: 20px;
  letter-spacing: .3px;
  font-family: var(--font-heading);
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.premium-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, var(--gold), #b8860b);
  color: #000;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  font-family: var(--font-heading);
}
.card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; gap: 9px; }
.card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition);
  font-family: var(--font-heading);
}
.article-card:hover .card-title { color: var(--primary); }
.card-excerpt {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: var(--font-body);
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-family: var(--font-main);
}
.card-meta .author { font-weight: 700; color: var(--text-soft); }
.card-meta .views  { margin-right: auto; }

/* ── Horizontal Article Card ─────────────────── */
.article-card-h {
  display: flex;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  transition: all var(--transition);
}
.article-card-h:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.article-card-h .ch-img { width: 100px; flex-shrink: 0; border-radius: 8px; overflow: hidden; aspect-ratio: 4/3; }
.article-card-h .ch-img img { width: 100%; height: 100%; object-fit: cover; }
.ch-body { flex: 1; }
.ch-cat  { font-size: 10px; font-weight: 800; color: var(--primary); margin-bottom: 5px; font-family: var(--font-heading); text-transform: uppercase; letter-spacing: .3px; }
.ch-title { font-size: 14px; font-weight: 700; line-height: 1.5; font-family: var(--font-heading); }
.ch-meta  { font-size: 11px; color: var(--muted); margin-top: 6px; font-family: var(--font-main); }

/* ── Trending List ───────────────────────────── */
.trending-list { display: flex; flex-direction: column; gap: 0; }
.trending-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.trending-item:last-child { border-bottom: none; }
.trending-num {
  font-size: 30px;
  font-weight: 900;
  color: var(--border);
  line-height: 1;
  min-width: 38px;
  font-family: var(--font-heading);
}
.trending-item:nth-child(1) .trending-num { color: var(--primary); }
.trending-item:nth-child(2) .trending-num { color: var(--gold); }
.trending-item:nth-child(3) .trending-num { color: var(--accent2); }
.trending-title { font-size: 13px; font-weight: 700; line-height: 1.5; color: var(--text); font-family: var(--font-heading); }
.trending-views { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* ── Sidebar ─────────────────────────────────── */
.content-with-sidebar { display: grid; grid-template-columns: 1fr 310px; gap: 30px; align-items: start; }
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.widget-header {
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--surface2), var(--surface));
  border-bottom: 2px solid var(--primary);
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  letter-spacing: .2px;
}
.widget-body { padding: 16px; }

/* ── Page Sections ───────────────────────────── */
.page-section { padding: 42px 0; }
.page-section + .page-section { border-top: 1px solid var(--border); }

/* ── Article Full Page ───────────────────────── */
.article-header { padding: 36px 0 26px; }
.article-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(200,16,46,.1);
  border: 1px solid rgba(200,16,46,.3);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 18px;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.article-title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 18px;
  color: var(--text);
}
.article-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-main);
}
.meta-author { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); }
.meta-author img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary); }
.meta-divider { color: var(--border); }
.share-buttons { display: flex; align-items: center; gap: 8px; margin-right: auto; }
.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
  background: none;
  color: var(--text);
  text-decoration: none;
}
.share-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: scale(1.1); }
.article-featured-img {
  width: 100%;
  border-radius: var(--radius-lg);
  margin: 28px 0;
  max-height: 520px;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}
.article-body {
  font-size: 17.5px;
  line-height: 2.1;
  color: var(--text);
  font-family: var(--font-body);
}
.article-body h2 { font-size: 26px; font-weight: 800; margin: 36px 0 14px; font-family: var(--font-heading); color: var(--text); }
.article-body h3 { font-size: 21px; font-weight: 700; margin: 26px 0 11px; font-family: var(--font-heading); }
.article-body p  { margin-bottom: 20px; }
.article-body blockquote {
  border-right: 5px solid var(--primary);
  padding: 16px 22px;
  background: var(--surface2);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  margin: 28px 0;
  font-size: 18px;
  color: var(--text-soft);
}
.article-body img { border-radius: var(--radius-lg); margin: 24px auto; box-shadow: var(--shadow); }

/* AI Summary Box */
.ai-summary {
  background: linear-gradient(135deg, rgba(67,97,238,.08), rgba(0,200,150,.08));
  border: 1px solid rgba(0,200,150,.25);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}
.ai-summary::before {
  content: '✦';
  position: absolute;
  left: 20px;
  top: 16px;
  font-size: 40px;
  opacity: .05;
  color: var(--accent2);
}
.ai-summary-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent2);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 12px;
  font-family: var(--font-heading);
}
.ai-summary p { font-size: 15px; color: var(--text-soft); line-height: 1.9; margin: 0; font-family: var(--font-body); }

/* ── Comments ─────────────────────────────────── */
.comments-section { padding: 36px 0; }
.comments-list { display: flex; flex-direction: column; gap: 18px; margin-bottom: 36px; }
.comment {
  display: flex;
  gap: 14px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition);
}
.comment:hover { border-color: var(--primary); }
.comment-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid var(--border);
}
.comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment-body     { flex: 1; }
.comment-author   { font-weight: 700; font-size: 14px; font-family: var(--font-heading); }
.comment-time     { font-size: 11px; color: var(--muted); margin-bottom: 9px; }
.comment-text     { font-size: 14px; line-height: 1.8; font-family: var(--font-body); }
.comment-form     { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; }
.comment-form h3  { font-size: 18px; font-weight: 800; margin-bottom: 18px; font-family: var(--font-heading); }

/* ── Forms ────────────────────────────────────── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 13px; font-weight: 700; color: var(--text-soft); font-family: var(--font-heading); }
.form-control {
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 11px 15px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  width: 100%;
  transition: all var(--transition);
  direction: rtl;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.form-control::placeholder { color: var(--muted); }
textarea.form-control { resize: vertical; min-height: 120px; line-height: 1.7; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border: none;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  letter-spacing: .2px;
}
.btn-primary  {
  background: linear-gradient(135deg, var(--primary), var(--primary-d));
  color: #fff;
  box-shadow: 0 4px 18px var(--primary-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px var(--primary-glow); }
.btn-outline  { background: transparent; border: 1.5px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-success  { background: var(--accent2); color: #000; font-weight: 800; }
.btn-sm       { padding: 7px 14px; font-size: 12px; }
.btn-full     { width: 100%; }

/* ── Pagination ───────────────────────────────── */
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 36px 0; }
.page-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  transition: all var(--transition);
  font-family: var(--font-heading);
}
.page-link:hover, .page-link.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px var(--primary-glow);
}

/* ── Auth Pages ───────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background-image: radial-gradient(ellipse at 30% 20%, rgba(200,16,46,.08) 0%, transparent 50%);
}
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.auth-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--gold), var(--accent2));
}
.auth-logo { text-align: center; font-size: 44px; margin-bottom: 10px; }
.auth-title { text-align: center; font-size: 26px; font-weight: 900; margin-bottom: 6px; font-family: var(--font-heading); }
.auth-subtitle { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 30px; font-family: var(--font-main); }

/* ── Newsletter Section ───────────────────────── */
.newsletter-section {
  background: linear-gradient(135deg, var(--primary-d) 0%, var(--primary) 50%, #9b000d 100%);
  padding: 44px 0;
  margin-top: 44px;
  position: relative;
  overflow: hidden;
}
.newsletter-section::before {
  content: '📰';
  position: absolute;
  left: -20px;
  top: -20px;
  font-size: 160px;
  opacity: .04;
}
.newsletter-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; position: relative; }
.nl-text h3 { font-size: 24px; font-weight: 900; color: #fff; margin-bottom: 6px; font-family: var(--font-heading); }
.nl-text p  { color: rgba(255,255,255,.8); font-size: 14px; font-family: var(--font-main); }
.nl-form { display: flex; gap: 10px; flex-wrap: wrap; }
.nl-input {
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.3);
  border-radius: 9px;
  padding: 12px 18px;
  color: #fff;
  font-family: var(--font-main);
  font-size: 14px;
  outline: none;
  width: 280px;
  direction: rtl;
  backdrop-filter: blur(4px);
}
.nl-input:focus { border-color: rgba(255,255,255,.7); }
.nl-input::placeholder { color: rgba(255,255,255,.6); }
.nl-btn {
  background: #fff;
  color: var(--primary);
  border: none;
  border-radius: 9px;
  padding: 12px 22px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.nl-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.3); }

/* ── Footer ───────────────────────────────────── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-top: 52px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 44px;
}
.footer-logo {
  font-size: 22px;
  font-weight: 900;
  font-family: var(--font-heading);
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--text) 40%, var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-desc { font-size: 13px; color: var(--muted); line-height: 1.9; margin-bottom: 18px; font-family: var(--font-body); }
.social-links { display: flex; gap: 9px; }
.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-soft);
  transition: all var(--transition);
}
.social-link:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-3px); }
.footer-heading { font-size: 14px; font-weight: 800; margin-bottom: 18px; color: var(--text); font-family: var(--font-heading); }
.footer-links li + li { margin-top: 9px; }
.footer-links a { font-size: 13px; color: var(--muted); transition: all var(--transition); display: flex; align-items: center; gap: 6px; font-family: var(--font-main); }
.footer-links a:hover { color: var(--primary); padding-right: 4px; }
.footer-links a::before { content: '›'; color: var(--primary); font-size: 16px; }

/* OLSOUQ Branding */
.footer-olsouq {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  background: var(--bg);
  text-align: center;
}
.footer-olsouq-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
}
.footer-olsouq a {
  color: var(--gold);
  font-weight: 800;
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: .5px;
  transition: color var(--transition);
}
.footer-olsouq a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 16px 0;
  background: var(--bg);
}
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); flex-wrap: wrap; gap: 8px; }
.footer-badges { display: flex; gap: 6px; }
.badge {
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-family: var(--font-main);
}

/* ── Chatbot ──────────────────────────────────── */
.chatbot-fab {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4361ee, #3a0ca3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  cursor: pointer;
  box-shadow: 0 6px 28px rgba(67,97,238,.45);
  z-index: 500;
  transition: all var(--transition);
}
.chatbot-fab:hover { transform: scale(1.1) rotate(-5deg); }
.chatbot-widget {
  position: fixed;
  bottom: 100px;
  left: 28px;
  width: 330px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  z-index: 500;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.cw-header {
  background: linear-gradient(135deg, #4361ee, #3a0ca3);
  color: #fff;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 800;
  font-size: 14px;
  font-family: var(--font-heading);
}
.cw-close { background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; }
.cw-messages { padding: 16px; height: 250px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.cw-msg {
  max-width: 82%;
  padding: 9px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.6;
  font-family: var(--font-body);
}
.cw-msg.bot  { background: var(--surface2); align-self: flex-start; border-radius: 0 14px 14px 14px; }
.cw-msg.user { background: var(--primary); color: #fff; align-self: flex-end; border-radius: 14px 0 14px 14px; }
.cw-input-row { display: flex; border-top: 1px solid var(--border); }
.cw-input {
  flex: 1;
  background: var(--surface2);
  border: none;
  padding: 13px 15px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
  direction: rtl;
}
.cw-send {
  background: var(--primary);
  border: none;
  color: #fff;
  padding: 0 18px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background var(--transition);
}
.cw-send:hover { background: var(--primary-d); }

/* ── Write Article Page ───────────────────────── */
.editor-page { padding: 36px 0; }
.editor-grid { display: grid; grid-template-columns: 1fr 290px; gap: 26px; align-items: start; }
.editor-main { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; }
.editor-title-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2.5px solid var(--border);
  color: var(--text);
  font-size: 28px;
  font-family: var(--font-heading);
  font-weight: 800;
  padding: 8px 0 14px;
  outline: none;
  margin-bottom: 22px;
  direction: rtl;
  transition: border-color var(--transition);
}
.editor-title-input:focus { border-bottom-color: var(--primary); }
.editor-title-input::placeholder { color: var(--muted); }
.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
}
.toolbar-btn {
  padding: 7px 11px;
  background: none;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  transition: all var(--transition);
  font-family: var(--font-heading);
}
.toolbar-btn:hover { background: var(--border); border-color: var(--border); }
.editor-content {
  min-height: 420px;
  border: 1.5px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 18px;
  outline: none;
  font-size: 16px;
  line-height: 2;
  color: var(--text);
  direction: rtl;
  font-family: var(--font-body);
}
.ai-panel {
  background: linear-gradient(135deg, rgba(67,97,238,.08), rgba(0,200,150,.05));
  border: 1px solid rgba(67,97,238,.25);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 16px;
}
.ai-panel h4 { font-size: 13px; font-weight: 800; color: var(--accent2); margin-bottom: 12px; font-family: var(--font-heading); text-transform: uppercase; letter-spacing: .8px; }
.ai-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 10px 14px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 8px;
  transition: all var(--transition);
  text-align: right;
}
.ai-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--surface); }
.ai-result {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  font-size: 13px;
  margin-top: 10px;
  display: none;
  font-family: var(--font-body);
  line-height: 1.7;
}

/* ── Admin Dashboard ──────────────────────────── */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-sidebar {
  background: var(--surface);
  border-left: 1px solid var(--border);
  padding: 20px 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.admin-logo {
  padding: 0 20px 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 900;
  font-family: var(--font-heading);
}
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  font-family: var(--font-heading);
}
.admin-nav-item:hover, .admin-nav-item.active {
  background: rgba(200,16,46,.08);
  color: var(--primary);
  border-right: 3px solid var(--primary);
}
.admin-content { padding: 30px; background: var(--bg); }
.admin-header { margin-bottom: 28px; }
.admin-title  { font-size: 24px; font-weight: 900; font-family: var(--font-heading); }
.stats-grid   { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-bottom: 32px; }
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.stat-icon  { font-size: 30px; margin-bottom: 4px; }
.stat-value { font-size: 30px; font-weight: 900; font-family: var(--font-heading); }
.stat-label { font-size: 13px; color: var(--muted); font-family: var(--font-main); }
.stat-trend { font-size: 12px; color: var(--accent2); font-weight: 700; font-family: var(--font-main); }

/* ── Data Table ───────────────────────────────── */
.data-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.data-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  background: var(--surface2);
  padding: 12px 16px;
  text-align: right;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-heading);
}
.data-table td {
  padding: 12px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  font-family: var(--font-main);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--surface2); }
.status-badge { display: inline-block; padding: 3px 11px; border-radius: 20px; font-size: 11px; font-weight: 800; font-family: var(--font-heading); }
.status-published { background: rgba(0,200,150,.12); color: var(--accent2); }
.status-draft     { background: rgba(240,165,0,.12); color: var(--accent); }
.status-archived  { background: rgba(122,138,160,.12); color: var(--muted); }
.action-btns { display: flex; gap: 5px; }
.action-btn {
  padding: 4px 11px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--border);
  background: none;
  color: var(--text);
  transition: all var(--transition);
  text-decoration: none;
  font-family: var(--font-heading);
}
.action-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.action-btn.danger:hover { background: #8b0000; border-color: #8b0000; }

/* ── Profile Page ─────────────────────────────── */
.profile-header {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}
.profile-header::before {
  content: '';
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--gold), var(--accent2));
}
.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  flex-shrink: 0;
  box-shadow: 0 0 0 6px var(--primary-glow);
}
.profile-name { font-size: 26px; font-weight: 900; font-family: var(--font-heading); }
.profile-role {
  display: inline-block;
  background: rgba(200,16,46,.1);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  padding: 3px 14px;
  border-radius: 20px;
  margin: 5px 0;
  font-family: var(--font-heading);
}
.profile-bio { color: var(--muted); font-size: 14px; margin-top: 6px; font-family: var(--font-body); }

/* ── Skeleton Loading ─────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--surface2) 25%, var(--border) 50%, var(--surface2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.8s infinite;
  border-radius: 4px;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── Responsive ───────────────────────────────── */
@media (max-width: 1024px) {
  .articles-grid { grid-template-columns: repeat(2,1fr); }
  .articles-grid-4 { grid-template-columns: repeat(2,1fr); }
  .content-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
}
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { display: none; }
  .articles-grid { grid-template-columns: 1fr; }
  .header-search { display: none; }
  .header-spacer  { display: none; }
  .menu-toggle   { display: flex; }
  .main-nav { display: none; }
  .main-nav.open { display: block; }
  .nav-inner { flex-direction: column; align-items: flex-start; height: auto; padding: 8px 16px; gap: 2px; }
  .nav-link { width: 100%; height: auto; padding: 10px 14px; border-radius: 10px; }
  .nav-link.active::before { display: none; }
  .header-inner { justify-content: space-between; gap: 12px; padding: 0 16px; }
  .editor-grid { grid-template-columns: 1fr; }
  .form-row  { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .profile-header { flex-direction: column; text-align: center; }
  .chatbot-widget { left: 10px; right: 10px; width: auto; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .auth-card { padding: 28px 20px; }
}
