@font-face {
  font-family: 'Vazirmatn';
  src: url('/fonts/Vazirmatn.woff2') format('woff2-variations'), url('/fonts/Vazirmatn.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: Vazirmatn, Tahoma, sans-serif; background: #e9ecf3; color: #0f172a;
  display: flex; flex-direction: column; overflow: hidden;
}
.bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 16px; background: #fff; border-bottom: 1px solid #dde2ec; flex: none;
}
.bar-title { font-weight: 800; font-size: 15px; margin-inline-end: auto; display: flex; flex-direction: column; }
.bar-title span { font-weight: 500; font-size: 11.5px; color: #64748b; }
.grp { display: flex; background: #f1f4f9; border: 1px solid #dde2ec; border-radius: 11px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.grp button {
  border: 0; background: none; font: inherit; font-size: 12.5px; font-weight: 600; color: #475569;
  padding: 6px 11px; border-radius: 8px; cursor: pointer;
}
.grp button:hover { color: #0f172a; background: #fff; }
.grp button.on { background: #1049dc; color: #fff; }

.stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 14px; }
.device { width: 100%; height: 100%; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 40px rgba(15,23,42,.15); }
.device iframe { width: 100%; height: 100%; border: 0; display: block; }

/* قاب گوشی: صفحه‌ی داخلی ۳۹۰×۸۴۴ (مثل آیفون)، اگر جا نشد با transform کوچک می‌شود (site-preview.js) */
.stage.mobile .device {
  width: 414px; height: 868px; flex: none; border-radius: 46px;   /* داخلش دقیقا ۳۹۰×۸۴۴ */ border: 12px solid #0b0d12;
  box-shadow: 0 0 0 2px #2a2f3a, 0 30px 70px rgba(15,23,42,.35); transform-origin: center center;
}

.hint { flex: none; text-align: center; font-size: 12px; color: #64748b; padding: 0 16px 10px; }
@media (max-width: 700px) {
  .bar-title span, .hint { display: none; }
  .stage { padding: 6px; }
}
