/* ═══════════════════════════════════════════════════════════════════
   AUTH.CSS — Landing Page + Login + Admin Panel
   ═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Hebrew:wght@400;500;600;700;800;900&display=swap');

/* ─── OVERLAY (full screen) ─────────────────────────────────────── */

#authOverlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #f8fafc;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  font-family: 'Noto Sans Hebrew', system-ui, sans-serif;
  overflow-y: auto;
}

/* ─── LANDING LAYOUT ────────────────────────────────────────────── */

.auth-landing {
  display: grid;
  grid-template-columns: 1fr 460px;
  min-height: 100vh;
  width: 100%;
}

/* ── LEFT: HERO ──────────────────────────────────────────────────── */

.auth-hero {
  background: linear-gradient(145deg, #1e1b4b 0%, #312e81 35%, #4f46e5 70%, #7c3aed 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 3rem 4rem;
  position: relative;
  overflow: hidden;
}

/* Decorative circles */
.auth-hero::before {
  content: '';
  position: absolute;
  top: -120px;
  left: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}
.auth-hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  pointer-events: none;
}

.auth-hero-logo {
  height: 40px;
  object-fit: contain;
  margin-bottom: 3rem;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.auth-hero-kicker {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.auth-hero h1 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.15;
  margin: 0 0 0.5rem;
  direction: rtl;
}

.auth-hero h1 span {
  color: #a5b4fc;
}

.auth-hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  margin: 0 0 2.5rem;
  line-height: 1.65;
  max-width: 480px;
  direction: rtl;
}

/* Feature items */
.auth-features {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 2.5rem;
}

.auth-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  direction: rtl;
}

.auth-feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  background: rgba(255,255,255,0.12);
}

.auth-feature-text {
  color: rgba(255,255,255,0.88);
  font-size: 0.9rem;
  font-weight: 500;
}

.auth-feature-text strong {
  color: #ffffff;
  font-weight: 700;
}

/* Demo button in hero */
.auth-hero-cta {
  margin-top: 2rem;
}

.demo-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 10px;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 150ms, border-color 150ms, transform 100ms;
  backdrop-filter: blur(4px);
}
.demo-btn:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-1px);
}
.demo-btn:active { transform: scale(0.98); }

/* Stats row */
.auth-stats {
  display: flex;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  direction: rtl;
}

.auth-stat-item {
  text-align: center;
}

.auth-stat-num {
  font-size: 1.75rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
}

.auth-stat-lbl {
  font-size: 0.74rem;
  color: rgba(255,255,255,0.6);
  margin-top: 3px;
}

/* ── RIGHT: FORM PANEL ───────────────────────────────────────────── */

.auth-form-panel {
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2.5rem 2rem;
  border-right: 1px solid #e2e8f0;
}

/* ─── MODAL CARD ────────────────────────────────────────────────── */

.auth-modal {
  width: 100%;
  max-width: 380px;
  animation: authSlideIn 0.3s ease;
}

@keyframes authSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Small logo inside the form panel */
.auth-form-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
  direction: rtl;
}

.auth-form-brand img {
  height: 32px;
  object-fit: contain;
}

.auth-form-brand-text {
  font-size: 0.82rem;
  color: #64748b;
}

.auth-form-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.35rem;
  direction: rtl;
}

.auth-form-subtitle {
  font-size: 0.84rem;
  color: #64748b;
  margin: 0 0 1.75rem;
  direction: rtl;
}

/* ─── TABS ──────────────────────────────────────────────────────── */

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 1.5rem;
}

.auth-tab {
  padding: 0.55rem;
  border: none;
  border-radius: 7px;
  background: transparent;
  font-size: 0.88rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 120ms;
  font-family: inherit;
}

.auth-tab.active {
  background: #ffffff;
  color: #4f46e5;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* ─── FORM ──────────────────────────────────────────────────────── */

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.auth-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  direction: rtl;
}

