/* =====================================================================
   עיצוב — מובייל קודם. לשינוי צבעים: ערוך את המשתנים ב-:root
   ===================================================================== */

:root {
  /* ✏️ צבעי המותג */
  --blue: #1fb6ff;
  --blue-deep: #2a6bff;
  --orange: #ff7a1a;
  --orange-hot: #ffb020;
  --discord: #5865f2;

  --bg: #070b14;
  --bg-soft: #0c1322;
  --card: #0f1829;
  --card-2: #131e33;
  --border: rgba(120, 170, 255, 0.14);
  --text: #e9effc;
  --muted: #92a0bc;
  --danger: #ff5470;
  --success: #2ee59d;

  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 64px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  --glow-blue: 0 0 24px rgba(31, 182, 255, 0.45);
  --glow-orange: 0 0 26px rgba(255, 122, 26, 0.55);
  --font: "Rubik", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

/* ---------- בסיס ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 500px at 100% -10%, rgba(42, 107, 255, 0.22), transparent 60%),
    radial-gradient(700px 500px at -10% 40%, rgba(255, 122, 26, 0.12), transparent 60%),
    radial-gradient(800px 600px at 100% 100%, rgba(31, 182, 255, 0.1), transparent 60%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* רשת עדינה ברקע */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(120, 170, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 170, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at top, #000 20%, transparent 75%);
}

img, video { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 800; }
p { margin: 0 0 1em; }
code {
  font-family: ui-monospace, Consolas, monospace;
  background: rgba(31, 182, 255, 0.1);
  color: var(--blue);
  padding: 0.1em 0.4em;
  border-radius: 6px;
  font-size: 0.9em;
  direction: ltr;
  unicode-bidi: isolate;
}
.muted { color: var(--muted); }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 16px; }
.container.narrow { max-width: 720px; }

.grad {
  background: linear-gradient(90deg, var(--blue), var(--blue-deep) 40%, var(--orange) 75%, var(--orange-hot));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- כפתורים ---------- */
.btn {
  --bg-btn: var(--card-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.8em 1.3em;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--bg-btn);
  color: #fff;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.25s ease, filter 0.2s ease, background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.btn:disabled { opacity: 0.7; cursor: wait; transform: none; }

.btn-sm { padding: 0.55em 1.1em; font-size: 0.92rem; }
.btn-lg { padding: 0.95em 1.6em; font-size: 1.05rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--orange-hot), var(--orange) 55%, #ff5a1a);
  color: #1a0b00;
  box-shadow: var(--glow-orange);
}
.btn-primary:hover { box-shadow: 0 0 36px rgba(255, 122, 26, 0.75); }

.btn-discord { background: var(--discord); box-shadow: 0 0 22px rgba(88, 101, 242, 0.45); }
.btn-tiktok {
  background: #0b0b0f;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: -3px 0 0 rgba(37, 244, 238, 0.7), 3px 0 0 rgba(254, 44, 85, 0.7);
}
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--blue); box-shadow: var(--glow-blue); }

.ico { width: 1.2em; height: 1.2em; flex: none; }

.link-btn {
  background: none;
  border: 0;
  color: var(--muted);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
  margin-top: 1rem;
}
.link-btn:hover { color: var(--text); }

/* ---------- תפריט עליון ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  transition: background 0.25s, box-shadow 0.25s, border-color 0.25s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled,
.site-header.nav-open {
  background: rgba(7, 11, 20, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.2px;
}
.logo-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  box-shadow: var(--glow-blue);
  font-size: 1rem;
}

.nav-toggle {
  display: grid;
  gap: 5px;
  width: 44px;
  height: 44px;
  place-content: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s, opacity 0.2s;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* מובייל: תפריט נפתח */
