@charset "UTF-8";

:root {
  color-scheme: dark;
  --bg: #050a12;
  --bg-raised: #0a1420;
  --card: #0c1724;
  --card-soft: #102235;
  --line: rgba(171, 207, 233, .12);
  --text: #f4f9ff;
  --muted: #94aabc;
  --accent: #42c9ff;
  --accent-deep: #168fff;
  --orange: #66d8ff;
  --danger: #ff7474;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(ellipse at 12% -8%, rgba(49, 187, 255, .11), transparent 33rem),
    radial-gradient(ellipse at 100% 34%, rgba(49, 161, 255, .055), transparent 25rem),
    var(--bg);
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }

#app-root { min-height: 100vh; }
.app-shell {
  position: relative;
  width: min(100%, 560px);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) 18px calc(116px + var(--safe-bottom));
}
.boot-screen, .gate-screen {
  display: grid;
  min-height: 100vh;
  place-content: center;
  justify-items: center;
  padding: 28px;
  text-align: center;
  color: var(--muted);
}
.boot-mark, .gate-mark {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  margin-bottom: 14px;
  border: 1px solid rgba(49, 187, 255, .25);
  border-radius: 22px;
  color: var(--accent);
  background: linear-gradient(145deg, rgba(49, 187, 255, .16), rgba(49, 187, 255, .035));
  box-shadow: 0 12px 40px rgba(49, 187, 255, .08);
  font-size: 31px;
}
.boot-mark img, .gate-mark img { width: 47px; height: 43px; object-fit: contain; filter: drop-shadow(0 0 12px rgba(49, 187, 255, .34)); }
.gate-screen { color: var(--text); }
.gate-screen p { max-width: 340px; margin: 0 0 18px; color: var(--muted); line-height: 1.55; }
.gate-screen h1 { margin: 0 0 9px; font-size: 23px; letter-spacing: -.5px; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  margin-bottom: 18px;
}
.brand { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 1px; }
.brand-wordmark {
  display: block;
  width: 145px;
  height: 33px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 0 10px rgba(49, 187, 255, .12));
}
.brand-symbol {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 14px;
  color: #06111a;
  background: var(--accent);
  box-shadow: 0 5px 20px rgba(49, 187, 255, .19);
  font-size: 21px;
  font-weight: 900;
}
.brand-name { font-size: 15px; font-weight: 800; letter-spacing: .14em; }
.brand-sub { margin-top: 3px; color: var(--muted); font-size: 10px; letter-spacing: .11em; text-transform: uppercase; }
.avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  background: var(--card);
  font-size: 13px;
  font-weight: 800;
}

