:root {
  --bg: #0A0F0C; --panel: #101612; --panel2: #151C17; --panel3: #1B241E; --line: #233027; --line2: #2E3D33;
  --text: #F2EEE6; --muted: #A3A79C; --faint: #6F776E; --gold: #E8B04A; --blue: #1570FF;
  --green: #7FC48E; --greenbg: rgba(127,196,142,.13); --red: #F08A6B; --redbg: rgba(240,138,107,.13); --amber: #F2C46D;
  --font: 'Alexandria', system-ui, 'Segoe UI', Tahoma, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.55; }
body { min-height: 100vh; padding-bottom: env(safe-area-inset-bottom); }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.wrap { max-width: 640px; margin: 0 auto; padding: 0 16px 48px; }
.top { position: sticky; top: 0; z-index: 5; background: rgba(10,15,12,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .in { max-width: 640px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 10px; }
.top img { width: 34px; height: 34px; border-radius: 9px; }
.brand { font-weight: 800; font-size: 17px; }
.brand small { color: var(--gold); font-weight: 600; margin-inline-start: 6px; }
.grow { flex: 1; }
.chip { background: var(--panel3); border: 1px solid var(--line2); border-radius: 99px; padding: 5px 13px; font-size: 13px; }
.chip:hover { border-color: var(--gold); }
h1 { font-size: 24px; margin: 22px 0 6px; line-height: 1.3; }
h2 { font-size: 17px; margin: 28px 0 10px; display: flex; align-items: center; gap: 8px; }
.muted { color: var(--muted); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin: 12px 0; }
.login { max-width: 420px; margin: 8vh auto 0; text-align: center; }
.login img { width: 76px; height: 76px; border-radius: 20px; }
.login .card { text-align: start; }
label.f { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
input[type=email], input[type=text], textarea { width: 100%; background: var(--panel2); border: 1px solid var(--line2); border-radius: 12px; padding: 12px 14px; font-size: 16px; unicode-bidi: plaintext; }
input:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: transparent; }
input.code { text-align: center; font-size: 28px; letter-spacing: .4em; direction: ltr; padding-inline-start: calc(14px + .4em); }
textarea { min-height: 96px; resize: vertical; }
.btn { border: 0; border-radius: 12px; padding: 12px 18px; font-weight: 700; background: var(--blue); color: #fff; min-height: 46px; }
.btn.gold { background: var(--gold); color: #0A0F0C; }
.btn.ghost { background: var(--panel3); color: var(--text); border: 1px solid var(--line2); }
.btn.green { background: #2f8a4c; color: #fff; }
.btn.block { display: block; width: 100%; margin-top: 12px; }
.btn[disabled] { opacity: .55; cursor: default; }
.err { color: var(--red); background: var(--redbg); border-radius: 10px; padding: 9px 12px; margin-top: 10px; font-size: 14px; }
.ok { color: var(--green); background: var(--greenbg); border-radius: 10px; padding: 9px 12px; margin-top: 10px; font-size: 14px; }
.tabs { display: flex; gap: 6px; margin: 16px 0 0; border-bottom: 1px solid var(--line); }
.tab { background: none; border: 0; padding: 10px 14px; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tab.on { color: var(--text); border-bottom-color: var(--gold); }
.badge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 99px; background: var(--gold); color: #0A0F0C; font-size: 12px; font-weight: 800; text-align: center; margin-inline-start: 5px; }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }
.stat { font-size: 12.5px; padding: 3px 10px; border-radius: 99px; background: var(--goldbg, rgba(232,176,74,.12)); color: var(--gold); font-weight: 600; }
.stat.g { background: var(--greenbg); color: var(--green); } .stat.r { background: var(--redbg); color: var(--red); }
.phead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.phead b { font-size: 16px; unicode-bidi: plaintext; }
.plats { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 10px; }
.pl { border: 1px solid var(--line2); background: var(--panel2); border-radius: 99px; padding: 4px 12px; font-size: 13px; }
.pl.on { background: var(--gold); border-color: var(--gold); color: #0A0F0C; font-weight: 700; }
.langs { display: inline-flex; border: 1px solid var(--line2); border-radius: 99px; overflow: hidden; margin-inline-start: auto; }
.langs button { background: none; border: 0; padding: 3px 12px; font-size: 13px; color: var(--muted); }
.langs button.on { background: var(--panel3); color: var(--text); font-weight: 700; }
.stage { display: flex; justify-content: center; background: radial-gradient(70% 60% at 50% 30%, #1B241E, #0A0F0C); border-radius: 14px; padding: 16px 8px; }
.asked { background: var(--redbg); border-radius: 10px; padding: 8px 12px; margin: 10px 0 0; font-size: 14px; color: var(--red); unicode-bidi: plaintext; }
.acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.hist { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hist:last-child { border: 0; }
.hist b { flex: 1; unicode-bidi: plaintext; font-weight: 600; }
.drop { display: block; border: 2px dashed var(--line2); border-radius: 16px; padding: 26px 14px; text-align: center; background: var(--panel); cursor: pointer; }
.drop:hover { border-color: var(--gold); }
.drop input { display: none; }
.drop .big { font-size: 34px; }
.file { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.file span.n { flex: 1; direction: ltr; text-align: start; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar { height: 6px; background: var(--panel3); border-radius: 9px; overflow: hidden; width: 90px; }
.bar i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .2s; }
.toast { position: fixed; bottom: calc(18px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); background: var(--panel3); border: 1px solid var(--gold); padding: 10px 18px; border-radius: 99px; z-index: 20; box-shadow: 0 10px 30px rgba(0,0,0,.5); max-width: 92vw; }
.foot { text-align: center; color: var(--faint); font-size: 12.5px; margin-top: 30px; }

/* the phone previews */
.phone { width: 100%; max-width: 330px; background: #fff; color: #111; border-radius: 24px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.55); border: 6px solid #1c1f1d; direction: ltr; text-align: start; font-family: system-ui, 'Segoe UI', Tahoma, sans-serif; }
.phone svg { width: 20px; height: 20px; }
.pvh { display: flex; align-items: center; gap: 9px; padding: 10px 12px; }
.pvh b { font-size: 13.5px; } .pvh .g { flex: 1; min-width: 0; }
.pvh .g small { display: block; color: #65676B; font-size: 11.5px; }
.pva { width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: #0A0F0C; display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; }
.pvm { width: 100%; aspect-ratio: 4 / 5; background: #0A0F0C center/cover no-repeat; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; padding: 22px; }
.pvm.tall { aspect-ratio: 9 / 16; }
.pvm.wide { aspect-ratio: 1.91 / 1; }
.pvm .t { color: var(--gold); font-weight: 800; font-size: 21px; line-height: 1.5; unicode-bidi: plaintext; }
.pvm .t.en { color: #F2EEE6; font-size: 17px; }
.pvm .note { position: absolute; bottom: 8px; left: 0; right: 0; font-size: 10px; color: #8E877C; }
.pvcount { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; border-radius: 99px; padding: 2px 8px; }
.nav { position: absolute; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); color: #111; font-size: 16px; line-height: 1; padding: 0; }
.nav.l { left: 8px; } .nav.r { right: 8px; }
.pvact { display: flex; gap: 14px; padding: 10px 12px 4px; align-items: center; }
.pvcap { padding: 2px 12px 10px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; unicode-bidi: plaintext; }
.pvcap.top { padding: 0 12px 10px; }
.pvcap .tag { color: #00376B; } .fbk .tag, .lkd .tag { color: #1877F2; }
.pvbar { display: flex; justify-content: space-around; border-top: 1px solid #E4E6EB; padding: 8px 4px; color: #65676B; font-weight: 600; font-size: 13px; }
.ttk { background: #000; color: #fff; position: relative; }
.ttk .pvcap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 56px 14px 12px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.75)); font-size: 13px; max-height: 45%; overflow: hidden; }
.ttk .pvcap .tag { color: #fff; font-weight: 700; }
.ttk .pvm { aspect-ratio: 9 / 16; }
.ttk .side { position: absolute; right: 8px; bottom: 90px; display: flex; flex-direction: column; gap: 14px; align-items: center; color: #fff; }
.ttk .side svg { width: 26px; height: 26px; }
.ttk .who { position: absolute; left: 12px; bottom: calc(45% - 12px); display: none; }
.pad { padding: 0; }