.site-nav {
  position: absolute;
  top: var(--header-h);
  inset-inline: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 16px 1.25rem;
  background: rgba(7, 11, 20, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.nav-open .site-nav { transform: none; opacity: 1; visibility: visible; }
.site-nav a:not(.btn) {
  color: var(--text);
  padding: 0.75rem 0.5rem;
  border-radius: 10px;
  font-weight: 500;
}
.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"] { background: var(--card); color: var(--blue); }
.nav-cta { margin-top: 0.5rem; }

/* ---------- Hero ---------- */
.hero { padding: calc(var(--header-h) + 2rem) 0 2.5rem; }
.hero-inner { display: grid; gap: 2rem; align-items: center; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(255, 122, 26, 0.4);
  border-radius: 999px;
  background: rgba(255, 122, 26, 0.08);
  color: var(--orange-hot);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.hero h1 { font-size: clamp(2rem, 8vw, 3.6rem); font-weight: 900; letter-spacing: -0.5px; }
.hero h1 .grad { display: block; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 36em; }

.hero-actions { display: grid; gap: 0.75rem; margin-top: 1.5rem; }
.hero-actions .btn-primary { font-size: 1.15rem; }

.hero-stats {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.hero-stats li {
  padding: 0.75rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(15, 24, 41, 0.6);
  text-align: center;
}
.hero-stats strong { display: block; font-size: 1.05rem; color: var(--text); }
.hero-stats span { font-size: 0.78rem; color: var(--muted); }

/* איור כדור + טבעות */
.hero-art {
  position: relative;
  width: min(280px, 72vw);
  aspect-ratio: 1;
  margin-inline: auto;
}
.ball {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.35), transparent 35%),
    repeating-conic-gradient(from 0deg, #1d2b48 0 30deg, #121c31 30deg 60deg),
    #121c31;
  box-shadow:
    inset -14px -18px 40px rgba(0, 0, 0, 0.6),
    0 0 0 3px rgba(31, 182, 255, 0.55),
    0 0 50px rgba(31, 182, 255, 0.45);
  animation: float 5s ease-in-out infinite;
}
.orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
}
.orbit-1 {
  border-top-color: var(--blue);
  border-left-color: rgba(31, 182, 255, 0.3);
  animation: spin 7s linear infinite;
  filter: drop-shadow(0 0 8px var(--blue));
}
.orbit-2 {
  inset: 9%;
  border-bottom-color: var(--orange);
  border-right-color: rgba(255, 122, 26, 0.3);
  animation: spin 5s linear infinite reverse;
  filter: drop-shadow(0 0 8px var(--orange));
}
.boost {
  position: absolute;
  bottom: 4%;
  left: 50%;
  width: 60%;
  height: 14px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 122, 26, 0.6), transparent 70%);
  filter: blur(6px);
  animation: pulse 2.5s ease-in-out infinite;
}

/* ---------- סקשנים ---------- */
.section { padding: 3.5rem 0; }
.section-tight { padding-top: 1rem; }
.section-head { text-align: center; margin-bottom: 2rem; }
.section-head h2 { font-size: clamp(1.7rem, 6vw, 2.4rem); }
.section-head p { color: var(--muted); margin: 0; }
.eyebrow {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ---------- חבילות ---------- */
.packages-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  max-width: 380px;
  margin-inline: auto;
}

.pkg-card {
  position: relative;
  padding: 2rem 1.5rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card-2), var(--card));
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.pkg-card:hover { transform: translateY(-4px); border-color: rgba(31, 182, 255, 0.5); box-shadow: var(--shadow), var(--glow-blue); }
.pkg-card.is-featured { border-color: rgba(255, 122, 26, 0.55); }
.pkg-card.is-featured::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--orange), transparent 40%, transparent 60%, var(--blue));
  filter: blur(14px);
  opacity: 0.45;
}
.pkg-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange-hot), var(--orange));
  color: #1a0b00;
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}
.pkg-amount strong {
  display: block;
  font-size: 3.6rem;
  font-weight: 900;
  line-height: 1;
  color: var(--blue);
  text-shadow: 0 0 24px rgba(31, 182, 255, 0.55);
}
.pkg-amount span { color: var(--muted); font-weight: 500; }
.pkg-price { margin-top: 1rem; font-size: 2rem; font-weight: 900; color: var(--orange-hot); }
.pkg-per { font-size: 0.85rem; color: var(--muted); }
.pkg-features {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 1.5rem;
  display: grid;
  gap: 0.4rem;
  text-align: start;
}
.pkg-features li::before { content: "✓"; color: var(--success); font-weight: 900; margin-inline-end: 0.5rem; }
.pkg-old { display: block; font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.pkg-save {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  background: rgba(46, 229, 157, 0.12);
  color: var(--success);
  font-size: 0.85rem;
  font-weight: 700;
}

/* טבלת מדרגות */
.tiers {
  margin-top: 2.5rem;
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(15, 24, 41, 0.6);
  text-align: center;
}
.tiers h3 { font-size: 1.2rem; }
.tiers p { margin: 1rem 0 0; font-size: 0.85rem; }
.tiers-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.tier {
  display: grid;
  gap: 0.1rem;
  padding: 0.7rem 0.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}
.tier-range { font-size: 0.78rem; color: var(--muted); }
.tier strong { font-size: 1.15rem; color: var(--orange-hot); }
.tier small { font-size: 0.75rem; color: var(--success); font-weight: 700; }

/* ---------- טופס הזמנה (Ticket) ---------- */
.ticket {
  position: relative;
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card-2), var(--card));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.ticket::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--blue-deep), var(--orange));
}
.ticket-head { display: flex; gap: 0.9rem; align-items: center; margin-bottom: 1.5rem; padding-bottom: 1.25rem; border-bottom: 1px dashed var(--border); }
.ticket-head h2 { font-size: 1.5rem; margin: 0; }
.ticket-head p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.ticket-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 122, 26, 0.12);
  border: 1px solid rgba(255, 122, 26, 0.35);
  font-size: 1.4rem;
}

.field { display: grid; gap: 0.35rem; margin-bottom: 1rem; }
.field label { font-weight: 500; font-size: 0.95rem; }
.field-row { display: grid; gap: 0 1rem; grid-template-columns: 1fr; }

