:root {
  --bg-0: #040614;
  --bg-1: #090d24;
  --text-0: #f3f6ff;
  --text-1: #aeb8d5;
  --line: rgba(168, 184, 255, 0.26);
  --glass-a: rgba(19, 30, 62, 0.78);
  --glass-b: rgba(10, 16, 39, 0.58);
  --accent: #7a6dff;
  --accent-2: #61c2ff;
  --warn: #ffaf52;
  --radius: 22px;
  --shadow: 0 24px 60px rgba(2, 4, 20, 0.58);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-0);
  background:
    radial-gradient(1400px 900px at -8% -10%, #1b2a66 0%, transparent 55%),
    radial-gradient(1200px 900px at 110% 0%, #2c135c 0%, transparent 58%),
    linear-gradient(165deg, var(--bg-0) 0%, var(--bg-1) 100%);
}

body {
  padding: 8px 8px 18px;
}

.bg-orb {
  position: fixed;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(88px);
  opacity: 0.3;
  pointer-events: none;
}

.bg-orb-a {
  background: #6a6dff;
  top: -100px;
  left: -70px;
}

.bg-orb-b {
  background: #9b4fff;
  right: -110px;
  bottom: -160px;
}

.app-shell {
  max-width: 420px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
  position: relative;
  z-index: 2;
  padding: 10px;
  border-radius: 28px;
  border: 1px solid rgba(126, 146, 255, 0.23);
  background:
    radial-gradient(900px 420px at 90% -30%, rgba(132, 106, 255, 0.18), transparent 55%),
    radial-gradient(700px 500px at -20% -20%, rgba(79, 141, 255, 0.16), transparent 50%),
    linear-gradient(180deg, rgba(4, 9, 28, 0.92) 0%, rgba(2, 5, 22, 0.95) 100%);
  box-shadow: 0 16px 54px rgba(3, 6, 29, 0.6);
}

.glass {
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  background: linear-gradient(160deg, var(--glass-a), var(--glass-b));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.card {
  border-radius: var(--radius);
  padding: 14px 15px;
}

h1 {
  margin: 3px 0 0;
  font-size: 46px;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.8px;
}

h2 {
  margin: 4px 0 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

h3 {
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: -0.2px;
}

.muted {
  margin: 0;
  color: var(--text-1);
}

.tiny {
  font-size: 12px;
}

.pill {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(162, 219, 255, 0.32);
  color: #ddf8ff;
  font-weight: 700;
  background: linear-gradient(130deg, rgba(68, 101, 169, 0.64), rgba(67, 141, 178, 0.34));
  box-shadow: inset 0 0 0 1px rgba(190, 235, 255, 0.16);
  white-space: nowrap;
}

.hero-stack {
  display: grid;
  gap: 10px;
}

.brand-bar {
  display: grid;
  gap: 8px;
  padding-top: 12px;
  padding-bottom: 12px;
  background: linear-gradient(130deg, rgba(52, 89, 140, 0.72), rgba(60, 94, 146, 0.42));
  border-color: rgba(134, 183, 255, 0.42);
}

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

.brand-title {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #f3e9ff;
}

.balance-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(380px 220px at 88% 0%, rgba(169, 136, 255, 0.45), rgba(120, 92, 255, 0.02) 52%),
    linear-gradient(130deg, rgba(49, 57, 121, 0.86), rgba(23, 46, 101, 0.68));
  border-color: rgba(154, 176, 255, 0.44);
  min-height: 178px;
}

.planet-glow {
  position: absolute;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  top: -54px;
  right: -28px;
  background: radial-gradient(circle at 35% 35%, rgba(220, 184, 255, 0.94), rgba(139, 112, 255, 0.36) 56%, transparent 78%);
  filter: blur(6px);
  opacity: 0.88;
  pointer-events: none;
}

.balance-label {
  position: relative;
  z-index: 1;
  color: #dde3f9;
  font-size: 16px;
  font-weight: 600;
}

.balance-value {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
}

.balance-forecast {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  color: #cfd8f2;
  font-size: 15px;
  font-weight: 500;
}

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

.metric {
  padding: 14px 15px;
  background: linear-gradient(140deg, rgba(26, 48, 82, 0.8), rgba(17, 34, 60, 0.62));
  border-color: rgba(126, 153, 216, 0.34);
}

.metric h2 {
  margin-top: 6px;
  font-size: 52px;
  font-weight: 800;
}

.nav-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  background: linear-gradient(145deg, rgba(15, 31, 59, 0.64), rgba(11, 24, 44, 0.46));
}

.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid rgba(135, 160, 232, 0.3);
  background: linear-gradient(150deg, rgba(26, 39, 74, 0.9), rgba(14, 28, 53, 0.72));
  border-radius: 16px;
  min-height: 96px;
  padding: 12px 8px 10px;
  color: var(--text-0);
  font-weight: 700;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

.nav-btn span {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.nav-btn.active {
  border-color: rgba(129, 214, 255, 0.76);
  background: linear-gradient(130deg, rgba(89, 129, 223, 0.58), rgba(71, 147, 201, 0.45));
  box-shadow: 0 0 24px rgba(88, 134, 255, 0.24), inset 0 0 0 1px rgba(174, 231, 255, 0.16);
}

.panel {
  display: none;
  animation: panel-in 0.2s ease;
  background: linear-gradient(150deg, rgba(10, 20, 41, 0.84), rgba(7, 15, 34, 0.66));
  border-color: rgba(121, 146, 208, 0.29);
}

.panel.active {
  display: block;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.action-btn {
  text-align: left;
  border: 1px solid rgba(128, 152, 214, 0.32);
  background: linear-gradient(145deg, rgba(17, 35, 68, 0.82), rgba(9, 22, 44, 0.72));
  color: var(--text-0);
  border-radius: 16px;
  padding: 12px;
  cursor: pointer;
}

.action-btn strong,
.action-btn small {
  display: block;
  margin-top: 6px;
}

.action-btn strong {
  font-size: 16px;
  line-height: 1.2;
}

.action-btn small {
  font-size: 13px;
  color: var(--text-1);
}

#panel-home h3 {
  font-size: 36px;
  line-height: 1.08;
  margin-bottom: 12px;
}

#panel-home .action-grid {
  grid-template-columns: 1fr;
  gap: 10px;
}

#panel-home .action-btn {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  padding: 12px 14px;
}

