/* Premium typography stack — Inter (EN/ES), Heebo (HE), Space Grotesk (display), JetBrains Mono (code) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&family=Heebo:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  /* Dark theme (default) — construction psychology: gold (trust/value), deep black (stability), amber accents */
  --bg: #08080d;
  --sf: #141418;
  --sf-2: #1c1c24;            /* third elevation tier */
  --bd: rgba(255,255,255,0.08);
  --bd-strong: #2a2a30;
  --ac: #e8c547;
  --ac-2: #ffd966;
  --acd: #e8c54733;
  --ac-glow: 0 0 40px rgba(232,197,71,0.15);
  --tx: #f0f0f0;
  --txd: #888;
  --r: 10px;
  --r-sm: 8px;
  --r-lg: 16px;
  --r-xl: 20px;
  --red: #ff6b6b;
  --grn: #51cf66;
  --blu: #74b9ff;
  --orange: #ff9f43;
  --amber: #ffa502;
  /* Spacing scale — locked rhythm */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 32px;
  --space-4: 64px;
  --space-5: 128px;
  /* Chat surfaces — elevated AI bubble bg, deep code bg */
  --bg-elevated: #1a1a20;
  --bg-deep: #05050a;
  --shadow-bubble: 0 2px 8px rgba(0,0,0,0.12);
  --shadow-bubble-user: 0 4px 12px rgba(232,197,71,0.10);
  /* Mesh gradient — applied to body for warm layered depth */
  --mesh: radial-gradient(at 15% 0%, rgba(99,84,205,0.10) 0%, transparent 45%),
          radial-gradient(at 85% 90%, rgba(232,197,71,0.06) 0%, transparent 50%);
  /* Typography */
  --font-en: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-he: 'Heebo', 'Inter', system-ui, sans-serif;
  /* Latin headings → Space Grotesk; Hebrew headings auto-fall through to Heebo (Space Grotesk has no Hebrew glyphs) */
  --font-display: 'Space Grotesk', 'Heebo', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace;
  /* Easing curves — varied, not single-use */
  --transition: .2s cubic-bezier(.4,0,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);          /* premium ease — Linear/Cursor signature */
  --ease-spring: cubic-bezier(.34,1.56,.64,1);   /* magnetic feel */
}

/* Light theme — day mode */
[data-theme="light"] {
  --bg: #fafaf7;
  --sf: #ffffff;
  --bd: #e5e5e0;
  --ac: #b8860b;
  --acd: #b8860b22;
  --tx: #1a1a1c;
  --txd: #666;
  --red: #d63031;
  --grn: #2d9a43;
  --blu: #0984e3;
  --bg-elevated: #f2f0ea;
  --bg-deep: #eeece6;
  --shadow-bubble: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-bubble-user: 0 4px 12px rgba(184,134,11,0.25);
}

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

body {
  font-family: var(--font-en);
  background: var(--bg);
  color: var(--tx);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  line-height: 1.5;
  transition: background .3s ease, color .3s ease;
}

/* Mesh applied only to dark mode + body.with-mesh class (opt-in) */
body.with-mesh:not([data-theme="light"]) {
  background: var(--bg) var(--mesh);
  background-attachment: fixed;
}

/* Premium focus state — gold ring, accessible & branded */
:focus-visible {
  outline: 2px solid var(--ac);
  outline-offset: 2px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

/* Tabular numerals on stat blocks (auto for any element with .num or font-variant-numeric set) */
.num, [data-num] {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'ss01', 'tnum';
}

/* Hebrew pages use Heebo */
body[lang="he"], [lang="he"] { font-family: var(--font-he); }

/* ── Typography Hierarchy ── */
h1, .h1 {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
h3, .h3 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
h4, .h4 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.35;
}
.text-sm { font-size: 14px; font-weight: 500; line-height: 1.5; }
.text-xs { font-size: 12px; font-weight: 500; line-height: 1.5; }

/* Logo uses display font */
.nav-logo, .mf-brand { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.05em; }

/* Buttons: crisp and readable */
button, .btn, input, select, textarea {
  font-family: var(--font-en);
  letter-spacing: 0.005em;
}
body[lang="he"] button, body[lang="he"] .btn,
body[lang="he"] input, body[lang="he"] select, body[lang="he"] textarea {
  font-family: var(--font-he);
}

/* Mobile scaling */
@media (max-width: 700px) {
  h1, .h1 { font-size: 32px; }
  h2, .h2 { font-size: 24px; }
  h3, .h3 { font-size: 20px; }
  body { font-size: 14px; }
}

/* Code / credit numbers monospace */
code, pre, .mono, .credit-count {
  font-family: var(--font-mono);
  font-feature-settings: 'zero', 'calt';
}

/* Global smooth animations */
a, button, input, textarea, select, .btn, .card {
  transition: all var(--transition);
}

/* Page load fade */
.page, .home-section, .news-card, .home-tool, .card {
  animation: fadeInUp .5s cubic-bezier(.4,0,.2,1);
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Stagger cards */
.home-tool:nth-child(2) { animation-delay: .05s; }
.home-tool:nth-child(3) { animation-delay: .1s; }
.home-tool:nth-child(4) { animation-delay: .15s; }
.home-tool:nth-child(5) { animation-delay: .2s; }
.home-tool:nth-child(6) { animation-delay: .25s; }
.home-tool:nth-child(7) { animation-delay: .3s; }
.home-tool:nth-child(8) { animation-delay: .35s; }

/* Theme toggle button */
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--bd);
  background: var(--sf); color: var(--ac); cursor: pointer; font-size: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all var(--transition); flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--ac); transform: rotate(20deg);
}

