/* ════════════════════════════════════════════════════════
   RUREAL Studio — שפת מותג: קרם חם, שחור עמוק, גרוטסק עבה
   (עיצוב בלבד — אין שינוי בפונקציונליות)
   ════════════════════════════════════════════════════════ */

:root {
  --cream: #EDE9E0;        /* רקע קרם חם */
  --cream-deep: #E4DFD2;   /* קרם כהה מעט — כרטיסים/הדגשות */
  --black: #0A0A0A;        /* שחור עמוק */
  --grey: #6E6A60;         /* אפור חם לטקסט משני */
  --line: rgba(10, 10, 10, 0.16);
  --line-soft: rgba(10, 10, 10, 0.10);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--black);
  font-family: "Heebo", "Archivo", system-ui, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

/* כותרות לטיניות עזר (לוגו, מילים באנגלית) */
.lat { font-family: "Archivo", "Heebo", sans-serif; }

/* ── טיקר נע ── */
.marquee {
  direction: ltr;
  background: var(--black);
  color: var(--cream);
  overflow: hidden;
  white-space: nowrap;
}
.marquee__track {
  display: inline-flex;
  will-change: transform;
  animation: marquee 38s linear infinite;
}
.marquee__group {
  font-family: "Space Mono", "Heebo", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 9px 0;
}
@keyframes marquee {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* ── כותרת עליונה ── */
/* פריסה אופקית LTR: לוגו בשמאל, תפריט מימינו, ו-Logout נדחף לקצה ימין. */
.site-header {
  display: flex;
  align-items: center;
  gap: 30px;
  direction: ltr;
  padding: 26px 48px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-family: "Archivo", "Heebo", sans-serif;
  font-weight: 900;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.site-nav { display: flex; gap: 30px; align-items: center; }
.site-nav a,
.site-header > a.logout {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
  transition: color 0.2s ease;
}
.site-nav a:hover,
.site-header > a.logout:hover { color: var(--black); }
/* Logout — צמוד לקצה ימין, על אותו קו */
.site-header > a.logout { color: var(--black); margin-left: auto; }

/* ── מרחב ראשי ── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px 48px 100px;
  animation: rise 0.5s ease both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.page-head { margin-bottom: 56px; text-align: left; direction: ltr; }
.page-head h1 {
  font-family: "Archivo", "Heebo", sans-serif;
  font-weight: 900;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  direction: ltr;
}
.page-head h1 em { font-style: italic; }
.page-head h1::after { content: "."; }   /* נקודה אדריכלית בסוף הכותרת (כמו במוקאפ) */
.page-head p { color: var(--grey); font-size: 1rem; margin: 0; max-width: 60ch; direction: ltr; text-align: left; }
/* מוודא שכל עמודת הכותרת מיושרת לשמאל, מתחת לכותרת */
.page-head .eyebrow, .page-head .steps { text-align: left; justify-content: flex-start; }

/* ── טפסים ── */
.auth-card {
  max-width: 460px;
  margin: 16px auto;
  border: 1px solid var(--line);
  background: var(--cream-deep);
  padding: 52px 46px;
}
.auth-card h1 {
  font-family: "Archivo", "Heebo", sans-serif;
  font-weight: 900;
  font-size: 2.4rem;
  letter-spacing: -0.02em;
  text-align: center;
  margin: 0 0 34px;
}

.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--grey);
  margin-bottom: 9px;
  text-transform: uppercase;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="number"],
.field textarea,
.field select {
  width: 100%;
  border: none;
  border-bottom: 1.5px solid var(--black);
  background: transparent;
  padding: 11px 2px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: var(--black);
  border-radius: 0;
}
/* ── אזורי העלאת קבצים בסגנון "drop zone" מקווקו (השראה מהמוקאפ) ── */
.field input[type="file"] {
  display: block; width: 100%; cursor: pointer; font-weight: 400;
  border: 1.5px dashed var(--black); border-radius: 14px;
  padding: 20px 16px; background: var(--cream-deep);
  font-size: 0.9rem; color: var(--grey);
  transition: background 0.18s ease, border-color 0.18s ease;
}
.field input[type="file"]:hover { background: var(--cream); }
.field input[type="file"]:focus { outline: none; border-color: var(--black); box-shadow: 0 0 0 3px rgba(0,0,0,0.06); }
.field input:focus,
.field textarea:focus,
.field select:focus { outline: none; border-bottom-width: 2.5px; }
.field textarea {
  resize: vertical; min-height: 104px;
  border: 1.5px solid var(--black); padding: 14px 16px; border-radius: 16px;
}

