:root {
  color-scheme: dark;
  --bg: #080b12;
  --bg-soft: #0f141f;
  --card: rgba(24, 30, 44, 0.94);
  --card-strong: rgba(28, 35, 50, 0.98);
  --stroke: rgba(255, 255, 255, 0.09);
  --text: #f4f7ff;
  --muted: #99a4be;
  --muted-2: #7d879f;
  --accent: #f4b35f;
  --accent-2: #6de2b5;
  --danger: #ff7d8d;
  --warning: #ffca75;
  --success: #74efab;
  --radius-card: 24px;
  --radius-pill: 999px;
  --shadow-card: 0 24px 60px rgba(0, 0, 0, 0.42);
}

/* Web-cabinet parity refresh · 2026-07 */
:root {
  --bg: #050805;
  --bg-soft: #0a0e0b;
  --card: rgba(14, 18, 15, 0.96);
  --card-strong: rgba(18, 22, 18, 0.98);
  --stroke: rgba(238, 225, 194, 0.15);
  --text: #f8f4ea;
  --muted: #aaa99f;
  --muted-2: #777b73;
  --accent: #f7b84e;
  --accent-2: #ffd98d;
  --success: #55df8c;
  --radius-card: 20px;
  --shadow-card: 0 22px 70px rgba(0, 0, 0, 0.35);
}

body {
  background:
    radial-gradient(640px 420px at 103% 2%, rgba(247, 184, 78, 0.16), transparent 64%),
    radial-gradient(520px 420px at -12% 44%, rgba(36, 111, 70, 0.1), transparent 68%),
    linear-gradient(180deg, #050805 0%, #070b08 100%);
}

.glow {
  inset: -24% -38% auto 34%;
  background: radial-gradient(closest-side, rgba(247, 184, 78, 0.16), transparent 75%);
  filter: blur(58px);
}

.page {
  width: min(760px, 100%);
  padding: calc(18px + env(safe-area-inset-top)) 14px calc(112px + env(safe-area-inset-bottom));
  gap: 14px;
}

.app-head {
  gap: 7px;
  padding-right: 0;
  margin-bottom: 4px;
}

.mini-brand-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 50px;
  padding-right: 0;
  margin-bottom: 11px;
}

.mini-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.mini-brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(247, 184, 78, 0.34);
  border-radius: 13px;
  color: var(--accent);
  background: linear-gradient(145deg, rgba(247, 184, 78, 0.14), rgba(247, 184, 78, 0.03));
  box-shadow: inset 0 1px rgba(255,255,255,.07);
}

.mini-brand-mark img {
  width: 100%;
  height: 100%;
  border-radius: 11px;
  object-fit: cover;
  display: block;
}

.mini-brand-name {
  font-family: "Russo One", sans-serif;
  font-size: 20px;
  letter-spacing: .01em;
}

.mini-account-chip {
  appearance: none;
  border: 1px solid rgba(238, 225, 194, 0.17);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
  color: var(--text);
  min-width: 0;
  max-width: 190px;
  padding: 6px 9px 6px 6px;
  display: grid;
  grid-template-columns: 34px minmax(0,1fr);
  gap: 8px;
  align-items: center;
  text-align: left;
  cursor: pointer;
}

.mini-account-chip.is-premium {
  border-color: rgba(247, 184, 78, .42);
  background: linear-gradient(135deg, rgba(247, 184, 78, .13), rgba(255,255,255,.025));
}

.mini-account-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1.5px solid rgba(247,184,78,.68);
  color: #fff5df;
  font-size: 11px;
  font-weight: 800;
  background: #11140f;
  overflow: hidden;
}

.mini-account-avatar.has-photo { padding: 2px; }

.mini-account-avatar img,
.avatar img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  object-fit: cover;
}