a { color: var(--ac); text-decoration: none; transition: opacity .2s; }
a:hover, a:active { opacity: .8; }

/* ── Nav (sticky shrink on scroll) ── */
.nav {
  width: 100%;
  height: 64px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(10,10,12,0.72);
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  transition: height .3s var(--ease-out), background .3s var(--ease-out), padding .3s var(--ease-out);
  position: sticky; top: 0; z-index: 50;
}
.nav.scrolled {
  height: 52px;
  background: rgba(8,8,13,0.92);
  border-bottom-color: rgba(255,255,255,0.10);
}
  position: sticky;
  top: 0;
  z-index: 100;
}
[data-theme="light"] .nav {
  background: rgba(255,255,255,0.72);
  border-bottom-color: rgba(0,0,0,0.08);
}
.nav-logo {
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 2px;
  color: var(--ac);
  text-decoration: none;
}
.nav-logo span { color: var(--tx); font-weight: 300; }
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-link {
  font-size: 14px;
  color: var(--txd);
  text-decoration: none;
  transition: color .2s;
  padding: 8px 4px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}
.nav-link:hover, .nav-link:active { color: var(--ac); opacity: 1; }
.nav-link.nav-active { color: var(--ac); }

/* Credit pill (compact, for app nav) */
.nav-credit-pill {
  display: flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 8px;
  background: var(--acd); font-size: 13px; font-weight: 700;
  color: var(--ac); cursor: default; white-space: nowrap;
}
.nav-credit-pill.low { animation: creditPulse 1.5s ease-in-out infinite; }
.nav-credit-pill.empty { background: rgba(255,107,107,.15); color: var(--red); animation: creditPulse 1s ease-in-out infinite; }

/* ── Language Toggle ── */
.lang-toggle {
  display: flex;
  gap: 1px;
  background: var(--bg);
  border-radius: 6px;
  padding: 2px;
}
.lang-btn {
  padding: 10px 12px;
  border: none;
  border-radius: 5px;
  background: transparent;
  color: var(--txd);
  font-family: var(--font-en);
  font-size: 14px;
  cursor: pointer;
  transition: all .2s;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lang-btn.on { background: var(--sf); color: var(--ac); }
.lang-btn:hover:not(.on), .lang-btn:active:not(.on) { color: var(--tx); }

/* ── Buttons ── */
.btn {
  padding: 10px 24px;
  border: 1px solid var(--bd);
  border-radius: var(--r);
  background: var(--sf);
  color: var(--tx);
  font-family: var(--font-en);
  font-size: 14px;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
}
.btn:hover, .btn:active { border-color: var(--ac); color: var(--ac); opacity: 1; }
.btn-primary {
  background: var(--ac);
  color: var(--bg);
  border-color: var(--ac);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0,0,0,0.18);
  transition: transform .18s var(--ease-out), background .18s var(--ease-out), box-shadow .18s var(--ease-out);
}
.btn-primary:hover {
  background: var(--ac-2);
  color: var(--bg);
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px -4px rgba(232,197,71,0.4);
}
.btn-primary:active { transform: translateY(0); }
.btn-large {
  padding: 14px 36px;
  font-size: 16px;
  border-radius: 12px;
  min-height: 54px;
}
.btn-sm {
  padding: 8px 14px;
  font-size: 14px;
  min-height: 48px;
}
.btn-pro-active {
  background: var(--acd);
  border-color: var(--ac);
  color: var(--ac);
  font-weight: 700;
}
.btn-danger {
  border-color: var(--red);
  color: var(--red);
}
.btn-danger:hover, .btn-danger:active { background: rgba(255,107,107,.1); }

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-card {
  background: var(--sf);
  border: 1px solid var(--bd);
  border-radius: 14px;
  padding: 24px;
  width: 92%;
  max-height: 90vh;
  overflow-y: auto;
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  z-index: 300;
  opacity: 0;
  transition: all .3s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-ok { background: rgba(81,207,102,.15); border: 1px solid var(--grn); color: var(--grn); }
.toast-err { background: rgba(255,107,107,.15); border: 1px solid var(--red); color: var(--red); }
.toast-info { background: var(--acd); border: 1px solid var(--ac); color: var(--ac); }

/* ── Page Shell ── */
.page {
  width: 92%;
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 52px);
}
.page-title {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 4px;
}
.page-sub {
  font-size: 15px;
  color: var(--txd);
  margin-bottom: 24px;
}
.page-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--txd);
  margin-bottom: 16px;
  text-decoration: none;
  min-height: 48px;
}
.page-back:hover, .page-back:active { color: var(--ac); opacity: 1; }