.row { display: flex; gap: 18px; }
.row .field { flex: 1; }

/* תיבת הסכמה */
.consent {
  display: flex; gap: 11px; align-items: flex-start;
  margin: 6px 0 28px; font-size: 0.88rem; color: var(--grey); line-height: 1.55;
}
.consent input { margin-top: 3px; accent-color: var(--black); }

/* ── כפתורים ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  border: 1.5px solid var(--black);
  background: var(--black);
  color: var(--cream);
  padding: 16px 28px;
  border-radius: 999px;
  font-family: "Archivo", "Heebo", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease, transform 0.18s ease;
}
.btn:hover { background: transparent; color: var(--black); box-shadow: 0 8px 22px rgba(0,0,0,0.10); transform: translateY(-1px); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn:disabled { opacity: 0.3; cursor: not-allowed; box-shadow: none; transform: none; }
.btn-ghost { background: transparent; color: var(--black); }
.btn-ghost:hover { background: var(--black); color: var(--cream); }

.auth-alt { text-align: center; margin-top: 26px; font-size: 0.88rem; color: var(--grey); }
.auth-alt a { border-bottom: 1.5px solid var(--black); color: var(--black); padding-bottom: 1px; font-weight: 600; }

/* ── הודעות ── */
.flash-stack { margin-bottom: 30px; }
.flash {
  padding: 14px 18px; font-size: 0.92rem; font-weight: 500;
  border: 1.5px solid var(--black); margin-bottom: 10px;
}
.flash-error { background: var(--black); color: var(--cream); }
.flash-success { background: transparent; color: var(--black); }

/* ── מד קרדיטים (כרטיס ממוסגר עם מספר גדול ובר התקדמות) ── */
.quota {
  display: flex; flex-direction: column; gap: 20px;
  border: 1.5px solid var(--black); border-radius: 18px;
  padding: 24px 28px; margin-bottom: 44px; background: transparent;
}
.quota-top { display: flex; align-items: flex-start; justify-content: space-between; }
.quota-cell.end { text-align: end; }
.quota .label { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.22em; color: var(--grey); text-transform: uppercase; margin-bottom: 10px; }
.quota .count { font-family: "Archivo", "Heebo", sans-serif; font-weight: 900; font-size: 2.5rem; letter-spacing: -0.03em; line-height: 1; direction: ltr; }
.quota-cell.end .count { direction: ltr; }
.quota .count small { font-size: 1rem; font-weight: 700; color: var(--grey); }
.quota-bar { width: 100%; height: 2px; background: var(--line); position: relative; }
.quota-bar span { position: absolute; inset-block: 0; inset-inline-start: 0; background: var(--black); height: 2px; }

/* ── תווית-על קטנה (eyebrow) מעל כותרות ── */
.eyebrow { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.28em; text-transform: uppercase; color: var(--grey); margin-bottom: 18px; direction: ltr; }

/* ── אינדיקטור שלבים מתחת לכותרת ── */
.steps { display: flex; gap: 28px; margin-top: 28px; flex-wrap: wrap; }
.step { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.02em; color: var(--grey); display: inline-flex; align-items: baseline; gap: 8px; }
.step i { font-style: normal; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; opacity: 0.55; }
.step.active { color: var(--black); font-style: italic; }
.step.active i { opacity: 1; }

