/* LumiVox Manager — front-end pieces. Uses the LumiVox theme's colour tokens. */

.lv-en{ display:none; }
html[data-lang="en"] .lv-fa{ display:none; }
html[data-lang="en"] .lv-en{ display:inline; }

/* ---------- Announcement banner ---------- */
.lv-banner{
  position:relative; z-index:60;
  --lvb: 56,189,248;
  background: linear-gradient(90deg, rgba(var(--lvb),.18), rgba(var(--lvb),.08));
  border-bottom:1px solid rgba(var(--lvb),.35);
  color: var(--text-1, #f8fafc);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-family: var(--ff-body, inherit);
}
.lv-banner[hidden]{ display:none !important; }
.lv-banner--success{ --lvb: 34,197,94; }
.lv-banner--warning{ --lvb: 245,158,11; }
.lv-banner--danger { --lvb: 239,68,68; }
.lv-banner--brand  { --lvb: 220,38,38; }
.lv-banner-inner{ max-width: var(--container, 1180px); margin-inline:auto; padding: 10px 24px; display:flex; align-items:center; gap:12px; font-size:13.5px; line-height:1.7; }
.lv-banner-dot{ width:8px; height:8px; border-radius:50%; background: rgb(var(--lvb)); box-shadow: 0 0 0 0 rgba(var(--lvb),.6); animation: lvPulse 2s infinite; flex-shrink:0; }
.lv-banner-text{ flex:1; margin:0; }
.lv-banner-link{ font-weight:700; color: rgb(var(--lvb)); white-space:nowrap; text-decoration:none; }
html[data-theme="light"] .lv-banner-link{ filter: brightness(.75); }
.lv-banner-link:hover{ text-decoration:underline; }
.lv-banner-close{ width:28px; height:28px; border-radius:50%; border:1px solid var(--glass-border-strong, rgba(255,255,255,.16)); background: transparent; color: inherit; cursor:pointer; font-size:17px; line-height:1; flex-shrink:0; }
.lv-banner-close:hover{ background: var(--glass-bg, rgba(255,255,255,.06)); }
@keyframes lvPulse{ 0%{ box-shadow:0 0 0 0 rgba(var(--lvb),.55);} 70%{ box-shadow:0 0 0 8px rgba(var(--lvb),0);} 100%{ box-shadow:0 0 0 0 rgba(var(--lvb),0);} }
@media (max-width:640px){ .lv-banner-inner{ position:relative; padding:9px 16px; padding-inline-end:48px; font-size:12.5px; flex-wrap:wrap; row-gap:4px; } .lv-banner-text{ flex-basis:calc(100% - 20px); } .lv-banner-link{ margin-inline-start:20px; } .lv-banner-close{ position:absolute; top:8px; inset-inline-end:12px; } }
@media (prefers-reduced-motion: reduce){ .lv-banner-dot{ animation:none; } }

/* ---------- Download section extras ---------- */
.lv-download-extra{ display:flex; align-items:center; gap:18px; flex-wrap:wrap; margin-top:22px; }
.lv-qr{ display:flex; align-items:center; gap:14px; padding:12px 16px 12px 12px; border-radius: var(--radius-md, 18px); box-shadow:none; }
.lv-qr-code{ width:84px; height:84px; border-radius:12px; background:#fff; padding:6px; flex-shrink:0; }
.lv-qr-code svg{ width:100%; height:100%; display:block; }
.lv-qr-text{ display:flex; flex-direction:column; gap:2px; max-width:220px; }
.lv-qr-text strong{ font-size:13.5px; }
.lv-qr-text span{ font-size:11.5px; color: var(--text-3); line-height:1.6; }
.lv-changelog-link{ display:inline-flex; align-items:center; gap:8px; font-size:13px; color: var(--link); font-weight:600; }
.lv-changelog-link svg{ width:16px; height:16px; }
.lv-changelog-link:hover span{ text-decoration:underline; text-underline-offset:3px; }
@media (max-width: 900px){ .lv-qr{ display:none; } .lv-download-extra{ justify-content:center; } }

/* ---------- Contact form ---------- */
.lv-contact{ margin-top:28px; padding-top:26px; border-top:1px solid var(--divider); display:flex; flex-direction:column; gap:12px; }
.lv-contact-head{ display:flex; flex-direction:column; gap:2px; margin-bottom:4px; }
.lv-contact-head strong{ font-size:15px; }
.lv-contact-head span{ font-size:12.5px; color: var(--text-3); }
.lv-contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.lv-field{
  width:100%; font: inherit; font-size:14px; color: var(--text-1);
  background: var(--glass-bg); border:1px solid var(--glass-border-strong);
  border-radius: var(--radius-sm, 12px); padding: 12px 14px; outline:none;
  transition: border-color .2s ease, box-shadow .2s ease; resize: vertical;
}
.lv-field::placeholder{ color: var(--text-3); }
.lv-field:focus{ border-color: var(--accent); box-shadow: 0 0 0 4px rgba(56,189,248,.15); }
.lv-hp{ position:absolute !important; width:1px !important; height:1px !important; padding:0 !important; border:0 !important; overflow:hidden; clip-path: inset(50%); opacity:0; pointer-events:none; }
.lv-contact-foot{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.lv-contact-foot .btn[disabled]{ opacity:.6; cursor:wait; transform:none; }
.lv-contact-status{ font-size:13px; color: var(--text-2); }
.lv-contact-status.is-ok{ color:#22c55e; }
.lv-contact-status.is-err{ color:#f87171; }
.lv-contact.is-sent .lv-contact-grid, .lv-contact.is-sent textarea{ opacity:.55; }
@media (max-width:640px){ .lv-contact-grid{ grid-template-columns:1fr; } }

/* ---------- Changelog page ---------- */
.lv-changelog{ position:relative; display:flex; flex-direction:column; gap:22px; margin-top:8px; padding-inline-start:26px; }
.lv-changelog::before{ content:""; position:absolute; inset-inline-start:6px; top:10px; bottom:10px; width:2px; background: linear-gradient(var(--accent), transparent); opacity:.5; border-radius:2px; }
.lv-cl-item{ position:relative; background: var(--glass-bg); border:1px solid var(--glass-border); border-radius: var(--radius-md, 18px); padding:18px 20px; }
.lv-cl-item.is-latest{ border-color: rgba(56,189,248,.45); box-shadow: 0 10px 34px -16px rgba(56,189,248,.55); }
.lv-cl-dot{ position:absolute; inset-inline-start:-26px; top:22px; width:14px; height:14px; border-radius:50%; background: var(--bg-page); border:3px solid var(--accent); }
.lv-cl-head{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:10px; }
.lv-cl-ver{ font-size:18px; font-weight:700; color: var(--text-1); }
.lv-cl-tag{ font-size:11px; font-weight:700; padding:2px 10px; border-radius:999px; }
.lv-cl-tag--latest{ background: rgba(56,189,248,.15); color: var(--link); }
.lv-cl-tag--must{ background: rgba(245,158,11,.15); color:#f59e0b; }
.lv-cl-date{ margin-inline-start:auto; font-size:12px; color: var(--text-3); }
.lv-entry .lv-cl-notes{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:6px; }
.lv-cl-notes li{ font-size:14.5px; color: var(--text-2); display:flex; gap:10px; }
.lv-cl-notes li::before{ content:"—"; color: var(--link); flex-shrink:0; }
.lv-cl-empty{ font-size:14px; color: var(--text-3); }
.lv-cl-foot{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:14px; font-size:12px; color: var(--text-3); }
.lv-entry .lv-cl-foot a.btn{ text-decoration:none; color: var(--accent-ink); }

/* ---------- Maintenance page ---------- */
.lv-maint-body{ min-height:100vh; display:flex; }
.lv-maint{ position:relative; z-index:1; flex:1; display:flex; align-items:center; justify-content:center; padding:32px 16px; }
.lv-maint-card{ max-width:520px; width:100%; text-align:center; padding:44px 32px; display:flex; flex-direction:column; align-items:center; gap:16px; }
.lv-maint-logo{ height:54px; width:auto; }
.lv-maint-card h1{ font-size: clamp(22px,4vw,30px); line-height:1.4; }
.lv-maint-card p{ color: var(--text-2); font-size:15px; }
.lv-maint-count{ font-size:28px; font-weight:700; letter-spacing:.08em; color: var(--accent); direction:ltr; }
.lv-maint-pulse{ width:54px; height:54px; border-radius:50%; display:flex; align-items:center; justify-content:center; background: rgba(56,189,248,.12); }
.lv-maint-pulse span{ width:16px; height:16px; border-radius:50%; background: var(--accent); --lvb:56,189,248; animation: lvPulse 1.8s infinite; }