/* ── Card ── */
.card {
  background: var(--sf);
  border: 1px solid var(--bd);
  border-radius: var(--r-lg);
  padding: 20px;
}

/* ── Loading dots ── */
.dots { display: inline-flex; gap: 4px; }
.dots span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ac);
  animation: dotBounce 1.2s infinite;
}
.dots span:nth-child(2) { animation-delay: .2s; }
.dots span:nth-child(3) { animation-delay: .4s; }
@keyframes dotBounce { 0%,80%,100% { transform: scale(0); } 40% { transform: scale(1); } }

/* ── Progress Bar ── */
.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--bd);
  border-radius: 3px;
  overflow: hidden;
  margin: 8px 0;
}
.progress-fill {
  height: 100%;
  background: var(--ac);
  border-radius: 3px;
  transition: width .4s ease;
}

/* ── Textarea / Input ── */
.input, .textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--bd);
  border-radius: var(--r);
  background: var(--bg);
  color: var(--tx);
  font-family: var(--font-en);
  font-size: 16px;
  user-select: text;
  -webkit-user-select: text;
}
.input:focus, .textarea:focus { outline: none; border-color: var(--ac); }
.textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
.input-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--txd);
  margin-bottom: 4px;
  display: block;
}

/* ── Footer ── */
.footer {
  margin-top: auto;
  padding: 32px 20px 20px;
  text-align: center;
  border-top: 1px solid var(--bd);
}
.footer-brand {
  font-size: 12px;
  color: var(--txd);
  opacity: .8;
  margin-bottom: 8px;
}
.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.footer-links a {
  font-size: 12px;
  color: var(--txd);
  opacity: .8;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
.footer-links a:hover, .footer-links a:active { opacity: .7; color: var(--ac); }
.footer-links svg { width: 12px; height: 12px; }
.footer-legal {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-top: 8px;
}
.footer-legal a {
  font-size: 11px; color: var(--txd); opacity: .8; text-decoration: none; transition: opacity .2s;
}
.footer-legal a:hover { opacity: 1; color: var(--ac); }
.footer-legal span { font-size: 11px; color: var(--txd); opacity: .7; }

/* ── RTL Support ── */
[dir="rtl"] .price-features,
[dir="rtl"] .credit-table th {
  text-align: right;
}
[dir="rtl"] .ob-select,
[dir="rtl"] select {
  background-position: left 14px center;
}

/* Numbers and prices stay LTR in RTL */
[dir="rtl"] .price-amount,
[dir="rtl"] .dash-num,
[dir="rtl"] .stat-num,
[dir="rtl"] .credit-count,
[dir="rtl"] .featured-price {
  direction: ltr;
  unicode-bidi: isolate;
}

/* Arrows flip in RTL */
[dir="rtl"] .page-back {
  direction: rtl;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .nav { padding: 12px 16px; }
  .nav-logo { font-size: 15px; }
  .nav-right { gap: 6px; }
  .nav-link { display: none; }
  .page { padding: 16px 0; }
  .btn-large { padding: 14px 24px; font-size: 15px; }
}

/* ── Credit Bar ── */
.credit-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--acd);
  font-size: 14px;
  font-weight: 700;
  color: var(--ac);
  cursor: default;
  min-height: 36px;
}
.credit-bar.credit-low {
  animation: creditPulse 1.5s ease-in-out infinite;
}
.credit-bar.credit-empty {
  background: rgba(255,107,107,.15);
  color: var(--red);
  animation: creditPulse 1s ease-in-out infinite;
}
@keyframes creditPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}