/* ── אולפן ── */
.studio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1.5px solid var(--black); border-radius: 20px; overflow: hidden; background: var(--cream-deep); }
.studio-controls { padding: 44px; border-inline-end: 1.5px solid var(--black); }
.studio-output { padding: 44px; display: flex; align-items: center; justify-content: center; min-height: 440px; background: var(--cream); position: relative; }
/* מסגרת פינות (crop-marks) על אזור התצוגה — בהשראת המוקאפ */
.studio-output::before, .studio-output::after { content: ""; position: absolute; width: 22px; height: 22px; pointer-events: none; z-index: 1; }
.studio-output::before { top: 18px; inset-inline-start: 18px; border-top: 2px solid var(--black); border-inline-start: 2px solid var(--black); }
.studio-output::after { bottom: 18px; inset-inline-end: 18px; border-bottom: 2px solid var(--black); border-inline-end: 2px solid var(--black); }

.mode-tabs { display: flex; gap: 4px; margin-bottom: 30px; border: 1.5px solid var(--black); border-radius: 999px; padding: 4px; background: var(--cream); }
.mode-tabs button {
  flex: 1; padding: 12px; background: transparent; color: var(--black); border-radius: 999px;
  border: none; cursor: pointer; font-family: "Archivo","Heebo",sans-serif; font-size: 0.74rem;
  font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; transition: background 0.2s, color 0.2s;
}
.mode-tabs button.active { background: var(--black); color: var(--cream); }

.output-placeholder { color: var(--grey); font-size: 0.92rem; text-align: center; }

/* ── תור יצירות (כרטיסים) ── */
.studio-output { align-items: stretch; flex-direction: column; }
.creations { width: 100%; display: flex; flex-direction: column; gap: 16px; }
.creations-empty { margin: auto; }
.creation { border: 1px solid var(--line); background: var(--cream); padding: 18px; border-radius: 16px; }
.creation.failed { border-color: var(--black); }
.creation-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.creation-inner img, .creation-inner video { max-width: 100%; max-height: 360px; display: block; }
.creation-status { color: var(--grey); font-size: 0.86rem; text-align: center; }
.creation.failed .creation-status { color: var(--black); font-weight: 700; }

.queue-hint { margin: 12px 0 0; font-size: 0.74rem; color: var(--grey); text-align: center; letter-spacing: 0.04em; }
.output-media img, .output-media video { max-width: 100%; max-height: 480px; display: block; }
.output-actions { margin-top: 20px; text-align: center; }

