@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  src: url('/assets/fonts/plex-arabic-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  src: url('/assets/fonts/plex-arabic-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
:root {
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --obsidian: #090D16;
  --ink: #0F172A;
  --emerald: #059669;
  --gold: #D97706;
  --indigo: #059669;
  --cyan: #D97706;
  --amber: #D97706;
  --coral: #E11D48;
  --muted: #475569;
  --border: #E2E8F0;
  --radius: 16px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
}
a { color: var(--emerald); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
header.topbar {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  padding: 10px 0;
  gap: 16px;
  flex-wrap: wrap;
}
.brand-link { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--obsidian); font-size: 1.05rem; }
.brand-link img { height: 50px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 0.92rem; font-weight: 700; }
.nav-links a { color: var(--muted); }
.nav-links a:hover, .nav-links a.active { color: var(--emerald); text-decoration: none; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.88rem;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}
.btn-primary { background: linear-gradient(135deg, #059669 0%, #047857 55%, #D97706 100%); color: #fff !important; box-shadow: 0 8px 20px rgba(5,150,105,0.22); }
.btn-outline { border-color: var(--border); background: #fff; color: var(--obsidian) !important; }
.hero {
  background: radial-gradient(circle at 80% 20%, rgba(217,119,6,0.22), transparent 40%), linear-gradient(135deg, #090D16 0%, #0F172A 55%, #064E3B 100%);
  color: #fff;
  padding: 56px 0;
  border-bottom: 3px solid var(--gold);
}
.hero h1 { font-size: 2.3rem; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.02em; }
.hero p { color: #CBD5E1; max-width: 740px; font-size: 1.08rem; margin-bottom: 24px; }
.search-box {
  max-width: 660px;
  position: relative;
}
.search-box input {
  width: 100%;
  padding: 15px 20px;
  border-radius: 12px;
  border: 2px solid rgba(217,119,6,0.45);
  background: rgba(255,255,255,0.98);
  color: var(--obsidian);
  font-size: 1rem;
  font-family: inherit;
}
.search-results {
  margin-top: 8px;
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(9,13,22,0.18);
  border: 1px solid var(--border);
  display: none;
  max-height: 360px;
  overflow-y: auto;
}
.search-results a {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
}
.search-results a:hover { background: #ECFDF5; text-decoration: none; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 22px; margin: 36px 0; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 24px; margin: 28px 0; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 6px 20px rgba(9,13,22,0.04);
}
.card h2, .card h3 { color: var(--obsidian); margin-bottom: 10px; }
.sticker-thumb { width: 76px; height: 76px; object-fit: contain; margin-bottom: 14px; }
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-indigo { background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; }
.badge-cyan { background: #FEF3C7; color: #B45309; border: 1px solid #FDE68A; }
.badge-amber { background: #FEF3C7; color: #B45309; border: 1px solid #FDE68A; }
.badge-emerald { background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; }
.manual-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 32px;
  margin: 40px 0;
}
@media (max-width: 900px) {
  .manual-layout { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
.sidebar-nav {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  height: fit-content;
  position: sticky;
  top: 96px;
}
.sidebar-nav h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 12px; }
.sidebar-nav ul { list-style: none; }
.sidebar-nav li { margin-bottom: 8px; }
.sidebar-nav a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--ink); font-size: 0.92rem; font-weight: 600; }
.sidebar-nav a.active, .sidebar-nav a:hover { background: #ECFDF5; color: var(--emerald); text-decoration: none; }
.article-content {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
}
.article-content h2 { font-size: 1.55rem; color: var(--obsidian); margin: 28px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.article-content h2:first-child { margin-top: 0; }
.article-content h3 { font-size: 1.18rem; color: var(--ink); margin: 20px 0 8px; }
.article-content p, .article-content li { color: #334155; margin-bottom: 10px; }
.article-content ul, .article-content ol { padding-inline-start: 22px; margin-bottom: 16px; }
.code-block {
  background: #090D16;
  color: #E2E8F0;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid rgba(217,119,6,0.3);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.87rem;
  overflow-x: auto;
  margin: 14px 0;
  direction: ltr;
  text-align: left;
}
.callout {
  border-inline-start: 4px solid var(--emerald);
  background: #ECFDF5;
  padding: 16px 20px;
  border-radius: 10px;
  margin: 18px 0;
}
table.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 0.92rem;
}
table.doc-table th, table.doc-table td {
  border: 1px solid var(--border);
  padding: 11px 14px;
  text-align: start;
}
table.doc-table th { background: #F1F5F9; font-weight: 700; color: var(--obsidian); }
footer.site-footer {
  background: var(--obsidian);
  color: #94A3B8;
  padding: 44px 0;
  margin-top: 64px;
  font-size: 0.9rem;
  border-top: 3px solid var(--emerald);
}
footer.site-footer a { color: #E2E8F0; }