.auth-field input {
  padding: 0.65rem 0.9rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 9px;
  font-size: 0.9rem;
  color: #0f172a;
  background: #f8fafc;
  transition: border-color 120ms, background 120ms, box-shadow 120ms;
  direction: ltr;
  text-align: left;
  font-family: inherit;
}

.auth-field input:focus {
  outline: none;
  border-color: #6366f1;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

/* ─── PAYMENT CHOICE ────────────────────────────────────────────── */

.auth-payment-choice {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

.auth-payment-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  direction: rtl;
}

.auth-price-badge {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: white;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
}

.auth-radio-card {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  transition: border-color 120ms, background 120ms;
  direction: rtl;
}

.auth-radio-card input[type="radio"] {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: #4f46e5;
}

.auth-radio-card:has(input:checked) {
  border-color: #6366f1;
  background: #eef2ff;
}

.auth-radio-body strong {
  display: block;
  font-size: 0.85rem;
  color: #0f172a;
  font-weight: 600;
}

.auth-radio-body span {
  font-size: 0.76rem;
  color: #64748b;
  display: block;
  margin-top: 2px;
}

/* ─── BUTTONS ────────────────────────────────────────────────────── */

.auth-btn-primary {
  width: 100%;
  padding: 0.75rem;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 0.93rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 150ms, transform 100ms, box-shadow 150ms;
  margin-top: 0.25rem;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(79,70,229,0.3);
}

.auth-btn-primary:hover {
  opacity: 0.92;
  box-shadow: 0 6px 20px rgba(79,70,229,0.4);
}
.auth-btn-primary:active { transform: scale(0.98); }
.auth-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.auth-btn-ghost {
  width: 100%;
  padding: 0.6rem;
  background: transparent;
  color: #64748b;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  margin-top: 0.4rem;
  transition: background 120ms;
  font-family: inherit;
}
.auth-btn-ghost:hover { background: #f8fafc; }

/* ─── ERROR ──────────────────────────────────────────────────────── */

.auth-error {
  background: #fef2f2;
  border-right: 3px solid #dc2626;
  color: #b91c1c;
  font-size: 0.82rem;
  padding: 0.6rem 0.85rem;
  border-radius: 6px;
  direction: rtl;
}

/* ─── PAYMENT STEP ───────────────────────────────────────────────── */

.auth-payment-step {
  text-align: center;
  direction: rtl;
}

.payment-step-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.auth-payment-step h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.35rem;
}

.payment-step-sub {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0 0 0.75rem;
}

.payment-phone {
  font-size: 2rem;
  font-weight: 900;
  color: #4f46e5;
  letter-spacing: 0.05em;
  font-family: 'Courier New', monospace;
  background: #eef2ff;
  border-radius: 10px;
  padding: 0.5rem 1.5rem;
  margin: 0.75rem 0;
  display: inline-block;
  direction: ltr;
}

.payment-note {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0 0 1rem;
  line-height: 1.5;
}

.payment-steps-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: right;
  margin-bottom: 1.25rem;
}

.ps-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.84rem;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
}

.ps-num {
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: white;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ─── SUCCESS ────────────────────────────────────────────────────── */

.auth-success {
  text-align: center;
  padding: 1rem 0;
  direction: rtl;
}

.success-icon {
  width: 56px;
  height: 56px;
  background: #dcfce7;
  color: #16a34a;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.auth-success h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.5rem;
}

.auth-success p {
  font-size: 0.88rem;
  color: #64748b;
  margin: 0 0 1.5rem;
  line-height: 1.6;
}

/* ─── SIDEBAR USER BAR ───────────────────────────────────────────── */

.sidebar-user-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 0.25rem;
}