@keyframes voicePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,107,107,.3); }
  50% { box-shadow: 0 0 0 8px rgba(255,107,107,0); }
}
@keyframes tipSlideUp {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ── How It Works ── */
.hiw-toggle {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 10px 16px; border: 1px solid var(--bd); border-radius: 10px;
  background: var(--sf); font-family: var(--font-en); font-size: 14px;
  font-weight: 600; color: var(--txd); transition: all .2s; margin-bottom: 14px;
  min-height: 48px; width: 100%;
}
.hiw-toggle:hover { border-color: var(--ac); color: var(--ac); }
.hiw-toggle.open { border-color: var(--ac); color: var(--ac); border-bottom-left-radius: 0; border-bottom-right-radius: 0; margin-bottom: 0; }
.hiw-toggle .hiw-arrow { transition: transform .2s; font-size: 12px; margin-left: auto; }
.hiw-toggle.open .hiw-arrow { transform: rotate(180deg); }
.hiw-body {
  display: none; background: var(--sf); border: 1px solid var(--ac); border-top: none;
  border-radius: 0 0 10px 10px; padding: 18px 16px; margin-bottom: 14px;
}
.hiw-body.open { display: block; }
.hiw-steps {
  display: flex; gap: 8px; margin-bottom: 14px;
}
.hiw-step {
  flex: 1; background: var(--bg); border: 1px solid var(--bd); border-radius: 10px;
  padding: 14px 10px; text-align: center; position: relative;
}
.hiw-step .hiw-num {
  width: 24px; height: 24px; border-radius: 50%; background: var(--acd);
  color: var(--ac); font-size: 12px; font-weight: 700; display: inline-flex;
  align-items: center; justify-content: center; margin-bottom: 6px;
}
.hiw-step .hiw-icon { font-size: 22px; margin-bottom: 4px; display: block; }
.hiw-step p { font-size: 12px; color: var(--tx); line-height: 1.4; }
.hiw-example {
  background: var(--acd); border-radius: 8px; padding: 10px 14px;
  font-size: 13px; color: var(--ac); line-height: 1.5; margin-bottom: 12px;
}
.hiw-example::before { content: '💡 '; }
.tool-demo-video {
  background: var(--bg); border: 1px dashed var(--bd); border-radius: 10px;
  padding: 24px; text-align: center; color: var(--txd); font-size: 13px;
  max-height: 400px; overflow: hidden;
}
.tool-demo-video video {
  width: 100%; max-height: 380px; border-radius: 8px; object-fit: contain;
}
@media (max-width: 600px) {
  .hiw-steps { flex-direction: column; }
}

/* ── Profile Avatar & Dropdown ── */
.nav-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--bd); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: var(--bg); background: var(--ac);
  transition: all .2s; flex-shrink: 0; overflow: hidden; user-select: none;
}
.nav-avatar:hover { border-color: var(--ac); box-shadow: 0 0 14px var(--acd); }
.nav-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nav-avatar-wrap { position: relative; }

/* Backdrop — invisible click-catcher on desktop, dim overlay on mobile */
.nav-dd-backdrop {
  display: none; position: fixed; inset: 0; background: transparent; z-index: 499;
}
.nav-dd-backdrop.open { display: block; }
@media (max-width: 600px) {
  .nav-dd-backdrop { background: rgba(0,0,0,.5); backdrop-filter: blur(4px); }
}