/* תצוגה מקדימה של תמונות שהועלו */
.image-preview { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.preview-item { position: relative; display: inline-flex; }
.image-preview img { width: 58px; height: 58px; object-fit: cover; border: 1px solid var(--line); border-radius: 8px; display: block; }
.image-preview video { width: 120px; max-height: 120px; border: 1px solid var(--line); border-radius: 8px; display: block; }
/* איקס קטן בפינה הימנית-עליונה של כל תצוגה — מסיר את הקובץ מהבחירה */
.preview-x {
  position: absolute; top: -7px; inset-inline-start: -7px; z-index: 2;
  width: 20px; height: 20px; border-radius: 50%; padding: 0;
  background: var(--black); color: var(--cream); border: 1.5px solid var(--cream);
  cursor: pointer; font-size: 0.66rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 7px rgba(0,0,0,0.28); transition: background 0.15s ease, transform 0.15s ease;
}
.preview-x:hover { background: #b00020; transform: scale(1.1); }

/* ── סורק טרנדים ── */
.scan-intro { color: var(--grey); font-size: 0.92rem; line-height: 1.6; margin: 0 0 22px; }
.scan-status { margin-top: 16px; font-size: 0.9rem; color: var(--grey); }
.scan-result { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 22px; }
.scan-result .lb-prompt { min-height: 150px; }

/* שורת מחיר לפני יצירה */
.price-line {
  text-align: center; margin: 8px 0 24px; font-size: 0.7rem;
  font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey);
}
.price-line strong {
  font-family: "Archivo","Heebo",sans-serif; font-weight: 900; font-size: 1.5rem;
  color: var(--black); margin: 0 6px; letter-spacing: -0.02em;
}

.spinner {
  width: 34px; height: 34px; border: 2px solid var(--line);
  border-top-color: var(--black); border-radius: 50%;
  animation: spin 0.9s linear infinite; margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.blocked-note {
  border: 1.5px solid var(--black); padding: 30px; text-align: center;
  margin-bottom: 44px; font-size: 0.96rem; font-weight: 500; line-height: 1.6;
  background: var(--cream-deep);
}

/* ── גלריה אישית ── */
.gallery-title {
  font-family: "Archivo","Heebo",sans-serif; font-weight: 900; font-size: clamp(1.7rem, 4vw, 2.4rem);
  letter-spacing: -0.02em; margin: 72px 0 26px;
}
.studio-gallery-hint { margin-top: 40px; color: var(--grey); font-size: 0.95rem; }
.studio-gallery-hint a { border-bottom: 1.5px solid var(--black); color: var(--black); font-weight: 600; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery a { display: block; border: 1px solid var(--line); aspect-ratio: 1; overflow: hidden; background: var(--cream-deep); }
.gallery img, .gallery video { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery a:hover img, .gallery a:hover video { transform: scale(1.04); }
.gallery .empty { grid-column: 1 / -1; text-align: center; color: var(--grey); padding: 48px; border: 1px dashed var(--line); }

/* ── סרגל כלים של הגלריה ── */
.gallery-toolbar { display: flex; gap: 14px; align-items: center; margin-bottom: 26px; flex-wrap: wrap; }
.gallery-toolbar input[type="search"],
.gallery-toolbar select {
  border: 1.5px solid var(--black); background: transparent; padding: 11px 18px;
  font-family: inherit; font-size: 0.92rem; border-radius: 999px;
  transition: box-shadow 0.2s ease;
}
.gallery-toolbar input[type="search"]:focus,
.gallery-toolbar select:focus { outline: none; box-shadow: 0 0 0 3px rgba(0,0,0,0.06); }
.gallery-toolbar input[type="search"] { flex: 1; min-width: 180px; }
.gallery-toolbar .btn { width: auto; padding: 11px 22px; }

/* ── טאבים: תמונות / סרטונים ── */
.gallery-tabs { max-width: 360px; }

.gallery-manage { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
/* min-width:0 קריטי: בלעדיו תיאור ארוך (nowrap) מנפח את עמודת ה-grid והתמונה נעשית ענקית */
.g-item { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--cream-deep); transition: box-shadow 0.2s ease, transform 0.2s ease; }
.g-item:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.10); transform: translateY(-2px); }
/* תמונה ריבועית קבועה (padding-top:100%) — המדיה ממוקמת אבסולוטית בתוכה,
   כך שלעולם לא "תקפוץ" לגודל מלא בלי קשר לרזולוציה המקורית. */
.g-media { display: block; position: relative; width: 100%; padding-top: 100%; overflow: hidden; }
.g-media img, .g-media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.g-check { position: absolute; top: 48px; inset-inline-end: 10px; background: rgba(244,241,234,0.9); backdrop-filter: blur(6px); border: 1px solid var(--black); border-radius: 999px; padding: 4px 6px; line-height: 0; }
.g-check input { accent-color: var(--black); width: 15px; height: 15px; }
.g-dl {
  position: absolute; top: 10px; inset-inline-end: 10px;
  background: var(--black); color: var(--cream); width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 0.95rem; text-decoration: none;
  box-shadow: 0 3px 12px rgba(0,0,0,0.20); transition: transform 0.18s ease, background 0.18s ease;
}
.g-dl:hover { background: var(--grey); transform: translateY(-1px); }
.g-prompt {
  font-size: 0.74rem; color: var(--grey); padding: 8px 10px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.g-empty {
  text-align: center; color: var(--grey); padding: 56px 24px;
  border: 1px dashed var(--line); font-size: 0.95rem; margin-top: 6px;
}

/* ── תפריט שלוש הנקודות על כרטיס (פינה ימנית-עליונה) ── */
.g-menu-btn {
  position: absolute; top: 10px; inset-inline-start: 10px; z-index: 3;
  width: 34px; height: 34px; border: 1px solid var(--black); border-radius: 50%;
  background: rgba(244,241,234,0.9); backdrop-filter: blur(6px); color: var(--black); cursor: pointer;
  font-size: 1.15rem; line-height: 1; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 12px rgba(0,0,0,0.14); transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.g-menu-btn:hover { background: var(--black); color: var(--cream); transform: translateY(-1px); }
.g-menu {
  position: absolute; top: 50px; inset-inline-start: 10px; z-index: 5;
  background: var(--cream); border: 1px solid var(--black); min-width: 156px; border-radius: 14px;
  overflow: hidden; padding: 5px;
  display: flex; flex-direction: column; box-shadow: 0 12px 34px rgba(0,0,0,.18);
  transform-origin: top var(--menu-origin, left); animation: g-menu-pop 0.14s ease;
}
@keyframes g-menu-pop { from { opacity: 0; transform: translateY(-6px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
/* סגור כברירת מחדל — נפתח רק בלחיצה (האטריביוט hidden לבדו לא גובר על display:flex) */
.g-menu[hidden] { display: none; }
.g-menu button {
  background: none; border: 0; text-align: start; padding: 11px 14px; border-radius: 9px;
  font-family: inherit; font-size: 0.86rem; cursor: pointer; color: var(--black); transition: background 0.15s ease;
}
.g-menu button:hover { background: var(--cream-deep); }
.g-menu .g-delete { color: #b00020; border-top: 1px solid var(--line); }

/* ── לייטבוקס (תצוגה מוגדלת + פרומפט מלא) ── */
.lightbox { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(20,18,14,.82); }
.lb-panel {
  position: relative; z-index: 1; display: flex; gap: 0; max-width: 1100px; width: 92%;
  max-height: 88vh; background: var(--cream); border: 1.5px solid var(--black);
}
.lb-close {
  position: absolute; top: 10px; inset-inline-end: 10px; z-index: 3;
  width: 36px; height: 36px; border: 1px solid var(--black); background: var(--cream);
  cursor: pointer; font-size: 1rem;
}
.lb-media { flex: 1 1 60%; background: #000; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.lb-media img, .lb-media video { max-width: 100%; max-height: 88vh; display: block; }
.lb-side { flex: 1 1 40%; max-width: 420px; padding: 30px 28px; display: flex; flex-direction: column; overflow-y: auto; }
.lb-label { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.16em; color: var(--grey); text-transform: uppercase; margin-bottom: 12px; }
.lb-prompt {
  flex: 1; min-height: 160px; width: 100%; resize: vertical;
  border: 1px solid var(--line); background: var(--cream-deep); color: var(--black);
  font-family: inherit; font-size: 0.95rem; line-height: 1.6; padding: 14px; border-radius: 0;
}
.lb-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.lb-actions .btn { width: auto; padding: 10px 18px; }
.lb-hint { font-size: 0.72rem; color: var(--grey); margin-top: 12px; }
@media (max-width: 760px) {
  .lb-panel { flex-direction: column; max-height: 92vh; overflow-y: auto; }
  .lb-media { max-height: 50vh; }
  .lb-side { max-width: none; }
}

/* ── הודעת toast קטנה ── */
.g-toast {
  position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 20px);
  background: var(--black); color: var(--cream); padding: 12px 22px; font-size: 0.9rem;
  z-index: 200; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.g-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── כרטיס הוצאה אמיתית ── */
.spend-card { border: 1.5px solid var(--black); background: var(--black); color: var(--cream); padding: 28px 32px; margin-bottom: 44px; }
.spend-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.7; }
.spend-num { font-family: "Archivo","Heebo",sans-serif; font-weight: 900; font-size: 3.2rem; letter-spacing: -0.03em; line-height: 1.05; }
.spend-sub { font-size: 0.8rem; opacity: 0.7; }

/* ── רשימת מיילים מאושרים למתנת הרשמה ── */
.allow-card { border: 1.5px solid var(--black); padding: 26px 30px; margin-bottom: 44px; }
.allow-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.allow-title { font-family: "Archivo","Heebo",sans-serif; font-weight: 900; font-size: 1.3rem; letter-spacing: -0.02em; margin: 0; }
.allow-sub { font-size: 0.82rem; color: var(--grey); margin: 6px 0 0; }
.allow-count { flex: none; min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--black); color: var(--cream); font-weight: 900; font-size: 0.95rem; padding: 0 12px; }
.allow-add { display: flex; gap: 10px; margin: 20px 0 4px; }
.allow-add input[type="email"] { flex: 1; border: 1.5px solid var(--black); background: transparent; padding: 12px 16px; font-family: inherit; font-size: 0.95rem; border-radius: 999px; }
.btn-pill { flex: none; width: auto; border: 1.5px solid var(--black); background: var(--black); color: var(--cream); padding: 12px 28px; border-radius: 999px; font-family: "Archivo","Heebo",sans-serif; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; cursor: pointer; transition: background 0.2s ease, color 0.2s ease; }
.btn-pill:hover { background: transparent; color: var(--black); }
.allow-list { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.allow-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 2px; border-top: 1px solid rgba(0,0,0,0.10); }
.allow-list li:first-child { border-top: none; }
.allow-email { font-size: 0.95rem; word-break: break-all; }
.allow-list form { margin: 0; }
.allow-x { width: 30px; height: 30px; border-radius: 999px; border: 1.5px solid rgba(0,0,0,0.18); background: transparent; color: var(--grey); cursor: pointer; font-size: 0.85rem; line-height: 1; transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease; }
.allow-x:hover { background: var(--black); color: var(--cream); border-color: var(--black); }
.allow-empty { margin-top: 18px; font-size: 0.88rem; color: var(--grey); }

/* ── גרף שימוש ── */
.chart-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 8px 0 22px; flex-wrap: wrap; }
.chart-head input[type="search"] { border: 1.5px solid var(--black); background: transparent; padding: 9px 12px; font-family: inherit; font-size: 0.9rem; min-width: 220px; }
.range-tabs { display: flex; gap: 0; border: 1.5px solid var(--black); }
.range-tabs a { padding: 8px 16px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey); }
.range-tabs a.active { background: var(--black); color: var(--cream); }

.chart { display: flex; align-items: flex-end; gap: 8px; border: 1px solid var(--line); padding: 22px 18px; background: var(--cream-deep); overflow-x: auto; min-height: 180px; }
.chart-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; flex: 1; min-width: 28px; }
.chart-bar { width: 70%; max-width: 36px; background: var(--black); }
.chart-c { font-family: "Archivo","Heebo",sans-serif; font-weight: 800; font-size: 0.8rem; }
.chart-x { font-size: 0.6rem; color: var(--grey); white-space: nowrap; }

/* ── טבלת מנהל ── */
.admin-stats { display: flex; flex-wrap: wrap; gap: 56px; margin-bottom: 56px; }
.admin-stats .stat { text-align: start; }
.admin-stats .num { font-family: "Archivo","Heebo",sans-serif; font-weight: 900; font-size: 3rem; letter-spacing: -0.03em; line-height: 1; }
.admin-stats .lbl { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.18em; color: var(--grey); text-transform: uppercase; margin-top: 6px; }

/* ── פרופיל אישי ── */
.profile-id { display: flex; align-items: center; gap: 22px; border: 1.5px solid var(--black); padding: 26px 30px; margin-bottom: 48px; }
.profile-avatar {
  flex: 0 0 auto; width: 76px; height: 76px; border-radius: 50%;
  background: var(--black); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-family: "Archivo","Heebo",sans-serif; font-weight: 900; font-size: 1.7rem; letter-spacing: 0.02em;
}
.profile-name { font-family: "Archivo","Heebo",sans-serif; font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; }
.profile-sub { color: var(--grey); font-size: 0.9rem; margin-top: 2px; }
.profile-badge { display: inline-block; margin-top: 8px; background: var(--black); color: var(--cream); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; padding: 4px 10px; }

.statgrid { display: flex; flex-wrap: wrap; gap: 56px; margin-bottom: 8px; }
.statgrid .stat { text-align: start; }
.statgrid .num { font-family: "Archivo","Heebo",sans-serif; font-weight: 900; font-size: 3rem; letter-spacing: -0.03em; line-height: 1; }
.statgrid .lbl { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.18em; color: var(--grey); text-transform: uppercase; margin-top: 6px; }

.profile-section { margin-top: 52px; }
.profile-h2 { font-family: "Archivo","Heebo",sans-serif; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; margin: 0 0 22px; }
.profile-h2-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.profile-h2-row .profile-h2 { margin: 0; }
.profile-h2-row .btn { width: auto; padding: 9px 18px; }
.profile-bar { height: 8px; background: var(--cream-deep); border: 1px solid var(--line); margin-top: 22px; overflow: hidden; }
.profile-bar span { display: block; height: 100%; background: var(--black); }

.profile-recent { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.pr-item { display: block; position: relative; width: 100%; padding-top: 100%; overflow: hidden; border: 1px solid var(--line); background: var(--cream-deep); }
.pr-item img, .pr-item video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 700px) { .profile-recent { grid-template-columns: repeat(3, 1fr); } .statgrid { gap: 32px; } }

table.users { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
table.users th, table.users td { text-align: right; padding: 17px 14px; border-bottom: 1px solid var(--line-soft); }
table.users th { font-size: 0.66rem; letter-spacing: 0.16em; color: var(--grey); text-transform: uppercase; font-weight: 700; }
table.users td { font-weight: 500; }
table.users tr:hover td { background: var(--cream-deep); }
table.users .usage { font-family: "Archivo","Heebo",sans-serif; font-weight: 800; font-size: 1.1rem; }

/* ── תחתית ── */
.site-footer {
  text-align: center; padding: 34px; border-top: 1px solid var(--line);
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.2em; color: var(--grey); text-transform: uppercase;
}

/* ── מסך שגיאה ── */
.error-page { text-align: center; padding: 90px 0; }
.error-page .code { font-family: "Archivo","Heebo",sans-serif; font-weight: 900; font-size: 5rem; letter-spacing: -0.04em; }

/* ── רספונסיב ── */
@media (max-width: 760px) {
  .site-header { padding: 18px 22px; }
  .container { padding: 44px 22px 70px; }
  .studio-grid { grid-template-columns: 1fr; }
  .studio-controls { border-inline-end: none; border-bottom: 1px solid var(--line); padding: 32px; }
  .studio-output { padding: 32px; min-height: 320px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .row { flex-direction: column; gap: 0; }
  .admin-stats { gap: 32px; }
  .auth-card { padding: 38px 26px; }
  table.users th:nth-child(4), table.users td:nth-child(4) { display: none; }
}

.field-hint { font-size: 0.78rem; color: var(--grey); margin: 8px 0 0; }

/* ── עמוד קניית קרדיטים ── */
.packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pack-card { border: 1.5px solid var(--black); border-radius: 18px; padding: 30px 24px; text-align: center; transition: box-shadow 0.2s ease, transform 0.2s ease; }
.pack-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.08); transform: translateY(-2px); }
.pack-credits { font-family: "Archivo","Heebo",sans-serif; font-weight: 900; font-size: 2.7rem; line-height: 1; letter-spacing: -0.03em; }
.pack-credits-label { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--grey); margin: 6px 0 16px; }
.pack-price { font-family: "Archivo","Heebo",sans-serif; font-weight: 800; font-size: 1.25rem; margin-bottom: 22px; }
.paypal-buttons { min-height: 46px; }
.buy-note { color: var(--grey); font-size: 0.85rem; margin-top: 26px; max-width: 60ch; }
@media (max-width: 760px) { .packages { grid-template-columns: 1fr; } }
