
:root {
  --bg: #0f1115;
  --panel: #171a21;
  --panel2: #1d212b;
  --border: #2a2f3a;
  --text: #e6e9ef;
  --muted: #8a91a0;
  --accent: #4c8dff;
  --green: #35b26a;
  --red: #e05252;
  --orange: #e0913a;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  padding-bottom: 32px;
}
.top {
  position: sticky; top: 0; z-index: 5;
  background: rgba(15,17,21,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px 0;
}
.brand { display: flex; gap: 6px; align-items: baseline; padding-bottom: 8px; }
.mark { font-weight: 800; letter-spacing: .12em; font-size: 18px; }
.plus { font-weight: 700; letter-spacing: .2em; font-size: 12px; color: var(--accent); }
.tabs { display: flex; gap: 4px; }
.tab {
  flex: 1; background: none; border: 0; border-bottom: 2px solid transparent;
  color: var(--muted); padding: 10px 0 12px; font-size: 14px; cursor: pointer;
}
.tab.active { color: var(--text); border-bottom-color: var(--accent); }
.app { max-width: 520px; margin: 0 auto; padding: 16px; }
.screen.hidden { display: none; }
.h { font-size: 20px; margin: 8px 0 4px; }
.muted { color: var(--muted); font-size: 13px; margin: 4px 0 12px; }
.greet { font-size: 22px; font-weight: 700; margin: 8px 0 14px; }
.card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px 16px; margin-bottom: 12px;
}
.sub-card .big { font-size: 17px; font-weight: 700; margin-bottom: 2px; }
.sub-card .until { color: var(--muted); font-size: 13px; }
.pill {
  display: inline-block; border-radius: 999px; padding: 3px 10px;
  font-size: 12px; font-weight: 600; margin-bottom: 8px;
}
.pill.ok { background: rgba(53,178,106,.15); color: var(--green); }
.pill.warn { background: rgba(224,145,58,.15); color: var(--orange); }
.pill.bad { background: rgba(224,82,82,.15); color: var(--red); }
.pill.wait { background: rgba(76,141,255,.15); color: var(--accent); }
.quota-wrap .q { margin: 10px 0; }
.quota-wrap .q .lbl { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.bar { height: 8px; border-radius: 4px; background: var(--panel2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.bar i.hot { background: var(--orange); }
.row { display: flex; gap: 10px; }
.btn {
  border-radius: 12px; border: 1px solid var(--border);
  background: var(--panel2); color: var(--text);
  padding: 13px 16px; font-size: 15px; cursor: pointer; flex: 1;
}
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.btn.ghost { background: transparent; }
.btn.wide { width: 100%; margin-top: 10px; }
.btn[disabled] { opacity: .5; }
.plans { display: flex; flex-direction: column; gap: 12px; }
.plan { position: relative; }
.plan .badge {
  position: absolute; top: -8px; right: 12px; background: var(--accent);
  color: #fff; border-radius: 999px; font-size: 11px; padding: 3px 10px; font-weight: 700;
}
.plan h3 { margin: 2px 0; font-size: 18px; }
.plan .tag { color: var(--muted); font-size: 13px; margin: 0 0 10px; }
.price { display: flex; align-items: baseline; gap: 8px; }
.price .now { font-size: 24px; font-weight: 800; }
.price .was { color: var(--muted); text-decoration: line-through; font-size: 14px; }
.price .per { color: var(--muted); font-size: 12px; }
.feat { margin: 10px 0 0; padding: 0; list-style: none; }
.feat li { font-size: 13px; color: var(--muted); padding: 3px 0 3px 20px; position: relative; }
.feat li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.field { display: block; margin: 4px 0 12px; }
.field span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input {
  width: 100%; background: var(--panel); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px; padding: 12px; font-size: 15px;
}
.providers { display: flex; flex-direction: column; gap: 8px; margin-bottom: 6px; }
.prov {
  display: flex; gap: 10px; align-items: center; cursor: pointer;
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px;
}
.prov:has(input:checked) { border-color: var(--accent); background: var(--panel2); }
.prov input { accent-color: var(--accent); }
.prov b { display: block; font-size: 14px; }
.prov small { color: var(--muted); font-size: 12px; }
.status-line { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.spin {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--panel2); border-top-color: var(--accent);
  animation: r 1s linear infinite; flex: none;
}
@keyframes r { to { transform: rotate(360deg); } }
.sumrow { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.sumrow .k { color: var(--muted); }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
  background: var(--panel2); color: var(--text); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 16px; font-size: 14px; opacity: 0;
  transition: all .25s; pointer-events: none; max-width: 90vw; z-index: 20;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.banner {
  background: rgba(224,145,58,.12); border: 1px solid rgba(224,145,58,.4);
  color: var(--text); border-radius: 12px; padding: 10px 14px; font-size: 13px; margin-bottom: 12px;
}
.mpay { border-top: 1px solid var(--border); padding: 8px 0; font-size: 13px; display: flex; justify-content: space-between; gap: 8px; }
.mpay:first-child { border-top: 0; }
