/* TALKLESS ULTRA XMD – shared styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Plus Jakarta Sans', -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: #0b0e14;
  color: #e8eaf0;
  min-height: 100vh;
}
.shell { max-width: 640px; margin: 0 auto; padding: 18px 16px 40px; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.topbar .brand small { display: block; font-size: 10px; letter-spacing: 3px; color: #7c8698; }
.topbar .brand strong { font-size: 17px; color: #fff; }
.icon-btn {
  background: #171c26; border: 1px solid #262d3b; color: #aab4c6;
  padding: 7px 11px; border-radius: 9px; font-size: 15px; cursor: pointer; text-decoration: none;
}
.icon-btn:hover { background: #1f2634; }
.card {
  background: #121722; border: 1px solid #232b3b; border-radius: 16px;
  padding: 18px; margin-bottom: 14px;
}
/* ── hero (brand image) ─────────────────────────────────── */
.card.hero { padding: 0; overflow: hidden; border-radius: 16px; }
.hero-media { position: relative; width: 100%; aspect-ratio: 16 / 7; min-height: 210px; }
.hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 42%; display: block;
}
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,14,20,0) 0%, rgba(11,14,20,.10) 30%, rgba(15,19,28,.72) 72%, rgba(18,23,34,.97) 100%),
    linear-gradient(90deg, rgba(11,14,20,.35) 0%, rgba(11,14,20,0) 45%);
}
.hero-copy { position: absolute; left: 16px; right: 16px; bottom: 14px; }
.hero-copy h1 { margin: 2px 0 3px; font-size: 21px; text-shadow: 0 2px 14px rgba(0,0,0,.65); }
.hero-copy .sub { margin: 0; color: #cbd5e6; font-size: 12.5px; text-shadow: 0 1px 10px rgba(0,0,0,.7); }
.hero-copy .pill { backdrop-filter: blur(4px); }
@media (max-width: 420px) {
  .hero-media { aspect-ratio: 4 / 3; }
  .hero-copy h1 { font-size: 18px; }
}
h1 { font-size: 21px; margin: 6px 0 2px; }
.sub { color: #8b95a9; font-size: 13px; margin-bottom: 14px; }
.pill {
  display: inline-block; font-size: 10px; letter-spacing: 2px; padding: 4px 10px;
  border-radius: 99px; border: 1px solid #2e5e46; color: #4ade80; background: rgba(74,222,128,.07);
  margin-bottom: 6px;
}
.pill.off { border-color:#7a3540; color:#f87171; background: rgba(248,113,113,.07); }
label { display: block; font-size: 11px; letter-spacing: 1.5px; color: #7c8698; margin: 12px 0 6px; }
input[type=tel], input[type=text], input[type=password] {
  width: 100%; background: #0b0f17; border: 1px solid #2a3345; color: #eef1f7;
  padding: 12px 14px; border-radius: 10px; font-size: 15px; outline: none;
}
input:focus { border-color: #3d5a8c; }
.phone-wrap { display: flex; align-items: center; background: #0b0f17; border: 1px solid #2a3345; border-radius: 10px; overflow: hidden; }
.phone-wrap span { padding: 0 12px; color: #8b95a9; font-size: 16px; border-right: 1px solid #262d3b; align-self: stretch; display: flex; align-items: center; }
.phone-wrap input { border: none; background: transparent; border-radius: 0; }
.btn {
  display: block; width: 100%; border: none; border-radius: 10px; padding: 13px;
  font-size: 15px; font-weight: 700; cursor: pointer; margin-top: 14px;
  background: linear-gradient(135deg, #1d4ed8, #3b82f6); color: #fff;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.ghost { background: #1a2130; color: #aab4c6; border: 1px solid #2a3345; }
.status-box { margin-top: 14px; padding: 12px; border-radius: 10px; font-size: 14px; display: none; }
.status-box.show { display: block; }
.status-box.ok { background: rgba(74,222,128,.08); border: 1px solid #2e5e46; color: #86efac; }
.status-box.err { background: rgba(248,113,113,.08); border: 1px solid #7a3540; color: #fca5a5; }
.status-box.info { background: rgba(96,165,250,.08); border: 1px solid #33507e; color: #93c5fd; }
.code-result { text-align: center; padding: 18px; display: none; }
.code-result.show { display: block; }
.code-eyebrow { font-size: 10px; letter-spacing: 3px; color: #7c8698; }
.pairing-code {
  font-family: 'JetBrains Mono', Menlo, monospace; font-size: 30px; font-weight: 800;
  color: #4ade80; margin: 8px 0 12px; letter-spacing: 2px;
}
.copy-btn { background: #0b0f17; border: 1px solid #2e5e46; color: #4ade80; padding: 9px 18px; border-radius: 9px; cursor: pointer; font-size: 13px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat-card { background: #0b0f17; border: 1px solid #232b3b; border-radius: 12px; padding: 12px; text-align: center; }
.stat-card .n { font-size: 20px; font-weight: 800; }
.stat-card .l { font-size: 10px; letter-spacing: 1px; color: #7c8698; margin-top: 2px; }
.hidden { display: none; }
.row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #1c2332; font-size: 13px; }
.row:last-child { border-bottom: none; }
.row .tag { font-size: 10px; padding: 2px 8px; border-radius: 99px; }
.tag.on { background: rgba(74,222,128,.12); color: #4ade80; }
.tag.off { background: rgba(148,163,184,.12); color: #94a3b8; }
.tag.x { background: rgba(248,113,113,.12); color: #f87171; }
textarea { width: 100%; background: #0b0f17; border: 1px solid #2a3345; color: #eef1f7; padding: 10px; border-radius: 10px; font-family: inherit; font-size: 13px; resize: vertical; min-height: 60px; }
.footer { text-align: center; color: #5b6577; font-size: 12px; margin-top: 18px; }
.footer a { color: #7c98c9; text-decoration: none; }
.notice-banner { display: none; background: #33290f; border: 1px solid #7a5a20; color: #fcd34d; padding: 10px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 12px; }
.notice-banner.show { display: block; }
.mono { font-family: Menlo, Consolas, monospace; font-size: 12px; }

/* ── header actions (telegram + admin) ─────────────────────── */
.topbar-actions { display: flex; align-items: center; gap: 8px; }

/* ── app download + telegram buttons ───────────────────────── */
/* .btn is built for <button>; these are <a>, so they need the link resets. */
a.btn { text-decoration: none; text-align: center; }
a.btn.ghost { color: #cdd6e5; }
.tg-btn { background: linear-gradient(135deg, #1c8dbf, #229ED9); color: #fff; }
.tg-btn:hover { filter: brightness(1.08); }

/* ── session management ────────────────────────────────────── */
.sess-right { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.row .sess-id { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 52%; }
.del-btn {
  background: transparent; border: 1px solid #7a3540; color: #f87171;
  font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 8px;
  cursor: pointer; font-family: inherit;
}
.del-btn:hover:not(:disabled) { background: rgba(248,113,113,.1); }
.del-btn:disabled { opacity: .5; cursor: wait; }

/* ── country picker ───────────────────────────────────────── */
.country-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #0b0f17; border: 1px solid #2a3345; color: #eef1f7;
  padding: 12px 14px; border-radius: 10px; font-size: 15px; font-family: inherit;
  cursor: pointer; text-align: left; transition: border-color .15s;
}
.country-trigger:hover { border-color: #3d5a8c; }
.country-trigger:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; }
.country-trigger .sel-flag { font-size: 16px; margin-right: 8px; }
.country-trigger .sel-name { color: #e8eaf0; }
.country-trigger .sel-placeholder { color: #6b7688; }
.country-trigger .caret { color: #7c8698; font-size: 11px; }

.phone-wrap .plus { border-right: none; padding: 0 4px 0 12px; color: #7c8698; }
.phone-wrap .prefix {
  width: 58px; flex: 0 0 auto; text-align: center; border-right: 1px solid #262d3b;
  padding: 12px 6px; font-variant-numeric: tabular-nums; letter-spacing: .5px;
}
.phone-wrap input#phoneNumber { flex: 1 1 auto; min-width: 0; }

.modal {
  display: none; position: fixed; inset: 0; z-index: 60;
  background: rgba(4, 7, 12, .72); backdrop-filter: blur(4px); padding: 18px;
}
.modal.show { display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 560px) { .modal.show { align-items: center; } }
.modal-card {
  width: 100%; max-width: 520px; max-height: 78vh; display: flex; flex-direction: column;
  background: #121722; border: 1px solid #232b3b; border-radius: 16px; padding: 14px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .8);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.modal-head strong { font-size: 14px; }
.modal-close {
  background: #171c26; border: 1px solid #262d3b; color: #aab4c6; border-radius: 8px;
  width: 30px; height: 30px; cursor: pointer; font-size: 13px; line-height: 1;
}
.modal-close:hover { background: #1f2634; }
.country-list { margin-top: 10px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.country-option {
  display: flex; align-items: center; gap: 10px; padding: 11px 8px;
  border-radius: 9px; cursor: pointer; font-size: 14px;
}
.country-option:hover, .country-option:focus { background: #1a2130; outline: none; }
.country-option .flag { font-size: 17px; }
.country-option .cname { flex: 1; }
.country-option .ccode { color: #7c8698; font-family: Menlo, Consolas, monospace; font-size: 12px; }
