/* ═══════════════════════════════════════════════════════════════════════
   BBB Bar Guide — מערכת עיצוב 2026 "Midnight Bar"
   פחם עמוק · זהב חם · אדום BBB · זכוכית עדינה. RTL, מובייל-ראשון, נגיש.
   שומר על שמות המחלקות הישנים (glass-card, btn-bbb, bbb-chip…) כדי שכל
   העמודים הקיימים יקבלו את המראה החדש בלי שינוי לוגיקה.
   © אופיר ברנס (Ofir Baranes) 2026
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --bbb-red: #e63946;
  --bbb-red-dark: #b8232f;
  --bbb-gold: #f5b942;
  --bbb-gold-deep: #c98d1a;
  --bbb-green: #34d399;
  --bbb-blue: #60a5fa;
  --bbb-amber: #fb923c;

  --bg: #0a0a0e;
  --bg-2: #101016;
  --surface: rgba(22, 22, 30, 0.72);
  --surface-2: rgba(30, 30, 40, 0.85);
  --surface-solid: #16161e;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f4f1ea;
  --text-2: #b9b4aa;
  --text-3: #7d786f;

  --grad-brand: linear-gradient(120deg, var(--bbb-red) 0%, var(--bbb-gold) 100%);
  --grad-gold: linear-gradient(135deg, #ffd27a 0%, #f5b942 45%, #c98d1a 100%);
  --grad-soft: linear-gradient(135deg, rgba(230, 57, 70, 0.14), rgba(245, 185, 66, 0.10));

  --glass-bg: var(--surface);
  --glass-border: var(--line);
  --dark-bg: var(--bg);
  --dark-card: var(--surface-solid);

  --r-xl: 24px;
  --r-lg: 18px;
  --r-md: 14px;
  --r-sm: 10px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 50px -30px rgba(0, 0, 0, 0.9);
  --shadow-lg: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 40px 80px -40px rgba(0, 0, 0, 0.95);
  --glow-gold: 0 10px 30px -12px rgba(245, 185, 66, 0.55);
  --glow-red: 0 10px 30px -12px rgba(230, 57, 70, 0.6);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --nav-h: 64px;
  --tab-h: 68px;
  --font: 'Heebo', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { font-family: var(--font); }
html { direction: rtl; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
}
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(55% 40% at 90% -10%, rgba(230, 57, 70, 0.16), transparent 70%),
    radial-gradient(45% 35% at 0% 20%, rgba(245, 185, 66, 0.10), transparent 70%),
    radial-gradient(60% 50% at 50% 110%, rgba(245, 185, 66, 0.06), transparent 70%),
    linear-gradient(180deg, #0c0c12 0%, #08080c 100%);
}
main { flex: 1 0 auto; }
img, video { max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
::selection { background: rgba(245, 185, 66, 0.3); }
:focus-visible { outline: 2px solid var(--bbb-gold); outline-offset: 3px; border-radius: 8px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }

/* ─── רקעים ישנים (מנוטרלים בעדינות) ─── */
.bbb-bar-pattern {
  background-image:
    radial-gradient(circle at 20% 0%, rgba(245, 185, 66, 0.05), transparent 45%),
    repeating-linear-gradient(90deg, transparent, transparent 46px, rgba(255, 255, 255, 0.015) 46px, rgba(255, 255, 255, 0.015) 47px);
}
.bg-gradient-to-br.from-black { background: transparent !important; }

/* ─── כרטיס זכוכית ─── */
.glass-card {
  position: relative;
  overflow: hidden;
  background: var(--glass-bg);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s ease;
}
.glass-card::before {
  content: ''; position: absolute; top: 0; inset-inline: 0; height: 2px;
  background: var(--grad-brand); opacity: 0; transition: opacity .35s ease; pointer-events: none;
}
.glass-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-lg); }
.glass-card:hover::before { opacity: 1; }
.glass-card::after { display: none; }
.glass-card.is-static:hover { transform: none; }
.bbb-glow-border::before { display: none; }
a.glass-card:hover { transform: translateY(-3px); }

