/* ---------- فونت‌ها: IRANYekan (فونت سازمانی) و Vazirmatn به‌عنوان جایگزین ---------- */
@font-face { font-family: 'IRANYekan'; src: url('fonts/iranyekan/IRANYekanX-Regular.woff2') format('woff2'), url('fonts/iranyekan/IRANYekanX-Regular.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IRANYekan'; src: url('fonts/iranyekan/IRANYekanX-Medium.woff2') format('woff2'), url('fonts/iranyekan/IRANYekanX-Medium.woff') format('woff'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'IRANYekan'; src: url('fonts/iranyekan/IRANYekanX-Bold.woff2') format('woff2'), url('fonts/iranyekan/IRANYekanX-Bold.woff') format('woff'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'IRANYekan'; src: url('fonts/iranyekan/IRANYekanX-ExtraBold.woff2') format('woff2'), url('fonts/iranyekan/IRANYekanX-ExtraBold.woff') format('woff'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'IRANYekan'; src: url('fonts/iranyekan/IRANYekanX-Black.woff2') format('woff2'), url('fonts/iranyekan/IRANYekanX-Black.woff') format('woff'); font-weight: 900; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('fonts/vazirmatn/vazirmatn-arabic-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Vazirmatn'; src: url('fonts/vazirmatn/vazirmatn-arabic-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0600-06FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Vazirmatn'; src: url('fonts/vazirmatn/vazirmatn-arabic-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Vazirmatn'; src: url('fonts/vazirmatn/vazirmatn-arabic-800-normal.woff2') format('woff2'); font-weight: 800; font-display: swap; unicode-range: U+0600-06FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Vazirmatn'; src: url('fonts/vazirmatn/vazirmatn-arabic-900-normal.woff2') format('woff2'); font-weight: 900; font-display: swap; unicode-range: U+0600-06FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Vazirmatn'; src: url('fonts/vazirmatn/vazirmatn-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('fonts/vazirmatn/vazirmatn-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('fonts/vazirmatn/vazirmatn-latin-900-normal.woff2') format('woff2'); font-weight: 900; font-display: swap; }

:root {
  --lime: #C8F31E;
  --lime-dim: rgba(200, 243, 30, .14);
  --lime-glow: rgba(200, 243, 30, .35);
  --bg: #0B0D10;
  --surface: #14171B;
  --surface-2: #1B1F24;
  --line: rgba(255, 255, 255, .08);
  --text: #EEF1F3;
  --muted: #9AA3A9;
  --danger: #FF5A5F;
  --radius: 18px;
  --font: 'IRANYekan', 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); }
body { min-height: 100vh; overscroll-behavior: none; }
button, input, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
.ltr { direction: ltr; unicode-bidi: isolate; }

.app { max-width: 520px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; padding: 14px 18px calc(110px + var(--safe-b)); position: relative; }

.telegram-required { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.telegram-required__card { width: min(100%, 420px); padding: 28px 22px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.telegram-required__card img { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 16px; }
.telegram-required__card h1 { margin: 0 0 10px; font-size: 20px; font-weight: 900; }
.telegram-required__card p { margin: 0 0 22px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.telegram-required__button { display: inline-block; padding: 11px 18px; border-radius: 12px; background: var(--lime); color: var(--bg); font-size: 14px; font-weight: 800; text-decoration: none; }

/* ---------- هدر ---------- */
.topbar { display: flex; align-items: center; gap: 10px; padding: 4px 0 14px; }
.topbar .logo { width: 38px; height: 38px; border-radius: 11px; }
.topbar .brand { display: flex; flex-direction: column; line-height: 1.15; }
.topbar .brand b { font-family: 'Archivo', var(--font); font-weight: 900; letter-spacing: .06em; font-size: 15px; direction: ltr; text-align: right; }
.topbar .brand span { font-size: 11.5px; color: var(--muted); }
.topbar .step-count { margin-inline-start: auto; font-size: 12px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 5px 10px; border-radius: 999px; }

.progress { height: 4px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin-bottom: 22px; }
.progress i { display: block; height: 100%; background: var(--lime); border-radius: 99px; box-shadow: 0 0 12px var(--lime-glow); transition: width .35s cubic-bezier(.2,.8,.2,1); }

/* ---------- صفحه‌ی خانه ---------- */
.hero { text-align: center; padding: 18px 0 6px; position: relative; }
.hero .glyph-wrap { width: 132px; height: 132px; margin: 6px auto 18px; border-radius: 34px; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, rgba(200,243,30,.22), rgba(200,243,30,0) 70%), var(--surface); border: 1px solid rgba(200,243,30,.25); box-shadow: 0 20px 60px -20px var(--lime-glow); }
.hero .glyph-wrap img { width: 74px; }
.hero h1 { font-size: 24px; font-weight: 900; margin: 0 0 8px; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero p { color: var(--muted); font-size: 14px; line-height: 1.9; margin: 0 auto 26px; max-width: 340px; }

.choice { width: 100%; display: flex; align-items: center; gap: 14px; text-align: right; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; cursor: pointer; transition: transform .15s, border-color .2s, background .2s; }
.choice:active { transform: scale(.985); }
.choice:hover { border-color: rgba(200,243,30,.4); }
.choice .ic { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--lime-dim); color: var(--lime); }
.choice.primary .ic { background: var(--lime); color: var(--bg); }
.choice .ic svg { width: 24px; height: 24px; }
.choice .tx { flex: 1; }
.choice .tx b { display: block; font-size: 15.5px; font-weight: 800; margin-bottom: 3px; }
.choice .tx span { font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.choice .chev { color: var(--muted); width: 18px; height: 18px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--lime); background: var(--lime-dim); padding: 6px 12px; border-radius: 99px; margin-bottom: 14px; }
.badge svg { width: 15px; height: 15px; flex: none; }
.badge.warn { color: #FFD54A; background: rgba(255,213,74,.12); }

/* ---------- مراحل فرم ---------- */
.step-head { margin-bottom: 20px; }
.step-head .eyebrow { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 12px; font-weight: 700; color: var(--lime); margin-bottom: 8px; }
.step-head h2 { font-size: 22px; font-weight: 900; margin: 0 0 6px; }
.step-head .eyebrow svg { width: 16px; height: 16px; flex: none; }
.step-head h2 .en { color: var(--muted); font-weight: 500; font-size: 14px; margin-right: 8px; display: inline-block; }
.step-head p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.9; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; color: #D7DCE0; }
.input { width: 100%; background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; font-size: 16px; outline: none; transition: border-color .2s, box-shadow .2s; }
.input:focus { border-color: var(--lime); box-shadow: 0 0 0 4px var(--lime-dim); }
.input::placeholder { color: #5E666D; }
.input.ltr { text-align: left; }
.hint { font-size: 12px; color: var(--muted); margin-top: 7px; line-height: 1.8; }
.err { color: var(--danger); font-size: 12.5px; margin-top: 8px; min-height: 1em; }

.link-row { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; padding: 4px 6px 4px 14px; margin-bottom: 10px; transition: border-color .2s; }
.link-row:focus-within { border-color: var(--lime); }
.link-row .lb { flex: none; width: 92px; display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; }
.link-row .lb svg { width: 18px; height: 18px; color: var(--lime); }
.link-row input { flex: 1; min-width: 0; background: none; border: 0; outline: none; padding: 12px 6px; font-size: 14px; direction: ltr; text-align: left; }

/* ---------- آپلود ---------- */
.drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; min-height: 190px; border: 1.5px dashed rgba(200,243,30,.45); border-radius: var(--radius); background: linear-gradient(180deg, rgba(200,243,30,.06), rgba(200,243,30,0)), var(--surface); padding: 22px; cursor: pointer; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop .ic { width: 56px; height: 56px; border-radius: 16px; background: var(--lime); color: var(--bg); display: grid; place-items: center; }
.drop .ic svg { width: 28px; height: 28px; }
.drop b { font-size: 15px; }
.drop span { font-size: 12.5px; color: var(--muted); }

.filecard { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.filecard .ic { flex: none; width: 46px; height: 46px; border-radius: 13px; background: var(--lime-dim); color: var(--lime); display: grid; place-items: center; }
.filecard .ic svg { width: 22px; height: 22px; }
.filecard .nm { flex: 1; min-width: 0; }
.filecard .nm b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: ltr; text-align: right; }
.filecard .nm span { font-size: 12px; color: var(--muted); }
.filecard .x { background: none; border: 0; color: var(--muted); padding: 6px; cursor: pointer; font-size: 13px; text-decoration: underline; }
.bar { height: 6px; border-radius: 9px; background: var(--surface-2); overflow: hidden; margin-top: 10px; }
.bar i { display: block; height: 100%; background: var(--lime); width: 0; transition: width .2s; }

.chips-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip-ok { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 99px; background: var(--lime-dim); color: var(--lime); }
.chip-ok svg { width: 14px; height: 14px; }

.img-preview { position: relative; width: 100%; max-width: 300px; margin: 0 auto; aspect-ratio: 1; border-radius: 22px; overflow: hidden; border: 1px solid rgba(200,243,30,.35); box-shadow: 0 24px 60px -24px var(--lime-glow); }
.img-preview img { width: 100%; height: 100%; object-fit: cover; }
.img-preview .size { position: absolute; bottom: 10px; left: 10px; font-size: 11px; font-weight: 800; background: var(--lime); color: var(--bg); padding: 4px 9px; border-radius: 99px; direction: ltr; }
.center-link { display: block; margin: 14px auto 0; background: none; border: 0; color: var(--lime); font-weight: 700; font-size: 13.5px; cursor: pointer; }

/* ---------- انتخاب‌گرها ---------- */
.grid { display: grid; gap: 8px; }
.grid.g2 { grid-template-columns: repeat(2, 1fr); }
.grid.g3 { grid-template-columns: repeat(3, 1fr); }
.grid.g4 { grid-template-columns: repeat(4, 1fr); }
.opt { background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 8px; text-align: center; cursor: pointer; transition: all .15s; font-size: 13.5px; font-weight: 700; }
.opt small { display: block; font-size: 10.5px; color: var(--muted); font-weight: 500; margin-top: 3px; direction: ltr; }
.opt.sel { background: var(--lime); border-color: var(--lime); color: var(--bg); box-shadow: 0 10px 26px -12px var(--lime-glow); }
.opt.sel small { color: rgba(11,13,16,.7); }
.opt:disabled { opacity: .32; cursor: not-allowed; text-decoration: line-through; }
.opt.en { direction: ltr; }

.key-wheel-label { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin: 2px 2px 8px; }

.bpm-box { display: flex; align-items: center; gap: 10px; }
.bpm-box .input { text-align: center; font-size: 28px; font-weight: 900; direction: ltr; padding: 12px; }
.bpm-box button { flex: none; width: 54px; height: 58px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); font-size: 24px; font-weight: 700; cursor: pointer; }
.unit { text-align: center; color: var(--muted); font-size: 12px; margin-top: 8px; letter-spacing: .1em; }

.dur-box { display: flex; align-items: center; justify-content: center; gap: 8px; direction: ltr; }
.dur-box .input { width: 110px; text-align: center; font-size: 30px; font-weight: 900; padding: 12px 6px; }
.dur-box .colon { font-size: 30px; font-weight: 900; color: var(--lime); }
.dur-box .col { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.dur-box .col span { font-size: 12px; color: var(--muted); }
.dur-box .colon { align-self: flex-start; margin-top: 10px; }

.jdate { display: grid; grid-template-columns: 1fr 1.4fr 1.1fr; gap: 8px; }
.jdate select { appearance: none; -webkit-appearance: none; background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 12px; font-size: 15px; font-weight: 700; text-align: center; outline: none; }
.jdate select:focus { border-color: var(--lime); }

.days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.day { background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 4px 9px; text-align: center; cursor: pointer; transition: all .15s; }
.day .wd { font-size: 10.5px; color: var(--muted); }
.day .dn { font-size: 22px; font-weight: 900; line-height: 1.3; }
.day .mn { font-size: 11px; font-weight: 700; }
.day .fr { font-size: 10px; color: var(--lime); margin-top: 3px; }
.day.sel { background: var(--lime); border-color: var(--lime); color: var(--bg); }
.day.sel .wd, .day.sel .fr { color: rgba(11,13,16,.7); }
.day:disabled { opacity: .3; cursor: not-allowed; }
.day:disabled .fr { color: var(--danger); }
.month-sep { grid-column: 1 / -1; font-size: 13px; font-weight: 800; color: var(--muted); margin: 10px 2px 2px; }

.hours { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hour { background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; padding: 16px 6px; text-align: center; cursor: pointer; transition: all .15s; }
.hour b { display: block; font-size: 24px; font-weight: 900; }
.hour span { font-size: 11px; color: var(--muted); }
.hour.sel { background: var(--lime); border-color: var(--lime); color: var(--bg); }
.hour.sel span { color: rgba(11,13,16,.7); }
.hour:disabled { opacity: .3; cursor: not-allowed; }
.hour:disabled span { color: var(--danger); }
.picked-date { display: flex; align-items: center; gap: 8px; background: var(--lime-dim); color: var(--lime); border-radius: 12px; padding: 10px 12px; font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.picked-date svg { width: 18px; height: 18px; flex: none; }

.plan { width: 100%; display: flex; gap: 14px; text-align: right; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 10px; cursor: pointer; transition: all .15s; }
.plan .radio { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #4A5157; margin-top: 2px; display: grid; place-items: center; }
.plan .tx { flex: 1; }
.plan .tx b { display: block; font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.plan .tx span { font-size: 12.5px; color: var(--muted); line-height: 1.8; }
.plan .pct { flex: none; align-self: center; font-size: 22px; font-weight: 900; color: var(--muted); direction: ltr; }
.plan.sel { border-color: var(--lime); background: linear-gradient(135deg, rgba(200,243,30,.12), rgba(200,243,30,.02)), var(--surface); }
.plan.sel .radio { border-color: var(--lime); }
.plan.sel .radio::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--lime); }
.plan.sel .pct { color: var(--lime); }

/* ---------- مرور نهایی ---------- */
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.review .head { display: flex; gap: 14px; align-items: center; padding: 14px; border-bottom: 1px solid var(--line); }
.review .head img { width: 74px; height: 74px; border-radius: 14px; object-fit: cover; }
.review .head b { display: block; font-size: 17px; font-weight: 900; }
.review .head span { font-size: 13px; color: var(--muted); }
.review .row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.review .row:last-child { border-bottom: 0; }
.review .row span:first-child { color: var(--muted); flex: none; }
.review .row span:last-child { font-weight: 700; text-align: left; word-break: break-word; }
.review .edit { background: none; border: 0; color: var(--lime); font-size: 12px; cursor: pointer; padding: 0 0 0 4px; }

/* ---------- وضعیت / پایان ---------- */
.done { text-align: center; padding-top: 24px; }
.done .ring { width: 108px; height: 108px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--bg); box-shadow: 0 0 0 12px var(--lime-dim), 0 30px 70px -20px var(--lime-glow); animation: pop .5s cubic-bezier(.2,1.4,.4,1); }
.done .ring.wait { background: var(--surface-2); color: var(--lime); box-shadow: 0 0 0 12px rgba(255,255,255,.04); }
.done .ring svg { width: 50px; height: 50px; }
.done h2 { font-size: 21px; font-weight: 900; margin: 0 0 14px; }
.done .msg { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; font-size: 14px; line-height: 2.05; text-align: right; white-space: pre-line; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- دکمه‌ی پایین ---------- */
.footer { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 18px calc(14px + var(--safe-b)); background: linear-gradient(180deg, rgba(11,13,16,0), var(--bg) 30%); z-index: 5; }
.footer .in { max-width: 484px; margin: 0 auto; display: flex; gap: 10px; }
.btn { flex: 1; border: 0; border-radius: 16px; padding: 16px; font-size: 16px; font-weight: 900; cursor: pointer; background: var(--lime); color: var(--bg); box-shadow: 0 14px 34px -14px var(--lime-glow); transition: transform .12s, opacity .2s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .35; box-shadow: none; cursor: not-allowed; }
.btn.ghost { flex: none; width: 58px; background: var(--surface); color: var(--text); box-shadow: none; border: 1px solid var(--line); }
.btn svg { width: 20px; height: 20px; }
.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(11,13,16,.25); border-top-color: var(--bg); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.toast { position: fixed; top: 14px; left: 50%; transform: translate(-50%, -160%); opacity: 0; visibility: hidden; background: #2A1416; border: 1px solid rgba(255,90,95,.5); color: #FFD9DA; padding: 12px 16px; border-radius: 14px; font-size: 13.5px; line-height: 1.8; max-width: 92vw; width: max-content; z-index: 20; transition: transform .3s, opacity .3s, visibility .3s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.toast.ok { background: #18200A; border-color: rgba(200,243,30,.5); color: #E8F7B5; }

.fade-in { animation: fadeIn .28s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.loading { flex: 1; display: grid; place-items: center; }
.loading .spinner { width: 34px; height: 34px; border-color: var(--surface-2); border-top-color: var(--lime); }

/* ---------- تایید لینک پروفایل ---------- */
.url-box { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; padding: 0 14px; direction: ltr; transition: border-color .2s, box-shadow .2s; }
.url-box:focus-within { border-color: var(--lime); box-shadow: 0 0 0 4px var(--lime-dim); }
.url-box.bad { border-color: #FFB020; box-shadow: 0 0 0 4px rgba(255,176,32,.12); }
.url-box .pre svg { width: 18px; height: 18px; color: var(--lime); display: block; }
.url-box input { flex: 1; min-width: 0; background: none; border: 0; outline: none; padding: 15px 0; font-size: 15px; text-align: left; }
.warn-box { margin-top: 12px; background: rgba(255,176,32,.08); border: 1px solid rgba(255,176,32,.45); border-radius: 14px; padding: 12px 14px; font-size: 13px; line-height: 1.9; color: #FFE2A8; }
.warn-box b { display: block; color: #FFB020; margin-bottom: 2px; }
.verified { display: flex; gap: 14px; align-items: center; background: linear-gradient(135deg, rgba(200,243,30,.12), rgba(200,243,30,.02)), var(--surface); border: 1.5px solid var(--lime); border-radius: var(--radius); padding: 16px; }
.verified .ring-s { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--lime); color: var(--bg); display: grid; place-items: center; animation: pop .45s cubic-bezier(.2,1.4,.4,1); }
.verified .ring-s svg { width: 26px; height: 26px; }
.verified .tx { min-width: 0; }
.verified .tx b { display: block; font-size: 17px; font-weight: 900; }
.verified .tx span { display: block; font-size: 12.5px; color: var(--muted); margin: 2px 0 4px; }
.verified .tx a { display: block; font-size: 12.5px; color: var(--lime); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }

/* ---------- پنل ادمین ---------- */
.choice.admin-entry { border-color: rgba(200,243,30,.35); background: linear-gradient(135deg, rgba(200,243,30,.08), rgba(200,243,30,0)), var(--surface); }
.icon-btn { display: grid; place-items: center; width: 38px; height: 38px; padding: 0 !important; cursor: pointer; color: var(--lime) !important; }
.icon-btn svg { width: 18px; height: 18px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px; margin-bottom: 14px; position: sticky; top: 0; z-index: 4; }
.tab { flex: 1 0 auto; padding-inline: 10px !important; border: 0; background: none; border-radius: 10px; padding: 10px 4px; font-size: 12.5px; font-weight: 800; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 5px; white-space: nowrap; }
.tab i { font-style: normal; min-width: 19px; height: 19px; border-radius: 99px; background: var(--lime); color: var(--bg); font-size: 11px; display: grid; place-items: center; padding: 0 5px; }
.tab.on { background: var(--surface-2); color: var(--text); }
.acard { width: 100%; display: flex; align-items: center; gap: 12px; text-align: right; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px; margin-bottom: 8px; cursor: pointer; }
.acard:active { transform: scale(.99); }
.acard img { flex: none; width: 62px; height: 62px; border-radius: 12px; object-fit: cover; background: var(--surface-2); }
.acard img.round { border-radius: 50%; }
.acard .tx { flex: 1; min-width: 0; }
.acard .tx b { display: block; font-size: 14.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acard .tx > span { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acard .tx small { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--lime); margin-top: 4px; white-space: nowrap; overflow: hidden; }
.acard .tx small svg { width: 13px; height: 13px; flex: none; }
.acard .side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.acard .side em { font-style: normal; font-size: 10.5px; color: var(--muted); }
.acard .num { font-size: 12px; font-weight: 800; color: var(--muted); }
.acard.slim { padding: 10px 12px; }
.acard .hr { flex: none; font-size: 17px; font-weight: 900; color: var(--lime); width: 56px; }
.st { font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 99px; white-space: nowrap; }
.st-wait { color: #FFD54A; background: rgba(255,213,74,.12); }
.st-ok { color: var(--lime); background: var(--lime-dim); }
.st-no { color: #FF8A8E; background: rgba(255,90,95,.12); }
.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 50px 10px; color: var(--muted); font-size: 14px; }
.empty svg { width: 40px; height: 40px; color: var(--lime); background: var(--lime-dim); border-radius: 50%; padding: 8px; }
.dhead { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.dhead img { width: 112px; height: 112px; border-radius: 18px; object-fit: cover; border: 1px solid rgba(200,243,30,.3); }
.dhead img.round { border-radius: 50%; }
.dhead b { display: block; font-size: 19px; font-weight: 900; margin-bottom: 4px; }
.dhead span:not(.st) { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 8px; }
.player { width: 100%; height: 44px; border-radius: 12px; margin: 4px 0 2px; color-scheme: dark; }
.tg-open { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); color: #5DB8F0; border-radius: 12px; padding: 11px; font-size: 13px; font-weight: 700; margin-top: 8px; cursor: pointer; }
.tg-open svg { width: 17px; height: 17px; }
.review a { color: var(--lime); text-decoration: none; }
.qnav { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 6px 6px 6px 12px; margin: -4px 0 14px; }
.qnav span:last-child { display: flex; gap: 6px; }
.qnav button { border: 0; background: var(--surface-2); border-radius: 9px; padding: 7px 12px; font-size: 12px; font-weight: 700; cursor: pointer; }
.qnav button:disabled { opacity: .35; }
.btn.danger { background: #2A1416; color: #FF8A8E; border: 1px solid rgba(255,90,95,.45); box-shadow: none; }
.btn.ghost.wide { width: auto; flex: .6; }

/* ---------- متادیتا و فایل نهایی ---------- */
.meta-sec .step-head p { font-size: 12.5px; }
.fname { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin-bottom: 10px; }
.fname .fl { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.fname .auto { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--lime); }
.fname .auto input { accent-color: #C8F31E; width: 16px; height: 16px; }
.fname textarea { resize: none; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px !important; color: var(--lime); }
.tags { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.tg-row { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-bottom: 1px solid var(--line); }
.tg-row:last-child { border-bottom: 0; }
.tg-row > span:first-child { flex: none; width: 104px; font-size: 11.5px; font-weight: 700; color: var(--muted); text-align: left; }
.cover-row > span:last-child { font-size: 12px; color: var(--muted); }
.minput { color: var(--text); font-family: var(--font); flex: 1; min-width: 0; width: 100%; background: var(--bg); border: 1px solid transparent; border-radius: 9px; padding: 9px 10px; font-size: 13.5px; outline: none; text-align: left; resize: vertical; }
.minput:focus { border-color: var(--lime); }
.minput[readonly] { opacity: .85; }
.save-meta { width: 100%; margin-top: 12px; }
.final { display: flex; flex-direction: column; gap: 10px; border-radius: 16px; padding: 14px; margin-bottom: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; }
.final.wait { flex-direction: row; align-items: center; color: var(--muted); }
.final.wait .spinner { border-color: var(--surface-2); border-top-color: var(--lime); flex: none; }
.final.err { border-color: rgba(255,90,95,.45); background: #2A1416; color: #FFD9DA; }
.final.err b { color: #FF8A8E; }
.final.ok { border-color: var(--lime); background: linear-gradient(135deg, rgba(200,243,30,.1), rgba(200,243,30,.01)), var(--surface); }
.final .fh { display: flex; gap: 10px; align-items: center; }
.final .fh svg { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--lime); color: var(--bg); }
.final .fh b { display: block; font-size: 12.5px; word-break: break-all; text-align: left; }
.final .fh span { font-size: 11.5px; color: var(--muted); }
.final .fbtns { display: flex; gap: 8px; }
.final .fbtns .btn { padding: 12px 8px; font-size: 13.5px; }
.btn.ghost-l { flex: none; background: var(--surface-2); color: #5DB8F0; box-shadow: none; border: 1px solid var(--line); direction: ltr; padding: 12px 14px; }
.final .hint { margin: 0; }
.mini { align-self: flex-start; border: 0; border-radius: 9px; padding: 8px 14px; background: var(--lime); color: var(--bg); font-weight: 800; cursor: pointer; }

/* ---------- مدیریت ادمین‌ها ---------- */
.adm-add { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.adm-add > b { font-size: 15px; font-weight: 900; }
.adm-add > p { font-size: 12.5px; color: var(--muted); line-height: 1.9; margin: 6px 0 12px; }
.adm-in { display: flex; gap: 8px; }
.adm-in .minput { background: var(--bg); border: 1px solid var(--line); padding: 12px; font-size: 14px; }
.adm-in .mini { align-self: stretch; padding: 0 16px; }
.adm-in .mini:disabled { opacity: .35; }
.sug { margin-top: 8px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.sug button { width: 100%; display: flex; align-items: center; gap: 8px; background: var(--bg); border: 0; border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: right; cursor: pointer; font-size: 13px; }
.sug button:last-child { border-bottom: 0; }
.sug button span { color: var(--muted); font-size: 12px; margin-inline-start: auto; }
.sug button em { font-style: normal; font-size: 11px; color: var(--lime); }
.sug button:disabled { opacity: .5; }
.btn.invite { width: 100%; margin-top: 12px; background: var(--surface-2); color: var(--lime); border: 1px dashed rgba(200,243,30,.5); box-shadow: none; font-size: 14px; }
.inv { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); border: 1px solid rgba(200,243,30,.4); border-radius: 12px; padding: 12px; }
.inv > span { font-size: 12px; color: var(--lime); word-break: break-all; text-align: left; font-family: ui-monospace, Menlo, Consolas, monospace; }
.inv .fbtns { display: flex; gap: 8px; }
.inv .fbtns .btn { padding: 11px 8px; font-size: 13.5px; }
.inv .hint { margin: 0; }
.acard.adm { cursor: default; }
.acard .av { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--lime-dim); color: var(--lime); font-weight: 900; font-size: 18px; }
.acard .me { font-style: normal; font-size: 10.5px; background: var(--lime); color: var(--bg); padding: 2px 7px; border-radius: 99px; margin-inline-start: 4px; vertical-align: middle; }
.acard .tx small { color: var(--muted) !important; }
.rm { flex: none; border: 1px solid rgba(255,90,95,.45); background: #2A1416; color: #FF8A8E; border-radius: 10px; padding: 8px 12px; font-size: 12.5px; font-weight: 800; cursor: pointer; }
.rm.sure { background: #FF5A5F; color: #fff; }
