@font-face { font-family: "Vazirmatn"; src: url("../../../assets/fonts/Vazirmatn-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../../../assets/fonts/Vazirmatn-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --page: #f4f4f2; --surface: #fff; --border: #e4e4e0; --text: #191919; --text-2: #5f5f5f;
  --app-bg: #121212; --app-surface: #1e1e1e; --app-text: #f2f2f2; --app-text-2: #b5b5b5;
  --green: #1db954; --warn-bg: #fff4d6; --warn: #7a5600; --info-bg: #e7f0fd; --info: #1a4a8a;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--text); font-family: "Vazirmatn", Tahoma, sans-serif; line-height: 1.8; }
.top { max-width: 1100px; margin: 0 auto; padding: 24px 20px 4px; }
.top h1 { margin: .2em 0; font-size: 1.5rem; }
.top p { margin: 0; color: var(--text-2); max-width: 760px; }
.back { font-size: .9rem; color: #1f5fae; text-decoration: none; }
main { max-width: 1100px; margin: 0 auto; padding: 0 20px 40px; }
.variant, .how { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; margin-top: 20px; }
.variant h2, .how h2 { margin: 0 0 14px; font-size: 1.15rem; }
.tag { display: inline-block; font-size: .8rem; background: #eee; border-radius: 999px; padding: 0 10px; margin-inline-end: 6px; }
.screens { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
figure { margin: 0; }
figcaption { text-align: center; color: var(--text-2); font-size: .85rem; margin-top: 8px; }

/* annotation number */
.n { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: #e0457b; color: #fff; font-size: 11px; font-weight: 700; margin-inline-end: 6px; flex: none; vertical-align: middle; }

/* phone */
.phone-frame { position: relative; width: 300px; height: 620px; border-radius: 36px; border: 10px solid #000; background: var(--app-bg); color: var(--app-text); overflow: hidden; }
.statusbar { display: flex; justify-content: space-between; padding: 8px 18px; font-size: 12px; color: var(--app-text-2); }
.poster { height: 210px; margin: 0 14px; border-radius: 12px; background: linear-gradient(160deg, #3a3a3a, #1b1b1b); display: flex; align-items: center; justify-content: center; color: #777; font-size: 13px; }
.title-meta { padding: 10px 16px; display: flex; flex-direction: column; }
.title-meta span { color: var(--app-text-2); font-size: 12px; }
.scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.sheet { position: absolute; inset-inline: 0; bottom: 0; background: var(--app-surface); border-radius: 18px 18px 0 0; padding: 10px 16px 16px; }
.handle { width: 40px; height: 4px; border-radius: 2px; background: #555; margin: 0 auto 10px; }
.sheet h3 { font-size: 15px; margin: 6px 0; line-height: 1.6; }
.sheet p { font-size: 12.5px; color: var(--app-text-2); margin: 4px 0; }
.badge { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 1px 10px 1px 8px; }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.info { background: var(--info-bg); color: var(--info); }
.eta, .offer { font-size: 12.5px; background: #2a2a2a; border-radius: 10px; padding: 8px 10px; margin: 8px 0; display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.reassure { display: flex; align-items: flex-start; }
.btn { display: flex; align-items: center; justify-content: center; width: 100%; font: inherit; font-size: 13.5px; font-weight: 700; border: 0; border-radius: 10px; padding: 9px; margin-top: 8px; cursor: pointer; }
.btn.primary { background: var(--green); color: #06210f; }
.btn.secondary { background: #2f2f2f; color: var(--app-text); }
.link { display: block; text-align: center; font-size: 12.5px; color: var(--app-text-2); margin-top: 10px; }


/* notes */
.notes { flex: 1 1 360px; margin: 0; padding-inline-start: 1.4em; font-size: .92rem; }
.notes li { margin-bottom: 8px; }
.notes li::marker { color: #e0457b; font-weight: 700; }
.how ul { margin: 0; padding-inline-start: 1.2em; }
.how li { margin-bottom: 6px; }
.disclaimer { color: var(--text-2); font-size: .85rem; }

@media (max-width: 720px) {
  .screens { justify-content: center; }
}

/* F-002: title page */
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px; }
.chip { display: inline-flex; align-items: center; font-size: 11.5px; border-radius: 999px; padding: 1px 10px 1px 8px; background: #2a2a2a; color: var(--app-text-2); }
.chip.ok { background: #13361f; color: #8fe3ad; font-weight: 700; }
.chip.off { background: #3a2a14; color: #f2c27a; font-weight: 700; }
.why { font-size: 12.5px; color: var(--app-text-2); margin: 8px 16px 0; }
.actions { padding: 6px 16px 0; }
.btn.ghost { background: transparent; border: 1px dashed #555; color: #8a8a8a; cursor: default; }
.hint { font-size: 12px; color: var(--app-text-2); text-align: center; margin: 6px 16px 0; }

/* F-002: download list */
.screen-title { font-weight: 700; font-size: 15px; padding: 4px 16px 10px; }
.dl { display: flex; gap: 10px; align-items: center; padding: 8px 16px; }
.thumb { width: 54px; height: 76px; border-radius: 6px; background: #2b2b2b; flex: none; }
.dl-body { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; font-size: 13px; }
.dl-meta { font-size: 12px; color: var(--app-text-2); display: flex; align-items: center; }
.dl-meta.err { color: #ff8a80; }
.dl-meta.warn { color: #f2c27a; }
.bar { height: 4px; border-radius: 2px; background: #333; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--green); }
.dl.failed .bar i { background: #ff8a80; }
.error-card { margin: 10px 12px 0; background: var(--app-surface); border-radius: 14px; padding: 12px 14px; border: 1px solid #3a3a3a; }
.error-card h3 { font-size: 14.5px; margin: 0 0 4px; }
.error-card p { font-size: 12.5px; color: var(--app-text-2); margin: 0; }
.notice { display: flex; gap: 4px; align-items: flex-start; margin: 0 12px 8px; padding: 8px 10px; border-radius: 10px; background: var(--warn-bg); color: var(--warn); font-size: 12.5px; }