#panel-home .action-btn .action-icon {
  font-size: 23px;
  line-height: 1;
}

#panel-home .action-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

#panel-home .action-btn strong {
  margin: 0;
  font-size: 22px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#panel-home .action-btn small {
  margin-top: 0;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.action-arrow {
  font-size: 26px;
  line-height: 1;
  color: #9fb3e6;
  justify-self: end;
}

.action-extra {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.action-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(123, 95, 255, 0.35);
  border: 1px solid rgba(198, 170, 255, 0.32);
}

.action-switch {
  width: 44px;
  height: 24px;
  border-radius: 99px;
  background: linear-gradient(120deg, #5a57b7, #8b68ff);
  box-shadow: inset 0 0 0 1px rgba(228, 205, 255, 0.3);
  position: relative;
}

.action-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f3ebff;
  box-shadow: 0 0 0 1px rgba(205, 189, 255, 0.35);
}

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

.devices-list {
  display: grid;
  gap: 10px;
}

.device-add-top {
  width: 100%;
  margin-bottom: 10px;
}

.device-card {
  border-radius: 16px;
  border: 1px solid rgba(128, 152, 214, 0.31);
  background: linear-gradient(145deg, rgba(18, 36, 70, 0.84), rgba(11, 24, 46, 0.68));
  overflow: hidden;
}

.device-card-head {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text-0);
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
}

.device-head-left {
  min-width: 0;
}