.mini-account-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.mini-account-copy strong,
.mini-account-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-account-copy strong { font-size: 11px; }
.mini-account-copy small { color: var(--muted); font-size: 10px; }
.mini-account-chip.is-premium .mini-account-copy small { color: #f3c66f; }

.mini-head-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.app-head h1 {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: clamp(30px, 9vw, 42px);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.app-head .sub {
  max-width: 560px;
  line-height: 1.55;
  font-size: 13px;
}

.head-support-btn {
  position: static;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--accent);
  border-color: rgba(247,184,78,.25);
  background: rgba(247,184,78,.06);
}

.card {
  border-radius: var(--radius-card);
  background:
    radial-gradient(420px 190px at 105% -14%, rgba(247,184,78,.08), transparent 72%),
    linear-gradient(145deg, rgba(18,22,18,.98), rgba(10,14,11,.98));
  border-color: var(--stroke);
  box-shadow: var(--shadow-card);
}

.mini-kicker {
  color: var(--accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .15em;
}

.mini-overview-card {
  position: relative;
  overflow: hidden;
  padding: 19px;
}

.mini-overview-card.is-premium {
  background:
    radial-gradient(420px 240px at 102% 0%, rgba(247,184,78,.24), transparent 70%),
    linear-gradient(135deg, #111612, #17160e);
  border-color: rgba(247,184,78,.3);
}

.mini-overview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.mini-overview-head > div { min-width: 0; }
.mini-overview-head h2 { margin: 5px 0 4px; font-size: 25px; letter-spacing: -.035em; }
.mini-overview-head p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

.mini-overview-title-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.mini-overview-status { color: var(--success); font-size: 11px; font-weight: 800; }
.mini-overview-status.is-paused { color: #ffbd63; }
.mini-overview-flags {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 22px;
  letter-spacing: 0;
  word-spacing: 0;
  white-space: nowrap;
  padding-right: 4px;
}
.mini-overview-shield { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #10130d; background: linear-gradient(145deg, #ffd789, #f4ad3e); font-size: 22px; font-weight: 900; }

.mini-overview-stats {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  background: rgba(255,255,255,.06);
}

.mini-overview-stats > div {
  min-width: 0;
  padding: 11px 10px;
  display: grid;
  gap: 3px;
  background: rgba(6,9,7,.88);
}

.mini-overview-stats small { color: var(--muted-2); font-size: 8px; text-transform: uppercase; letter-spacing: .06em; }
.mini-overview-stats strong { font-size: 13px; white-space: nowrap; }
.mini-overview-action { width: 100%; margin-top: 12px; justify-content: space-between; min-height: 46px; }
.mini-overview-empty-note { margin-top: 15px; color: var(--muted); border-top: 1px solid rgba(255,255,255,.08); padding-top: 13px; font-size: 12px; }

.home-setup-card {
  padding: 18px;
  border-color: rgba(238,225,194,.18);
}

.home-setup-head { align-items: center; }
.mini-connect-visual { transform: scale(.92); transform-origin: left center; }
.home-setup-title { font-size: 21px; letter-spacing: -.025em; }
.home-setup-sub { font-size: 12px; line-height: 1.48; }
.home-setup-panel { border-top-color: rgba(255,255,255,.08); gap: 18px; }

.home-inline-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e7e3d9;
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
}

.home-inline-label b {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #181106;
  background: var(--accent);
  font-size: 10px;
}

.home-select-trigger {
  min-height: 54px;
  border-radius: 14px;
  border-color: rgba(238,225,194,.16);
  background: rgba(255,255,255,.025);
}

.mini-tier-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 9px;
}

.mini-tier-card {
  appearance: none;
  min-width: 0;
  border: 1px solid rgba(238,225,194,.15);
  border-radius: 16px;
  background: rgba(255,255,255,.022);
  color: var(--text);
  padding: 13px;
  display: grid;
  gap: 7px;
  text-align: left;
  cursor: pointer;
}

.mini-tier-card.is-selected {
  border-color: rgba(247,184,78,.68);
  box-shadow: inset 0 0 0 1px rgba(247,184,78,.12), 0 10px 28px rgba(0,0,0,.22);
  background: linear-gradient(145deg, rgba(247,184,78,.13), rgba(255,255,255,.02));
}

.mini-tier-card.is-premium.is-selected {
  background: radial-gradient(180px 110px at 100% 0%, rgba(247,184,78,.24), transparent 72%), rgba(247,184,78,.075);
}

.mini-tier-card-top { display: flex; gap: 6px; justify-content: space-between; align-items: center; }
.mini-tier-card-top strong { font-size: 15px; }
.mini-tier-recommend { padding: 3px 5px; border-radius: 999px; background: var(--accent); color: #1a1207; font-size: 7px; font-weight: 900; text-transform: uppercase; }
.mini-tier-flags { display: inline-flex; align-items: center; gap: 6px; font-size: 18px; letter-spacing: 0; }
.mini-tier-card > small { color: var(--muted); font-size: 10px; line-height: 1.35; min-height: 27px; }
.mini-tier-benefits { display: grid; gap: 3px; }
.mini-tier-benefits i { color: #d4d3ca; font-style: normal; font-size: 9px; }

.mini-period-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 7px;
}

.mini-period-card {
  appearance: none;
  min-width: 0;
  border: 1px solid rgba(238,225,194,.14);
  border-radius: 13px;
  background: rgba(255,255,255,.02);
  color: var(--text);
  padding: 11px 7px;
  display: grid;
  gap: 4px;
  text-align: center;
  cursor: pointer;
}

.mini-period-card.is-active {
  border-color: rgba(247,184,78,.68);
  background: rgba(247,184,78,.12);
  box-shadow: inset 0 0 0 1px rgba(247,184,78,.1);
}

.mini-period-card.is-trial { grid-column: 1 / -1; text-align: left; grid-template-columns: 1fr auto; align-items: center; }
.mini-period-card span { color: var(--muted); font-size: 10px; }
.mini-period-card strong { font-size: 13px; white-space: nowrap; }
.mini-period-card small { color: var(--accent); font-size: 8px; min-height: 20px; line-height: 1.2; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; }

.home-price-summary { border-radius: 14px; background: rgba(255,255,255,.025); border-color: rgba(238,225,194,.12); }
.mini-summary-tier { color: #d9ddd7; font-weight: 800; }
.mini-summary-tier.is-premium { color: var(--accent); }
.home-payment-item { border-radius: 14px; background: rgba(255,255,255,.025); }
.home-payment-item.is-selected { border-color: rgba(247,184,78,.62); background: rgba(247,184,78,.09); }
.home-setup-pay-btn { width: 100%; min-height: 50px; }

.mini-device-card { padding: 16px; display: grid; gap: 14px; }
.mini-device-card.is-premium { border-color: rgba(247,184,78,.26); }
.mini-device-head { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; gap: 10px; align-items: center; }
.mini-device-platform-icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #f7c56c; background: rgba(247,184,78,.1); border: 1px solid rgba(247,184,78,.2); }
.mini-device-platform-icon svg { width: 23px; height: 23px; }
.mini-device-identity { min-width: 0; display: grid; gap: 2px; }
.mini-device-identity strong { overflow: hidden; text-overflow: ellipsis; font-size: 15px; }
.mini-device-identity small { color: var(--muted); font-size: 10px; }
.mini-device-status { padding: 5px 7px; border-radius: 999px; font-size: 9px; font-weight: 800; white-space: nowrap; }
.mini-device-status.is-active { color: var(--success); background: rgba(85,223,140,.1); }
.mini-device-status.is-expired { color: #ff7c8f; background: rgba(255,124,143,.1); }
.mini-device-status.is-pending { color: var(--accent); background: rgba(247,184,78,.1); }

.mini-device-subscription { display: flex; justify-content: space-between; gap: 12px; align-items: center; border-top: 1px solid rgba(255,255,255,.07); padding-top: 13px; }
.mini-device-tier-copy { display: grid; gap: 5px; }
.mini-device-tier { font-size: 17px; font-weight: 900; }
.mini-device-tier.is-premium { color: var(--accent); }
.mini-device-flags { display: inline-flex; align-items: center; gap: 6px; font-size: 17px; letter-spacing: 0; }
.mini-device-expiry { display: grid; gap: 1px; text-align: right; }
.mini-device-expiry small, .mini-device-expiry span { color: var(--muted); font-size: 9px; }
.mini-device-expiry strong { font-size: 13px; }

.mini-device-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border: 1px solid rgba(255,255,255,.07); border-radius: 13px; overflow: hidden; gap: 1px; background: rgba(255,255,255,.06); }
.mini-device-metrics > div { min-width: 0; display: grid; gap: 3px; padding: 9px 8px; background: #0a0e0b; }
.mini-device-metrics small { color: var(--muted-2); font-size: 8px; }
.mini-device-metrics strong { font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mini-country-configs { display: grid; gap: 7px; }
.mini-country-configs-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 2px; }
.mini-country-configs-head > div { display: grid; gap: 2px; }
.mini-country-configs-head strong { font-size: 13px; }
.mini-country-configs-head span { color: var(--muted); font-size: 9px; }
.mini-config-count { border: 1px solid rgba(247,184,78,.24); border-radius: 999px; padding: 4px 7px; color: var(--accent) !important; font-weight: 800; }
.mini-country-config { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 9px; border-radius: 12px; border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.018); }
.mini-country-config.is-ready { border-color: rgba(85,223,140,.14); }
.mini-country-copy { min-width: 0; display: grid; grid-template-columns: 30px minmax(0,1fr); align-items: center; gap: 7px; }
.mini-country-copy > span:last-child { min-width: 0; display: grid; gap: 1px; }
.mini-country-copy strong { font-size: 11px; }
.mini-country-copy small { color: var(--muted-2); font-size: 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mini-country-flag { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,.035); font-size: 17px; }
.mini-country-action { appearance: none; border: 1px solid rgba(247,184,78,.24); border-radius: 9px; padding: 7px 8px; color: var(--accent); background: rgba(247,184,78,.06); font-size: 8px; font-weight: 800; cursor: pointer; }
.mini-country-action:disabled { color: var(--muted-2); border-color: rgba(255,255,255,.07); background: transparent; }
.mini-config-saved-note { margin: 3px 0 0; padding: 10px; border-radius: 11px; color: #d3bfa1; background: rgba(247,184,78,.07); border: 1px solid rgba(247,184,78,.16); font-size: 10px; line-height: 1.5; }
.mini-device-actions { display: grid; grid-template-columns: 1.25fr .75fr; gap: 8px; }
.mini-device-actions .btn { min-height: 46px; padding: 10px; font-size: 11px; }
.mini-device-archive { justify-self: center; appearance: none; border: 0; background: none; color: #a97980; font-size: 10px; text-decoration: underline; cursor: pointer; }

.device-renew-panel { border-radius: 16px; border-color: rgba(247,184,78,.2); background: rgba(5,8,6,.82); }
.device-renew-title { font-size: 17px; }
.mini-renew-tier-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.mini-renew-tier { appearance: none; border: 1px solid rgba(238,225,194,.13); border-radius: 13px; padding: 10px; color: var(--text); background: rgba(255,255,255,.02); display: grid; gap: 3px; text-align: left; cursor: pointer; }
.mini-renew-tier.is-selected { border-color: rgba(247,184,78,.62); background: rgba(247,184,78,.1); }
.mini-renew-tier strong { font-size: 13px; }
.mini-renew-tier span { font-size: 15px; letter-spacing: -4px; }
.mini-renew-tier small { color: var(--muted); font-size: 8px; }
.mini-tier-switch-warning { margin: 8px 0 0; color: #d8bb8d; font-size: 9px; line-height: 1.45; }
.mini-renew-period-grid { margin-top: 4px; }

.mini-device-empty { text-align: center; padding: 28px 18px; }
.mini-device-empty-icon { width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 16px; display: grid; place-items: center; background: rgba(247,184,78,.1); color: var(--accent); font-size: 28px; }
.mini-device-empty h2 { margin: 0 0 7px; font-size: 20px; }
.mini-device-empty p { margin: 0 auto 16px; max-width: 330px; color: var(--muted); font-size: 12px; line-height: 1.5; }

.mini-plan-group { padding: 16px; border: 1px solid rgba(238,225,194,.14); border-radius: 18px; background: rgba(255,255,255,.018); display: grid; gap: 12px; }
.mini-plan-group.is-premium { border-color: rgba(247,184,78,.27); background: radial-gradient(260px 170px at 100% 0%, rgba(247,184,78,.14), transparent 70%), rgba(255,255,255,.018); }
.mini-plan-group-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.mini-plan-group-head > div:first-child { display: grid; gap: 2px; }
.mini-plan-group-head span { color: var(--accent); font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.mini-plan-group-head h2 { margin: 0; font-size: 22px; }
.mini-plan-group-head p { margin: 0; color: var(--muted); font-size: 10px; }
.mini-plan-group-flags { display: inline-flex; align-items: center; gap: 6px; font-size: 20px; letter-spacing: 0; }
.mini-plan-benefits { display: flex; flex-wrap: wrap; gap: 5px; }
.mini-plan-benefits span { padding: 5px 7px; border-radius: 999px; color: #d8d8d0; background: rgba(255,255,255,.035); font-size: 8px; }
.mini-plan-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
.mini-plan-choice { appearance: none; min-width: 0; border: 1px solid rgba(238,225,194,.12); border-radius: 13px; padding: 10px 7px; color: var(--text); background: rgba(0,0,0,.13); display: grid; gap: 4px; text-align: left; cursor: pointer; }
.mini-plan-choice.is-featured { border-color: rgba(247,184,78,.48); background: rgba(247,184,78,.08); }
.mini-plan-choice-term { color: var(--muted); font-size: 9px; }
.mini-plan-choice strong { font-size: 13px; }
.mini-plan-choice small { color: var(--accent); font-size: 7px; line-height: 1.25; min-height: 18px; }
.mini-plan-choice i { font-style: normal; font-size: 8px; font-weight: 800; }
.mini-trial-choice { appearance: none; width: 100%; border: 1px solid rgba(85,223,140,.22); border-radius: 14px; padding: 13px; background: rgba(85,223,140,.06); color: var(--text); display: flex; justify-content: space-between; gap: 12px; align-items: center; text-align: left; cursor: pointer; }
.mini-trial-choice > span { display: grid; gap: 3px; }
.mini-trial-choice strong { font-size: 13px; }
.mini-trial-choice small { color: var(--muted); font-size: 9px; }
.mini-trial-choice b { color: var(--success); font-size: 10px; white-space: nowrap; }

.profile-card, .referral-card, .mini-payments-card { border-radius: 18px; }
.mini-section-head-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.mini-icon-action { appearance: none; width: 35px; height: 35px; border-radius: 11px; border: 1px solid rgba(247,184,78,.2); color: var(--accent); background: rgba(247,184,78,.05); font-size: 18px; cursor: pointer; }
.payment-list { display: grid; gap: 8px; }
.payment-card { border-radius: 13px; background: rgba(255,255,255,.018); border-color: rgba(255,255,255,.08); padding: 11px; }
.payment-title { font-size: 11px; }
.payment-meta { font-size: 8px; }
.payment-status { font-size: 8px; }

.app-download-shell { border-radius: 18px; }
.app-platform-btn { border-radius: 13px; }
.app-platform-btn.is-active { border-color: rgba(247,184,78,.58); background: rgba(247,184,78,.1); }

.bottom-nav {
  bottom: calc(7px + env(safe-area-inset-bottom));
  width: min(720px, calc(100vw - 12px));
  border-radius: 19px;
  border-color: rgba(238,225,194,.17);
  background: rgba(10,14,11,.94);
  box-shadow: 0 16px 50px rgba(0,0,0,.52);
  padding: 6px 7px calc(6px + env(safe-area-inset-bottom));
}
.tab-btn { border-radius: 13px; padding: 8px 3px; font-size: 9px; gap: 3px; }
.tab-btn svg { width: 20px; height: 20px; }
.tab-btn.is-active { color: var(--accent); background: rgba(247,184,78,.09); box-shadow: inset 0 0 0 1px rgba(247,184,78,.18); }

@media (max-width: 430px) {
  .page { padding-left: 10px; padding-right: 10px; }
  .mini-account-chip { max-width: 178px; }
  .mini-overview-stats > div { padding: 9px 7px; }
  .mini-overview-stats strong { font-size: 11px; }
  .mini-tier-grid { grid-template-columns: 1fr; }
  .mini-tier-card > small { min-height: 0; }
  .mini-tier-benefits { grid-template-columns: repeat(3,minmax(0,1fr)); display: grid; }
  .mini-device-actions { grid-template-columns: 1fr; }
}

@media (max-width: 350px) {
  .mini-account-copy strong { max-width: 88px; }
  .mini-period-grid, .mini-plan-cards { grid-template-columns: 1fr; }
  .mini-period-card { grid-template-columns: 1fr auto; text-align: left; align-items: center; }
  .mini-period-card small { grid-column: 1 / -1; min-height: 0; }
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(900px 460px at 95% -5%, rgba(244, 179, 95, 0.16), transparent 62%),
    radial-gradient(820px 520px at 5% 0%, rgba(109, 226, 181, 0.11), transparent 60%),
    linear-gradient(180deg, #080b12 0%, #101826 100%);
  color: var(--text);
}

.glow {
  position: fixed;
  inset: -18% -12% auto -12%;
  height: 62vh;
  background: radial-gradient(closest-side, rgba(244, 179, 95, 0.2), transparent 72%);
  filter: blur(42px);
  pointer-events: none;
  z-index: 0;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

.page {
  position: relative;
  z-index: 1;
  width: min(1020px, 100%);
  margin: 0 auto;
  padding: calc(38px + env(safe-area-inset-top)) 18px calc(124px + env(safe-area-inset-bottom));
  display: grid;
  gap: 16px;
}

.hidden {
  display: none !important;
}

.app-head {
  position: relative;
  display: grid;
  gap: 8px;
  margin-bottom: 6px;
  padding-right: 56px;
  animation: rise 0.55s ease both;
}

.head-support-btn {
  position: absolute;
  right: 0;
  top: 2px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.head-support-btn svg {
  width: 20px;
  height: 20px;
}

.head-support-btn:hover,
.head-support-btn:focus-visible {
  color: var(--text);
  border-color: rgba(244, 179, 95, 0.36);
  background: rgba(244, 179, 95, 0.08);
  outline: none;
}

.eyebrow {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0;
  font-family: "Russo One", sans-serif;
  font-size: clamp(26px, 4.8vw, 40px);
  letter-spacing: 0.01em;
}

h1 span {
  background: linear-gradient(92deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sub,
.meta {
  margin: 0;
  color: var(--muted);
}

.tab-panel {
  display: none;
  gap: 14px;
}

.tab-panel.is-active {
  display: grid;
}

.card {
  background: linear-gradient(145deg, var(--card-strong), var(--card));
  border: 1px solid var(--stroke);
  border-radius: var(--radius-card);
  padding: 18px;
  box-shadow: var(--shadow-card);
}

.section-head {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.section-head h2 {
  margin: 0;
  font-size: 21px;
  letter-spacing: 0.01em;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.actions.compact {
  margin-bottom: 12px;
}

.btn {
  border: none;
  cursor: pointer;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 18px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn.primary {
  color: #171108;
  background: linear-gradient(92deg, var(--accent), #ffc07a);
  box-shadow: 0 12px 28px rgba(244, 179, 95, 0.35);
}

.btn.ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.btn.danger {
  color: #ffd7dd;
  background: rgba(255, 125, 141, 0.1);
  border: 1px solid rgba(255, 125, 141, 0.34);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Legacy V1 button look for Home + Devices tabs. */
.home-setup-card .btn,
#tab-devices .btn {
  padding: 14px 24px;
  border-radius: 14px;
  font-size: 16px;
}

.home-setup-card .btn.primary,
#tab-devices .btn.primary {
  background: linear-gradient(90deg, var(--accent) 0%, #ffb66a 100%);
  color: #1a1208;
  box-shadow: 0 12px 24px rgba(246, 177, 84, 0.3);
}

.home-setup-card .btn.ghost,
#tab-devices .btn.ghost {
  border: 1px solid rgba(246, 177, 84, 0.4);
  color: var(--accent);
  background: transparent;
  box-shadow: none;
}

.home-setup-card .btn:hover,
#tab-devices .btn:hover {
  transform: translateY(-1px);
}

.home-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 10px;
  background:
    radial-gradient(420px 180px at 92% -28%, rgba(244, 179, 95, 0.24), transparent 70%),
    radial-gradient(360px 150px at -10% 0%, rgba(109, 226, 181, 0.16), transparent 70%),
    linear-gradient(145deg, rgba(30, 38, 56, 0.96), rgba(19, 26, 39, 0.96));
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.home-hero-success {
  border-color: rgba(116, 239, 171, 0.4);
  box-shadow: 0 20px 48px rgba(39, 110, 74, 0.22);
}

.home-hero-warning {
  border-color: rgba(255, 202, 117, 0.42);
  box-shadow: 0 20px 48px rgba(131, 91, 39, 0.2);
}

.home-hero-danger {
  border-color: rgba(255, 125, 141, 0.44);
  box-shadow: 0 20px 48px rgba(121, 43, 57, 0.2);
}

.home-hero-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.home-hero-badge {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 700;
}

.home-hero-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  font-size: 11px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.home-hero-title {
  margin: 0;
  font-size: clamp(25px, 4.9vw, 36px);
  line-height: 1.12;
  font-family: "Russo One", sans-serif;
  letter-spacing: 0.01em;
}

.home-hero-text {
  margin: 0;
  color: #c8d0e2;
  font-size: 14px;
}

.home-hero-actions {
  position: relative;
  z-index: 1;
  margin-top: 2px;
}

.home-hero-actions.home-hero-actions-single .btn {
  width: 100%;
}

.home-stack {
  display: grid;
  gap: 14px;
}

.home-setup-card {
  display: grid;
  gap: 12px;
  border-radius: 26px;
  border-color: rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(520px 190px at 100% -30%, rgba(85, 110, 255, 0.12), transparent 72%),
    radial-gradient(420px 180px at -10% 0%, rgba(255, 255, 255, 0.06), transparent 75%),
    linear-gradient(160deg, rgba(20, 22, 30, 0.98), rgba(10, 12, 18, 0.98));
}

.home-setup-card.is-expanded {
  border-color: rgba(255, 255, 255, 0.14);
}

.home-setup-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}

.home-setup-stack {
  display: flex;
  align-items: center;
  min-width: 84px;
}

.home-device-stack-item {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.9);
  margin-left: -7px;
  backdrop-filter: blur(8px);
}

.home-device-stack-item:first-child {
  margin-left: 0;
}

.home-device-stack-item svg {
  width: 17px;
  height: 17px;
}

.home-setup-copy {
  display: grid;
  gap: 4px;
}

.home-setup-title {
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.home-setup-sub {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.35;
}

.home-setup-limit-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.home-setup-main-btn {
  width: 100%;
  min-height: 52px;
  font-size: clamp(18px, 2.9vw, 24px);
  border-radius: 16px;
}

.home-setup-cap-warning {
  margin: 0;
  color: #ffb2bc;
  font-size: 13px;
}

.home-setup-panel {
  display: grid;
  gap: 12px;
  padding-top: 4px;
}

.home-inline-block {
  display: grid;
  gap: 8px;
}

.home-inline-label {
  color: rgba(255, 255, 255, 0.84);
  font-weight: 700;
  font-size: 13px;
}

.home-select-trigger {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 16px;
  padding: 12px 13px;
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.home-select-trigger-icon {
  width: 22px;
  height: 22px;
  color: var(--text);
  display: grid;
  place-items: center;
}

.home-select-trigger-icon svg {
  width: 20px;
  height: 20px;
}

.home-select-trigger-text {
  text-align: left;
  font-weight: 600;
}

.home-select-trigger-caret {
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  transform: translateY(-1px);
}

.home-select-trigger.is-open .home-select-trigger-caret {
  transform: rotate(180deg);
}

.home-select-menu {
  margin-top: 6px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(13, 16, 24, 0.98);
  overflow: hidden;
}

.home-select-item {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text);
  padding: 11px 12px;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}

.home-select-item + .home-select-item {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.home-select-item.is-selected {
  background: rgba(255, 255, 255, 0.05);
}

.home-select-item-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.95);
}

.home-select-item-icon svg {
  width: 18px;
  height: 18px;
}

.home-select-item-title {
  font-weight: 600;
}

.home-select-item-check {
  color: var(--accent-2);
  font-weight: 700;
}

.home-plan-slider-wrap {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.home-plan-slider-meta {
  color: var(--muted);
  font-size: 13px;
}

.home-plan-slider {
  width: 100%;
  margin: 0;
  accent-color: #4ea8ff;
}

.home-plan-slider-labels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.home-plan-chip {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  border-radius: 12px;
  min-height: 38px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.home-plan-chip.is-active {
  color: var(--text);
  border-color: rgba(78, 168, 255, 0.4);
  background: rgba(78, 168, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(78, 168, 255, 0.14);
}

.home-price-summary {
  border-radius: 18px;
  border: 1px solid rgba(109, 226, 181, 0.22);
  background: linear-gradient(160deg, rgba(18, 32, 28, 0.86), rgba(13, 17, 22, 0.92));
  padding: 12px 13px;
  display: grid;
  gap: 7px;
}

.home-price-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
}

.home-price-summary-row strong {
  color: var(--success);
  font-size: 18px;
}

.home-price-summary-row.is-accent {
  color: var(--accent-2);
}

.home-payment-grid {
  display: grid;
  gap: 8px;
}

.home-payment-item {
  width: 100%;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  padding: 11px 12px;
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}

.home-payment-item.is-selected {
  border-color: rgba(244, 179, 95, 0.38);
  background: rgba(244, 179, 95, 0.08);
  box-shadow: inset 0 0 0 1px rgba(244, 179, 95, 0.14);
}

.home-payment-item-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: var(--text);
}

.home-payment-item-icon svg {
  width: 18px;
  height: 18px;
}

.home-payment-item-copy {
  display: grid;
  gap: 2px;
}

.home-payment-item-title {
  font-weight: 700;
  font-size: 14px;
}

.home-payment-item-sub {
  color: var(--muted);
  font-size: 12px;
}

.home-setup-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.home-setup-actions .btn {
  width: 100%;
  padding-left: 14px;
  padding-right: 14px;
}

.home-setup-pay-btn {
  white-space: nowrap;
}

.home-intro-card {
  border-color: rgba(109, 226, 181, 0.3);
  background:
    radial-gradient(380px 110px at 0 -40%, rgba(109, 226, 181, 0.14), transparent 75%),
    linear-gradient(145deg, rgba(21, 33, 39, 0.95), rgba(15, 24, 31, 0.95));
}

.home-block-title {
  margin: 0;
  font-size: 20px;
}

.home-step-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.home-step-list li::marker {
  color: var(--accent);
}

.home-block-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.home-alert {
  border-radius: 16px;
  border: 1px solid rgba(255, 125, 141, 0.35);
  background: linear-gradient(145deg, rgba(56, 26, 34, 0.75), rgba(23, 16, 24, 0.8));
  padding: 14px;
  display: grid;
  gap: 10px;
}

.home-alert-title {
  margin: 0;
  font-size: 17px;
}

.home-alert-meta {
  margin: 0;
  color: #ffb2bc;
  font-size: 13px;
}

.home-warning-card {
  border-color: rgba(255, 202, 117, 0.44);
  background: linear-gradient(145deg, rgba(62, 48, 24, 0.72), rgba(24, 21, 18, 0.82));
}

.home-dashboard-card {
  display: grid;
  gap: 12px;
}

.home-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.home-dashboard-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  padding: 5px 10px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-weight: 700;
}

.home-dashboard-state.is-good {
  color: var(--success);
  border: 1px solid rgba(116, 239, 171, 0.34);
  background: rgba(116, 239, 171, 0.09);
}

.home-dashboard-state.is-alert {
  color: var(--danger);
  border: 1px solid rgba(255, 125, 141, 0.38);
  background: rgba(255, 125, 141, 0.08);
}

.home-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.home-kpi {
  border-radius: 16px;
  padding: 11px 12px;
  background: rgba(8, 12, 18, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: grid;
  gap: 5px;
}

.home-kpi-value {
  font-family: "Russo One", sans-serif;
  font-size: 20px;
}

.home-kpi-label {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.home-summary {
  display: grid;
  gap: 10px;
}

.home-summary-note {
  margin: 0;
  color: var(--muted);
}

.limit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 12, 18, 0.58);
  padding: 10px 12px;
}

.limit-label {
  color: var(--muted);
}

.limit-value {
  font-weight: 700;
  font-size: 14px;
}

.home-metrics-card {
  display: grid;
  gap: 10px;
}

.home-focus-card {
  display: grid;
  gap: 10px;
  border-color: rgba(109, 226, 181, 0.26);
}

.home-device-main {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.stat-grid.narrow {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.stat-chip {
  border-radius: 16px;
  padding: 10px 12px;
  background: rgba(7, 10, 16, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 4px;
}

.stat-value {
  font-family: "Russo One", sans-serif;
  font-size: 20px;
}

.stat-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.app-download-shell {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  background:
    radial-gradient(520px 190px at 100% -30%, rgba(85, 110, 255, 0.12), transparent 72%),
    radial-gradient(420px 180px at -10% 0%, rgba(255, 255, 255, 0.06), transparent 75%),
    linear-gradient(160deg, rgba(20, 22, 30, 0.98), rgba(10, 12, 18, 0.98));
  border-color: rgba(255, 255, 255, 0.1);
}

.app-download-hero {
  display: grid;
  gap: 9px;
  text-align: center;
  padding-top: 4px;
}

.app-download-eyebrow {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(216, 224, 242, 0.68);
}

.app-download-title {
  margin: 0;
  font-family: "Russo One", sans-serif;
  font-size: clamp(30px, 6.2vw, 46px);
  line-height: 1.06;
}

.app-download-title span {
  background: linear-gradient(90deg, var(--accent), #d8ef6e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.app-download-sub {
  margin: 0 auto;
  max-width: 660px;
  color: #a7b2cb;
  font-size: clamp(16px, 2.5vw, 22px);
}

.app-platform-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.app-platform-btn {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  min-height: 48px;
  padding: 10px 12px;
  grid-column: span 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.app-platform-btn:active {
  transform: translateY(1px);
}

.app-platform-btn.is-active {
  border-color: rgba(244, 179, 95, 0.38);
  background: rgba(244, 179, 95, 0.08);
  box-shadow: inset 0 0 0 1px rgba(244, 179, 95, 0.14);
}

.app-platform-icon {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
}

.app-platform-icon svg {
  width: 18px;
  height: 18px;
}

.app-platform-text {
  font-size: 15px;
  font-weight: 700;
}

.app-focus-card {
  display: grid;
  gap: 10px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  padding: 16px;
}

.app-focus-title {
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.app-focus-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.35;
}

.app-focus-btn {
  min-height: 52px;
  font-size: clamp(18px, 2.9vw, 24px);
  border-radius: 16px;
}

.app-focus-actions {
  display: grid;
  gap: 9px;
}

.app-focus-actions .app-focus-btn {
  width: 100%;
}

.app-focus-btn-secondary {
  min-height: 52px;
  font-size: clamp(18px, 2.9vw, 24px);
  border-radius: 16px;
}

/* Legacy V1 look only for action buttons on App tab. */
#tab-app .app-focus-actions .btn {
  padding: 14px 24px;
  border-radius: 14px;
  font-size: 16px;
}

#tab-app .app-focus-actions .btn.primary {
  background: linear-gradient(90deg, var(--accent) 0%, #ffb66a 100%);
  color: #1a1208;
  box-shadow: 0 12px 24px rgba(246, 177, 84, 0.3);
}

#tab-app .app-focus-actions .btn.ghost {
  border: 1px solid rgba(246, 177, 84, 0.4);
  color: var(--accent);
  background: transparent;
  box-shadow: none;
}

#tab-app .app-focus-actions .btn:hover {
  transform: translateY(-1px);
}

/* Legacy V1 button look for Profile tab actions. */
#tab-profile .btn {
  padding: 14px 24px;
  border-radius: 14px;
  font-size: 16px;
}

#tab-profile .btn.primary {
  background: linear-gradient(90deg, var(--accent) 0%, #ffb66a 100%);
  color: #1a1208;
  box-shadow: 0 12px 24px rgba(246, 177, 84, 0.3);
}

#tab-profile .btn.ghost {
  border: 1px solid rgba(246, 177, 84, 0.4);
  color: var(--accent);
  background: transparent;
  box-shadow: none;
}

#tab-profile .btn:hover {
  transform: translateY(-1px);
}

.app-focus-guide {
  margin: 2px 0 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.app-focus-guide summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
  color: #d7e0f4;
}

.app-focus-guide summary::-webkit-details-marker {
  display: none;
}

.app-focus-guide summary::after {
  content: "▾";
  float: right;
  color: #99a6c2;
  transition: transform 0.16s ease;
}

.app-focus-guide[open] summary::after {
  transform: rotate(180deg);
}

.app-focus-guide-body {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 14px 12px;
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: #aeb9d1;
}

.app-focus-guide-body p {
  margin: 0;
}

.app-focus-guide-body ul,
.app-focus-guide-body ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 4px;
}

.app-links {
  display: grid;
  gap: 8px;
}

.app-link-btn {
  width: 100%;
  border: 1px solid rgba(244, 179, 95, 0.22);
  border-radius: 14px;
  background: rgba(244, 179, 95, 0.08);
  color: #f6c677;
  min-height: 48px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.device-list,
.payment-list {
  display: grid;
  gap: 12px;
}

.device-card,
.payment-card {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 12, 18, 0.62);
  padding: 14px;
  display: grid;
  gap: 10px;
}

.device-head,
.payment-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.device-title,
.payment-title {
  font-weight: 700;
  font-size: 16px;
}

.device-meta,
.payment-meta {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.device-actions,
.payment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.device-empty-card {
  border-radius: 26px;
  background:
    radial-gradient(520px 190px at 100% -30%, rgba(85, 110, 255, 0.12), transparent 72%),
    radial-gradient(420px 180px at -10% 0%, rgba(255, 255, 255, 0.06), transparent 75%),
    linear-gradient(160deg, rgba(20, 22, 30, 0.98), rgba(10, 12, 18, 0.98));
  border-color: rgba(255, 255, 255, 0.1);
}

.device-empty-title {
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.device-empty-meta {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.35;
}

.device-empty-card .device-actions {
  margin-top: 4px;
}

.device-empty-card .device-actions .btn {
  width: 100%;
}

.device-simple-card {
  gap: 14px;
  border-radius: 22px;
  border-color: rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(360px 130px at 100% -10%, rgba(78, 168, 255, 0.1), transparent 72%),
    radial-gradient(250px 90px at 0% 0%, rgba(244, 179, 95, 0.08), transparent 74%),
    linear-gradient(160deg, rgba(20, 27, 40, 0.9), rgba(10, 14, 21, 0.9));
}

.device-simple-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.device-simple-main {
  display: grid;
  gap: 0;
}

.device-simple-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.device-hero-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.device-hero-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.device-hero-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.device-hero-icon svg {
  width: 20px;
  height: 20px;
}

.device-hero-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.device-hero-sub {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.device-hero-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.device-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.device-hero-stat {
  display: grid;
  gap: 2px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  padding: 8px 9px;
  min-width: 0;
}

.device-hero-stat-label {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.device-hero-stat-value {
  color: #dfe8ff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.device-simple-title {
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.device-simple-meta {
  color: #acb7ce;
  font-size: 14px;
}

.device-status-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.device-inline-delete-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 125, 141, 0.5);
  background: rgba(255, 125, 141, 0.14);
  color: #ff7d8d;
  display: inline-grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.device-inline-delete-btn svg {
  width: 16px;
  height: 16px;
}

.device-inline-delete-btn:hover,
.device-inline-delete-btn:focus-visible {
  border-color: rgba(255, 125, 141, 0.75);
  background: rgba(255, 125, 141, 0.22);
}

.device-inline-delete-btn:active {
  transform: translateY(1px);
}

.device-inline-delete-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.device-simple-facts {
  display: grid;
  gap: 8px;
}

.device-simple-fact {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.device-simple-fact-label {
  color: var(--muted);
  font-size: 13px;
}

.device-simple-fact-value {
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
}

.device-simple-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.device-renew-toggle-btn {
  grid-column: 1 / -1;
}

.device-compact-card {
  gap: 14px;
  border-radius: 20px;
  background:
    radial-gradient(360px 130px at 100% -10%, rgba(78, 168, 255, 0.1), transparent 72%),
    radial-gradient(250px 90px at 0% 0%, rgba(244, 179, 95, 0.08), transparent 74%),
    linear-gradient(160deg, rgba(20, 27, 40, 0.9), rgba(10, 14, 21, 0.9));
  border-color: rgba(255, 255, 255, 0.12);
}

.device-compact-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.device-compact-main {
  display: grid;
  gap: 6px;
}

.device-compact-title {
  font-size: 18px;
  letter-spacing: 0.01em;
}

.device-compact-meta {
  font-size: 13px;
}

.device-compact-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 8px;
}

.device-more-menu {
  position: relative;
}

.device-more-trigger {
  list-style: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  display: grid;
  place-items: center;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.device-more-trigger::-webkit-details-marker {
  display: none;
}

.device-more-body {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 176px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 16, 24, 0.98);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
  padding: 6px;
  z-index: 3;
}

.device-more-delete {
  width: 100%;
  border: none;
  border-radius: 10px;
  background: rgba(255, 125, 141, 0.1);
  color: #ffd7dd;
  border: 1px solid rgba(255, 125, 141, 0.34);
  padding: 10px 11px;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.device-more-delete:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.device-card-v2 {
  gap: 14px;
  border-radius: 20px;
  background:
    radial-gradient(360px 130px at 100% -10%, rgba(78, 168, 255, 0.08), transparent 72%),
    radial-gradient(250px 90px at 0% 0%, rgba(244, 179, 95, 0.07), transparent 74%),
    rgba(8, 12, 18, 0.68);
}

.device-config-block {
  display: grid;
  gap: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  padding: 12px;
}

.device-simple-card > .device-config-block {
  border: none;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.device-config-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--muted);
  font-weight: 700;
}

.device-config-subtitle {
  margin: 2px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: rgba(220, 229, 246, 0.84);
}

.device-config-note {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.35;
}

.device-migration-note {
  font-size: 14px;
  color: rgba(231, 238, 252, 0.86);
}

.device-migration-note.is-info {
  color: rgba(147, 218, 255, 0.95);
}

.device-migration-note.is-error {
  color: rgba(255, 173, 180, 0.95);
}

.device-traffic-meta {
  margin: -2px 0 0;
  color: rgba(214, 222, 239, 0.82);
  font-size: 13px;
  line-height: 1.35;
}

.device-config-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}

.device-config-inline-actions {
  display: grid;
  grid-template-columns: repeat(2, 40px);
  gap: 6px;
}

.device-config-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.device-config-icon-btn svg {
  width: 18px;
  height: 18px;
}

.device-config-icon-btn:hover,
.device-config-icon-btn:focus-visible {
  border-color: rgba(244, 179, 95, 0.38);
  background: rgba(244, 179, 95, 0.08);
}

.device-config-icon-btn:active {
  transform: translateY(1px);
}

.device-config-icon-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.device-config-link {
  display: block;
  color: #d7e7ff;
  font-size: 13px;
  line-height: 1.25;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(8, 12, 18, 0.58);
  padding: 10px 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  min-width: 0;
}

.device-config-link:hover {
  border-color: rgba(78, 168, 255, 0.28);
}

.device-config-hint {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.device-config-empty {
  color: var(--muted);
  font-size: 13px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  padding: 10px 11px;
  min-width: 0;
}

.device-copy-btn,
.device-download-btn {
  width: 100%;
}

.device-renew-panel {
  display: grid;
  gap: 12px;
  margin-top: 8px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(280px 90px at 100% -24%, rgba(244, 179, 95, 0.08), transparent 72%),
    rgba(7, 11, 19, 0.58);
}

.device-renew-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #e8eefc;
}

.device-renew-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.device-renew-actions .btn {
  width: 100%;
}

.device-install-block {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.device-install-block .home-inline-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.device-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.device-quick-actions .btn {
  width: 100%;
}

.device-alt-download-btn {
  width: 100%;
}

.device-apps-panel {
  display: grid;
  gap: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 12, 18, 0.56);
  padding: 10px;
}

.device-apps-panel-details {
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.device-apps-panel-details > summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 12px;
  font-weight: 700;
  font-size: 13px;
  color: #dbe6ff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.device-apps-panel-details > summary::-webkit-details-marker {
  display: none;
}

.device-apps-panel-details > summary::after {
  content: "⌄";
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
  transition: transform 0.16s ease;
}

.device-apps-panel-details[open] > summary::after {
  transform: rotate(180deg);
}

.device-apps-panel-body {
  display: grid;
  gap: 10px;
  padding: 0 10px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.device-apps-title {
  font-weight: 700;
  font-size: 13px;
}

.device-apps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.device-apps-btn {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  text-align: left;
  padding: 10px;
  display: grid;
  gap: 2px;
  cursor: pointer;
}

.device-apps-btn-title {
  font-weight: 700;
  font-size: 13px;
}

.device-apps-btn-sub {
  color: var(--muted);
  font-size: 11px;
}

.device-apps-guide {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
  padding: 8px 10px;
}

.device-apps-guide summary {
  cursor: pointer;
  font-weight: 600;
  color: #dbe6ff;
  font-size: 13px;
}

.device-apps-guide-body {
  margin-top: 8px;
}

.device-apps-guide-body ol {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
}

.device-apps-note {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
}

.device-guide-block {
  display: grid;
  gap: 8px;
  border-radius: 15px;
  border: 1px solid rgba(109, 226, 181, 0.18);
  background: rgba(109, 226, 181, 0.05);
  padding: 12px;
}

.device-guide-title {
  font-weight: 700;
  font-size: 14px;
}

.device-guide-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 5px;
  color: #d6deef;
  font-size: 13px;
}

.device-guide-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.device-actions .btn {
  flex: 0 0 auto;
}

.device-details-card {
  width: min(560px, calc(100vw - 18px));
  max-height: calc(100dvh - 24px);
  padding: 16px;
  overflow: hidden;
}

.device-details-body {
  display: grid;
  gap: 12px;
  max-height: calc(100dvh - 120px);
  overflow: auto;
  padding-right: 2px;
}

.device-details-overview {
  display: grid;
  gap: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(260px 110px at 90% -20%, rgba(78, 168, 255, 0.16), transparent 68%),
    rgba(8, 12, 18, 0.7);
  padding: 14px;
}

.device-details-name {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.device-details-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.device-details-chip {
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  padding: 5px 10px;
  font-size: 12px;
  color: var(--muted);
}

.device-details-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.device-status,
.payment-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-active {
  color: var(--success);
  border-color: rgba(116, 239, 171, 0.42);
}

.status-pending {
  color: var(--warning);
  border-color: rgba(255, 202, 117, 0.45);
}

.status-revoked,
.status-failed {
  color: var(--danger);
  border-color: rgba(255, 125, 141, 0.45);
}

.status-confirmed {
  color: var(--success);
  border-color: rgba(116, 239, 171, 0.45);
}

.profile-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  background:
    radial-gradient(520px 190px at 100% -30%, rgba(85, 110, 255, 0.12), transparent 72%),
    radial-gradient(420px 180px at -10% 0%, rgba(255, 255, 255, 0.06), transparent 75%),
    linear-gradient(160deg, rgba(20, 22, 30, 0.98), rgba(10, 12, 18, 0.98));
  border-color: rgba(255, 255, 255, 0.1);
}

.profile-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-band {
  display: none;
}

.profile-head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 20px;
  overflow: hidden;
}

.avatar.has-photo { padding: 2px; }

.profile-main {
  display: grid;
  gap: 4px;
}

.profile-name {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
}

.profile-username {
  color: var(--muted);
  font-size: 18px;
}

.profile-list {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 0;
  display: grid;
  gap: 10px;
}

.profile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.profile-row-editable {
  cursor: pointer;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 8px 10px;
  margin: 0 -10px;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.profile-row-editable:hover,
.profile-row-editable:focus-visible {
  border-color: rgba(244, 179, 95, 0.3);
  background: rgba(244, 179, 95, 0.08);
  outline: none;
}

.profile-label {
  color: var(--muted);
  font-size: 16px;
}

.profile-value {
  font-size: 18px;
  font-weight: 600;
  text-align: right;
}

.profile-value-muted {
  color: #ff98a3;
}

.profile-actions .btn {
  width: 100%;
}

.profile-actions {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-action-btn {
  min-height: 52px;
  border-radius: 16px;
  font-size: clamp(16px, 2.3vw, 20px);
  font-weight: 700;
  border-color: rgba(255, 255, 255, 0.15);
  background:
    radial-gradient(220px 80px at 100% -30%, rgba(255, 255, 255, 0.07), transparent 72%),
    linear-gradient(160deg, rgba(14, 18, 28, 0.86), rgba(9, 13, 20, 0.9));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.profile-action-btn:hover,
.profile-action-btn:focus-visible {
  border-color: rgba(244, 179, 95, 0.36);
  background:
    radial-gradient(220px 80px at 100% -30%, rgba(244, 179, 95, 0.14), transparent 72%),
    linear-gradient(160deg, rgba(18, 22, 32, 0.9), rgba(11, 15, 24, 0.92));
  outline: none;
}

.referral-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(520px 190px at 100% -30%, rgba(85, 110, 255, 0.12), transparent 72%),
    radial-gradient(420px 180px at -10% 0%, rgba(255, 255, 255, 0.06), transparent 75%),
    linear-gradient(160deg, rgba(20, 22, 30, 0.98), rgba(10, 12, 18, 0.98));
}

.referral-body {
  display: grid;
  gap: 12px;
}

.referral-info {
  display: grid;
  gap: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(340px 120px at 96% -28%, rgba(244, 179, 95, 0.14), transparent 72%),
    linear-gradient(160deg, rgba(16, 19, 28, 0.9), rgba(10, 12, 18, 0.9));
  padding: 14px;
}

.referral-kicker {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.referral-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.referral-note {
  margin: 0;
  color: #acb7ce;
}

.referral-share-btn {
  width: 100%;
  min-height: 52px;
  font-size: clamp(18px, 2.9vw, 24px);
  border-radius: 16px;
}

.referral-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.referral-stat {
  display: grid;
  gap: 4px;
  text-align: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 11, 19, 0.62);
  padding: 10px 8px;
}

.referral-stat-value {
  font-family: "Russo One", sans-serif;
  font-size: clamp(19px, 3vw, 24px);
  line-height: 1;
}

.referral-stat-label {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-devices-tip {
  position: fixed;
  left: 50%;
  bottom: calc(94px + env(safe-area-inset-bottom));
  transform: translate(-50%, 8px);
  width: min(760px, calc(100vw - 18px));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 14;
}

.home-devices-tip-card {
  grid-column: 1 / 4;
  justify-self: stretch;
  position: relative;
  pointer-events: auto;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(260px 120px at 90% -44%, rgba(244, 179, 95, 0.12), transparent 72%),
    linear-gradient(160deg, rgba(24, 29, 42, 0.96), rgba(15, 19, 29, 0.96));
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  padding: 12px 40px 12px 18px;
}

.home-devices-tip-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(235, 240, 255, 0.75);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  pointer-events: auto;
  touch-action: manipulation;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.home-devices-tip-close svg {
  width: 10px;
  height: 10px;
}

.home-devices-tip-close:hover,
.home-devices-tip-close:focus-visible {
  color: rgba(255, 255, 255, 0.94);
  border-color: rgba(244, 179, 95, 0.42);
  background: rgba(244, 179, 95, 0.1);
  outline: none;
}

.home-devices-tip-text {
  margin: 0;
  color: rgba(235, 240, 255, 0.95);
  font-size: 14px;
  line-height: 1.34;
  letter-spacing: 0.01em;
}

.home-devices-tip-text span {
  color: #f4b35f;
  font-weight: 700;
}

.home-devices-tip-pointer {
  grid-column: 2;
  justify-self: center;
  width: 18px;
  height: 9px;
  color: rgba(244, 179, 95, 0.9);
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
  animation: home-devices-tip-pointer 1.25s ease-in-out infinite;
}

.home-devices-tip-pointer svg {
  width: 100%;
  height: 100%;
  display: block;
}

.tab-panel[data-tab-panel="home"].is-active ~ .home-devices-tip {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: calc(10px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(760px, calc(100vw - 18px));
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(20, 25, 37, 0.96), rgba(12, 16, 24, 0.96));
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  z-index: 15;
}

.tab-btn {
  appearance: none;
  background: transparent;
  border: none;
  color: var(--muted-2);
  border-radius: 16px;
  padding: 9px 4px;
  display: grid;
  justify-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.16s ease, background 0.16s ease;
}

.tab-btn svg {
  width: 22px;
  height: 22px;
}

.tab-btn.is-active {
  color: var(--text);
  background: linear-gradient(160deg, rgba(244, 179, 95, 0.18), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 0 0 1px rgba(244, 179, 95, 0.26);
}

.footer {
  margin-top: 6px;
  display: grid;
  gap: 10px;
}

.footer-link {
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.footer-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.plan-grid {
  display: grid;
  gap: 12px;
}

.plan-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 12, 18, 0.66);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.plan-card.featured {
  border-color: rgba(244, 179, 95, 0.5);
  box-shadow: 0 18px 32px rgba(244, 179, 95, 0.16);
}

.plan-card.trial {
  border-color: rgba(109, 226, 181, 0.46);
  background: linear-gradient(150deg, rgba(16, 32, 30, 0.9), rgba(10, 14, 20, 0.82));
}

.plan-main {
  display: grid;
  gap: 7px;
}

.plan-title-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.plan-title-row h4 {
  margin: 0;
  font-size: 18px;
}

.plan-badge {
  border: 1px solid rgba(244, 179, 95, 0.45);
  border-radius: var(--radius-pill);
  padding: 4px 8px;
  color: var(--accent);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.plan-price {
  font-family: "Russo One", sans-serif;
  font-size: 25px;
}

.plan-per-month,
.plan-sub {
  color: var(--muted);
  font-size: 13px;
}

.plan-sub {
  margin: 0;
}

.plan-savings {
  color: var(--accent-2);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(109, 226, 181, 0.38);
  background: rgba(109, 226, 181, 0.12);
  padding: 4px 8px;
  font-size: 12px;
  width: fit-content;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 24;
  display: grid;
  place-items: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 12, 0.72);
}

.modal-card {
  position: relative;
  width: min(520px, calc(100vw - 22px));
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(145deg, rgba(33, 40, 55, 0.98), rgba(18, 23, 34, 0.98));
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.52);
  padding: 18px;
  z-index: 1;
}

html.email-link-locked,
body.email-link-locked {
  overflow: hidden;
  overscroll-behavior: none;
}

.email-link-modal {
  z-index: 120;
  padding: max(14px, env(safe-area-inset-top)) 12px max(14px, env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.email-link-backdrop {
  background:
    radial-gradient(520px 360px at 85% 12%, rgba(244, 179, 95, 0.14), transparent 72%),
    rgba(4, 7, 12, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.email-link-card {
  isolation: isolate;
  width: min(480px, calc(100vw - 24px));
  max-height: calc(100dvh - max(28px, env(safe-area-inset-top) + env(safe-area-inset-bottom)));
  overflow-x: hidden;
  overflow-y: auto;
  padding: 24px;
  border-radius: 26px;
  border-color: rgba(244, 179, 95, 0.28);
  background:
    radial-gradient(340px 190px at 105% -8%, rgba(244, 179, 95, 0.2), transparent 72%),
    radial-gradient(300px 170px at -15% 10%, rgba(109, 226, 181, 0.09), transparent 72%),
    linear-gradient(155deg, rgba(28, 34, 47, 0.995), rgba(13, 18, 27, 0.995));
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.035) inset;
}

.email-link-card.is-success {
  border-color: rgba(116, 239, 171, 0.52);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.7),
    0 0 38px rgba(66, 190, 126, 0.16);
}

.email-link-aura {
  position: absolute;
  z-index: -1;
  width: 210px;
  height: 210px;
  top: -118px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(244, 179, 95, 0.2);
  filter: blur(48px);
  pointer-events: none;
}

.email-link-close {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(247, 184, 78, 0.26);
  border-radius: 50%;
  color: #d7c8aa;
  background: rgba(9, 12, 9, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.email-link-close svg {
  width: 20px;
  height: 20px;
}

.email-link-close:hover,
.email-link-close:focus-visible {
  border-color: rgba(247, 184, 78, 0.56);
  color: #ffe0a7;
  background: rgba(247, 184, 78, 0.1);
}

.email-link-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: #ffd08e;
  border: 1px solid rgba(244, 179, 95, 0.36);
  background: linear-gradient(145deg, rgba(244, 179, 95, 0.2), rgba(244, 179, 95, 0.07));
  box-shadow: 0 15px 38px rgba(244, 179, 95, 0.16);
}

.email-link-icon svg {
  width: 34px;
  height: 34px;
}

.email-link-badge {
  width: fit-content;
  margin: 0 auto 9px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.email-link-title {
  margin: 0;
  text-align: center;
  font-family: "Russo One", sans-serif;
  font-size: clamp(25px, 7vw, 32px);
  font-weight: 400;
  line-height: 1.12;
}

.email-link-description {
  margin: 10px auto 0;
  max-width: 390px;
  text-align: center;
  color: #b4bdd0;
  font-size: 14px;
  line-height: 1.55;
}

.email-link-progress {
  display: grid;
  grid-template-columns: auto minmax(24px, 1fr) auto;
  align-items: center;
  gap: 9px;
  margin: 20px 0 18px;
  padding: 10px 13px;
  border-radius: 15px;
  background: rgba(5, 9, 15, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.email-link-progress-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 700;
  transition: color 0.18s ease;
}

.email-link-progress-item b {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #a3adc2;
  background: rgba(255, 255, 255, 0.07);
  font-size: 11px;
  transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.email-link-progress-item.is-active {
  color: #f4f7ff;
}

.email-link-progress-item.is-active b,
.email-link-progress-item.is-complete b {
  color: #171108;
  background: linear-gradient(135deg, var(--accent), #ffc77f);
  box-shadow: 0 7px 18px rgba(244, 179, 95, 0.26);
}

.email-link-progress-line {
  height: 1px;
  background: linear-gradient(90deg, rgba(244, 179, 95, 0.35), rgba(255, 255, 255, 0.08));
}

.email-link-step {
  display: grid;
  gap: 11px;
}

.email-link-label {
  color: #dce2ef;
  font-size: 13px;
  font-weight: 700;
}

.email-link-input {
  width: 100%;
  min-width: 0;
  min-height: 54px;
  padding: 14px 15px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  outline: none;
  background: rgba(5, 9, 15, 0.68);
  color: var(--text);
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.email-link-input::placeholder {
  color: #69748b;
}

.email-link-input:focus {
  border-color: rgba(244, 179, 95, 0.7);
  background: rgba(8, 12, 20, 0.92);
  box-shadow: 0 0 0 3px rgba(244, 179, 95, 0.12);
}

.email-link-code {
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.34em;
  font-variant-numeric: tabular-nums;
  padding-left: calc(15px + 0.34em);
}

.email-link-primary {
  width: 100%;
  min-height: 54px;
  border-radius: 15px;
  font-size: 16px;
}

.email-link-sent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(116, 239, 171, 0.18);
  background: rgba(116, 239, 171, 0.07);
  color: #c8d0df;
  font-size: 13px;
  line-height: 1.45;
}

.email-link-sent strong {
  color: #edf2fb;
  overflow-wrap: anywhere;
}

.email-link-sent-icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #0b261b;
  background: var(--success);
  font-size: 13px;
  font-weight: 900;
}

.email-link-secondary-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.email-link-text-btn,
.email-link-support {
  appearance: none;
  border: 0;
  background: transparent;
  color: #d3ad78;
  font: inherit;
  cursor: pointer;
}

.email-link-text-btn {
  padding: 4px 0;
  font-size: 12px;
  font-weight: 700;
}

.email-link-text-btn:disabled {
  color: var(--muted-2);
  cursor: default;
}

.email-link-status {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 13px;
  color: #ffbbc4;
  background: rgba(255, 125, 141, 0.09);
  border: 1px solid rgba(255, 125, 141, 0.22);
  font-size: 13px;
  line-height: 1.45;
}

.email-link-status.is-success {
  color: #b8f7d4;
  background: rgba(116, 239, 171, 0.08);
  border-color: rgba(116, 239, 171, 0.2);
}

.email-link-security {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 14px;
  color: #818ca3;
  font-size: 11px;
  line-height: 1.45;
}

.email-link-security svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: var(--accent-2);
}

.email-link-support {
  display: block;
  margin: 12px auto 0;
  padding: 5px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(211, 173, 120, 0.4);
  text-underline-offset: 3px;
}

.email-link-support:hover,
.email-link-support:focus-visible,
.email-link-text-btn:hover,
.email-link-text-btn:focus-visible {
  color: #ffd08e;
  outline: none;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.modal-head h3 {
  margin: 0;
  font-size: 20px;
}

.modal-close {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 19px;
  cursor: pointer;
}

.modal-close:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.config-refresh-actions {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.config-refresh-actions[data-count="1"] {
  grid-template-columns: minmax(0, 1fr);
}

.config-refresh-actions[data-count="1"] .btn {
  width: 100%;
}

.method-grid {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.method-card {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 12, 18, 0.64);
  color: var(--text);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
}

.device-type-card {
  justify-content: flex-start;
}

.device-icon {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: rgba(244, 179, 95, 0.12);
  border: 1px solid rgba(244, 179, 95, 0.3);
  flex: 0 0 40px;
}

.device-icon svg {
  width: 21px;
  height: 21px;
}

.icon-fill {
  fill: currentColor;
}

.icon-stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.macos-icon {
  width: 24px;
  height: 24px;
}

.method-info {
  display: grid;
  gap: 3px;
}

.method-title {
  font-weight: 600;
}

.method-meta {
  font-size: 13px;
  color: var(--muted);
}

.method-price {
  font-weight: 700;
  color: var(--accent);
}

.loading {
  display: grid;
  place-items: center;
  min-height: 24px;
  margin: 16px 0;
}

.loading.is-hidden {
  display: none;
}

.spinner {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid rgba(244, 179, 95, 0.3);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}

.spinner-done {
  display: none;
  width: 28px;
  height: 28px;
  color: var(--success);
}

.spinner-done svg {
  width: 28px;
  height: 28px;
}

.loading.is-done .spinner {
  display: none;
}

.loading.is-done .spinner-done {
  display: grid;
}

.field-input {
  width: 100%;
  margin-top: 10px;
  padding: 12px 13px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 14, 21, 0.7);
  color: var(--text);
  font-size: 15px;
  font-family: "Manrope", sans-serif;
}

.field-error {
  margin-top: 8px;
  color: var(--danger);
}

.profile-modal-card {
  overflow: hidden;
}

.profile-modal-input {
  display: block;
  inline-size: 100%;
  width: 100%;
  max-inline-size: 100%;
  max-width: 100%;
  min-inline-size: 0;
  min-width: 0;
}

.profile-modal-input[type="date"] {
  inline-size: 100% !important;
  width: 100% !important;
  max-inline-size: 100% !important;
  max-width: 100% !important;
  min-height: 48px;
  padding-right: 12px;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-modal-input[type="date"]::-webkit-date-and-time-value {
  min-width: 0;
  text-align: left;
}

.profile-modal-input[type="date"]::-webkit-datetime-edit,
.profile-modal-input[type="date"]::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
}

.profile-modal-input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 1;
  filter: invert(0.92);
  cursor: pointer;
}

.profile-modal-actions {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-modal-btn {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  font-size: 16px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes home-devices-tip-pointer {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(2px);
  }
}

@media (max-width: 780px) {
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-setup-head {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .home-setup-stack {
    min-width: 0;
  }

  .profile-name {
    font-size: 23px;
  }

  .profile-username {
    font-size: 16px;
  }

  .app-platform-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .app-platform-btn {
    grid-column: span 1;
  }

  .referral-info {
    padding: 12px;
  }

}

@media (max-width: 560px) {
  .email-link-modal {
    place-items: end center;
    padding: max(8px, env(safe-area-inset-top)) 6px max(6px, env(safe-area-inset-bottom));
  }

  .email-link-card {
    width: 100%;
    max-height: calc(100dvh - max(14px, env(safe-area-inset-top) + env(safe-area-inset-bottom)));
    padding: 20px 18px 18px;
    border-radius: 24px;
  }

  .email-link-close {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
  }

  .email-link-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    margin-bottom: 10px;
  }

  .email-link-title {
    font-size: 27px;
  }

  .email-link-description {
    font-size: 13px;
  }

  .email-link-progress {
    margin: 16px 0 14px;
  }

  .email-link-input,
  .email-link-primary {
    min-height: 52px;
  }

  .email-link-secondary-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 5px;
  }

  .email-link-text-btn {
    min-height: 34px;
  }

  .page {
    padding-left: 12px;
    padding-right: 12px;
  }

  .section-head h2 {
    font-size: 19px;
  }

  .actions {
    flex-direction: column;
  }

  .actions .btn {
    width: 100%;
  }

  .app-download-shell {
    padding: 14px;
  }

  .app-download-title {
    font-size: clamp(26px, 8vw, 36px);
  }

  .app-download-sub {
    font-size: 18px;
  }

  .app-platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-platform-btn {
    min-height: 44px;
    padding: 8px 10px;
  }

  .app-platform-text {
    font-size: 14px;
  }

  .app-focus-card {
    padding: 14px;
  }

  .app-focus-title {
    font-size: 21px;
  }

  .app-focus-subtitle {
    font-size: 16px;
  }

  .home-setup-main-btn,
  .app-focus-btn,
  .app-focus-btn-secondary {
    min-height: 50px;
    font-size: 21px;
  }

  .app-link-btn {
    min-height: 44px;
    font-size: 14px;
    padding: 0 12px;
  }

  .device-quick-actions {
    grid-template-columns: 1fr;
  }

  .device-simple-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .device-status-inline {
    white-space: normal;
  }

  .device-hero-head {
    flex-direction: column;
    align-items: stretch;
  }

  .device-hero-controls {
    justify-content: flex-start;
  }

  .device-hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .device-hero-stat:last-child {
    grid-column: 1 / -1;
  }

  .device-inline-delete-btn {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .device-simple-actions {
    grid-template-columns: 1fr;
  }

  .device-config-inline-actions {
    grid-template-columns: repeat(2, 36px);
  }

  .device-config-icon-btn {
    width: 36px;
    height: 36px;
  }

  .device-apps-grid {
    grid-template-columns: 1fr;
  }

  .device-actions {
    flex-direction: column;
  }

  .device-actions .btn {
    width: 100%;
  }

  .device-compact-actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: stretch;
  }

  .device-more-trigger {
    width: 44px;
    height: 44px;
  }

  .device-details-card {
    width: calc(100vw - 12px);
    max-height: calc(100dvh - 10px);
    padding: 14px;
  }

  .device-details-body {
    max-height: calc(100dvh - 108px);
  }

  .device-details-actions {
    grid-template-columns: 1fr;
  }

  .home-setup-actions {
    grid-template-columns: 1fr;
  }

  .home-setup-actions .btn {
    width: 100%;
  }

  .home-plan-slider-labels {
    gap: 6px;
  }

  .home-plan-chip {
    min-height: 36px;
    font-size: 13px;
  }

  .home-hero-title {
    font-size: clamp(23px, 9vw, 30px);
  }

  .home-hero-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-kpi-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .home-block-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-price-summary-row {
    font-size: 13px;
  }

  .home-price-summary-row strong {
    font-size: 16px;
  }

  .profile-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .profile-value {
    text-align: left;
    font-size: 17px;
  }

  .profile-actions {
    grid-template-columns: 1fr;
  }

  .profile-action-btn {
    min-height: 48px;
    font-size: 18px;
  }

  .profile-modal-actions {
    grid-template-columns: 1fr;
  }

  .referral-title {
    font-size: 18px;
  }

  .referral-stats {
    gap: 6px;
  }

  .referral-stat {
    padding: 9px 6px;
  }

  .referral-stat-value {
    font-size: 18px;
  }

  .referral-stat-label {
    letter-spacing: 0.06em;
    font-size: 9px;
  }

  .plan-card {
    grid-template-columns: 1fr;
  }

  .plan-card .btn {
    width: 100%;
  }

  .bottom-nav {
    width: calc(100vw - 12px);
    border-radius: 18px;
  }

  .home-devices-tip {
    width: calc(100vw - 12px);
    bottom: calc(90px + env(safe-area-inset-bottom));
  }

  .home-devices-tip-card {
    border-radius: 17px;
    padding: 10px 36px 10px 13px;
  }

  .home-devices-tip-text {
    font-size: 12px;
    line-height: 1.3;
  }

  .home-devices-tip-pointer {
    width: 16px;
    height: 8px;
  }

  .home-devices-tip-close {
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
  }
}

/* Final cascade for the unified JobVPN web/mini visual system. */
body {
  background:
    radial-gradient(640px 420px at 103% 2%, rgba(247, 184, 78, 0.16), transparent 64%),
    radial-gradient(520px 420px at -12% 44%, rgba(36, 111, 70, 0.1), transparent 68%),
    linear-gradient(180deg, #050805 0%, #070b08 100%);
}

.glow {
  inset: -24% -38% auto 34%;
  background: radial-gradient(closest-side, rgba(247, 184, 78, 0.16), transparent 75%);
  filter: blur(58px);
}

.page {
  width: min(760px, 100%);
  padding: calc(18px + env(safe-area-inset-top)) 14px calc(112px + env(safe-area-inset-bottom));
  gap: 14px;
}

.app-head {
  gap: 7px;
  padding-right: 0;
  margin-bottom: 4px;
}

.app-head h1 {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: clamp(30px, 9vw, 42px);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.app-head .sub { max-width: 560px; line-height: 1.55; font-size: 13px; }
.head-support-btn { position: static; flex: 0 0 auto; width: 42px; height: 42px; border-radius: 14px; color: var(--accent); border-color: rgba(247,184,78,.25); background: rgba(247,184,78,.06); }

.card {
  border-radius: var(--radius-card);
  background:
    radial-gradient(420px 190px at 105% -14%, rgba(247,184,78,.08), transparent 72%),
    linear-gradient(145deg, rgba(18,22,18,.98), rgba(10,14,11,.98));
  border-color: var(--stroke);
  box-shadow: var(--shadow-card);
}

.home-setup-card { padding: 18px; border-color: rgba(238,225,194,.18); }
.home-setup-card.is-expanded { border-color: rgba(247,184,78,.3); }
.home-setup-head { grid-template-columns: 1fr; align-items: center; }
.home-setup-panel { border-top-color: rgba(255,255,255,.08); gap: 18px; }
.home-inline-label { display: flex; align-items: center; gap: 8px; color: #e7e3d9; font-size: 12px; text-transform: none; letter-spacing: 0; }
.home-select-trigger { min-height: 54px; border-radius: 14px; border-color: rgba(238,225,194,.16); background: rgba(255,255,255,.025); }
.home-price-summary { border-radius: 14px; background: rgba(255,255,255,.025); border-color: rgba(238,225,194,.12); }
.home-payment-item { border-radius: 14px; background: rgba(255,255,255,.025); }
.home-payment-item.is-selected { border-color: rgba(247,184,78,.62); background: rgba(247,184,78,.09); }
.home-setup-pay-btn { width: 100%; min-height: 50px; }
.device-renew-panel { border-radius: 16px; border-color: rgba(247,184,78,.2); background: rgba(5,8,6,.82); }
.payment-card { border-radius: 13px; background: rgba(255,255,255,.018); border-color: rgba(255,255,255,.08); padding: 11px; }
.app-download-shell { border-radius: 18px; }
.app-platform-btn { border-radius: 13px; }
.app-platform-btn.is-active { border-color: rgba(247,184,78,.58); background: rgba(247,184,78,.1); }

.bottom-nav {
  bottom: calc(7px + env(safe-area-inset-bottom));
  width: min(720px, calc(100vw - 12px));
  border-radius: 19px;
  border-color: rgba(238,225,194,.17);
  background: rgba(10,14,11,.94);
  box-shadow: 0 16px 50px rgba(0,0,0,.52);
  padding: 6px 7px calc(6px + env(safe-area-inset-bottom));
}

.tab-btn { border-radius: 13px; padding: 8px 3px; font-size: 9px; gap: 3px; }
.tab-btn svg { width: 20px; height: 20px; }
.tab-btn.is-active { color: var(--accent); background: rgba(247,184,78,.09); box-shadow: inset 0 0 0 1px rgba(247,184,78,.18); }

@media (max-width: 560px) {
  .page { padding: calc(12px + env(safe-area-inset-top)) 10px calc(106px + env(safe-area-inset-bottom)); gap: 12px; }
  .app-head { padding-right: 0; }
  .mini-brand-row { gap: 8px; }
  .mini-brand-name { font-size: 18px; }
  .mini-account-chip { max-width: 154px; }
  .mini-account-avatar { width: 32px; height: 32px; }
  .mini-head-actions { gap: 6px; }
  .head-support-btn { width: 40px; height: 40px; }
  .card { padding: 15px; border-radius: 18px; }
  .home-setup-card { padding: 15px; }
  .bottom-nav { width: calc(100vw - 12px); border-radius: 18px; }
}

/* Progressive connection flow. Each decision reveals only the next step. */
@keyframes homeStepReveal {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.home-step-reveal {
  animation: homeStepReveal .28s ease both;
}

.home-setup-panel {
  gap: 22px;
}

.home-inline-label {
  gap: 10px;
  font-size: 14px;
  font-weight: 800;
}

.home-inline-label b {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  font-size: 12px;
  box-shadow: 0 8px 22px rgba(247,184,78,.16);
}

.home-select-trigger {
  min-height: 64px;
  padding: 13px 15px;
  grid-template-columns: 30px minmax(0,1fr) auto;
  gap: 12px;
  border-radius: 17px;
}

.home-select-trigger-icon {
  width: 30px;
  height: 30px;
}

.home-select-trigger-icon svg {
  width: 24px;
  height: 24px;
}

.home-select-trigger-icon.is-placeholder {
  color: var(--accent);
}

.home-select-trigger-text {
  font-size: 15px;
  font-weight: 750;
}

.mini-tier-grid {
  gap: 12px;
}

.mini-tier-card {
  position: relative;
  overflow: hidden;
  min-height: 224px;
  padding: 18px;
  gap: 10px;
  border-radius: 19px;
  border-color: rgba(238,225,194,.18);
  background:
    radial-gradient(220px 140px at 105% -10%, rgba(255,255,255,.045), transparent 72%),
    linear-gradient(145deg, rgba(18,23,19,.98), rgba(10,14,11,.98));
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.mini-tier-card:active {
  transform: scale(.985);
}

.mini-tier-card.is-premium {
  border-color: rgba(247,184,78,.34);
  background:
    radial-gradient(260px 170px at 105% -8%, rgba(247,184,78,.18), transparent 72%),
    linear-gradient(145deg, #17170f, #0c100c);
}

.mini-tier-card.is-selected {
  border-color: rgba(255,202,105,.82);
  box-shadow: inset 0 0 0 1px rgba(255,202,105,.16), 0 16px 34px rgba(0,0,0,.28);
}

.mini-tier-eyebrow {
  color: #caa365;
  font-size: 9px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .13em;
}

.mini-tier-card-top {
  gap: 10px;
}

.mini-tier-card-top strong {
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -.025em;
}

.mini-tier-recommend {
  padding: 5px 8px;
  font-size: 8px;
  letter-spacing: .04em;
}

.mini-tier-flags {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0;
}

.mini-flag-item {
  display: inline-block;
  flex: 0 0 auto;
  line-height: 1;
}

.mini-tier-description {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.mini-tier-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mini-tier-benefits i {
  padding: 6px 8px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  color: #e7e3d9;
  background: rgba(255,255,255,.035);
  font-size: 10px;
  line-height: 1.2;
}

.mini-tier-card.is-premium .mini-tier-benefits i {
  border-color: rgba(247,184,78,.14);
  background: rgba(247,184,78,.055);
}

.mini-tier-choice {
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #f4c66e;
  font-size: 12px;
  font-weight: 850;
}

.mini-tier-choice b {
  font-size: 17px;
}

.mini-period-grid {
  gap: 9px;
}

.mini-period-card {
  position: relative;
  min-height: 126px;
  padding: 17px 9px 14px;
  gap: 7px;
  align-content: center;
  border-radius: 16px;
  border-color: rgba(238,225,194,.18);
  background: linear-gradient(150deg, rgba(19,23,19,.98), rgba(9,13,10,.98));
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.mini-period-card:active {
  transform: scale(.975);
}

.mini-period-card.is-active {
  border-color: rgba(255,199,91,.8);
  background:
    radial-gradient(150px 100px at 100% 0%, rgba(247,184,78,.2), transparent 72%),
    linear-gradient(145deg, rgba(35,31,17,.98), rgba(15,17,12,.98));
  box-shadow: inset 0 0 0 1px rgba(247,184,78,.15), 0 14px 28px rgba(0,0,0,.24);
}

.mini-period-card span {
  color: #d8d4c9;
  font-size: 11px;
  font-weight: 750;
}

.mini-period-card strong {
  font-size: 21px;
  line-height: 1.05;
  letter-spacing: -.02em;
}

.mini-period-card small {
  min-height: 24px;
  color: #d8aa5e;
  font-size: 9px;
  line-height: 1.35;
}

.mini-period-popular {
  position: absolute;
  top: 7px;
  right: 7px;
  padding: 3px 5px;
  border-radius: 999px;
  color: #1b1307;
  background: #f7bf5c;
  font-size: 6px;
  font-style: normal;
  font-weight: 950;
  letter-spacing: .04em;
}

.mini-period-card.is-trial {
  min-height: 88px;
  padding: 15px;
}

.home-price-summary {
  padding: 16px;
  gap: 10px;
  border-radius: 17px;
  border-color: rgba(247,184,78,.18);
  background: linear-gradient(150deg, rgba(19,24,19,.96), rgba(9,13,10,.98));
}

.home-price-summary-row {
  font-size: 14px;
}

.home-price-summary-row strong {
  font-size: 21px;
}

.home-payment-item {
  min-height: 66px;
  padding: 13px 14px;
  grid-template-columns: 28px minmax(0,1fr);
  gap: 12px;
  border-radius: 17px;
}

.home-payment-item-icon,
.home-payment-item-icon svg {
  width: 24px;
  height: 24px;
}

.home-payment-item-title {
  font-size: 15px;
}

.home-payment-item-sub {
  font-size: 12px;
}

.home-setup-pay-btn {
  min-height: 56px;
  border-radius: 17px;
  font-size: 16px;
}

@media (max-width: 560px) {
  .mini-tier-grid { grid-template-columns: 1fr; }
  .mini-tier-card { min-height: 0; padding: 17px; }
  .mini-tier-benefits { display: flex; grid-template-columns: none; }
  .mini-period-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 350px) {
  .mini-period-grid { grid-template-columns: 1fr; }
  .mini-period-card { min-height: 92px; grid-template-columns: 1fr auto; text-align: left; }
  .mini-period-card strong { text-align: right; }
  .mini-period-card small { grid-column: 1 / -1; min-height: 0; }
}

/* Platform picker mirrors the web cabinet instead of the legacy blue menu. */
.platform-brand-icon {
  fill: currentColor;
  stroke: none;
}

.platform-tux {
  display: block;
  font-size: 27px;
  line-height: 1;
  filter: saturate(.9);
}

.home-select-menu {
  max-height: min(430px, 58vh);
  margin-top: 8px;
  padding: 7px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(247,184,78,.26);
  border-radius: 18px;
  background:
    radial-gradient(260px 160px at 100% 0%, rgba(247,184,78,.11), transparent 72%),
    linear-gradient(155deg, rgba(12,16,12,.995), #080b08);
  box-shadow: 0 20px 46px rgba(0,0,0,.5), inset 0 1px rgba(255,255,255,.035);
  animation: homeStepReveal .2s ease both;
  scrollbar-width: thin;
  scrollbar-color: rgba(247,184,78,.35) transparent;
}

.home-select-item {
  min-height: 68px;
  padding: 9px 10px;
  grid-template-columns: 48px minmax(0,1fr) 26px;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.home-select-item + .home-select-item {
  margin-top: 4px;
  border-top: 1px solid transparent;
}

.home-select-item:active {
  transform: scale(.99);
}

.home-select-item:hover,
.home-select-item:focus-visible {
  border-color: rgba(255,248,234,.12);
  background: rgba(255,248,234,.04);
  outline: none;
}

.home-select-item.is-selected {
  border-color: rgba(247,184,78,.42);
  background: linear-gradient(145deg, rgba(247,184,78,.11), rgba(255,255,255,.025));
}

.home-select-item-icon {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,248,234,.1);
  border-radius: 13px;
  color: #ece8de;
  background: rgba(255,248,234,.045);
  box-shadow: inset 0 1px rgba(255,255,255,.035);
}

.home-select-item-icon svg {
  width: 25px;
  height: 25px;
}

.home-select-item.platform-android .home-select-item-icon {
  color: #70d982;
  border-color: rgba(112,217,130,.2);
  background: rgba(112,217,130,.08);
}

.home-select-item.platform-android .home-select-item-icon svg {
  width: 29px;
}

.home-select-item.platform-windows .home-select-item-icon {
  color: #64aaf6;
  border-color: rgba(100,170,246,.2);
  background: rgba(100,170,246,.08);
}

.home-select-item.platform-linux .home-select-item-icon {
  color: #f0c261;
  border-color: rgba(240,194,97,.2);
  background: rgba(240,194,97,.08);
}

.home-select-item.platform-other .home-select-item-icon {
  color: #b983f3;
  border-color: rgba(185,131,243,.2);
  background: rgba(185,131,243,.08);
}

.home-select-item-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
  text-align: left;
}

.home-select-item-title {
  color: #f5f0e5;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 800;
}

.home-select-item-copy small {
  overflow: hidden;
  color: #8f938b;
  font-size: 10px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-select-item-check {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: transparent;
  font-size: 12px;
  font-weight: 900;
}

.home-select-item.is-selected .home-select-item-check {
  color: #171005;
  background: linear-gradient(145deg, #ffd887, #f4ae3e);
  box-shadow: 0 6px 18px rgba(247,184,78,.22);
}

@media (max-width: 380px) {
  .home-select-item { grid-template-columns: 44px minmax(0,1fr) 24px; gap: 10px; }
  .home-select-item-icon { width: 44px; height: 44px; }
}

@media (max-width: 560px) {
  .home-select-menu { max-height: min(340px, 34vh); }
}

/* Corporate modal system: dark contrast surfaces, warm gold and clear states. */
.modal {
  padding: max(14px, env(safe-area-inset-top)) 12px max(14px, env(safe-area-inset-bottom));
}

.modal-backdrop {
  background:
    radial-gradient(520px 340px at 84% 8%, rgba(247, 184, 78, .1), transparent 72%),
    rgba(2, 4, 2, .82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.modal-card {
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(247, 184, 78, .27);
  background:
    radial-gradient(330px 180px at 108% -10%, rgba(247, 184, 78, .16), transparent 72%),
    radial-gradient(260px 160px at -14% 4%, rgba(55, 126, 80, .08), transparent 72%),
    linear-gradient(155deg, rgba(22, 26, 21, .995), rgba(10, 13, 10, .995));
  box-shadow:
    0 32px 90px rgba(0, 0, 0, .72),
    0 0 0 1px rgba(255, 255, 255, .035) inset;
  animation: corporateModalIn .2s ease-out both;
}

.modal-card::before {
  content: "";
  position: absolute;
  inset: 0 22px auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 212, 135, .62), transparent);
  pointer-events: none;
}

.modal-head {
  align-items: flex-start;
  margin-bottom: 12px;
}

.modal-head h3 {
  color: #fff9ee;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.modal-card > .meta {
  color: #aaa99f;
  font-size: 13px;
  line-height: 1.55;
}

.modal-close {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(238, 225, 194, .13);
  border-radius: 12px;
  color: #c8c4ba;
  background: rgba(255, 255, 255, .04);
  line-height: 1;
}

.modal-close:hover,
.modal-close:focus-visible {
  color: #fffaf0;
  border-color: rgba(247, 184, 78, .48);
  background: rgba(247, 184, 78, .08);
  outline: none;
}

.modal .btn:focus-visible {
  outline: 2px solid rgba(247, 184, 78, .62);
  outline-offset: 2px;
}

.modal .btn.danger:focus-visible {
  outline-color: rgba(255, 125, 141, .62);
}

.method-card {
  min-height: 64px;
  border-color: rgba(238, 225, 194, .13);
  background: rgba(255, 255, 255, .025);
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.method-card:hover,
.method-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(247, 184, 78, .48);
  background: rgba(247, 184, 78, .07);
  outline: none;
}

.method-title { color: #f8f4ea; font-weight: 750; }
.method-meta { color: #92958d; }
.method-price { color: #f7c76f; }
.device-icon {
  color: #ffc466;
  background: rgba(247, 184, 78, .1);
  border-color: rgba(247, 184, 78, .24);
}

#device-details-modal .device-details-overview {
  border-color: rgba(247, 184, 78, .18);
  background:
    radial-gradient(260px 110px at 90% -20%, rgba(247, 184, 78, .12), transparent 68%),
    rgba(7, 10, 7, .7);
}

#device-details-modal .device-details-chip,
#device-details-modal .device-config-icon-btn,
#device-details-modal .device-apps-btn,
#device-details-modal .device-apps-guide {
  border-color: rgba(238, 225, 194, .12);
  background: rgba(255, 255, 255, .025);
}

#device-details-modal .device-config-block,
#device-details-modal .device-apps-panel {
  border-color: rgba(238, 225, 194, .1);
  background: rgba(5, 8, 5, .6);
}

#device-details-modal .device-config-link {
  color: #eee9dd;
  border-color: rgba(238, 225, 194, .09);
  background: rgba(3, 6, 3, .72);
}

#device-details-modal .device-config-link:hover {
  border-color: rgba(247, 184, 78, .38);
}

#device-details-modal .device-config-subtitle,
#device-details-modal .device-apps-panel-details > summary,
#device-details-modal .device-apps-guide summary {
  color: #ddd8cc;
}

.field-input,
.profile-modal-input {
  border-color: rgba(238, 225, 194, .14);
  background: rgba(5, 8, 5, .72);
}

.field-input:focus,
.profile-modal-input:focus {
  border-color: rgba(247, 184, 78, .68);
  box-shadow: 0 0 0 3px rgba(247, 184, 78, .1);
  outline: none;
}

.modal-status-card {
  width: min(390px, calc(100vw - 22px));
  text-align: center;
  padding: 22px;
}

.modal-status-card .modal-head h3 { flex: 1; padding: 7px 0 0 38px; }
.modal-status-card .modal-head { margin-bottom: 4px; }
.modal-status-card > .meta { max-width: 310px; margin: 8px auto 0; }
.modal-status-card .actions { justify-content: center; }
.modal-status-card .actions .btn { min-width: 150px; }

.modal-status-card .loading {
  min-height: 82px;
  margin: 10px 0 14px;
}

.modal-status-card .spinner {
  width: 52px;
  height: 52px;
  border-width: 4px;
  border-color: rgba(247, 184, 78, .16);
  border-top-color: #f7b84e;
  box-shadow: 0 0 30px rgba(247, 184, 78, .13);
}

.modal-status-card .spinner-done,
.modal-status-card .spinner-done svg {
  width: 54px;
  height: 54px;
}

.modal-status-card .spinner-done {
  place-items: center;
  border: 1px solid rgba(85, 223, 140, .3);
  border-radius: 18px;
  background: rgba(85, 223, 140, .08);
  box-shadow: 0 0 28px rgba(85, 223, 140, .1);
}

.email-link-backdrop {
  background:
    radial-gradient(520px 360px at 85% 12%, rgba(247, 184, 78, .12), transparent 72%),
    rgba(2, 4, 2, .88);
}

.email-link-card {
  border-color: rgba(247, 184, 78, .3);
  background:
    radial-gradient(340px 190px at 105% -8%, rgba(247, 184, 78, .17), transparent 72%),
    radial-gradient(300px 170px at -15% 10%, rgba(55, 126, 80, .08), transparent 72%),
    linear-gradient(155deg, rgba(22, 26, 21, .995), rgba(9, 12, 9, .995));
}

.email-link-description { color: #aaa99f; }
.email-link-progress {
  background: rgba(5, 8, 5, .64);
  border-color: rgba(238, 225, 194, .09);
}
.email-link-progress-item.is-active { color: #f8f4ea; }
.email-link-label { color: #e7e3d9; }
.email-link-input {
  border-color: rgba(238, 225, 194, .14);
  background: rgba(5, 8, 5, .72);
}
.email-link-input::placeholder { color: #6f746c; }
.email-link-input:focus { background: rgba(9, 13, 9, .94); }
.email-link-sent { color: #c8cbc3; }
.email-link-sent strong { color: #f2f4ee; }
.email-link-security { color: #858a82; }

.app-dialog-card {
  width: min(430px, calc(100vw - 22px));
  padding: 22px;
}

.app-dialog-mark {
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(247, 184, 78, .3);
  border-radius: 16px;
  color: #ffc466;
  background: rgba(247, 184, 78, .1);
}

.app-dialog-mark svg { width: 26px; height: 26px; }
.app-dialog-mark path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-dialog-card[data-tone="danger"] {
  border-color: rgba(255, 125, 141, .34);
}

.app-dialog-card[data-tone="danger"] .app-dialog-mark {
  color: #ff9dab;
  border-color: rgba(255, 125, 141, .3);
  background: rgba(255, 125, 141, .09);
}

.app-dialog-head { margin-bottom: 10px; }
.app-dialog-kicker {
  display: block;
  margin-bottom: 5px;
  color: #f7b84e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
}

.app-dialog-message {
  margin: 0;
  color: #aaa99f;
  font-size: 14px;
  line-height: 1.58;
  white-space: pre-line;
}

.app-dialog-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.app-dialog-actions .app-dialog-button:only-child,
.app-dialog-actions .app-dialog-button.hidden + .app-dialog-button {
  grid-column: 1 / -1;
}

.app-dialog-button { width: 100%; min-height: 48px; }

@keyframes corporateModalIn {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 560px) {
  .modal:not(.email-link-modal) { place-items: end center; padding: 8px 6px max(7px, env(safe-area-inset-bottom)); }
  .modal:not(.email-link-modal) .modal-card {
    width: 100%;
    max-height: calc(100dvh - max(18px, env(safe-area-inset-top) + env(safe-area-inset-bottom)));
    overflow-y: auto;
    border-radius: 24px;
    padding: 20px 18px 18px;
  }
  .modal-status-card .modal-head h3 { padding-left: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .modal-card { animation: none; }
}

/* Blend the Telegram header into the web content before returning to JobVPN green. */
html { background-color: #050805; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: #231D0F;
  background:
    radial-gradient(640px 420px at 103% 340px, rgba(247, 184, 78, .14), transparent 64%),
    radial-gradient(520px 420px at -12% 520px, rgba(36, 111, 70, .1), transparent 68%),
    linear-gradient(
      180deg,
      #231D0F 0,
      #231D0F 104px,
      #191608 230px,
      #0b0e09 430px,
      #050805 680px,
      #050805 100%
    );
  background-attachment: fixed;
}

.glow {
  inset: 118px -38% auto 34%;
  height: 56vh;
}

.noise {
  -webkit-mask-image: linear-gradient(180deg, transparent 0, transparent 96px, #000 250px);
  mask-image: linear-gradient(180deg, transparent 0, transparent 96px, #000 250px);
}

/* Unified mobile typography and readable device/application cards. */
body {
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.app-head .sub { font-size: 14px; }
.mini-account-copy strong { font-size: 12px; }
.mini-account-copy small { font-size: 10.5px; }
.mini-kicker { font-size: 10px; }

.mini-overview-head h2 { font-size: 25px; }
.mini-overview-head p,
.mini-overview-empty-note,
.home-setup-sub { font-size: 13px; }
.mini-overview-status { font-size: 12px; }
.mini-overview-stats small { font-size: 9px; }
.mini-overview-stats strong { font-size: 14px; }

.mini-device-identity strong { font-size: 17px; line-height: 1.25; }
.mini-device-identity small { font-size: 11px; }
.mini-device-status { padding: 6px 9px; font-size: 10px; }
.mini-device-tier { font-size: 20px; }
.mini-device-expiry small,
.mini-device-expiry span { font-size: 10.5px; }
.mini-device-expiry strong { font-size: 15px; }
.mini-device-metrics > div { padding: 11px 10px; }
.mini-device-metrics small { font-size: 9.5px; }
.mini-device-metrics strong { font-size: 12px; }
.mini-country-configs { gap: 9px; }
.mini-country-configs-head strong { font-size: 15px; }
.mini-country-configs-head span { font-size: 10.5px; }
.mini-config-count { padding: 5px 8px; font-size: 10px !important; }

.mini-country-config {
  display: block;
  padding: 11px;
  border-radius: 14px;
}

.mini-country-copy {
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
}

.mini-country-flag {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 20px;
}

.mini-country-copy-body {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.mini-country-copy strong { font-size: 14px; line-height: 1.25; }

.mini-country-link-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.mini-country-link-row small {
  min-width: 0;
  overflow: hidden;
  color: #94988f;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10.5px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-country-action {
  min-width: 112px;
  min-height: 42px;
  padding: 8px 11px;
  border-radius: 11px;
  font-size: 11px;
  transition: color .16s ease, border-color .16s ease, background .16s ease, transform .16s ease;
}

.mini-country-action:active { transform: scale(.98); }
.mini-country-action.is-copied {
  color: #7ce9a8;
  border-color: rgba(85, 223, 140, .35);
  background: rgba(85, 223, 140, .09);
}

.mini-config-saved-note { font-size: 11.5px; }
.mini-device-actions .btn { min-height: 49px; font-size: 13.5px; }
.mini-device-archive { font-size: 11.5px; }
.device-renew-title { font-size: 19px; }
.mini-renew-tier strong { font-size: 14px; }
.mini-renew-tier small,
.mini-tier-switch-warning { font-size: 10.5px; }

.payment-title { font-size: 13px; }
.payment-meta,
.payment-status { font-size: 10.5px; }

/* Profile now follows the same type scale as the rest of the mini app. */
.profile-name { font-size: 22px; }
.profile-username { font-size: 14px; }
.profile-label { font-size: 13px; }
.profile-value { font-size: 15px; }
.profile-action-btn { font-size: 15px; }

/* Download page mirrors the hierarchy of the full web download page. */
.app-download-shell {
  gap: 15px;
  padding: 15px;
  background:
    radial-gradient(360px 210px at 102% 20%, rgba(247,184,78,.12), transparent 72%),
    linear-gradient(145deg, rgba(18,22,18,.98), rgba(9,13,10,.98));
}

.app-platform-grid { gap: 8px; }
.app-platform-btn {
  min-height: 54px;
  padding: 10px;
  border-color: rgba(238,225,194,.12);
  background: rgba(255,255,255,.018);
}
.app-platform-icon,
.app-platform-icon svg { width: 21px; height: 21px; }
.app-platform-text { font-size: 14px; }

.app-focus-card {
  padding: 18px;
  gap: 16px;
  border-radius: 18px;
  border-color: rgba(247,184,78,.2);
  background:
    radial-gradient(330px 210px at 105% 0%, rgba(247,184,78,.15), transparent 72%),
    rgba(5,8,5,.58);
}

.app-focus-layout {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.app-focus-visual {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(247,184,78,.28);
  border-radius: 28px;
  color: #f6c66f;
  background:
    radial-gradient(circle at 65% 25%, rgba(247,184,78,.15), transparent 56%),
    rgba(247,184,78,.055);
  box-shadow: inset 0 1px rgba(255,255,255,.05), 0 18px 44px rgba(0,0,0,.24);
}

.app-focus-visual svg { width: 52px; height: 52px; }
.app-focus-content { min-width: 0; display: grid; gap: 10px; }
.app-focus-eyebrow {
  color: var(--accent);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
}
.app-focus-title {
  font-size: clamp(23px, 5vw, 32px);
  line-height: 1.12;
  letter-spacing: -.035em;
}
.app-focus-subtitle { font-size: 13px; line-height: 1.55; }
.app-focus-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.app-focus-meta span {
  padding: 6px 9px;
  border: 1px solid rgba(238,225,194,.13);
  border-radius: 999px;
  color: #ddd8cc;
  background: rgba(255,255,255,.025);
  font-size: 10px;
  font-weight: 700;
}
.app-focus-actions { gap: 8px; }
#tab-app .app-focus-actions .btn {
  min-height: 50px;
  padding: 12px 15px;
  font-size: 14px;
}
.app-focus-note {
  margin: 0;
  color: #7f847b;
  font-size: 10.5px;
  line-height: 1.45;
}
.app-focus-guide summary { color: #e2ded3; }
.app-focus-guide-body { color: #aaa99f; }
.app-link-btn { font-size: 13px; }
.tab-btn { font-size: 10.5px; }

@media (max-width: 560px) {
  .app-focus-layout {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 13px;
  }
  .app-focus-content { display: contents; }
  .app-focus-visual {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 74px;
    height: 74px;
    border-radius: 20px;
  }
  .app-focus-visual svg { width: 35px; height: 35px; }
  .app-focus-eyebrow,
  .app-focus-title { grid-column: 2; }
  .app-focus-eyebrow { align-self: end; }
  .app-focus-title { font-size: 21px; }
  .app-focus-subtitle {
    grid-column: 1 / -1;
    margin-top: 2px;
    font-size: 12.5px;
  }
  .app-focus-meta {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .app-focus-meta span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding-inline: 7px;
    text-align: center;
    white-space: nowrap;
  }
  .app-focus-actions,
  .app-focus-note { grid-column: 1 / -1; }
  .app-focus-actions { margin-top: 3px; }
}

@media (max-width: 360px) {
  .mini-country-link-row { grid-template-columns: 1fr; }
  .mini-country-action { width: 100%; }
  .app-focus-layout { grid-template-columns: 62px minmax(0,1fr); gap: 11px; }
  .app-focus-visual { width: 62px; height: 62px; border-radius: 17px; }
  .app-focus-visual svg { width: 30px; height: 30px; }
}