.sub-user-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.sub-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sub-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.sub-email {
  font-size: 0.7rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.sub-logout {
  width: 30px;
  height: 30px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  flex-shrink: 0;
  transition: background 120ms, color 120ms;
}
.sub-logout:hover { background: #fef2f2; color: #dc2626; }

/* ─── ADMIN PANEL ────────────────────────────────────────────────── */

#view-admin .page-header { margin-bottom: 1.25rem; }

.admin-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.admin-stat {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  text-align: center;
}
.admin-stat.amber  { border-top: 3px solid #d97706; }
.admin-stat.green  { border-top: 3px solid #16a34a; }
.admin-stat.indigo { border-top: 3px solid #4f46e5; }

.as-val { font-size: 1.75rem; font-weight: 800; color: #0f172a; line-height: 1; }
.as-lbl { font-size: 0.74rem; color: #64748b; margin-top: 4px; }

.admin-section { margin-bottom: 1.5rem; }

.admin-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
}
.admin-badge.amber { background: #fffbeb; color: #d97706; border: 1.5px solid #d97706; }
.admin-badge.red   { background: #fef2f2; color: #dc2626; border: 1.5px solid #dc2626; }

.admin-refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.4rem 0.9rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  background: white;
  font-size: 0.8rem;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  transition: background 120ms;
  margin-right: auto;
}
.admin-refresh-btn:hover { background: #f1f5f9; }

/* ─── ADMIN TABLE ─────────────────────────────────────────────────── */

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
  background: white;
}

.admin-table th {
  background: #f8fafc;
  font-weight: 700;
  color: #475569;
  padding: 0.7rem 0.9rem;
  text-align: right;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.admin-table td {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
}

.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td     { background: #fafbfc; }
.admin-table tr.alert-row td { background: #fffbeb; }
.admin-table tr.alert-row:hover td { background: #fef3c7; }

/* ─── STATUS + PAY BADGES ────────────────────────────────────────── */

.user-status-badge {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}
.user-status-badge.green { background: #dcfce7; color: #15803d; }
.user-status-badge.amber { background: #fffbeb; color: #b45309; }
.user-status-badge.red   { background: #fee2e2; color: #b91c1c; }
.user-status-badge.gray  { background: #f1f5f9; color: #475569; }

.pay-badge {
  display: inline-block;
  padding: 0.18rem 0.5rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
}
.pay-badge.bit    { background: #eff6ff; color: #1d4ed8; }
.pay-badge.credit { background: #f5f3ff; color: #6d28d9; }

/* ─── ADMIN ACTIONS ──────────────────────────────────────────────── */

.admin-actions {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
  align-items: center;
}

.admin-btn {
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 120ms;
  font-family: inherit;
}
.admin-btn:hover { opacity: 0.8; }
.admin-btn.green  { background: #dcfce7; color: #15803d; }
.admin-btn.red    { background: #fee2e2; color: #b91c1c; }
.admin-btn.amber  { background: #fffbeb; color: #b45309; }
.admin-btn.gray   { background: #f1f5f9; color: #475569; }
.admin-btn.indigo { background: #eef2ff; color: #4338ca; }

.admin-hist-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0.22rem 0.55rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: background 120ms;
}
.admin-hist-btn:hover { background: #e2e8f0; }

/* ─── MODAL (history / credit) ───────────────────────────────────── */

.admin-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.admin-modal {
  background: white;
  border-radius: 16px;
  width: 100%;
  max-width: 700px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
}

.admin-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
}

.admin-modal-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.admin-modal-header button {
  width: 28px;
  height: 28px;
  border: none;
  background: #f1f5f9;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-modal-body {
  overflow-y: auto;
  padding: 1rem 1.25rem;
}

/* ─── CREDIT REVEAL ──────────────────────────────────────────────── */

.credit-reveal {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  color: #78350f;
  margin-top: 0.5rem;
}
.credit-reveal strong { display: block; font-weight: 700; margin-bottom: 4px; }

/* ─── LOADING ────────────────────────────────────────────────────── */

.auth-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
}

.auth-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e2e8f0;
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════════════════
   DEMO MODAL
   ═══════════════════════════════════════════════════════════════════ */

.demo-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(15,23,42,0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: authSlideIn 0.25s ease;
}

.demo-modal {
  background: #f8fafc;
  border-radius: 20px;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.4);
}

/* Header */
.demo-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.demo-modal-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
  direction: rtl;
}

.demo-close-btn {
  width: 30px;
  height: 30px;
  border: none;
  background: #f1f5f9;
  border-radius: 7px;
  cursor: pointer;
  font-size: 0.85rem;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 120ms;
}
.demo-close-btn:hover { background: #fee2e2; color: #dc2626; }

/* App preview frame */
.demo-frame {
  display: flex;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

/* Fake sidebar */
.demo-sidebar {
  width: 180px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #1e1b4b 0%, #312e81 100%);
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
}

.demo-sidebar-logo {
  padding: 0 1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 0.75rem;
}

.demo-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 0.5rem;
}

.demo-nav-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  direction: rtl;
  cursor: default;
}

.demo-nav-item.active {
  background: rgba(255,255,255,0.12);
  color: #ffffff;
}

/* Fake content */
.demo-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  position: relative;
  direction: rtl;
}

/* Stats row */
.demo-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.demo-stat-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.85rem;
  text-align: center;
}

.demo-stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.demo-stat-lbl {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 4px;
}

/* Week cards */
.demo-week-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  transition: filter 0.3s;
}

.demo-week-card.demo-blurred {
  filter: blur(4px);
  user-select: none;
  pointer-events: none;
}

.demo-week-badge {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: white;
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.demo-week-body { flex: 1; min-width: 0; }

.demo-week-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.4rem;
}

.demo-week-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.demo-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
}
.demo-tag.critical { background: #fee2e2; color: #b91c1c; }
.demo-tag.high     { background: #fef9c3; color: #a16207; }

.demo-week-chips {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.demo-week-chips span {
  font-size: 0.72rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.15rem 0.5rem;
  color: #334155;
}

.demo-chip-more {
  background: #eef2ff !important;
  color: #4f46e5 !important;
  border-color: #c7d2fe !important;
}

/* Lock overlay */
.demo-lock-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(248,250,252,1) 40%, rgba(248,250,252,0.6) 80%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 2rem;
  pointer-events: all;
}

.demo-lock-box {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 1.75rem 2.5rem;
  text-align: center;
  box-shadow: 0 20px 60px rgba(79,70,229,0.15);
  max-width: 380px;
  width: 100%;
  direction: rtl;
}

.demo-lock-icon {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

.demo-lock-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.4rem;
}

.demo-lock-sub {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.demo-lock-price {
  display: inline-block;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.demo-lock-cta {
  width: 100%;
  padding: 0.75rem;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(79,70,229,0.35);
  transition: opacity 150ms, transform 100ms;
}
.demo-lock-cta:hover  { opacity: 0.9; }
.demo-lock-cta:active { transform: scale(0.98); }

/* ─── RESPONSIVE ─────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .auth-landing {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  .auth-hero {
    padding: 2.5rem 2rem;
    align-items: center;
    text-align: center;
  }

  .auth-hero h1 { font-size: 1.9rem; }

  .auth-hero-logo { margin-bottom: 1.75rem; }

  .auth-feature { justify-content: center; }

  .auth-stats { justify-content: center; }

  .auth-form-panel {
    padding: 2rem 1.5rem;
    border-right: none;
    border-top: 1px solid #e2e8f0;
  }
}

@media (max-width: 600px) {
  .auth-hero { padding: 2rem 1.25rem; }
  .auth-hero h1 { font-size: 1.55rem; }
  .auth-stats { gap: 1rem; }
  .admin-stats-row { grid-template-columns: 1fr 1fr; }
  .admin-table { font-size: 0.76rem; }
  .admin-table th, .admin-table td { padding: 0.5rem 0.6rem; }
  .auth-form-panel { padding: 1.5rem 1rem; }
  .demo-sidebar { display: none; }
  .demo-stats-row { grid-template-columns: 1fr 1fr; }
  .demo-lock-box { padding: 1.25rem 1.5rem; }
}