main { display: block; }
.section-banner {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 18px;
  border: 1px solid rgba(114, 197, 239, .18);
  border-radius: 20px;
  box-shadow: 0 12px 34px rgba(0, 95, 170, .12);
}
.icon-svg {
  display: block;
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.eyebrow {
  margin: 0 0 9px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.page-heading { margin: 0 0 7px; font-size: clamp(25px, 7vw, 32px); line-height: 1.08; letter-spacing: -.8px; }
.page-lede { margin: 0 0 21px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 23px 2px 11px; }
.section-heading h2 { margin: 0; font-size: 15px; letter-spacing: -.2px; }
.section-heading span { color: var(--muted); font-size: 11px; }

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 22px 21px 20px;
  border: 1px solid rgba(49, 187, 255, .23);
  border-radius: 25px;
  background:
    radial-gradient(circle at 90% 16%, rgba(49, 187, 255, .18), transparent 9rem),
    linear-gradient(138deg, #10314a, #07131f 70%);
  box-shadow: 0 16px 44px rgba(0, 0, 0, .18);
}
.hero-card::after {
  position: absolute;
  top: -50px;
  right: -35px;
  width: 155px;
  height: 155px;
  border: 1px solid rgba(49, 187, 255, .08);
  border-radius: 50%;
  box-shadow: 0 0 0 19px rgba(49, 187, 255, .025), 0 0 0 38px rgba(49, 187, 255, .018);
  content: "";
  pointer-events: none;
}
.hero-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(49, 187, 255, .19);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(3, 10, 18, .36);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 11px currentColor; }
.status-pill.is-off { color: #ffbd67; border-color: rgba(255, 189, 103, .18); }
.status-pill.is-blocked { color: #ff8181; border-color: rgba(255, 129, 129, .2); }
.hero-kicker { color: rgba(239, 247, 255, .65); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.hero-card h1 { position: relative; z-index: 1; max-width: 290px; margin: 23px 0 8px; font-size: 29px; line-height: 1.08; letter-spacing: -.8px; }
.hero-card p { position: relative; z-index: 1; max-width: 290px; margin: 0; color: rgba(239, 247, 255, .67); font-size: 12px; line-height: 1.5; }
.hero-expiry { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 22px; }
.hero-days strong { display: block; color: var(--accent); font-size: 30px; line-height: 1; letter-spacing: -1px; }
.hero-days span { display: block; margin-top: 6px; color: rgba(239, 247, 255, .62); font-size: 10px; }
.hero-date { max-width: 46%; color: rgba(239, 247, 255, .74); font-size: 11px; line-height: 1.45; text-align: right; }

.card {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: linear-gradient(145deg, rgba(14, 29, 44, .96), rgba(8, 20, 33, .96));
  box-shadow: 0 10px 28px rgba(0, 0, 0, .1);
}
.card + .card { margin-top: 11px; }
.card-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-title { margin: 0; font-size: 14px; font-weight: 750; }
.title-icon { display: inline-flex; width: 21px; height: 21px; align-items: center; justify-content: center; margin-right: 7px; color: var(--accent); vertical-align: -4px; }
.title-icon .icon-svg { width: 19px; height: 19px; }
.card-copy { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.card-meta { color: var(--muted); font-size: 11px; }
.subscription-link {
  display: flex;
  align-items: center;
  gap: 9px;
  overflow: hidden;
  margin-top: 14px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: #dcecff;
  background: rgba(3, 9, 17, .35);
  font-size: 11px;
}
.subscription-link .link-icon { flex: 0 0 auto; color: var(--accent); font-size: 15px; }
.subscription-link .link-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.action-row { display: flex; gap: 9px; margin-top: 12px; }
.action-row > * { flex: 1; }

.button {
  display: inline-flex;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: #06111a;
  background: var(--accent);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: transform .14s ease, filter .14s ease, background .14s ease;
}
.button:hover { filter: brightness(1.04); }
.button:active { transform: scale(.98); }
.button:disabled { opacity: .52; cursor: not-allowed; }
.button-secondary { border-color: var(--line); color: var(--text); background: var(--card-soft); }
.button-ghost { min-height: 38px; padding: 0 12px; border-color: var(--line); color: var(--muted); background: transparent; font-size: 11px; }
.button-danger { border-color: rgba(255, 116, 116, .18); color: #ff9292; background: rgba(255, 116, 116, .09); }
.button-block { width: 100%; }
.button-small { min-height: 37px; border-radius: 12px; padding: 0 12px; font-size: 11px; }
.text-button { display: inline-flex; border: 0; padding: 5px 0; color: var(--accent); background: none; cursor: pointer; font-size: 11px; font-weight: 750; }

.quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 13px; }
.quick-tile {
  display: flex;
  min-height: 77px;
  align-items: center;
  gap: 11px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(10, 23, 36, .88);
  cursor: pointer;
  text-align: left;
}
.quick-icon { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border: 1px solid rgba(49, 187, 255, .12); border-radius: 12px; color: var(--accent); background: rgba(49, 187, 255, .1); font-size: 19px; }
.quick-icon .icon-svg { width: 19px; height: 19px; }
.inline-note-icon .icon-svg { width: 18px; height: 18px; }
.quick-tile strong { display: block; font-size: 11px; }
.quick-tile span:last-child { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }

.inline-note { display: flex; align-items: flex-start; gap: 10px; padding: 13px 14px; border: 1px solid rgba(49, 161, 255, .14); border-radius: 16px; color: #cce9fb; background: rgba(49, 161, 255, .055); font-size: 11px; line-height: 1.5; }
.inline-note strong { display: block; margin-bottom: 3px; color: var(--text); font-size: 12px; }
.inline-note-icon { color: var(--orange); font-size: 16px; }

.plan-list { display: grid; gap: 10px; }
.plan-card { padding: 16px; border: 1px solid var(--line); border-radius: 19px; background: linear-gradient(145deg, rgba(12, 26, 41, .98), rgba(8, 20, 33, .98)); }
.plan-card.featured { border-color: rgba(49, 187, 255, .34); box-shadow: inset 0 0 0 1px rgba(49, 187, 255, .045); }
.plan-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.plan-title { margin: 0; font-size: 15px; font-weight: 800; }
.plan-caption { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.plan-price { white-space: nowrap; color: var(--accent); font-size: 20px; font-weight: 850; letter-spacing: -.4px; }
.plan-actions { display: flex; gap: 8px; margin-top: 14px; }
.plan-actions .button { flex: 1; }
.plan-badge { display: inline-block; margin-top: 8px; padding: 4px 7px; border-radius: 7px; color: var(--accent); background: rgba(49, 187, 255, .09); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.stat-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 13px; }
.stat-box { padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: rgba(3, 9, 17, .22); }
.stat-box strong { display: block; color: var(--text); font-size: 20px; letter-spacing: -.5px; }
.stat-box span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.device-list { display: grid; gap: 9px; margin-top: 13px; }
.device-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 15px; background: rgba(3, 9, 17, .22); }
.device-info { min-width: 0; }
.device-info strong { display: block; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.device-info span { display: block; overflow: hidden; margin-top: 4px; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.device-item .button { flex: 0 0 auto; }
.empty-state { padding: 27px 18px; border: 1px dashed rgba(191, 215, 234, .14); border-radius: 18px; color: var(--muted); text-align: center; }
.empty-state .empty-icon { display: flex; justify-content: center; margin-bottom: 9px; color: var(--accent); font-size: 26px; }
.empty-state .empty-icon .icon-svg { width: 26px; height: 26px; }
.empty-state strong { display: block; margin-bottom: 6px; color: var(--text); font-size: 13px; }
.empty-state p { margin: 0; font-size: 11px; line-height: 1.5; }

.form-row { display: flex; gap: 8px; margin-top: 12px; }
.field {
  width: 100%;
  min-width: 0;
  min-height: 45px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: none;
  color: var(--text);
  background: #07111d;
  font-size: 13px;
}
.field::placeholder { color: #71889c; }
.field:focus { border-color: rgba(49, 187, 255, .48); box-shadow: 0 0 0 3px rgba(49, 187, 255, .075); }
.form-row .button { flex: 0 0 auto; }
.form-hint { margin: 8px 1px 0; color: var(--muted); font-size: 10px; line-height: 1.4; }
.result-message { margin-top: 10px; color: var(--accent); font-size: 11px; line-height: 1.5; }
.result-message.is-error { color: #ff9a9a; }
.history-list { display: grid; gap: 0; margin-top: 11px; }
.history-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.history-row:first-child { border-top: 0; }
.history-note { overflow: hidden; color: #dfeaf5; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.history-date { margin-top: 3px; color: var(--muted); font-size: 9px; }
.history-amount { flex: 0 0 auto; font-size: 11px; font-weight: 800; }
.history-amount.positive { color: var(--accent); }
.history-amount.negative { color: #ff9999; }

.pending-list { display: grid; gap: 8px; margin-top: 12px; }
.pending-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 13px; background: rgba(3, 9, 17, .2); }
.pending-item strong { display: block; font-size: 11px; }
.pending-item span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }

.support-card { display: flex; align-items: center; gap: 12px; }
.support-icon { display: grid; width: 41px; height: 41px; flex: 0 0 41px; place-items: center; border: 1px solid rgba(49, 187, 255, .12); border-radius: 14px; color: var(--accent); background: rgba(49, 187, 255, .1); font-size: 19px; }
.support-icon .icon-svg { width: 21px; height: 21px; }
.support-copy { flex: 1; min-width: 0; }
.support-copy strong { display: block; font-size: 12px; }
.support-copy span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.faq-item { padding: 13px 0; border-top: 1px solid var(--line); }
.faq-item:first-child { border-top: 0; }
.faq-item strong { display: block; font-size: 11px; }
.faq-item p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }

.bottom-nav {
  position: fixed;
  z-index: 15;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  width: min(100%, 560px);
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  margin: 0 auto;
  padding: 9px 12px calc(8px + var(--safe-bottom));
  border-top: 1px solid rgba(191, 215, 234, .09);
  background: rgba(5, 10, 18, .92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.nav-button {
  display: flex;
  min-height: 52px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 0;
  border-radius: 14px;
  color: #8298aa;
  background: transparent;
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
}
.nav-button .nav-icon { display: grid; width: 21px; height: 21px; place-items: center; font-size: 17px; line-height: 1; }
.nav-button .icon-svg { width: 19px; height: 19px; }
.nav-button.active { color: var(--accent); background: rgba(49, 187, 255, .075); }

.toast {
  position: fixed;
  z-index: 30;
  right: 18px;
  bottom: calc(79px + var(--safe-bottom));
  left: 18px;
  width: fit-content;
  max-width: min(420px, calc(100% - 36px));
  margin: 0 auto;
  padding: 12px 15px;
  border: 1px solid rgba(49, 187, 255, .18);
  border-radius: 14px;
  color: var(--text);
  background: #102236;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .38);
  font-size: 11px;
  line-height: 1.4;
  animation: toast-in .18s ease-out;
}
.toast.toast-error { border-color: rgba(255, 116, 116, .24); background: #29171f; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.modal-backdrop {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(0, 0, 0, .74);
  backdrop-filter: blur(8px);
}
.modal-card {
  width: min(100%, 360px);
  padding: 18px;
  border: 1px solid rgba(49, 187, 255, .18);
  border-radius: 23px;
  background: #0b1725;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .5);
  text-align: center;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.modal-head strong { font-size: 14px; }
.modal-close { display: grid; width: 33px; height: 33px; place-items: center; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); background: var(--card-soft); cursor: pointer; font-size: 18px; }
.qr-frame { display: grid; min-height: 230px; place-items: center; padding: 16px; border-radius: 18px; background: #f4f9ff; }
.qr-frame img { display: block; width: min(100%, 230px); height: auto; image-rendering: pixelated; }
.modal-copy { margin: 12px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }

@media (min-width: 560px) {
  .app-shell { padding-right: 22px; padding-left: 22px; }
  .hero-card { padding: 25px; }
}
@media (max-width: 360px) {
  .app-shell { padding-right: 14px; padding-left: 14px; }
  .hero-card { padding: 19px 17px; }
  .hero-card h1 { font-size: 26px; }
  .action-row { flex-direction: column; }
  .plan-actions { flex-direction: column; }
  .quick-tile { padding: 11px 9px; }
  .quick-icon { width: 32px; height: 32px; flex-basis: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