.device-card h4 {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.device-meta-short {
  margin-top: 6px;
  color: var(--text-1);
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.device-head-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.device-presence {
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 8px;
  border: 1px solid rgba(153, 177, 235, 0.35);
  background: rgba(26, 42, 74, 0.68);
  color: #b8c7ea;
}

.device-presence.online {
  border-color: rgba(102, 229, 163, 0.42);
  background: rgba(23, 96, 61, 0.36);
  color: #b8ffd5;
}

.device-presence.offline {
  border-color: rgba(255, 138, 138, 0.42);
  background: rgba(99, 34, 34, 0.35);
  color: #ffd3d3;
}

.device-chevron {
  font-size: 24px;
  line-height: 1;
  color: #a7baf0;
  transform: rotate(90deg);
  transition: transform 0.2s ease;
}

.device-card.open .device-chevron {
  transform: rotate(-90deg);
}

.device-card-body {
  display: none;
  padding: 0 12px 12px;
}

.device-card.open .device-card-body {
  display: block;
}

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

button,
.primary-btn,
.ghost-btn {
  min-height: 42px;
}

.primary-btn,
.ghost-btn {
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 10px 12px;
  width: 100%;
}

.primary-btn {
  border: 1px solid rgba(143, 152, 255, 0.62);
  background: linear-gradient(130deg, rgba(111, 101, 255, 0.56), rgba(99, 159, 255, 0.52));
  color: var(--text-0);
}

.ghost-btn {
  border: 1px solid rgba(126, 151, 216, 0.34);
  background: rgba(17, 33, 62, 0.62);
  color: var(--text-0);
}

.topup-head {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.topup-head h3 {
  font-size: 34px;
  margin-bottom: 2px;
}

.topup-offer {
  margin: 4px 0 10px;
  border-radius: 14px;
  border: 1px solid rgba(128, 152, 214, 0.31);
  background: linear-gradient(145deg, rgba(19, 36, 69, 0.85), rgba(10, 23, 44, 0.7));
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.topup-offer .gift {
  font-size: 26px;
  line-height: 1;
}

.topup-offer b {
  display: block;
  font-size: 14px;
}

.topup-offer small {
  display: block;
  margin-top: 2px;
  color: var(--text-1);
  font-size: 12px;
}

.topup-layout {
  display: grid;
  gap: 10px;
}

.topup-block-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #d6e0ff;
}

.topup-tariff-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.topup-tariff-card {
  position: relative;
  border-radius: 14px;
  border: 1px solid rgba(126, 151, 216, 0.34);
  background: rgba(17, 33, 62, 0.62);
  color: var(--text-0);
  padding: 11px 10px 10px;
  text-align: left;
  cursor: pointer;
}

.topup-tariff-card.active {
  border-color: rgba(146, 103, 255, 0.8);
  background: linear-gradient(140deg, rgba(85, 55, 175, 0.62), rgba(36, 53, 102, 0.76));
  box-shadow: inset 0 0 0 1px rgba(182, 147, 255, 0.3);
}

.topup-tariff-badge {
  position: absolute;
  top: 6px;
  right: 8px;
  min-width: 42px;
  text-align: center;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  color: #ffcad2;
  background: rgba(128, 27, 60, 0.46);
  padding: 2px 6px;
}

.topup-tariff-badge.best {
  color: #d7f7d8;
  background: rgba(24, 115, 54, 0.46);
}

.topup-tariff-badge.empty {
  opacity: 0;
}

.topup-tariff-title {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 700;
}

.topup-tariff-rub-main {
  display: block;
  margin-top: 12px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
}

.topup-tariff-stars-sub {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-1);
}

.topup-benefits {
  display: block;
}

.topup-benefit {
  border-radius: 12px;
  border: 1px solid rgba(126, 151, 216, 0.34);
  background: rgba(14, 28, 52, 0.68);
  padding: 10px 8px;
}

.topup-benefit strong {
  display: block;
  font-size: 12px;
}

.topup-benefit small {
  display: block;
  margin-top: 4px;
  color: var(--text-1);
  font-size: 11px;
  line-height: 1.25;
}

.topup-methods {
  display: grid;
  gap: 8px;
}

.topup-method {
  width: 100%;
  text-align: left;
  border-radius: 14px;
  border: 1px solid rgba(126, 151, 216, 0.34);
  background: rgba(17, 33, 62, 0.62);
  color: var(--text-0);
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.topup-method.active {
  border-color: rgba(146, 103, 255, 0.8);
  background: linear-gradient(140deg, rgba(85, 55, 175, 0.48), rgba(36, 53, 102, 0.72));
}

.topup-method .icon {
  font-size: 18px;
}

.topup-method .copy b {
  display: block;
  font-size: 14px;
}

.topup-method .copy small {
  display: block;
  margin-top: 2px;
  color: var(--text-1);
  font-size: 12px;
}

.topup-method .check {
  font-size: 12px;
  color: #c4d0f7;
}

.topup-legal {
  margin: 0;
  color: var(--text-1);
  font-size: 12px;
}

.topup-cta {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(165, 157, 255, 0.68);
  background: linear-gradient(130deg, rgba(126, 74, 255, 0.86), rgba(92, 156, 255, 0.78));
  color: #f7fbff;
  font-weight: 800;
  font-size: 16px;
  padding: 12px 14px;
  min-height: 48px;
  cursor: pointer;
}

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

.plan-card {
  border-radius: 16px;
  border: 1px solid rgba(128, 152, 214, 0.31);
  background: linear-gradient(145deg, rgba(17, 34, 64, 0.82), rgba(10, 22, 43, 0.7));
  padding: 11px;
}

.plan-card .price {
  margin-top: 6px;
  color: #d7fff5;
}

.plan-prices {
  margin-top: 8px;
  display: grid;
  gap: 4px;
}

.price-line {
  margin: 0;
  color: #d7fff5;
  font-size: 14px;
}

.price-line.muted-line {
  color: var(--text-1);
}

.panel-text {
  color: var(--text-1);
  margin: 0 0 10px;
  line-height: 1.45;
}

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

#panel-referral h3 {
  font-size: 28px;
  margin-bottom: 2px;
}

#panel-referral .panel-text {
  font-size: 15px;
  line-height: 1.4;
}

.ref-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(173, 136, 255, 0.42);
  background: rgba(115, 83, 206, 0.36);
  color: #eadcff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
}

