/* ===================================================================
   Beita Marketing v2 — Mockup components
   Loaded AFTER marketing-v2.css. All selectors scoped under body.v2.
   Dashboard mockup styles adapted from reference marketing.css.
   =================================================================== */

/* ─── DASHBOARD MOCKUP ────────────────────────────────────────── */
body.v2 .mockup-frame {
  position: relative;
  transition: transform .3s ease;
}
body.v2 .mockup-frame.dashboard { display: block; }

@media (min-width: 1024px) {
  body.v2 .mockup-frame {
    transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  }
  body.v2 .mockup-frame:hover {
    transform: perspective(1200px) rotateY(-2deg) rotateX(1deg);
  }
}

body.v2 .dash-card {
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  box-shadow:
    0 1px 0 rgba(255,255,255,.6) inset,
    0 30px 60px -20px rgba(26,26,46,.22),
    0 12px 32px -12px rgba(26,26,46,.15);
  overflow: hidden;
  direction: rtl;
}
body.v2 .dash-top {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--hairline);
  background: var(--surface); /* fallback for browsers without color-mix() */
  background: color-mix(in srgb, var(--surface) 60%, var(--surface-2));
}
body.v2 .dash-dots { display: flex; gap: 6px; }
body.v2 .dash-dots span { width: 10px; height: 10px; border-radius: 50%; }
body.v2 .dash-dots span:nth-child(1) { background: #FF6058; }
body.v2 .dash-dots span:nth-child(2) { background: #FFBE2F; }
body.v2 .dash-dots span:nth-child(3) { background: #28C941; }
body.v2 .dash-tab {
  font-size: 12px; font-weight: 600; color: var(--ink-soft);
  background: var(--surface); padding: 5px 14px;
  border-radius: 6px; margin-right: auto;
}
body.v2 .dash-tab small { color: var(--ink-mute); font-weight: 400; }

body.v2 .dash-hero {
  padding: 22px 22px 8px;
  background: var(--surface-2); /* fallback for browsers without color-mix() */
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 4%, var(--surface-2)) 0%, var(--surface-2) 70%);
}
body.v2 .dash-greet { font-size: 13px; color: var(--ink-mute); margin-bottom: 4px; }
body.v2 .dash-greet-name { font-size: 19px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }

body.v2 .dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 16px 18px; }
body.v2 .dash-kpi {
  padding: 14px 14px 16px; border-radius: 12px;
  border: 1px solid var(--hairline);
  background: var(--surface-2);
}
body.v2 .dash-kpi .lbl { font-size: 11px; color: var(--ink-mute); font-weight: 500; margin-bottom: 6px; display: flex; align-items: center; gap: 5px; }
body.v2 .dash-kpi .lbl i { width: 13px; height: 13px; }
body.v2 .dash-kpi .val { font-family: 'Rubik', sans-serif; font-size: 26px; font-weight: 700; letter-spacing: -.03em; color: var(--ink); line-height: 1; }
body.v2 .dash-kpi .trend { font-size: 11px; color: #059669; margin-top: 4px; font-weight: 600; }

body.v2 .dash-list { padding: 0 18px 18px; }
body.v2 .dash-list-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 0 12px; }
body.v2 .dash-list-head h4 { font-size: 13px; font-weight: 700; margin: 0; color: var(--ink); }
body.v2 .dash-list-head span { font-size: 11px; color: var(--accent); font-weight: 600; }
body.v2 .dash-row {
  display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center;
  padding: 10px 0; border-top: 1px solid var(--hairline);
}
body.v2 .dash-row .av {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 700; color: #fff;
}
body.v2 .dash-row .nm { font-size: 13px; font-weight: 600; color: var(--ink); }
body.v2 .dash-row .meta { font-size: 11px; color: var(--ink-mute); }
body.v2 .dash-row .pill { font-size: 10.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
body.v2 .pill-yarz { background: #FEF3C7; color: #92400E; }
body.v2 .pill-paid { background: #D1FAE5; color: #047857; }
body.v2 .pill-due  { background: #FFE4E6; color: #BE123C; }

body.v2 .dash-float {
  position: absolute;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 14px 30px -10px rgba(26,26,46,.18);
  display: flex; align-items: center; gap: 10px;
}
body.v2 .dash-float .ico {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--accent-tint); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
body.v2 .dash-float .ico i { width: 18px; height: 18px; }
body.v2 .dash-float .t1 { font-size: 12.5px; font-weight: 700; color: var(--ink); }
body.v2 .dash-float .t2 { font-size: 11px; color: var(--ink-mute); }

body.v2 .dash-float-1 {
  top: 30%; right: -22px;
  animation: float 6s ease-in-out infinite;
}
body.v2 .dash-float-2 {
  bottom: 12%; left: -28px;
  animation: float-slow 8s ease-in-out infinite;
  animation-delay: 1s;
}
body.v2 .dash-float-2 .ico { background: #D1FAE5; color: #047857; }

@media (prefers-reduced-motion: reduce) {
  body.v2 .dash-float-1,
  body.v2 .dash-float-2 { animation: none !important; }
}

@media (max-width: 1024px) {
  body.v2 .dash-float { display: none; }
}

/* ─── TV BEZEL MOCKUP ─────────────────────────────────────────── */
body.v2 .tv-bezel {
  background: #0F0F12;
  border-radius: 24px;
  padding: 22px 22px 38px;
  box-shadow:
    0 30px 60px -20px rgba(26,26,46,.32),
    0 12px 32px -12px rgba(26,26,46,.18);
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}
body.v2 .tv-bezel::after {
  content: "";
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  width: 60px; height: 6px;
  background: #2a2a30; border-radius: 999px;
}
body.v2 .tv-screen {
  border-radius: 12px;
  background: radial-gradient(ellipse 70% 60% at 50% 30%, #1F1A0F, #0F0A05);
  padding: 26px 26px 24px;
  color: #fff;
  font-family: 'Rubik', sans-serif;
  border: 1.5px solid rgba(212,168,67,.4);
  min-height: 320px;
  display: flex; flex-direction: column; gap: 18px;
}
body.v2 .tv-header {
  display: flex; justify-content: space-between; align-items: baseline;
}
body.v2 .tv-shul {
  font-size: 14px; color: #D4A843; letter-spacing: .05em; font-weight: 500;
}
body.v2 .tv-date { font-size: 14px; color: #D4A843; letter-spacing: .03em; }
body.v2 .tv-time {
  text-align: center; padding: 4px 0;
  font-size: 84px; font-weight: 700; color: #D4A843;
  letter-spacing: -.04em; line-height: 1;
  font-feature-settings: 'tnum';
  text-shadow: 0 0 40px rgba(212,168,67,.4);
}
body.v2 .tv-times-row {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px;
}
body.v2 .tv-time-cell {
  text-align: center; padding: 12px 6px;
  border: 1px solid rgba(212,168,67,.3);
  border-radius: 8px;
  background: rgba(212,168,67,.05);
}
body.v2 .tv-time-cell .lbl { font-size: 12px; opacity: .75; margin-bottom: 4px; color: #D4A843; }
body.v2 .tv-time-cell .val { font-size: 22px; font-weight: 700; color: #D4A843; font-feature-settings: 'tnum'; }
body.v2 .tv-marquee {
  margin-top: auto;
  padding: 10px 14px;
  border-top: 1px solid rgba(212,168,67,.2);
  font-size: 13px;
  opacity: .85;
  color: #fff;
}
body.v2 .tv-marquee::before { content: "● "; color: #D4A843; }

/* TV — Donation-form variant (lighter chrome on accent palette) */
body.v2 .tv-screen.tv-donate {
  background: radial-gradient(ellipse 70% 60% at 50% 30%, #142850, #0A1735);
  border-color: rgba(77,157,230,.4);
}
body.v2 .tv-screen.tv-donate .tv-shul,
body.v2 .tv-screen.tv-donate .tv-date { color: #4D9DE6; }
body.v2 .tv-donate-amount {
  font-size: 64px; font-weight: 800; color: #fff;
  letter-spacing: -.03em; line-height: 1;
  text-align: center;
  text-shadow: 0 0 40px rgba(77,157,230,.4);
  font-feature-settings: 'tnum';
}
body.v2 .tv-donate-amount span { color: #4D9DE6; font-weight: 700; }
body.v2 .tv-donate-chips {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
body.v2 .tv-donate-chip {
  padding: 10px 6px;
  text-align: center;
  border-radius: 8px;
  border: 1px solid rgba(77,157,230,.3);
  background: rgba(77,157,230,.06);
  font-size: 14px; font-weight: 600;
  color: #fff;
  font-feature-settings: 'tnum';
}
body.v2 .tv-donate-chip.is-active {
  background: rgba(77,157,230,.18);
  border-color: rgba(77,157,230,.6);
  color: #BBDDFF;
}
body.v2 .tv-donate-cta {
  margin-top: auto;
  padding: 14px;
  background: linear-gradient(135deg, #0057B8 0%, #4D9DE6 100%);
  border-radius: 10px;
  text-align: center;
  font-weight: 800; font-size: 15px;
  color: #fff;
  letter-spacing: .01em;
}

/* ─── PHONE MOCKUP ────────────────────────────────────────────── */
body.v2 .phone-frame {
  width: 300px;
  margin: 0 auto;
  background: #0F0F12;
  border-radius: 44px;
  padding: 12px;
  box-shadow:
    0 30px 60px -20px rgba(26,26,46,.32),
    0 12px 32px -12px rgba(26,26,46,.18);
  position: relative;
}
body.v2 .phone-notch {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 26px;
  background: #0F0F12;
  border-radius: 999px;
  z-index: 2;
}
body.v2 .phone-screen {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border-radius: 34px;
  overflow: hidden;
  min-height: 520px;
  padding: 56px 16px 20px;
  display: flex; flex-direction: column; gap: 12px;
}
body.v2 .phone-top { display: flex; justify-content: space-between; align-items: center; }
body.v2 .phone-top .hello { font-size: 13px; color: var(--ink-mute); }
body.v2 .phone-top .hello strong { color: var(--ink); font-weight: 800; }
body.v2 .phone-top .av {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px;
}
body.v2 .phone-time-card {
  border-radius: 16px;
  padding: 16px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--ink) 100%);
  color: #fff;
}
body.v2 .phone-time-card .row1 { font-size: 11px; opacity: .7; margin-bottom: 4px; }
body.v2 .phone-time-card .row2 {
  font-family: 'Rubik', sans-serif;
  font-size: 26px; font-weight: 700;
  letter-spacing: -.02em;
  font-feature-settings: 'tnum';
}
body.v2 .phone-time-card .row3 { font-size: 12px; opacity: .8; margin-top: 6px; }
body.v2 .phone-quick {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
body.v2 .phone-quick-btn {
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 10px 6px;
  text-align: center;
}
body.v2 .phone-quick-btn i { width: 18px; height: 18px; color: var(--primary); margin-bottom: 4px; }
body.v2 .phone-quick-btn .l { font-size: 10px; color: var(--ink-soft); font-weight: 600; }
body.v2 .phone-feed-item {
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 12px 14px;
}
body.v2 .phone-feed-item .tag {
  font-size: 10px; font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .05em;
}
body.v2 .phone-feed-item .t {
  font-size: 13px; font-weight: 700; color: var(--ink);
  margin: 3px 0 2px;
}
body.v2 .phone-feed-item .m { font-size: 11px; color: var(--ink-mute); }

@media (max-width: 1024px) {
  body.v2 .tv-bezel { padding: 16px 16px 30px; }
  body.v2 .tv-screen { min-height: 260px; padding: 20px; }
  body.v2 .tv-time { font-size: 64px; }
  body.v2 .tv-donate-amount { font-size: 48px; }
  body.v2 .phone-frame { width: 260px; }
  body.v2 .phone-screen { min-height: 460px; padding: 50px 14px 18px; }
}
@media (max-width: 640px) {
  body.v2 .tv-time { font-size: 52px; }
  body.v2 .tv-time-cell .val { font-size: 18px; }
  body.v2 .tv-donate-amount { font-size: 40px; }
}