/* ─── טיפוגרפיה ─── */
.bbb-logo {
  font-size: 2.4rem; font-weight: 900; letter-spacing: -0.5px;
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  text-shadow: none;
}
.bbb-page-title {
  margin: 0; color: var(--text);
  font-size: clamp(1.8rem, 4.5vw, 2.8rem); line-height: 1.05; font-weight: 900; letter-spacing: -0.03em;
  background: none; -webkit-text-fill-color: initial; text-shadow: none;
}
.bbb-page-title em { font-style: normal; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.bbb-kicker {
  display: inline-flex; align-items: center; gap: .4rem; margin: 0;
  color: var(--bbb-gold); font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
}
.neon-rose-text { color: var(--text); text-shadow: none; }
.neon-gold-text { color: var(--bbb-gold); text-shadow: none; }
.bbb-title-glow { text-shadow: none; }
.bbb-section-title { animation: none; }
h1, h2, h3, h4 { letter-spacing: -0.01em; }

/* ─── כפתורים ─── */
.btn-bbb, .bbb-btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--grad-brand); color: #fff; border: none;
  padding: .85rem 1.5rem; border-radius: var(--r-md); font-weight: 800; letter-spacing: -0.01em;
  box-shadow: var(--glow-red); text-decoration: none; position: relative; overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .2s;
  text-shadow: none; line-height: 1.2;
}
.btn-bbb::after, .bbb-btn-primary::after {
  content: ''; position: absolute; top: 0; inset-inline-start: -60%; width: 45%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent); transform: skewX(-18deg);
  transition: inset-inline-start .6s var(--ease);
}
.btn-bbb:hover::after, .bbb-btn-primary:hover::after { inset-inline-start: 120%; }
.btn-bbb:hover, .bbb-btn-primary:hover { transform: translateY(-2px); filter: saturate(1.1); box-shadow: 0 16px 36px -14px rgba(230, 57, 70, .7); }
.btn-bbb:active, .bbb-btn-primary:active { transform: translateY(0) scale(.98); }
.btn-bbb:disabled, .bbb-btn-primary:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-bbb.is-gold { background: var(--grad-gold); color: #1a1206; box-shadow: var(--glow-gold); }
.btn-bbb.is-green { background: linear-gradient(120deg, #22c55e, #10b981); box-shadow: 0 10px 30px -12px rgba(16,185,129,.6); }
.btn-bbb.is-sm { padding: .55rem 1rem; font-size: .85rem; border-radius: var(--r-sm); }

.bbb-soft-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .8rem 1.2rem; border-radius: var(--r-md);
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); color: var(--text);
  font-weight: 700; text-decoration: none; transition: all .2s var(--ease); line-height: 1.2;
}
.bbb-soft-btn:hover { transform: translateY(-1px); border-color: rgba(245, 185, 66, 0.45); background: rgba(245, 185, 66, 0.08); }
.bbb-soft-btn.is-sm { padding: .5rem .9rem; font-size: .85rem; border-radius: var(--r-sm); }
.bbb-soft-btn.is-danger { color: #fca5a5; border-color: rgba(230,57,70,.3); }
.bbb-soft-btn.is-danger:hover { background: rgba(230,57,70,.12); }
.bbb-icon-btn { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; transition: all .2s var(--ease); flex-shrink: 0; }
.bbb-icon-btn:hover { color: var(--text); border-color: rgba(245,185,66,.45); transform: translateY(-1px); }

.bbb-btn-back {
  display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); color: var(--text-2);
  font-size: .85rem; font-weight: 600; text-decoration: none; margin-bottom: 1.25rem;
  backdrop-filter: blur(12px); transition: all .25s var(--ease);
}
.bbb-btn-back:hover { background: rgba(255,255,255,.08); color: var(--text); border-color: var(--line-2); transform: translateX(-3px); }
.bbb-btn-back-arrow { transition: transform .3s ease; }
.bbb-btn-back:hover .bbb-btn-back-arrow { transform: translateX(4px); }

/* ─── שדות ─── */
input, textarea, select {
  background: rgba(10, 10, 14, 0.6) !important;
  border: 1px solid var(--line-2) !important;
  color: var(--text) !important;
  border-radius: var(--r-md);
  transition: all .25s ease !important;
  box-shadow: none !important;
  font-family: var(--font);
}
input:focus, textarea:focus, select:focus {
  background: rgba(10, 10, 14, 0.85) !important;
  border-color: rgba(245, 185, 66, 0.6) !important;
  box-shadow: 0 0 0 4px rgba(245, 185, 66, 0.15) !important;
  outline: none !important;
}
input::placeholder, textarea::placeholder { color: var(--text-3); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--bbb-gold); width: 18px; height: 18px; }
input[type="color"] { padding: 4px; }
input[type="file"] { font-size: .9rem; }
input[type="file"]::file-selector-button { background: var(--grad-soft); color: var(--text); border: 1px solid var(--line-2); border-radius: 10px; padding: .5rem .9rem; margin-inline-end: .8rem; font-weight: 700; cursor: pointer; }
select option { background: #16161e; color: #fff; }
.bbb-input {
  flex: 1 1 260px; min-width: 200px; border-radius: 999px; padding: .75rem 1.1rem;
}
.bbb-label { display: block; font-size: .82rem; font-weight: 700; color: var(--text-2); margin-bottom: .45rem; }
.bbb-hint { font-size: .78rem; color: var(--text-3); margin-top: .35rem; }
.bbb-field { display: block; width: 100%; padding: .8rem 1rem; }
.bbb-switch { display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; padding: .55rem .2rem; font-weight: 600; color: var(--text); }
.bbb-switch input { width: 40px; height: 22px; appearance: none; -webkit-appearance: none; background: rgba(255,255,255,.12) !important; border-radius: 999px; position: relative; border: none !important; cursor: pointer; flex-shrink: 0; }
.bbb-switch input::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .25s var(--spring); }
.bbb-switch input:checked { background: var(--grad-brand) !important; }
.bbb-switch input:checked::after { transform: translateX(-18px); }