.ref-hero {
  margin: 6px 0 10px;
  border-radius: 14px;
  border: 1px solid rgba(126, 151, 216, 0.34);
  background: linear-gradient(145deg, rgba(17, 34, 64, 0.82), rgba(10, 22, 43, 0.7));
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ref-hero-item {
  border-radius: 12px;
  border: 1px solid rgba(126, 151, 216, 0.28);
  background: rgba(17, 33, 62, 0.58);
  padding: 10px;
}

.ref-hero-item strong {
  display: block;
  font-size: 18px;
}

.ref-hero-item small {
  display: block;
  margin-top: 3px;
  font-size: 16px;
  color: var(--text-1);
  line-height: 1.3;
}

.ref-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.ref-step {
  border-radius: 12px;
  border: 1px solid rgba(126, 151, 216, 0.28);
  background: rgba(17, 33, 62, 0.58);
  padding: 9px 8px;
}

.ref-step b {
  display: inline-flex;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  background: rgba(117, 96, 255, 0.4);
  border: 1px solid rgba(177, 167, 255, 0.35);
}

.ref-step span {
  display: block;
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.35;
}

.ref-link-card {
  border-radius: 14px;
  border: 1px solid rgba(126, 151, 216, 0.34);
  background: rgba(14, 28, 52, 0.68);
  padding: 10px;
}

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

.ref-link-head label {
  font-size: 14px;
}

.ref-mini-share {
  min-height: 36px;
  padding: 7px 11px;
  font-size: 14px;
}

.ref-link-card input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 14px 12px;
  color: var(--text-0);
  background: rgba(255, 255, 255, 0.04);
  margin-top: 5px;
  font-size: 15px;
  font-weight: 600;
}

.ref-link-card .row-btns {
  margin-top: 12px;
}

.ref-link-card .row-btns .primary-btn,
.ref-link-card .row-btns .ghost-btn {
  min-height: 46px;
  font-size: 15px;
}

.ref-share-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.ref-share-btn {
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(126, 151, 216, 0.34);
  background: rgba(17, 33, 62, 0.62);
  color: var(--text-0);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
}

.ref-terms {
  margin-top: 10px;
  border-radius: 14px;
  border: 1px solid rgba(126, 151, 216, 0.28);
  background: rgba(12, 25, 47, 0.65);
  padding: 10px;
}

.ref-terms strong {
  display: block;
  font-size: 17px;
}

.ref-terms small {
  display: block;
  margin-top: 4px;
  color: var(--text-1);
  font-size: 16px;
  line-height: 1.4;
}

.row-btns {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.promo-row {
  margin-bottom: 10px;
}

.row-btns > * {
  flex: 1;
}

.row-btns input {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 11px 12px;
  color: var(--text-0);
  background: rgba(255, 255, 255, 0.04);
  font-size: 14px;
}

.row-btns input::placeholder {
  color: var(--text-1);
}

.history-item {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 12px;
  color: var(--text-0);
}

.help-grid {
  display: grid;
  gap: 8px;
}

.help-link {
  text-decoration: none;
  color: var(--text-0);
  font-weight: 700;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  padding: 12px;
}

#panel-help h3 {
  font-size: 34px;
  margin-bottom: 4px;
}

.help-head .panel-text {
  margin-bottom: 10px;
  font-size: 15px;
}

.help-primary {
  display: grid;
  gap: 8px;
}