input, select {
  width: 100%;
  min-height: 50px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--text);
  font: inherit;
  font-size: 16px; /* מונע זום ב-iOS */
  transition: border-color 0.2s, box-shadow 0.2s;
}
input::placeholder { color: #5d6b88; }
input:focus, select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 182, 255, 0.2); }
input.invalid { border-color: var(--danger); }
input[type="email"] { direction: ltr; text-align: right; }
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: 18px 50%, 12px 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-left: 2.2rem;
}
.err { color: var(--danger); font-size: 0.82rem; min-height: 0; }
.err:empty { display: none; }

.qty { display: flex; align-items: stretch; gap: 0.5rem; }
.qty input { text-align: center; font-weight: 700; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-btn {
  flex: none;
  width: 50px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card-2);
  color: var(--blue);
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.qty-btn:hover { border-color: var(--blue); background: rgba(31, 182, 255, 0.1); }

.quick-qty { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }
.quick-qty:empty { display: none; }
.chip {
  min-width: 48px;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.chip:hover { border-color: var(--blue); }
.chip.active { border-color: var(--orange); background: rgba(255, 122, 26, 0.15); color: var(--orange-hot); }

.upsell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
  margin: -0.5rem 0 1.25rem;
  padding: 0.7rem 0.9rem;
  border: 1px dashed rgba(255, 176, 32, 0.5);
  border-radius: var(--radius-sm);
  background: rgba(255, 176, 32, 0.07);
  font-size: 0.9rem;
}
.upsell strong { color: var(--orange-hot); }
.upsell button {
  margin-inline-start: auto;
  padding: 0.3rem 0.8rem;
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  color: #1a0b00;
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}
.sum-save strong { color: var(--success); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.summary {
  display: grid;
  gap: 0.5rem;
  margin: 0.5rem 0 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(31, 182, 255, 0.25);
  border-radius: var(--radius-sm);
  background: rgba(31, 182, 255, 0.06);
}
.summary div { display: flex; justify-content: space-between; align-items: baseline; }
.summary span { color: var(--muted); }
.sum-total strong { font-size: 1.6rem; font-weight: 900; color: var(--orange-hot); text-shadow: 0 0 18px rgba(255, 176, 32, 0.45); }
.bump { animation: bump 0.3s ease; }

.form-error { color: var(--danger); font-weight: 500; }
.form-error:empty { display: none; }
.fine { font-size: 0.8rem; color: var(--muted); text-align: center; margin: 0.75rem 0 0; }

.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(26, 11, 0, 0.3);
  border-top-color: #1a0b00;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.loading .spinner { display: inline-block; }
.loading .btn-label::after { content: "..."; }

/* הודעת אישור */
.success { text-align: center; animation: pop 0.4s ease; }
.success-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(46, 229, 157, 0.12);
  border: 2px solid var(--success);
  color: var(--success);
  font-size: 2rem;
  font-weight: 900;
  box-shadow: 0 0 30px rgba(46, 229, 157, 0.35);
}
.success h3 { font-size: 1.6rem; }
.success p { margin-bottom: 0.4rem; }
.order-id {
  display: inline-block;
  margin: 0.25rem 0 0.5rem;
  padding: 0.5rem 1.2rem;
  border: 1px dashed var(--orange);
  border-radius: var(--radius-sm);
  background: rgba(255, 122, 26, 0.08);
  color: var(--orange-hot);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  direction: ltr;
  user-select: all;
}
.next-steps {
  text-align: start;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
  counter-reset: s;
  display: grid;
  gap: 0.75rem;
}
.next-steps li {
  counter-increment: s;
  position: relative;
  padding: 0.85rem 1rem;
  padding-inline-start: 3.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}
.next-steps li::before {
  content: counter(s);
  position: absolute;
  inset-inline-start: 0.85rem;
  top: 0.85rem;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue-deep);
  font-weight: 800;
  font-size: 0.9rem;
}
.success-actions { display: grid; gap: 0.6rem; }

/* ---------- גלריית הוכחות ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.proof {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s;
}
.proof:hover { transform: translateY(-3px); border-color: rgba(31, 182, 255, 0.45); }
.proof-media {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5; /* כל פריט מוצג במלואו בתוך המשבצת */
  padding: 0;
  border: 0;
  background: #000;
  cursor: zoom-in;
}
.proof-media img, .proof-media video { width: 100%; height: 100%; object-fit: contain; }
.proof-video .proof-media { cursor: default; }
.proof figcaption { padding: 0.6rem 0.75rem; font-size: 0.85rem; color: var(--muted); }
.proof-placeholder .proof-media {
  display: grid;
  place-content: center;
  gap: 0.3rem;
  text-align: center;
  cursor: default;
  background:
    linear-gradient(135deg, rgba(42, 107, 255, 0.15), rgba(255, 122, 26, 0.1)),
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(255, 255, 255, 0.02) 12px 24px),
    var(--bg-soft);
  border-bottom: 1px dashed var(--border);
}
.proof-placeholder .proof-media span { font-size: 2rem; }
.proof-placeholder .proof-media small { color: var(--muted); }