.nav-dropdown {
  position: fixed; top: 60px; right: 16px;
  width: 280px; background: #1a1a1f;
  border: 1px solid rgba(232,197,71,.25); border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0,0,0,.6), 0 0 0 1px rgba(232,197,71,.06);
  z-index: 500; display: none; overflow: hidden;
}
.nav-dropdown.open { display: flex; flex-direction: column; animation: ddSlideIn .18s ease; }
@keyframes ddSlideIn {
  from { opacity: 0; transform: translateY(-6px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Header */
.nav-dd-header { padding: 16px 18px 14px; border-bottom: 1px solid rgba(255,255,255,.06); }
.nav-dd-top { display: flex; align-items: center; gap: 10px; }
.nav-dd-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--ac);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 900; color: var(--bg); flex-shrink: 0; overflow: hidden;
}
.nav-dd-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nav-dd-name { font-size: 15px; font-weight: 700; line-height: 1.2; }
.nav-dd-email { font-size: 12px; color: var(--txd); margin-top: 1px; word-break: break-all; }
.nav-dd-badge {
  display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .5px;
  padding: 2px 8px; border-radius: 5px; margin-top: 4px;
}
.badge-free { background: rgba(136,136,136,.15); color: var(--txd); }
.badge-pro { background: var(--acd); color: var(--ac); }
.badge-featured { background: rgba(232,197,71,.2); color: var(--ac); border: 1px solid rgba(232,197,71,.3); }

/* Credits row */
.nav-dd-credits-row {
  padding: 12px 18px; border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-dd-credits-top {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px;
}
.nav-dd-credits-label { font-size: 13px; color: var(--txd); display: flex; align-items: center; gap: 4px; }
.nav-dd-credits-val { font-size: 15px; font-weight: 800; color: var(--ac); }
.nav-dd-credits-bar {
  width: 100%; height: 4px; background: rgba(255,255,255,.06); border-radius: 2px; overflow: hidden;
}
.nav-dd-credits-fill {
  height: 100%; background: var(--ac); border-radius: 2px; transition: width .4s;
}
.nav-dd-credits-fill.low { background: var(--red); }

/* Menu items */
.nav-dd-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 18px; font-size: 14px; color: var(--tx); text-decoration: none;
  transition: background .12s; cursor: pointer;
  border: none; background: none; width: 100%; font-family: inherit; text-align: start;
}
.nav-dd-item:hover { background: #2a2a2f; opacity: 1; color: var(--tx); }
.nav-dd-item .dd-icon { width: 20px; text-align: center; flex-shrink: 0; font-size: 15px; }
.nav-dd-item .dd-label { flex: 1; }
.nav-dd-item .dd-badge {
  font-size: 11px; color: var(--txd); background: rgba(255,255,255,.06);
  padding: 2px 8px; border-radius: 5px;
}
.nav-dd-divider { height: 1px; background: rgba(255,255,255,.06); margin: 2px 0; }
.nav-dd-item.danger { color: var(--red); }
.nav-dd-item.danger:hover { background: rgba(255,107,107,.1); }
.nav-dd-item.accent { color: var(--ac); }
.nav-dd-item.accent:hover { background: rgba(232,197,71,.1); }
.nav-dd-item.green { color: var(--grn); }
.nav-dd-item.green:hover { background: rgba(81,207,102,.1); }

/* Language switcher inside dropdown */
.nav-dd-lang {
  display: flex; gap: 4px; padding: 8px 18px 10px; border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-dd-lang-btn {
  flex: 1; padding: 8px; border: 1px solid rgba(255,255,255,.08); border-radius: 8px;
  background: none; color: var(--txd); font-family: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .15s; text-align: center;
}
.nav-dd-lang-btn.on {
  border-color: rgba(232,197,71,.3); color: var(--ac); background: rgba(232,197,71,.08);
}
.nav-dd-lang-btn:hover:not(.on) { border-color: rgba(255,255,255,.15); color: var(--tx); }

/* Mobile: full-screen overlay */
@media (max-width: 600px) {
  .nav-dropdown {
    top: auto; bottom: 0; left: 0; right: 0;
    width: 100%; max-height: 85vh; overflow-y: auto;
    border-radius: 20px 20px 0 0; border-bottom: none;
  }
  .nav-dropdown.open { animation: ddSlideUp .22s ease; }
  @keyframes ddSlideUp {
    from { opacity: 0; transform: translateY(100%); }
    to { opacity: 1; transform: translateY(0); }
  }
  .nav-dd-item { padding: 14px 20px; font-size: 15px; }
  .nav-dd-header { padding: 20px; }
  .nav-dd-credits-row { padding: 14px 20px; }
  .nav-dd-lang { padding: 10px 20px 12px; }
}

/* ── Animations ── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn .3s ease; }

/* Nav banner: never flip RTL when switching to Hebrew — keep layout fixed, only text translates */
.ed-topnav, nav.nav, .nav { direction: ltr !important; }
.ed-topnav .nav-link, .ed-topnav .nav-logo { unicode-bidi: plaintext; }