.help-primary-item {
  width: 100%;
  text-align: left;
  border-radius: 14px;
  border: 1px solid rgba(126, 151, 216, 0.34);
  background: linear-gradient(145deg, rgba(18, 36, 70, 0.84), rgba(11, 24, 46, 0.68));
  color: var(--text-0);
  padding: 12px 12px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.help-primary-icon {
  font-size: 20px;
  line-height: 1;
}

.help-primary-copy b {
  display: block;
  font-size: 16px;
}

.help-primary-copy small {
  display: block;
  margin-top: 3px;
  color: var(--text-1);
  font-size: 13px;
  line-height: 1.3;
}

.help-primary-arrow {
  font-size: 24px;
  line-height: 1;
  color: #9fb3e6;
}

.help-faq {
  margin-top: 10px;
  border-radius: 14px;
  border: 1px solid rgba(126, 151, 216, 0.28);
  background: rgba(14, 28, 52, 0.68);
  padding: 10px;
  display: grid;
  gap: 8px;
}

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

.help-faq-head b {
  font-size: 16px;
}

.help-faq-all {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 12px;
}

.faq-item {
  border-radius: 12px;
  border: 1px solid rgba(126, 151, 216, 0.28);
  background: rgba(17, 33, 62, 0.58);
}

.faq-question {
  width: 100%;
  text-align: left;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: var(--text-0);
  padding: 10px 11px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  position: relative;
}

.faq-question::after {
  content: "▾";
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: #9fb3e6;
  transition: transform 0.2s ease;
}

.faq-question[aria-expanded="true"]::after {
  transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 11px 11px;
  color: var(--text-1);
  font-size: 13px;
  line-height: 1.45;
}

.faq-item.is-open .faq-answer {
  display: block;
}

.help-support-cta {
  margin-top: 10px;
  border-radius: 14px;
  border: 1px solid rgba(126, 151, 216, 0.28);
  background: rgba(12, 25, 47, 0.65);
  padding: 11px;
}

.help-support-cta strong {
  display: block;
  font-size: 16px;
}

.help-support-cta small {
  display: block;
  margin-top: 4px;
  color: var(--text-1);
  font-size: 13px;
  line-height: 1.35;
}

.help-support-cta .primary-btn {
  margin-top: 10px;
  width: 100%;
}

.help-link-btn {
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.help-hidden {
  display: none !important;
}

.ui-hidden {
  display: none !important;
}

.quick-modal {
  width: min(620px, calc(100vw - 16px));
  border: none;
  background: transparent;
  padding: 0;
}

.quick-modal::backdrop {
  background: rgba(2, 10, 18, 0.72);
  backdrop-filter: blur(6px);
}

.quick-modal-body {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(160deg, rgba(12, 39, 61, 0.9), rgba(8, 24, 40, 0.95));
  padding: 14px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 7px 0 12px;
}

.chip {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-0);
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}

.chip.active {
  border-color: rgba(94, 200, 255, 0.7);
  background: linear-gradient(130deg, rgba(53, 214, 172, 0.23), rgba(94, 200, 255, 0.23));
}

.apps-list {
  display: grid;
  gap: 8px;
}

.app-entry {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  padding: 11px;
}

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

.app-entry strong {
  font-size: 15px;
}

.app-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}

.app-actions > * {
  flex: 1;
}

.quick-footer {
  margin-top: 10px;
}

.toast {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(9, 30, 48, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  padding: 10px 12px;
  color: #f1f9ff;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 1000;
}

.toast.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@media (max-width: 700px) {
  .nav-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 22px;
  }

  #panel-home h3 {
    font-size: 30px;
  }

  .balance-label {
    font-size: 15px;
  }

  .balance-value {
    font-size: 54px;
  }

  .balance-forecast {
    font-size: 14px;
  }

  .metric h2 {
    font-size: 36px;
  }

  #panel-home .action-btn strong {
    font-size: 19px;
  }

  #panel-home .action-btn small {
    font-size: 14px;
  }

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

  #panel-referral h3 {
    font-size: 24px;
  }

  .ref-badge {
    font-size: 11px;
    padding: 4px 7px;
  }

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

  .ref-steps {
    grid-template-columns: 1fr;
  }

  .ref-share-grid {
    grid-template-columns: 1fr;
  }

  .action-grid,
  .plans-grid {
    grid-template-columns: 1fr;
  }

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

  .device-card-head {
    align-items: flex-start;
  }

  .device-head-right {
    margin-top: 2px;
  }

  .row-btns {
    flex-direction: column;
  }
}