.lightbox {
  max-width: min(92vw, 720px);
  max-height: 90vh;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(4px); }
.lightbox img { max-height: 90vh; width: auto; margin: auto; }
.lightbox-close {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}

/* ---------- דיסקורד ---------- */
.discord-card {
  position: relative;
  padding: 2.5rem 1.5rem;
  border: 1px solid rgba(88, 101, 242, 0.45);
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(160deg, rgba(88, 101, 242, 0.22), var(--card) 60%);
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 50px rgba(88, 101, 242, 0.2);
}
.discord-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  width: 300px;
  height: 200px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(88, 101, 242, 0.5), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.discord-logo { position: relative; width: 64px; height: 64px; margin: 0 auto 1rem; color: #fff; filter: drop-shadow(0 0 16px rgba(88, 101, 242, 0.9)); }
.discord-card h2 { position: relative; font-size: clamp(1.5rem, 6vw, 2rem); }
.perks {
  position: relative;
  list-style: none;
  padding: 0;
  margin: 1.25rem auto 1.75rem;
  max-width: 420px;
  display: grid;
  gap: 0.6rem;
  text-align: start;
}
.perks li { padding: 0.7rem 1rem; border-radius: var(--radius-sm); background: rgba(7, 11, 20, 0.5); border: 1px solid var(--border); }
.discord-card .btn { position: relative; width: 100%; max-width: 320px; }

/* ---------- שאלות נפוצות ---------- */
.faq { display: grid; gap: 0.75rem; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item[open] { border-color: rgba(31, 182, 255, 0.45); box-shadow: 0 0 20px rgba(31, 182, 255, 0.12); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  position: relative;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(31, 182, 255, 0.12);
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 10px;
  height: 2px;
  background: var(--blue);
  transform: translate(-50%, -50%);
  transition: transform 0.25s;
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-answer { padding: 0 1.1rem 1rem; color: var(--muted); animation: fadeDown 0.3s ease; }
.faq-answer p { margin: 0; }

/* ---------- דף "אחרי הקנייה" ---------- */
.page-hero { padding: calc(var(--header-h) + 2.5rem) 0 1.5rem; text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 8vw, 3rem); font-weight: 900; }
.page-hero .lead { margin-inline: auto; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; position: relative; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card-2), var(--card));
}
.step-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  box-shadow: var(--glow-blue);
  font-size: 1.3rem;
  font-weight: 900;
}
.step h2 { font-size: 1.25rem; margin-top: 0.4rem; }
.step-body p:last-child { margin-bottom: 0; }
.step .btn { margin-top: 0.5rem; }
.step-actions { display: flex; flex-wrap: wrap; gap: 0 0.6rem; }
.step-alert { border-color: rgba(255, 122, 26, 0.45); }
.step-alert .step-num { background: linear-gradient(135deg, var(--orange), var(--orange-hot)); color: #1a0b00; box-shadow: var(--glow-orange); }
.note {
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  background: rgba(31, 182, 255, 0.07);
  border-inline-start: 3px solid var(--blue);
  font-size: 0.92rem;
}
.pay-list, .check-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.5rem; }
.pay-list li {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}
.pay-list strong { color: var(--orange-hot); }
.check-list li::before { content: "✓"; color: var(--success); font-weight: 900; margin-inline-end: 0.5rem; }
.back-cta { text-align: center; margin-top: 2rem; }

