/* Zexa demo viewer — device-frame preview around a live template. */
@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; }
:root { --bg: #070A13; --bar: #0B1020; --line: #1C2745; --line-2: #29365E; --text: #E8ECF8; --muted: #8E99B7; --brand: #7B9CFF; --grad: linear-gradient(135deg, #8FA8FF, #4B6BCE); }
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { font-family: "Vazirmatn", Tahoma, sans-serif; background: var(--bg); color: var(--text); display: flex; flex-direction: column; overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
.ico { width: 20px; height: 20px; flex-shrink: 0; }
[hidden] { display: none !important; }

.dv-bar { position: relative; z-index: 3; display: flex; align-items: center; gap: 14px; height: 64px; padding: 0 16px; background: var(--bar); border-bottom: 1px solid var(--line); }
.dv-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.dv-brand .mark { height: auto; }
.dv-brand b { display: block; font-size: 16px; line-height: 1.1; }
.dv-brand small { display: block; font-size: 11px; color: var(--brand); }

.dv-demos { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); margin-inline-start: 10px; overflow-x: auto; scrollbar-width: none; }
.dv-demos::-webkit-scrollbar { display: none; }
.dv-demos a { display: flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--muted); white-space: nowrap; transition: background .2s, color .2s; }
.dv-demos a .ico { width: 17px; height: 17px; }
.dv-demos a:hover { color: var(--text); }
.dv-demos a.is-on { background: #151E38; color: var(--text); box-shadow: inset 0 0 0 1px rgba(123, 156, 255, .35); }
.dv-demos a.is-on .ico { color: var(--brand); }

.dv-devices { display: flex; gap: 4px; margin: 0 auto; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.dv-devices button { width: 38px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.dv-devices button:hover { color: var(--text); }
.dv-devices button.is-on { background: var(--grad); color: #fff; }

.dv-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.dv-icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line-2); color: var(--muted); transition: color .2s, border-color .2s; }
.dv-icon-btn:hover { color: var(--text); border-color: var(--brand); }
.dv-cta { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; background: var(--grad); color: #fff; font-weight: 700; font-size: 14px; box-shadow: 0 8px 24px rgba(75, 107, 206, .35); transition: transform .2s; }
.dv-cta:hover { transform: translateY(-1px); }

.dv-stage { flex: 1; min-height: 0; display: flex; justify-content: center; align-items: stretch; padding: 0; background: radial-gradient(900px 500px at 50% -10%, rgba(75, 107, 206, .22), transparent 70%), var(--bg); transition: padding .4s; }
.dv-frame { position: relative; width: 100%; height: 100%; background: #fff; overflow: hidden; transition: width .5s cubic-bezier(.2, .8, .2, 1), height .5s, border-radius .5s, box-shadow .5s; }
.dv-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.dv-loading { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; align-content: center; gap: 14px; background: #0B1020; color: var(--muted); font-size: 14px; transition: opacity .4s; }
.dv-loading .mark { height: auto; animation: dvPulse 1.4s ease-in-out infinite; }
.dv-loading.is-done { opacity: 0; pointer-events: none; }
@keyframes dvPulse { 50% { opacity: .4; transform: scale(.94); } }
.dv-notch { display: none; }

body[data-device="tablet"] .dv-stage, body[data-device="mobile"] .dv-stage { padding: 22px 16px 16px; }
body[data-device="tablet"] .dv-frame { width: 820px; max-width: 100%; border-radius: 26px; box-shadow: 0 0 0 12px #161D33, 0 0 0 13px var(--line-2), 0 40px 90px rgba(0, 0, 0, .6); }
body[data-device="mobile"] .dv-frame { width: 390px; max-width: 100%; max-height: 844px; border-radius: 40px; box-shadow: 0 0 0 11px #161D33, 0 0 0 12px var(--line-2), 0 40px 90px rgba(0, 0, 0, .6); }
body[data-device="mobile"] .dv-notch { display: block; position: absolute; z-index: 2; top: 7px; background: #000 !important; left: 50%; transform: translateX(-50%); width: 96px; height: 26px; border-radius: 20px; background: #0b0f1d; pointer-events: none; }
body[data-device="mobile"] .dv-frame { background: #0b0f1d; }
body[data-device="mobile"] .dv-frame iframe { top: 38px; height: calc(100% - 38px); }

.dv-note { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 16px; font-size: 12.5px; color: var(--muted); background: var(--bar); border-top: 1px solid var(--line); text-align: center; }
.dv-note .ico { width: 16px; height: 16px; color: #45D69A; }

@media (max-width: 1100px) { .dv-demos a span { display: none; } .dv-demos a { padding: 7px 10px; } }
@media (max-width: 760px) {
  .dv-devices { display: none; }
  .dv-bar { gap: 10px; padding: 0 10px; height: 58px; }
  .dv-brand span { display: none; }
  .dv-demos { margin: 0 auto; }
  .dv-cta { padding: 0 14px; font-size: 13px; }
  .dv-cta .ico { display: none; }
  .dv-icon-btn { display: none; }
  body[data-device] .dv-stage { padding: 0; }
  body[data-device] .dv-frame { width: 100%; max-height: none; border-radius: 0; box-shadow: none; }
  body[data-device] .dv-notch { display: none; }
  .dv-note { font-size: 11.5px; padding: 6px 10px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
