/* OKILA Smart Glass Installer — dark navy glassmorphism, RTL, offline (no external assets). */
:root { --navy: #050d22; --navy2: #0b1a40; --accent: #3b7cff; --cyan: #22c3e6; --text: #eaf1ff; --muted: #a9bbe2; --ok: #34d399; --warn: #fbbf24; --err: #f87171; --glass: rgba(255,255,255,.08); --border: rgba(255,255,255,.16); }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-family: Vazirmatn, Tahoma, "Segoe UI", sans-serif; color: var(--text); background: linear-gradient(160deg, var(--navy), var(--navy2) 60%, #0a2552); font-size: 14.5px; line-height: 1.8; }
.ltr { direction: ltr; unicode-bidi: plaintext; display: inline-block; }
.hidden { display: none !important; }
.bg { position: fixed; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .45; animation: float 18s ease-in-out infinite alternate; }
.b1 { width: 520px; height: 520px; background: #2457d6; top: -160px; right: -120px; }
.b2 { width: 420px; height: 420px; background: #0fb5d6; bottom: -140px; left: -100px; animation-delay: -6s; }
.b3 { width: 300px; height: 300px; background: #6b4cf0; top: 40%; left: 45%; opacity: .25; animation-delay: -11s; }
@keyframes float { to { transform: translate(40px, 30px) scale(1.08); } }
.wrap { position: relative; z-index: 1; max-width: 980px; margin: 0 auto; padding: 24px 16px 40px; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo .mark { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--accent), var(--cyan)); box-shadow: 0 10px 24px -8px rgba(34,195,230,.7); font-family: "Segoe UI", Tahoma, sans-serif; }
.logo strong { display: block; letter-spacing: 3px; font-size: 1.15rem; font-family: "Segoe UI", Tahoma, sans-serif; }
.logo small { color: var(--muted); font-family: "Segoe UI", Tahoma, sans-serif; }
.product { color: var(--muted); font-size: .9rem; font-family: "Segoe UI", Tahoma, sans-serif; direction: ltr; }
.product .ver { background: rgba(255,255,255,.12); border-radius: 999px; padding: 1px 9px; margin-inline-start: 6px; color: #fff; }
.stepper { display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; margin-bottom: 10px; }
.st { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: var(--muted); font-size: .76rem; text-align: center; }
.st .dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border); background: var(--glass); backdrop-filter: blur(8px); font-weight: 700; transition: .2s; }
.st.done .dot { background: rgba(52,211,153,.2); border-color: rgba(52,211,153,.6); color: var(--ok); }
.st.current .dot { background: linear-gradient(135deg, var(--accent), var(--cyan)); border-color: transparent; color: #fff; box-shadow: 0 0 0 5px rgba(59,124,255,.25); }
.st.current { color: #fff; font-weight: 700; }
.st.locked { opacity: .45; }
a.st:hover .dot { border-color: var(--cyan); }
.progress { height: 6px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; margin-bottom: 18px; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--cyan)); transition: width .5s ease; }
.glass { background: linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.05)); border: 1px solid var(--border); border-radius: 22px; padding: 26px 26px 22px; backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%); box-shadow: 0 30px 70px -30px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.12); animation: rise .35s ease-out; }
@keyframes rise { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
h1 { font-size: 1.4rem; margin: 0 0 8px; }
h3 { font-size: 1rem; margin: 16px 0 6px; }
.lead { color: #cbd8f5; margin: 0 0 16px; }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 8px; }
.features div { background: rgba(255,255,255,.06); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; }
.features strong { display: block; }
.features span { color: var(--muted); font-size: .85rem; }
.list { margin: 0 0 12px; padding-inline-start: 20px; color: #d5e0f8; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.f { display: flex; flex-direction: column; gap: 5px; }
.f > span:first-child { font-size: .85rem; color: var(--muted); font-weight: 600; }
.wide { grid-column: 1 / -1; }
input, select { width: 100%; font: inherit; color: #0b1a40; background: rgba(255,255,255,.95); border: 1px solid transparent; border-radius: 12px; padding: 10px 12px; min-height: 44px; }
input:focus, select:focus { outline: none; box-shadow: 0 0 0 3px rgba(34,195,230,.45); }
input[readonly] { background: rgba(255,255,255,.7); }
input.ltr { direction: ltr; text-align: left; display: block; }
.pw { position: relative; display: block; }
.pw .eye { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer; font-size: 1rem; opacity: .6; }
.chk { display: flex; gap: 8px; align-items: flex-start; color: #d5e0f8; cursor: pointer; }
.chk input { width: auto; min-height: 0; margin-top: 6px; accent-color: var(--cyan); }
.err { color: #fecaca; font-size: .8rem; }
.help { color: var(--muted); font-size: .78rem; }
.meter { height: 5px; border-radius: 999px; background: rgba(255,255,255,.15); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--err); transition: .2s; }
.actions { display: flex; gap: 10px; justify-content: flex-start; margin-top: 20px; flex-wrap: wrap; }
.btn { font: inherit; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; border-radius: 12px; padding: 10px 20px; min-height: 44px; border: 1px solid var(--border); background: rgba(255,255,255,.08); color: #fff; cursor: pointer; text-decoration: none; transition: .15s; }
.btn:hover { background: rgba(255,255,255,.16); }
.btn.primary { background: linear-gradient(135deg, var(--accent), #2aa6e8); border-color: transparent; box-shadow: 0 12px 26px -12px rgba(59,124,255,.9); }
.btn.primary:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:focus-visible, a:focus-visible { outline: 3px solid rgba(34,195,230,.7); outline-offset: 2px; }
.msg { border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; border: 1px solid; }
.msg.ok { background: rgba(52,211,153,.12); border-color: rgba(52,211,153,.45); color: #bbf7d0; }
.msg.warning { background: rgba(251,191,36,.12); border-color: rgba(251,191,36,.45); color: #fde68a; }
.msg.error { background: rgba(248,113,113,.14); border-color: rgba(248,113,113,.5); color: #fecaca; }
.msg a { color: #fff; }
table.checks { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: .9rem; }
table.checks td { padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,.08); vertical-align: top; }
table.checks td.s { width: 70px; }
table.checks td.d { color: var(--muted); text-align: left; }
.fix { color: #fde68a; font-size: .8rem; margin-top: 3px; }
.pill { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.pill.ok { background: rgba(52,211,153,.18); color: var(--ok); }
.pill.warning { background: rgba(251,191,36,.18); color: var(--warn); }
.pill.error { background: rgba(248,113,113,.2); color: var(--err); }
.hint { margin-top: 14px; color: var(--muted); font-size: .82rem; }
#test-result { margin-top: 14px; }
.done { text-align: center; padding: 20px 0; }
.big-check { width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; font-size: 2.4rem; background: linear-gradient(135deg, #10b981, #34d399); box-shadow: 0 16px 40px -14px rgba(52,211,153,.8); }
.big-check.lock { background: linear-gradient(135deg, var(--accent), var(--cyan)); }
.done .list { text-align: right; display: inline-block; }
.foot { text-align: center; color: var(--muted); font-size: .78rem; margin-top: 18px; font-family: "Segoe UI", Tahoma, sans-serif; direction: ltr; }
.btn.loading { pointer-events: none; opacity: .75; }
@media (max-width: 720px) {
  .grid, .features { grid-template-columns: 1fr; }
  .stepper { grid-template-columns: repeat(9, minmax(28px, 1fr)); }
  .st .lbl { display: none; }
  .st.current .lbl { display: block; position: absolute; }
  .glass { padding: 18px 16px; border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