/* ---------- פוטר ---------- */
.site-footer { margin-top: 2rem; padding: 2.5rem 0 1.5rem; border-top: 1px solid var(--border); background: rgba(7, 11, 20, 0.6); }
.footer-inner { display: grid; gap: 1.5rem; }
.footer-brand p { font-size: 0.82rem; margin: 0.75rem 0 0; max-width: 32em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.footer-links a {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color 0.2s, color 0.2s;
}
.footer-links a:hover { border-color: var(--blue); color: var(--blue); }
.copyright { margin: 2rem 0 0; text-align: center; font-size: 0.8rem; color: var(--muted); }

/* ---------- אנימציות ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes float { 50% { transform: translateY(-10px) rotate(8deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: 0.4; transform: translateX(-50%) scaleX(0.8); } }
@keyframes bump { 50% { transform: scale(1.12); } }
@keyframes pop { from { opacity: 0; transform: scale(0.96); } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* =====================================================================
   מסכים גדולים יותר
   ===================================================================== */
@media (min-width: 560px) {
  .hero-actions { grid-template-columns: 1fr 1fr; }
  .hero-actions .btn-primary { grid-column: 1 / -1; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .success-actions { grid-template-columns: 1fr 1fr; }
  .ticket { padding: 2rem; }
}

@media (min-width: 720px) {
  .gallery { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
  .packages-grid:not([data-count="1"]) { grid-template-columns: repeat(2, 1fr); max-width: 780px; }
  .packages-grid[data-count="3"] { grid-template-columns: repeat(3, 1fr); max-width: none; }
  .tiers-list { grid-template-columns: repeat(6, 1fr); }
  .footer-inner { grid-template-columns: 1fr auto; align-items: center; }
  .step { padding: 1.5rem 1.75rem; gap: 1.25rem; }
  .discord-card { padding: 3rem 2.5rem; }
}

@media (min-width: 900px) {
  :root { --header-h: 72px; }
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 0;
    transform: none;
    opacity: 1;
    visibility: visible;
  }
  .site-nav a:not(.btn) { padding: 0.5rem 0.85rem; }
  .nav-cta { margin: 0 0.5rem 0 0; }

  .hero { padding: calc(var(--header-h) + 4rem) 0 4rem; }
  .hero-inner { grid-template-columns: 1.2fr 1fr; gap: 3rem; }
  .hero-actions { display: flex; flex-wrap: wrap; }
  .hero-art { width: 360px; }
  .section { padding: 5rem 0; }
  .gallery { max-width: 1000px; margin-inline: auto; }
}

@media (min-width: 1040px) {
  .packages-grid[data-count="4"] { grid-template-columns: repeat(4, 1fr); max-width: none; }
}

/* =====================================================================
   משתמשים, פניות וצ'אט
   ===================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  margin-inline-start: 4px;
  border-radius: 999px;
  background: var(--orange);
  color: #1a0b00;
  font-size: 0.75rem;
  font-weight: 800;
  vertical-align: middle;
}
.form-ok { color: var(--success); font-weight: 500; }
.form-ok:empty { display: none; }
.form-error a { color: var(--orange-hot); font-weight: 700; }
.warn {
  margin: 0.75rem 0 0;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 84, 112, 0.1);
  border: 1px solid rgba(255, 84, 112, 0.4);
  color: #ff9aac;
  font-size: 0.9rem;
}
.btn-google { background: #fff; color: #1f2430; }
.btn-google:hover { box-shadow: 0 0 22px rgba(255, 255, 255, 0.25); }
textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  resize: vertical;
}
textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 182, 255, 0.2); }

/* ---------- אמצעי תשלום בטופס ---------- */
.pay-field { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
.pay-field legend { font-weight: 500; font-size: 0.95rem; margin-bottom: 0.35rem; padding: 0; }
.pay-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.pay-option { position: relative; cursor: pointer; }
.pay-option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pay-option span {
  display: grid;
  place-items: center;
  min-height: 50px;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  font-weight: 700;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.pay-option input:checked + span { border-color: var(--orange); background: rgba(255, 122, 26, 0.12); color: var(--orange-hot); box-shadow: 0 0 16px rgba(255, 122, 26, 0.25); }
.pay-option input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
#f-pay-other { margin-top: 0.5rem; }
.login-hint {
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  background: rgba(31, 182, 255, 0.07);
  border-inline-start: 3px solid var(--blue);
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- דף התחברות ---------- */
.auth-page { min-height: 100vh; padding: calc(var(--header-h) + 2rem) 0 3rem; display: grid; align-items: center; }
.auth-card {
  position: relative;
  max-width: 440px;
  margin-inline: auto;
  padding: 2rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card-2), var(--card));
  box-shadow: var(--shadow);
  text-align: center;
  overflow: hidden;
}
.auth-card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--blue-deep), var(--orange));
}
.auth-card form { text-align: start; }
.auth-card h1 { font-size: 1.7rem; }
.auth-icon { font-size: 2.4rem; margin-bottom: 0.5rem; }
.auth-why { font-size: 0.9rem; }
.auth-actions { display: grid; gap: 0.6rem; margin-top: 1rem; }
.auth-state .btn { margin-top: 0.5rem; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 1.25rem 0; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--border); }
.tabs button { padding: 0.6rem; border: 0; border-radius: 999px; background: none; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; transition: background 0.2s, color 0.2s; }
.tabs button.active { background: var(--card-2); color: var(--text); box-shadow: 0 0 0 1px var(--border); }
.divider { display: flex; align-items: center; gap: 0.75rem; margin: 1.25rem 0; color: var(--muted); font-size: 0.82rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* ---------- אפליקציית הפניות ---------- */
.app-body { height: 100vh; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
.app-main { flex: 1; min-height: 0; padding-top: var(--header-h); display: flex; }
.app-wrap { flex: 1; min-height: 0; display: flex; flex-direction: column; padding-block: 0.75rem; }
.app-notice { max-width: 520px; margin: 2rem auto; padding: 2rem 1.5rem; text-align: center; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.app-notice .uid { font-size: 1rem; user-select: all; word-break: break-all; }
.app {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(12, 19, 34, 0.85);
  overflow: hidden;
}
.app[hidden] { display: none; }
.tk-side { display: flex; flex-direction: column; min-height: 0; border-inline-end: 1px solid var(--border); }
.tk-main { display: none; flex-direction: column; min-height: 0; min-width: 0; }
.app.has-view .tk-side { display: none; }
.app.has-view .tk-main { display: flex; }

.tk-side-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 1rem 1rem 0.5rem; }
.tk-side-head h1 { font-size: 1.3rem; margin: 0; }
.tk-side-head .link-btn { margin: 0; font-size: 0.8rem; text-decoration: none; }
.tk-me { display: flex; justify-content: space-between; align-items: center; padding: 0 1rem 0.75rem; font-size: 0.82rem; color: var(--muted); border-bottom: 1px solid var(--border); }
.tk-me .link-btn { margin: 0; font-size: 0.82rem; }
.tk-search { margin: 0.25rem 1rem 0.5rem; width: auto; min-height: 42px; }
.tk-filters { display: flex; gap: 0.35rem; padding: 0 1rem 0.75rem; overflow-x: auto; border-bottom: 1px solid var(--border); }
.tk-filters button { flex: none; padding: 0.35rem 0.75rem; border: 1px solid var(--border); border-radius: 999px; background: none; color: var(--muted); font: inherit; font-size: 0.82rem; cursor: pointer; }
.tk-filters button.active { border-color: var(--blue); color: var(--text); background: rgba(31, 182, 255, 0.1); }
.tk-filters span { opacity: 0.7; }

.tk-list { list-style: none; margin: 0; padding: 0.5rem; overflow-y: auto; flex: 1; }
.tk-empty-li { padding: 2rem 1rem; text-align: center; color: var(--muted); font-size: 0.9rem; }
.tk-item {
  display: grid;
  gap: 0.2rem;
  width: 100%;
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--text);
  font: inherit;
  text-align: start;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.tk-item:hover { background: var(--card); }
.tk-item.active { background: var(--card-2); border-color: rgba(31, 182, 255, 0.4); }
.tk-item.unread strong { color: var(--orange-hot); }
.tk-item-top { display: flex; justify-content: space-between; gap: 0.5rem; align-items: baseline; min-width: 0; }
.tk-item-top strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.95rem; }
.tk-item-top time { flex: none; font-size: 0.72rem; color: var(--muted); }
.tk-item-sub, .tk-item-last { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-item-sub { font-size: 0.85rem; }
.tk-item-last { font-size: 0.82rem; color: var(--muted); }
.tk-item-bottom { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.15rem; }
.tid { font-family: ui-monospace, Consolas, monospace; font-size: 0.75rem; color: var(--muted); direction: ltr; unicode-bidi: isolate; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px var(--orange); margin-inline-start: auto; }

.status { display: inline-block; padding: 0.1rem 0.55rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700; border: 1px solid currentColor; white-space: nowrap; }
.status-open { color: var(--blue); }
.status-awaiting_payment { color: var(--orange-hot); }
.status-paid { color: #b18cff; }
.status-delivered { color: var(--success); }
.status-closed { color: var(--muted); }

.tk-placeholder { margin: auto; padding: 2rem; text-align: center; max-width: 360px; }
.tk-placeholder h2 { font-size: 1.3rem; }
.tk-new { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.tk-new[hidden], .chat[hidden], .tk-placeholder[hidden] { display: none; }
.tk-new-body { padding: 1rem; overflow-y: auto; }
.active-warn, .new-order-cta {
  display: grid;
  gap: 0.6rem;
  justify-items: start;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
}
.active-warn { background: rgba(255, 176, 32, 0.08); border: 1px solid rgba(255, 176, 32, 0.4); }
.new-order-cta { background: rgba(31, 182, 255, 0.06); border: 1px solid rgba(31, 182, 255, 0.25); }
.active-warn p, .new-order-cta p { margin: 0; }

/* ---------- צ'אט ---------- */
.chat { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.chat-head { display: flex; align-items: center; gap: 0.6rem; padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); background: rgba(15, 24, 41, 0.9); }
.chat-back { flex: none; width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); color: var(--text); font-size: 1.1rem; cursor: pointer; }
.chat-title { flex: 1; min-width: 0; }
.chat-title h2 { margin: 0; font-size: 1.02rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-meta { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.15rem; }
.chat-actions { flex: none; }
.chat-actions .btn { padding: 0.45em 0.9em; font-size: 0.82rem; }
.status-select select { min-height: 38px; padding: 0.35rem 0.6rem; padding-left: 2rem; font-size: 0.85rem; }

.chat-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 1rem; }
.chat-loading { text-align: center; color: var(--muted); font-size: 0.9rem; margin: 2rem 0; }

.info-card { margin-bottom: 1rem; padding: 0.9rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card); font-size: 0.92rem; }
.info-soft { color: var(--muted); }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem 1rem; }
.info-grid div { display: grid; }
.info-grid span { font-size: 0.75rem; color: var(--muted); }
.info-grid strong { overflow-wrap: anywhere; }
.info-grid .hl { color: var(--orange-hot); font-size: 1.1rem; }
.info-customer { display: flex; flex-wrap: wrap; gap: 0.25rem 0.9rem; align-items: baseline; padding-bottom: 0.75rem; margin-bottom: 0.75rem; border-bottom: 1px dashed var(--border); }
.info-customer:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.info-customer span { font-size: 0.8rem; }
.pay-box { margin-top: 0.9rem; padding: 0.8rem 0.9rem; border-radius: var(--radius-sm); background: rgba(255, 122, 26, 0.07); border: 1px solid rgba(255, 122, 26, 0.35); }
.pay-box h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.pay-box p { margin: 0 0 0.35rem; }
.pay-box p:last-child { margin: 0; }
.pay-details { font-weight: 700; color: var(--orange-hot); user-select: all; }
.pay-ok { background: rgba(46, 229, 157, 0.08); border-color: rgba(46, 229, 157, 0.4); color: var(--success); }

.chat-messages { display: flex; flex-direction: column; gap: 0.6rem; }
.msg { display: flex; flex-direction: column; max-width: 82%; }
.msg-mine { align-self: flex-start; align-items: flex-start; }   /* RTL: ההודעות שלי בצד ימין */
.msg-theirs { align-self: flex-end; align-items: flex-end; }
.msg-who { font-size: 0.72rem; color: var(--muted); margin: 0 0.4rem 0.15rem; }
.msg-bubble { padding: 0.55rem 0.8rem; border-radius: 16px; background: var(--card-2); border: 1px solid var(--border); overflow-wrap: anywhere; }
.msg-mine .msg-bubble { background: linear-gradient(135deg, var(--blue-deep), #1e8fe0); border-color: transparent; border-start-start-radius: 4px; }
.msg-theirs .msg-bubble { border-start-end-radius: 4px; }
.msg-admin.msg-theirs .msg-bubble { border-color: rgba(255, 122, 26, 0.45); }
.msg-bubble p { margin: 0; white-space: pre-wrap; }
.msg-bubble a { color: inherit; text-decoration: underline; }
.msg-img { display: block; margin-bottom: 0.35rem; }
.msg-img:only-child { margin-bottom: 0; }
.msg-img img { max-width: min(240px, 100%); max-height: 320px; border-radius: 10px; cursor: zoom-in; }
.msg time { font-size: 0.68rem; color: var(--muted); margin: 0.15rem 0.4rem 0; }

.quick-replies { display: flex; gap: 0.35rem; overflow-x: auto; padding: 0.5rem 1rem; border-top: 1px solid var(--border); }
.quick-replies button { flex: none; padding: 0.35rem 0.7rem; border: 1px solid var(--border); border-radius: 999px; background: var(--card); color: var(--text); font: inherit; font-size: 0.8rem; cursor: pointer; }
.quick-replies button:hover { border-color: var(--orange); }
.chat-closed { padding: 0.9rem 1rem; text-align: center; color: var(--muted); font-size: 0.9rem; border-top: 1px solid var(--border); }

.chat-compose { padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: rgba(15, 24, 41, 0.95); }
.compose-row { display: flex; align-items: flex-end; gap: 0.5rem; }
.compose-row textarea { flex: 1; min-height: 44px; max-height: 160px; resize: none; padding: 0.6rem 0.85rem; border-radius: 22px; line-height: 1.45; }
.compose-attach, .compose-send {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.compose-attach:hover { color: var(--blue); border-color: var(--blue); }
.compose-send { border: 0; background: linear-gradient(135deg, var(--orange-hot), var(--orange)); color: #1a0b00; box-shadow: var(--glow-orange); }
.compose-attach svg, .compose-send svg { width: 22px; height: 22px; }
.sending .compose-send { opacity: 0.6; pointer-events: none; }
.compose-preview { position: relative; display: inline-block; margin-bottom: 0.5rem; }
.compose-preview[hidden] { display: none; }
.compose-preview img { max-height: 110px; border-radius: 10px; border: 1px solid var(--border); }
.compose-preview-x { position: absolute; top: -8px; inset-inline-end: -8px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: var(--danger); color: #fff; cursor: pointer; font-size: 0.75rem; }
.compose-error { margin: 0.35rem 0 0; color: var(--danger); font-size: 0.82rem; }
.compose-error:empty { display: none; }

.admin-tag { padding: 0.1rem 0.5rem; border-radius: 6px; background: rgba(255, 122, 26, 0.15); color: var(--orange-hot); font-size: 0.75rem; font-weight: 700; }

@media (min-width: 560px) {
  .auth-card { padding: 2.5rem 2rem; }
  .auth-actions { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 860px) {
  .app { grid-template-columns: 340px minmax(0, 1fr); }
  .app .tk-side, .app.has-view .tk-side { display: flex; }
  .app .tk-main { display: flex; }
  .chat-back { display: none; }
  .msg { max-width: 70%; }
  .app-wrap { padding-block: 1.25rem; }
}

/* =====================================================================
   משתמשים שנמסרו + מחסן (מלאי)
   ===================================================================== */
.chat-actions { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; justify-content: flex-end; }
.delivered-tag { color: var(--success); font-weight: 700; font-size: 0.85rem; }

.delivery {
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(46, 229, 157, 0.45);
  border-radius: var(--radius-sm);
  background: rgba(46, 229, 157, 0.06);
}
.delivery-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.6rem; }
.delivery-head h3 { margin: 0; font-size: 1rem; color: var(--success); }
.delivery-tools { display: flex; gap: 0.4rem; }
.delivery-tools .btn { padding: 0.4em 0.8em; font-size: 0.8rem; }
.cred-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; max-height: 320px; overflow-y: auto; }
.cred-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}
.cred-list li.is-replaced { opacity: 0.5; }
.cred-list li.is-replaced code { text-decoration: line-through; }
.cred-num { flex: none; width: 22px; color: var(--muted); font-size: 0.75rem; text-align: center; }
.cred-fields { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 0.2rem 0.6rem; }
.cred-fields code { background: none; padding: 0; color: var(--text); font-size: 0.85rem; overflow-wrap: anywhere; user-select: all; }
.cred-fields code + code { color: var(--orange-hot); }
.cred-fields small { color: var(--muted); }
.cred-k { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.cred-copy, .cred-replace {
  flex: none;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
}
.cred-copy:hover { border-color: var(--blue); }
.cred-replace { border-color: rgba(255, 84, 112, 0.5); color: #ff9aac; }
.cred-tag { flex: none; font-size: 0.72rem; color: var(--muted); }
.redeem { margin-top: 0.75rem; font-size: 0.9rem; }
.tutorial-link { margin: 0.75rem 0 0; }
.tutorial { margin-top: 0.9rem; }
.tutorial h4 { margin: 0 0 0.4rem; font-size: 0.95rem; color: var(--blue); }
.tutorial video { width: 100%; max-height: 360px; border-radius: 10px; background: #000; }
.pay-box .btn { margin-top: 0.25rem; }
.redeem summary { cursor: pointer; font-weight: 700; color: var(--blue); }
.redeem ol { margin: 0.5rem 0 0; padding-inline-start: 1.3rem; display: grid; gap: 0.3rem; }
.redeem a { color: var(--blue); overflow-wrap: anywhere; }

/* טאבים בפאנל הניהול */
.admin-tabs { display: flex; gap: 0.4rem; margin-bottom: 0.75rem; }
.admin-tabs button {
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.admin-tabs button.active { border-color: var(--orange); color: var(--text); background: rgba(255, 122, 26, 0.12); }

.inv { flex: 1; min-height: 0; overflow-y: auto; }
.inv-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin-bottom: 0.75rem; }
.inv-stat { padding: 0.9rem; text-align: center; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card); }
.inv-stat strong { display: block; font-size: 1.8rem; font-weight: 900; line-height: 1.1; }
.inv-stat span { font-size: 0.8rem; color: var(--muted); }
.inv-available strong { color: var(--success); }
.inv-sold strong { color: var(--blue); }
.inv-bad strong { color: var(--danger); }
.inv-grid { display: grid; gap: 0.75rem; margin-top: 0.75rem; }
.inv-card { padding: 1.1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.inv-card h2 { font-size: 1.1rem; }
.inv-card textarea, .inv-card input { margin-bottom: 0.6rem; font-family: ui-monospace, Consolas, monospace; font-size: 14px; }
.inv-card input#imp-batch { font-family: inherit; font-size: 16px; }
.inv-h2-gap { margin-top: 1.5rem; }
.inv-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.inv-find { display: flex; gap: 0.5rem; }
.inv-find input { margin: 0; }
.find-result { margin-top: 0.75rem; }
.imp-preview { margin-top: 0.75rem; font-size: 0.9rem; }
.imp-summary { list-style: none; padding: 0; margin: 0 0 0.5rem; display: grid; gap: 0.3rem; }
.imp-summary .ok { color: var(--success); font-weight: 700; }
.imp-summary .skip { color: var(--orange-hot); }
.imp-summary .bad { color: var(--danger); }
.admin-tabs .badge { background: var(--danger); color: #fff; }
.btn-danger { background: rgba(255, 84, 112, 0.15); border-color: var(--danger); color: #ff9aac; }
.btn-danger:hover { box-shadow: 0 0 20px rgba(255, 84, 112, 0.35); }
.reset-opts { display: grid; gap: 0.4rem; margin: 0.5rem 0 0.8rem; font-size: 0.9rem; }
.reset-opts label { display: flex; gap: 0.5rem; align-items: flex-start; cursor: pointer; }
.reset-opts input { width: auto; min-height: 0; margin-top: 0.3rem; }

@media (min-width: 860px) {
  .inv-grid { grid-template-columns: 1.3fr 1fr; align-items: start; }
}