/* ─── צ'יפים, תגיות, סטטיסטיקות ─── */
.bbb-chip-row { display: flex; flex-wrap: wrap; gap: .45rem; }
.bbb-chip {
  display: inline-flex; align-items: center; gap: .35rem;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: var(--text-2);
  font-size: .8rem; font-weight: 700; line-height: 1; border-radius: 999px; padding: .55rem .9rem;
  transition: all .2s ease; text-decoration: none; cursor: pointer;
}
.bbb-chip:hover { border-color: rgba(245,185,66,.45); color: var(--text); }
.bbb-chip.is-active { background: var(--grad-brand); border-color: transparent; color: #fff; box-shadow: var(--glow-red); }
.bbb-chip.is-gold { background: rgba(245,185,66,.12); color: var(--bbb-gold); border-color: rgba(245,185,66,.3); }
.bbb-chip.is-green { background: rgba(52,211,153,.12); color: #6ee7b7; border-color: rgba(52,211,153,.3); }
.bbb-chip.is-red { background: rgba(230,57,70,.12); color: #fca5a5; border-color: rgba(230,57,70,.3); }
.bbb-chip.is-blue { background: rgba(96,165,250,.12); color: #93c5fd; border-color: rgba(96,165,250,.3); }
.bbb-tag { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 800; padding: .25rem .6rem; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--text-2); border: 1px solid var(--line); }

.bbb-stat-grid { margin-top: .85rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.bbb-stat-card {
  padding: .8rem .9rem; border-radius: var(--r-md);
  border: 1px solid var(--line); background: rgba(10, 10, 14, 0.5);
  display: flex; flex-direction: column; gap: .15rem; position: relative; overflow: hidden;
}
.bbb-stat-card::before { content: ''; position: absolute; inset-inline-start: 0; top: 10%; bottom: 10%; width: 3px; border-radius: 3px; background: var(--grad-gold); opacity: .8; }
.bbb-stat-card span { font-size: .72rem; color: var(--text-3); font-weight: 700; letter-spacing: .04em; }
.bbb-stat-card strong { font-size: 1.35rem; color: var(--text); font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; }

/* ─── פאנל גיבור ─── */
.bbb-hero-panel {
  position: relative; overflow: hidden;
  border: 1px solid var(--line-2);
  background:
    radial-gradient(circle at top right, rgba(245, 185, 66, 0.16), transparent 34%),
    radial-gradient(circle at top left, rgba(230, 57, 70, 0.18), transparent 30%),
    linear-gradient(150deg, rgba(22, 22, 30, 0.95), rgba(10, 10, 14, 0.98));
  box-shadow: var(--shadow-lg);
}
.bbb-hero-panel::before { display: none; }
.bbb-hero-panel::after {
  content: ''; position: absolute; inset-inline-end: -90px; inset-block-start: -110px; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,185,66,.18), transparent 68%); pointer-events: none;
}

/* ─── סרגל עליון + ניווט תחתון (המעטפת החדשה) ─── */
.bbb-app { min-height: 100vh; display: flex; flex-direction: column; }
.bbb-topbar {
  position: sticky; top: 0; z-index: 60; height: var(--nav-h);
  background: rgba(10, 10, 14, 0.72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.bbb-topbar-in { max-width: 1200px; margin: 0 auto; height: 100%; padding: 0 16px; display: flex; align-items: center; gap: 12px; }
.bbb-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 900; }
.bbb-brand .rings { display: block; }
.bbb-brand-name { font-size: 15px; line-height: 1.1; }
.bbb-brand-sub { display: block; font-size: 10px; font-weight: 800; letter-spacing: 2.5px; color: var(--text-3); text-transform: uppercase; }
.bbb-topnav { display: none; margin-inline-start: 8px; gap: 2px; }
.bbb-topnav a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 12px; text-decoration: none; color: var(--text-2); font-weight: 700; font-size: 14px; transition: all .2s var(--ease); white-space: nowrap; }
.bbb-topnav a i { color: var(--bbb-gold); font-size: 13px; }
.bbb-topnav a:hover { background: rgba(255,255,255,.06); color: var(--text); }
.bbb-topnav a.is-active { background: var(--grad-soft); color: var(--text); border: 1px solid rgba(245,185,66,.25); }
.bbb-topbar-right { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.bbb-user-chip { display: inline-flex; align-items: center; gap: 9px; padding: 5px 12px 5px 6px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: var(--text); text-decoration: none; font-size: 13px; font-weight: 700; }
.bbb-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--grad-brand); display: inline-flex; align-items: center; justify-content: center; font-weight: 900; color: #fff; font-size: 13px; flex-shrink: 0; }
.bbb-user-chip .role { display: block; font-size: 10px; color: var(--text-3); font-weight: 700; }
@media (min-width: 900px) { .bbb-topnav { display: flex; } }

.bbb-tabbar {
  position: fixed; bottom: 0; inset-inline: 0; z-index: 60; height: calc(var(--tab-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(10, 10, 14, 0.82); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr);
}
.bbb-tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-decoration: none; color: var(--text-3); font-size: 11px; font-weight: 700; transition: color .2s; position: relative; }
.bbb-tabbar a i { font-size: 19px; transition: transform .25s var(--spring); }
.bbb-tabbar a.is-active { color: var(--bbb-gold); }
.bbb-tabbar a.is-active i { transform: translateY(-2px) scale(1.08); }
.bbb-tabbar a.is-active::before { content: ''; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 3px; background: var(--grad-gold); }
.bbb-tabbar a.is-primary i { width: 44px; height: 44px; border-radius: 14px; background: var(--grad-brand); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; box-shadow: var(--glow-red); margin-top: -18px; }
.bbb-tabbar .badge { position: absolute; top: 8px; inset-inline-start: calc(50% + 6px); background: var(--bbb-red); color: #fff; font-size: 10px; min-width: 17px; height: 17px; border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
@media (min-width: 900px) { .bbb-tabbar { display: none; } }
body.has-tabbar { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 12px); }
@media (min-width: 900px) { body.has-tabbar { padding-bottom: 0; } }

.bbb-page { width: 100%; max-width: 1200px; margin: 0 auto; padding: 22px 16px 40px; }
.bbb-page.is-narrow { max-width: 860px; }
.bbb-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.bbb-page-head p { margin: .35rem 0 0; color: var(--text-2); font-size: .95rem; max-width: 640px; }
.bbb-page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.bbb-grid { display: grid; gap: 16px; }
.bbb-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bbb-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bbb-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .bbb-grid-3, .bbb-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .bbb-grid-2, .bbb-grid-3, .bbb-grid-4 { grid-template-columns: 1fr; } }
.bbb-card { padding: 20px; }
.bbb-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.bbb-card-title { margin: 0; font-size: 1.05rem; font-weight: 800; display: flex; align-items: center; gap: 9px; }
.bbb-card-title i { color: var(--bbb-gold); }
.bbb-section-h { display: flex; align-items: center; gap: 12px; margin: 26px 0 14px; }
.bbb-section-h h2 { margin: 0; font-size: 1.3rem; font-weight: 900; letter-spacing: -0.02em; }
.bbb-section-h .ic { width: 36px; height: 36px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: var(--grad-soft); border: 1px solid var(--line-2); color: var(--bbb-gold); }
.bbb-section-h .rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }

/* ─── כרטיסי ניווט בדשבורד ─── */
.bbb-nav-card {
  display: flex; align-items: center; gap: 16px; padding: 18px; text-decoration: none; color: var(--text);
  border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface);
  backdrop-filter: blur(18px); transition: transform .4s var(--ease), border-color .3s, box-shadow .4s var(--ease); position: relative; overflow: hidden;
}
.bbb-nav-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(245,185,66,.12), transparent 45%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.bbb-nav-card:hover { transform: translateY(-4px); border-color: rgba(245,185,66,.35); box-shadow: var(--shadow-lg); }
.bbb-nav-card:hover::before { opacity: 1; }
.bbb-nav-ic { width: 56px; height: 56px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff; flex-shrink: 0; box-shadow: 0 14px 28px -14px rgba(0,0,0,.8); }
.bbb-nav-card h3 { margin: 0; font-size: 1.1rem; font-weight: 800; }
.bbb-nav-card p { margin: 4px 0 0; color: var(--text-2); font-size: .88rem; line-height: 1.5; }
.bbb-nav-card .meta { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.bbb-nav-card .arrow { margin-inline-start: auto; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; color: var(--text-3); transition: all .3s var(--ease); flex-shrink: 0; }
.bbb-nav-card:hover .arrow { background: var(--grad-brand); color: #fff; border-color: transparent; transform: translateX(-4px); }

/* ─── כרטיסי פעולה (צ'קליסט) ─── */
.bbb-action-card {
  display: block; position: relative; min-height: 150px; padding: 1.2rem; border-radius: var(--r-xl);
  border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); text-decoration: none; color: var(--text);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; overflow: hidden;
}
.bbb-action-card::after { content: ''; position: absolute; inset: auto -20px -20px auto; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, rgba(245,185,66,.16), transparent 70%); pointer-events: none; }
.bbb-action-card:hover { transform: translateY(-4px); border-color: rgba(245,185,66,.4); box-shadow: var(--shadow-lg); }
.bbb-action-card .ic { width: 42px; height: 42px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; background: var(--grad-brand); color: #fff; box-shadow: var(--glow-red); margin-bottom: 10px; }
.bbb-action-card.is-gold .ic { background: var(--grad-gold); color: #1a1206; box-shadow: var(--glow-gold); }
.bbb-action-card.is-green .ic { background: linear-gradient(120deg, #22c55e, #10b981); }
.bbb-action-card-title { display: block; color: var(--text); font-size: 1.1rem; font-weight: 800; }
.bbb-action-card-text { display: block; margin-top: .45rem; color: var(--text-2); line-height: 1.55; font-size: .9rem; }
.bbb-status-card { padding: 1rem; border-radius: var(--r-lg); border: 1px solid var(--line); background: rgba(10,10,14,.5); }

/* ─── התראות ─── */
.bbb-alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid; font-size: .92rem; margin-bottom: 16px; }
.bbb-alert i { margin-top: 3px; }
.bbb-alert.is-success { background: rgba(52,211,153,.1); border-color: rgba(52,211,153,.3); color: #a7f3d0; }
.bbb-alert.is-error { background: rgba(230,57,70,.12); border-color: rgba(230,57,70,.35); color: #fecaca; }
.bbb-alert.is-warn { background: rgba(245,185,66,.1); border-color: rgba(245,185,66,.35); color: #fde68a; }
.bbb-alert.is-info { background: rgba(96,165,250,.1); border-color: rgba(96,165,250,.3); color: #bfdbfe; }

/* ─── שלבים (view_procedure) ─── */
.step-card { animation: fadeInUp .55s var(--ease) both; }
.step-card:nth-child(1) { animation-delay: .04s } .step-card:nth-child(2) { animation-delay: .08s } .step-card:nth-child(3) { animation-delay: .12s }
.step-card:nth-child(4) { animation-delay: .16s } .step-card:nth-child(5) { animation-delay: .2s } .step-card:nth-child(6) { animation-delay: .24s }
.step-card:nth-child(7) { animation-delay: .28s } .step-card:nth-child(8) { animation-delay: .32s } .step-card:nth-child(n+9) { animation-delay: .36s }
.bbb-step { position: relative; padding: 0; }
.bbb-step-body { padding: 20px 20px 18px; }
.bbb-step-top { display: flex; align-items: flex-start; gap: 14px; }
.bbb-step-num { width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.1rem; color: #fff; background: var(--grad-brand); box-shadow: var(--glow-red); transition: all .3s var(--ease); }
.bbb-step h2 { margin: 0; font-size: 1.2rem; font-weight: 800; line-height: 1.25; }
.bbb-step-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.bbb-step-desc { margin: 12px 0 0; color: var(--text-2); line-height: 1.75; white-space: pre-line; font-size: .97rem; }
.bbb-step-callout { display: flex; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid; font-size: .9rem; line-height: 1.6; }
.bbb-step-callout i { margin-top: 3px; }
.bbb-step-callout.is-tip { background: rgba(245,185,66,.08); border-color: rgba(245,185,66,.3); color: #fde68a; }
.bbb-step-callout.is-warn { background: rgba(230,57,70,.1); border-color: rgba(230,57,70,.35); color: #fecaca; }
.bbb-step-media { margin-top: 14px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: #000; }
.bbb-step-media img { width: 100%; max-height: 320px; object-fit: cover; display: block; }
.bbb-step-media video, .bbb-step-media iframe { width: 100%; aspect-ratio: 16/9; display: block; background: #000; border: 0; }
.bbb-step-check { position: absolute; top: 16px; inset-inline-start: 16px; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(10,10,14,.6); color: var(--text-3); display: inline-flex; align-items: center; justify-content: center; z-index: 5; transition: all .25s var(--spring); }
.bbb-step-check:hover { border-color: rgba(52,211,153,.6); color: #6ee7b7; }
.bbb-step-check.is-done, .bbb-step-toggle.is-done { background: rgba(52,211,153,.2); border-color: rgba(52,211,153,.6); color: #6ee7b7; }
.bbb-step.is-done { border-color: rgba(52,211,153,.35); }
.bbb-step.is-done .bbb-step-num { background: linear-gradient(120deg, #22c55e, #10b981); box-shadow: 0 10px 30px -12px rgba(16,185,129,.6); }
.bbb-step.is-done h2 { color: #a7f3d0; }
.bbb-step-toggle { position: absolute; top: .8rem; inset-inline-end: .8rem; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(10,10,14,.5); color: var(--text-2); z-index: 8; display: inline-flex; align-items: center; justify-content: center; transition: all .2s ease; }
.bbb-step-complete { border-color: rgba(52,211,153,.45) !important; }
.bbb-step-last { box-shadow: 0 0 0 2px rgba(245,185,66,.25); }
.bbb-step-trackable { position: relative; }
.bbb-table-wrap { overflow-x: auto; margin-top: 12px; border-radius: var(--r-md); border: 1px solid var(--line); background: rgba(10,10,14,.5); }
.bbb-table { width: 100%; border-collapse: collapse; font-size: .9rem; text-align: right; min-width: 280px; }
.bbb-table th { padding: 10px 14px; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--bbb-gold); font-weight: 800; border-bottom: 1px solid var(--line-2); background: rgba(245,185,66,.06); }
.bbb-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--text); }
.bbb-table tr:last-child td { border-bottom: 0; }
.bbb-table tbody tr:hover td { background: rgba(255,255,255,.03); }

/* ─── התקדמות ─── */
.bbb-command-center, .bbb-rubric-toolbar, .bbb-progress-panel { padding: 1rem 1.1rem; margin-bottom: 1.1rem; }
.bbb-command-title { margin: 0; font-size: 1.05rem; font-weight: 800; }
.bbb-command-subtitle { margin: .2rem 0 .8rem; color: var(--text-2); font-size: .88rem; }
.bbb-command-top { margin-bottom: 4px; }
.bbb-toolbar-row { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.bbb-progress-panel { max-width: 860px; margin-inline: auto; }
.bbb-progress-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.bbb-progress-top h3 { margin: 0; font-size: .95rem; font-weight: 800; }
.bbb-progress-top span { font-weight: 900; color: var(--bbb-gold); }
.bbb-progress-track { width: 100%; height: 10px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.bbb-progress-fill { width: 0; height: 100%; border-radius: inherit; background: var(--grad-gold); transition: width .35s var(--ease); }
.bbb-progress-stats { margin-top: .65rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; color: var(--text-2); font-size: .85rem; }
.bbb-progress-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.bbb-ring { --p: 0; width: 64px; height: 64px; border-radius: 50%; background: conic-gradient(var(--bbb-gold) calc(var(--p) * 1%), rgba(255,255,255,.08) 0); display: grid; place-items: center; flex-shrink: 0; }
.bbb-ring::after { content: attr(data-label); width: 50px; height: 50px; border-radius: 50%; background: var(--surface-solid); display: grid; place-items: center; font-size: .78rem; font-weight: 900; color: var(--text); }
.bbb-inline-counter { margin-top: .5rem; color: var(--text-3); font-size: .82rem; }
.bbb-flash-focus { animation: bbbFlashFocus .9s ease; }
@keyframes bbbFlashFocus { 0% { box-shadow: 0 0 0 0 rgba(245,185,66,.55) } 100% { box-shadow: 0 0 0 12px rgba(245,185,66,0) } }
.bbb-empty-inline { margin-top: 1rem; text-align: center; padding: 1rem; border: 1px dashed var(--line-2); border-radius: var(--r-md); color: var(--text-2); }
.bbb-empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 3.5rem 1.5rem; border-radius: var(--r-xl); border: 1px dashed var(--line-2); color: var(--text-2); background: rgba(255,255,255,.02); }
.bbb-empty-state i { font-size: 40px; color: var(--text-3); margin-bottom: 12px; }
.bbb-hidden { display: none !important; }
.bbb-favorite-btn { position: absolute; inset-inline-start: .75rem; inset-block-start: .75rem; width: 34px; height: 34px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(10,10,14,.6); color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; z-index: 20; backdrop-filter: blur(8px); transition: all .22s ease; }
.bbb-favorite-btn:hover { border-color: rgba(245,185,66,.5); color: var(--bbb-gold); transform: scale(1.06); }
.bbb-favorite-btn.is-favorite { color: var(--bbb-gold); background: rgba(245,185,66,.16); border-color: rgba(245,185,66,.45); }
.bbb-card-item { position: relative; }

/* ─── כרטיסי מתכונים (rubric) ─── */
.bbb-rubric-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.1rem; }
.bbb-rubric-card { animation: rubricAppear .6s var(--spring) both; text-decoration: none; display: block; position: relative; }
.bbb-rubric-card:nth-child(1){animation-delay:.04s}.bbb-rubric-card:nth-child(2){animation-delay:.08s}.bbb-rubric-card:nth-child(3){animation-delay:.12s}.bbb-rubric-card:nth-child(4){animation-delay:.16s}.bbb-rubric-card:nth-child(5){animation-delay:.2s}.bbb-rubric-card:nth-child(6){animation-delay:.24s}.bbb-rubric-card:nth-child(n+7){animation-delay:.28s}
@keyframes rubricAppear { from { opacity: 0; transform: translateY(24px) scale(.96) } to { opacity: 1; transform: none } }
.bbb-rubric-card-inner { position: relative; height: 300px; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s ease, border-color .3s; }
.bbb-rubric-card:hover .bbb-rubric-card-inner { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(245,185,66,.4); }
.bbb-rubric-card-front { position: absolute; inset: 0; border-radius: inherit; }
.bbb-rubric-card-image { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .8s var(--ease); }
.bbb-rubric-card:hover .bbb-rubric-card-image { transform: scale(1.07); }
.bbb-rubric-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,8,12,.96) 0%, rgba(8,8,12,.45) 45%, transparent 75%); }
.bbb-rubric-card-content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.3rem; }
.bbb-rubric-card-title { font-size: 1.25rem; font-weight: 900; color: #fff; margin-bottom: .2rem; letter-spacing: -0.02em; text-shadow: 0 2px 10px rgba(0,0,0,.8); }
.bbb-rubric-card-subtitle { font-size: .82rem; color: rgba(255,255,255,.75); margin-bottom: .8rem; }
.bbb-rubric-card-cta { display: inline-flex; align-items: center; gap: .45rem; font-size: .85rem; color: #fff; font-weight: 800; padding: .5rem 1.05rem; background: var(--grad-brand); border-radius: 999px; box-shadow: var(--glow-red); opacity: 0; transform: translateY(12px); transition: all .4s var(--ease); align-self: flex-start; }
.bbb-rubric-card:hover .bbb-rubric-card-cta { opacity: 1; transform: translateY(0); }
@media (hover: none) { .bbb-rubric-card-cta { opacity: 1; transform: none; } }
.bbb-rubric-card .video-flag { position: absolute; top: 12px; inset-inline-start: 12px; background: rgba(10,10,14,.7); border: 1px solid rgba(255,255,255,.2); color: #fff; font-size: .72rem; font-weight: 800; padding: .3rem .65rem; border-radius: 999px; backdrop-filter: blur(8px); display: inline-flex; gap: 5px; align-items: center; }
.bbb-rubric-close { position: absolute; top: 1rem; right: 1rem; width: 40px; height: 40px; border-radius: 50%; background: rgba(10,10,14,.6); border: 1px solid var(--line-2); color: var(--text); display: flex; align-items: center; justify-content: center; z-index: 10; }
.bbb-rubric-back-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 1rem; }
.bbb-rubric-card-back, .bbb-rubric-card-back-inner { display: none; }

/* ─── צ'קליסט ─── */
.bbb-checklist-hero, .bbb-report-card, .bbb-report-panel, .bbb-report-manager-box { position: relative; overflow: hidden; }
.bbb-identity-panel { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.bbb-checklist-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.bbb-checklist-item { border: 1px solid var(--line); background: var(--surface); }
.bbb-checklist-item.is-issue { border-color: rgba(251,146,60,.4); }
.bbb-checklist-item.is-na { opacity: .7; }
.bbb-checklist-index { width: 46px; height: 46px; flex: 0 0 46px; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; color: #fff; font-weight: 900; background: var(--grad-brand); box-shadow: var(--glow-red); }
.bbb-status-switch { display: flex; flex-wrap: wrap; gap: .5rem; }
.bbb-status-pill { position: relative; overflow: hidden; cursor: pointer; flex: 1 1 auto; }
.bbb-status-pill input { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.bbb-status-pill span { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; width: 100%; min-width: 110px; padding: .7rem .9rem; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: var(--text-2); font-weight: 800; font-size: .88rem; transition: all .18s ease; }
.bbb-status-pill input:checked + span { color: #fff; border-color: transparent; }
.bbb-status-pill.is-done input:checked + span { background: linear-gradient(120deg, #22c55e, #10b981); box-shadow: 0 10px 24px -12px rgba(16,185,129,.6); }
.bbb-status-pill.is-issue input:checked + span { background: linear-gradient(120deg, #f97316, #e63946); box-shadow: var(--glow-red); }
.bbb-status-pill.is-na input:checked + span { background: rgba(255,255,255,.14); color: var(--text); }
.bbb-upload-preview { padding: .25rem; border-radius: var(--r-md); background: rgba(255,255,255,.04); border: 1px solid var(--line); position: relative; }
.bbb-upload-preview img { width: 100%; height: 110px; object-fit: cover; border-radius: 10px; display: block; }
.bbb-upload-preview .rm { position: absolute; top: 8px; inset-inline-start: 8px; width: 28px; height: 28px; border-radius: 50%; background: rgba(10,10,14,.75); color: #fff; border: 1px solid rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: 12px; }

/* מצלמה — נקודות צילום בסגירה */
.bbb-photo-spots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.bbb-spot { position: relative; aspect-ratio: 4/3; border-radius: var(--r-lg); border: 2px dashed rgba(245,185,66,.4); background: rgba(245,185,66,.05); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; cursor: pointer; overflow: hidden; transition: all .25s var(--ease); color: var(--text-2); text-align: center; padding: 10px; }
.bbb-spot:hover { border-color: var(--bbb-gold); background: rgba(245,185,66,.1); transform: translateY(-2px); }
.bbb-spot i { font-size: 26px; color: var(--bbb-gold); }
.bbb-spot .name { font-weight: 800; font-size: .88rem; color: var(--text); }
.bbb-spot .sub { font-size: .72rem; color: var(--text-3); }
.bbb-spot.has-photo { border-style: solid; border-color: rgba(52,211,153,.6); }
.bbb-spot.has-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bbb-spot.has-photo .name { position: absolute; bottom: 8px; inset-inline: 8px; background: rgba(10,10,14,.75); border-radius: 8px; padding: 4px 8px; font-size: .78rem; backdrop-filter: blur(6px); }
.bbb-spot.has-photo .ok { position: absolute; top: 8px; inset-inline-start: 8px; width: 26px; height: 26px; border-radius: 50%; background: #10b981; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.bbb-spot.has-photo .retake { position: absolute; top: 8px; inset-inline-end: 8px; width: 28px; height: 28px; border-radius: 50%; background: rgba(10,10,14,.75); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; border: 1px solid rgba(255,255,255,.2); }
.bbb-spot.is-required::after { content: 'חובה'; position: absolute; top: 8px; inset-inline-end: 8px; font-size: .68rem; font-weight: 800; background: rgba(230,57,70,.85); color: #fff; padding: 2px 7px; border-radius: 999px; }
.bbb-spot.has-photo.is-required::after { display: none; }
.bbb-spot input { display: none; }
.bbb-sticky-submit { position: sticky; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 10px); z-index: 30; }
@media (min-width: 900px) { .bbb-sticky-submit { bottom: 16px; } }

/* ─── סרטונים ─── */
.bbb-video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.bbb-video-card { border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: transform .4s var(--ease), border-color .3s, box-shadow .4s; position: relative; text-align: right; padding: 0; color: var(--text); width: 100%; }
.bbb-video-card:hover { transform: translateY(-5px); border-color: rgba(245,185,66,.4); box-shadow: var(--shadow-lg); }
.bbb-video-thumb { position: relative; aspect-ratio: 16/10; background: #000 center/cover no-repeat; }
.bbb-video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bbb-video-thumb .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.bbb-video-thumb .play span { width: 58px; height: 58px; border-radius: 50%; background: rgba(10,10,14,.65); border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; padding-inline-start: 4px; transition: all .3s var(--spring); }
.bbb-video-card:hover .play span { transform: scale(1.12); background: var(--bbb-red); border-color: transparent; }
.bbb-video-thumb .dur { position: absolute; bottom: 10px; inset-inline-start: 10px; background: rgba(10,10,14,.8); color: #fff; font-size: .72rem; font-weight: 800; padding: 3px 8px; border-radius: 6px; direction: ltr; }
.bbb-video-thumb .cat { position: absolute; top: 10px; inset-inline-end: 10px; }
.bbb-video-thumb .watched { position: absolute; top: 10px; inset-inline-start: 10px; width: 26px; height: 26px; border-radius: 50%; background: #10b981; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.bbb-video-body { padding: 14px 16px 16px; }
.bbb-video-body h3 { margin: 0; font-size: 1rem; font-weight: 800; line-height: 1.3; }
.bbb-video-body p { margin: 5px 0 0; font-size: .85rem; color: var(--text-2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bbb-video-body .meta { display: flex; gap: 10px; margin-top: 10px; font-size: .75rem; color: var(--text-3); font-weight: 700; flex-wrap: wrap; }
.bbb-video-modal { border: none; background: transparent; padding: 0; max-width: min(1100px, 96vw); width: 100%; }
.bbb-video-modal::backdrop { background: rgba(4,4,8,.9); backdrop-filter: blur(10px); }
.bbb-video-modal .frame { background: var(--surface-solid); border: 1px solid var(--line-2); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); animation: zoomIn .35s var(--ease); }
.bbb-video-modal video { width: 100%; max-height: 72vh; background: #000; display: block; }
.bbb-video-modal .cap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.bbb-video-modal .cap h3 { margin: 0; font-size: 1.05rem; }
.bbb-video-modal .cap p { margin: 3px 0 0; color: var(--text-2); font-size: .85rem; }
@keyframes zoomIn { from { opacity: 0; transform: scale(.95) } to { opacity: 1; transform: none } }

/* מקליט */
.bbb-recorder { border-radius: var(--r-xl); overflow: hidden; background: #000; border: 1px solid var(--line-2); position: relative; aspect-ratio: 16/9; }
.bbb-recorder video { width: 100%; height: 100%; object-fit: cover; display: block; }
.bbb-recorder .rec-dot { position: absolute; top: 14px; inset-inline-start: 14px; display: none; align-items: center; gap: 8px; background: rgba(10,10,14,.7); padding: 5px 10px; border-radius: 999px; font-weight: 800; font-size: .8rem; color: #fff; direction: ltr; }
.bbb-recorder.is-recording .rec-dot { display: inline-flex; }
.bbb-recorder .rec-dot::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--bbb-red); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2 } }
.bbb-recorder .placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--text-2); }
.bbb-recorder .placeholder i { font-size: 40px; color: var(--bbb-gold); }
.bbb-rec-controls { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.bbb-rec-btn { width: 64px; height: 64px; border-radius: 50%; border: 4px solid rgba(255,255,255,.25); background: var(--bbb-red); box-shadow: var(--glow-red); color: #fff; font-size: 22px; display: flex; align-items: center; justify-content: center; transition: all .25s var(--spring); }
.bbb-rec-btn:hover { transform: scale(1.06); }
.bbb-rec-btn.is-stop { background: #fff; color: var(--bbb-red); border-color: rgba(230,57,70,.4); }
.bbb-upload-progress { height: 8px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 10px; }
.bbb-upload-progress > span { display: block; height: 100%; width: 0; background: var(--grad-gold); transition: width .2s; }
.bbb-dropzone { border: 2px dashed var(--line-2); border-radius: var(--r-lg); padding: 24px; text-align: center; color: var(--text-2); cursor: pointer; transition: all .25s; }
.bbb-dropzone:hover, .bbb-dropzone.is-over { border-color: var(--bbb-gold); background: rgba(245,185,66,.06); }
.bbb-dropzone i { font-size: 30px; color: var(--bbb-gold); display: block; margin-bottom: 8px; }
.bbb-video-row { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: var(--r-md); border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.bbb-video-row .th { width: 110px; aspect-ratio: 16/10; border-radius: 10px; background: #000 center/cover; flex-shrink: 0; overflow: hidden; }
.bbb-video-row .th img { width: 100%; height: 100%; object-fit: cover; }

/* ─── דוחות (admin) ─── */
.bbb-report-aside { width: min(100%, 320px); align-self: stretch; }
.bbb-report-card { border: 1px solid var(--line); }
.bbb-report-card.is-pending { border-color: rgba(245,185,66,.25); }
.bbb-report-card.is-reviewed { border-color: rgba(52,211,153,.25); }
.bbb-report-icon { width: 58px; height: 58px; flex: 0 0 58px; display: inline-flex; align-items: center; justify-content: center; border-radius: 18px; background: var(--grad-soft); border: 1px solid var(--line-2); color: var(--bbb-gold); }
.bbb-report-meta { display: flex; flex-wrap: wrap; gap: .7rem; color: var(--text-2); font-size: .88rem; }
.bbb-report-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.bbb-report-panel { padding: 1rem 1.1rem; border-radius: var(--r-lg); border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.bbb-report-panel.is-manager-note { background: var(--grad-soft); border-color: rgba(245,185,66,.25); }
.bbb-report-attachment { display: block; padding: .25rem; border-radius: var(--r-md); background: rgba(255,255,255,.04); border: 1px solid var(--line); transition: transform .18s ease, border-color .18s ease; position: relative; }
.bbb-report-attachment img { width: 100%; height: 150px; object-fit: cover; border-radius: 10px; display: block; }
.bbb-report-attachment .lbl { position: absolute; bottom: 10px; inset-inline: 10px; background: rgba(10,10,14,.75); color: #fff; font-size: .75rem; font-weight: 800; padding: 3px 8px; border-radius: 8px; backdrop-filter: blur(6px); }
.bbb-report-attachment:hover { transform: translateY(-2px); border-color: rgba(245,185,66,.4); }
.bbb-report-details { border: 1px solid var(--line); border-radius: var(--r-lg); background: rgba(255,255,255,.02); padding: 1rem 1.1rem; }
.bbb-report-details summary { cursor: pointer; list-style: none; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.bbb-report-details summary::-webkit-details-marker { display: none; }
.bbb-report-details summary::before { content: '\25BE'; color: var(--bbb-gold); transition: transform .25s; }
.bbb-report-details[open] summary::before { transform: rotate(180deg); }
.bbb-report-item { padding: .85rem 1rem; border-radius: var(--r-md); border: 1px solid var(--line); background: rgba(10,10,14,.45); }
.bbb-report-item.is-issue { border-color: rgba(251,146,60,.35); background: rgba(251,146,60,.08); }
.bbb-report-manager-box { padding: 1.1rem; border-radius: var(--r-lg); border: 1px solid var(--line); background: rgba(10,10,14,.5); }
.bbb-report-badge { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: .35rem .7rem; border-radius: 999px; font-size: .76rem; font-weight: 800; border: 1px solid var(--line-2); background: rgba(255,255,255,.05); color: var(--text); }
.bbb-report-badge.is-pending { color: #fde68a; border-color: rgba(245,185,66,.3); background: rgba(245,185,66,.1); }
.bbb-report-badge.is-reviewed { color: #a7f3d0; border-color: rgba(52,211,153,.3); background: rgba(52,211,153,.12); }
.bbb-report-badge.is-issue { color: #fdba74; border-color: rgba(251,146,60,.3); background: rgba(251,146,60,.12); }
.bbb-report-badge.is-attachment, .bbb-report-badge.is-neutral { color: var(--text-2); }
.bbb-report-badge.is-mail { color: #bfdbfe; border-color: rgba(96,165,250,.3); background: rgba(96,165,250,.12); }
@media (max-width: 1024px) { .bbb-report-grid { grid-template-columns: 1fr; } .bbb-report-aside { width: 100%; } }

/* ─── טוסט ─── */
.toast-container { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { padding: 12px 20px; border-radius: var(--r-md); font-weight: 700; animation: toastIn .4s var(--spring); box-shadow: var(--shadow-lg); border: 1px solid; backdrop-filter: blur(12px); font-size: .92rem; transition: all .4s; }
.toast-success { background: rgba(16,185,129,.9); border-color: rgba(255,255,255,.2); color: #fff; }
.toast-error { background: rgba(230,57,70,.92); border-color: rgba(255,255,255,.2); color: #fff; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-20px) } to { opacity: 1; transform: translateY(0) } }

/* ─── אנימציות ─── */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(18px) } to { opacity: 1; transform: translateY(0) } }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes shimmer { 100% { transform: translateX(100%) } }
.animate-fade-in-up { animation: fadeInUp .6s var(--ease) both; }
.bbb-card { animation: fadeInUp .5s var(--ease) both; }
.bbb-step-item { animation: fadeIn .4s ease both; }
.bbb-page-enter { opacity: 0; transform: translateY(8px); }
.bbb-page-enter.bbb-page-enter-active { opacity: 1; transform: translateY(0); transition: opacity .4s ease, transform .4s ease; }
.bbb-reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.bbb-reveal.in { opacity: 1; transform: none; }
.bbb-skeleton { background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.1), rgba(255,255,255,.04)); background-size: 200% 100%; animation: sk 1.4s infinite; border-radius: 10px; }
@keyframes sk { 0% { background-position: 200% 0 } 100% { background-position: -200% 0 } }
#bbbProgress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 9999; background: var(--grad-brand); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); pointer-events: none; }
#bbbProgress.go { transform: scaleX(.75); }

/* ─── פוטר ─── */
.bbb-footer { margin-top: auto; padding: 22px 16px; text-align: center; color: var(--text-3); font-size: .78rem; border-top: 1px solid var(--line); }
.bbb-footer strong { color: var(--text-2); }
.bbb-footer img { height: 40px; opacity: .85; margin: 0 auto 6px; display: block; }
footer.bg-black\/30 { background: transparent !important; border-color: var(--line) !important; }

/* ─── כניסה ─── */
.bbb-login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px calc(24px + env(safe-area-inset-bottom)); }
.bbb-login-card { width: 100%; max-width: 420px; padding: 36px 30px 28px; text-align: center; }
.bbb-login-card .rings { margin: 0 auto 8px; }
.bbb-login-card h1 { margin: 6px 0 2px; font-size: 1.4rem; font-weight: 900; }
.bbb-login-card p.sub { margin: 0 0 22px; color: var(--text-2); font-size: .9rem; }
.bbb-login-field { position: relative; margin-bottom: 14px; text-align: right; }
.bbb-login-field i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.bbb-login-field input { width: 100%; padding: 13px 42px 13px 14px; font-size: 15px; }

/* ─── הדפסה ─── */
@media print {
  body::before, .bbb-topbar, .bbb-tabbar, #bbbProgress, .no-print { display: none !important; }
  body { background: #fff; color: #111; }
  .glass-card { background: #fff; border: 1px solid #ddd; box-shadow: none; backdrop-filter: none; color: #111; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .bbb-reveal, .step-card, .bbb-rubric-card { opacity: 1; transform: none; }
}
