:root {
  --bg: #ffe8d1;
  --bg-elev: #fdebd0;
  --card: rgba(255, 255, 255, 0.72);
  --card2: rgba(255, 255, 255, 0.88);
  --line: rgba(196, 106, 40, 0.16);
  --text: #5c3e2e;
  --muted: #a07050;
  --soft: #8b5a3c;
  --accent: #ffa756;
  --accent-2: #ffb56a;
  --accent-dim: rgba(255, 167, 86, 0.28);
  --accent-glow: rgba(214, 127, 51, 0.22);
  --blue: #e8944a;
  --gold: #fbbf24;
  --warn: #e25b4a;
  --dock-h: 72px;
  --radius: 20px;
  --radius-sm: 14px;
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
}

body {
  background:
    radial-gradient(circle at 77% 3%, rgba(255, 167, 86, 0.28), transparent 30rem),
    radial-gradient(circle at 10% 45%, rgba(249, 160, 87, 0.16), transparent 34rem),
    linear-gradient(180deg, #ffe8d1 0%, #f8dcc0 44%, #ffd9b0 100%);
}

.app-root {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  max-width: 520px;
  margin: 0 auto;
  position: relative;
}

.app-header {
  padding: 10px 16px 8px;
  flex-shrink: 0;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.header-brand {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand-mark {
  color: var(--text);
}

.brand-sep {
  margin: 0 6px;
  opacity: 0.35;
}

.header-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3a5f, var(--accent));
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.35), 0 8px 24px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
}

.header-titles {
  flex: 1;
  min-width: 0;
}

.header-welcome {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.header-actions {
  display: flex;
  gap: 8px;
}

.icon-btn {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.scroll-main {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 16px calc(var(--dock-h) + 28px);
  -webkit-overflow-scrolling: touch;
}

.page {
  display: none;
  padding-bottom: 8px;
  animation: fade 0.22s ease;
}

.page.is-active {
  display: block;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.welcome {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  margin: 4px 0 12px;
  letter-spacing: -0.02em;
}

.sub-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--card);
}

.pill-accent {
  border-color: rgba(139, 92, 246, 0.45);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(30, 27, 48, 0.9));
}

.pill-trial {
  border-color: rgba(56, 189, 248, 0.35);
  color: var(--blue);
  background: rgba(56, 189, 248, 0.08);
}

.pill-icon {
  width: 14px;
  height: 14px;
}

.hidden {
  display: none !important;
}

.card {
  background: linear-gradient(165deg, var(--card2), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}

.hero-card {
  padding-bottom: 14px;
}

.hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.status-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
}

.chip-purple {
  color: #c4b5fd;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.dot-blue {
  background: var(--blue);
  box-shadow: 0 0 10px var(--blue);
}

.hero-pct {
  font-size: 28px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: -0.03em;
}

.hero-label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.hero-traffic {
  font-size: 14px;
  margin-bottom: 12px;
}

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

.small {
  font-size: 13px;
  line-height: 1.45;
}

.seg-bar {
  display: flex;
  gap: 5px;
  height: 10px;
  margin-bottom: 8px;
}

.seg-bar span {
  flex: 1;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  position: relative;
}

.seg-bar span.is-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--accent), #d67f33);
  box-shadow: 0 0 12px var(--accent-glow);
}

.seg-ticks {
  font-size: 9px;
  display: flex;
  justify-content: space-between;
  gap: 4px;
  flex-wrap: wrap;
}

.device-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.device-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

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

.device-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}

.device-count {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.device-hint {
  font-size: 12px;
  color: var(--warn);
  line-height: 1.35;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mini-card {
  margin-bottom: 0;
  min-height: 108px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.mini-k {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.mini-gold .mini-k {
  color: var(--gold);
}

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

.mini-head-row .mini-k {
  margin-bottom: 0;
}

.mini-head-row .mini-cal {
  margin-bottom: 0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

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

.mini-sub {
  font-size: 12px;
  margin-top: 6px;
}

.mini-cal {
  color: var(--gold);
  margin-bottom: 4px;
}

.mini-days {
  font-size: 22px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.02em;
}

.mini-days-sub {
  font-size: 11px;
  font-weight: 600;
  margin-top: 6px;
  line-height: 1.35;
}

.spin {
  display: inline-block;
  margin-right: 4px;
}

.tight-bottom {
  margin-top: 4px;
}

.stat-card {
  cursor: pointer;
  margin-bottom: 0;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.stat-card:active {
  transform: scale(0.98);
}

.stat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
}

.stat-ic {
  font-size: 14px;
}

.chev {
  margin-left: auto;
  opacity: 0.45;
  font-size: 18px;
  line-height: 1;
}

.stat-val {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.stat-sub {
  font-size: 12px;
  margin-top: 4px;
}

.page-title {
  font-size: 22px;
  font-weight: 800;
  margin: 8px 0 16px;
  letter-spacing: -0.02em;
}

.h2 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
}

.big {
  font-size: 28px;
  font-weight: 800;
  margin: 0;
}

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

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

.btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}

.btn.full {
  width: 100%;
}

.btn.primary {
  background: linear-gradient(135deg, #7c3aed, var(--accent));
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.25);
}

.btn:hover {
  filter: brightness(1.06);
}

.lbl {
  display: block;
  margin: 12px 0 6px;
  font-size: 12px;
  color: var(--muted);
}

.copy-row {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}

.inp {
  flex: 1;
  min-width: 0;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--text);
  font-size: 12px;
}

.foot {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  padding: 8px 0 4px;
  opacity: 0.85;
}

.dock {
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 496px;
  height: var(--dock-h);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 6px 4px;
  gap: 2px;
  border-radius: 22px;
  background: rgba(15, 17, 24, 0.82);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  z-index: 50;
}

.dock-item {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 2px;
  border-radius: 14px;
  cursor: pointer;
  font-family: inherit;
  min-width: 0;
}

.dock-item.is-active {
  color: #fff;
  background: rgba(139, 92, 246, 0.22);
  box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.35);
}

.dock-ic svg {
  width: 22px;
  height: 22px;
  display: block;
}

.dock-tx {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

@media (min-width: 400px) {
  .dock-tx {
    font-size: 10px;
  }
}

.gate-screen {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg);
}

.gate-card {
  max-width: 360px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  text-align: center;
}

.gate-title {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 12px;
}

.gate-text {
  margin: 0 0 10px;
  line-height: 1.45;
}

.gate-sub {
  margin: 0;
  font-size: 13px;
}

.lang-wrap {
  position: relative;
}

.lang-tray {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 120px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(20, 24, 36, 0.96);
  backdrop-filter: blur(12px);
  z-index: 80;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.lang-opt {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.lang-opt:hover {
  background: rgba(139, 92, 246, 0.15);
}

.chip-traffic {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
}

.device-card[aria-disabled="false"] {
  cursor: pointer;
}

.device-card[aria-disabled="false"]:active {
  transform: scale(0.99);
}

.link-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 4px 0 14px;
  flex-wrap: wrap;
}

.btn-link {
  border: none;
  background: transparent;
  color: var(--accent);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 2px;
  text-decoration: none;
}

.btn-link:hover {
  text-decoration: underline;
}

.btn-back {
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 8px;
  padding: 4px 0;
}

.setup-head {
  margin-bottom: 12px;
}

.setup-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.happ-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e8943a, #ffa756);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  overflow: hidden;
  flex: 0 0 auto;
}
img.happ-badge.app-logo {
  display: block;
  object-fit: cover;
  background: transparent;
  padding: 0;
  border: 0;
}

.happ-name {
  font-weight: 800;
  font-size: 16px;
}

.plat-dd-wrap {
  position: relative;
  margin-left: auto;
}

.plat-dd-btn {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
}

.plat-tray {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 140px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(20, 24, 36, 0.98);
  z-index: 70;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.plat-opt {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.plat-opt.is-active {
  background: rgba(139, 92, 246, 0.2);
}

html[dir="rtl"] .lang-tray,
html[dir="rtl"] .plat-tray {
  right: auto;
  left: 0;
  text-align: right;
}


/* === 20260504 CSS hotfix: keep old compact design + style new mini app blocks === */
:root {
  --green: #22c55e;
  --red: #ff4d5d;
  --yellow: #fbbf24;
}

.app-root {
  max-width: 430px;
  overflow: hidden;
  background: transparent;
}

.app-header {
  background: rgba(8, 8, 16, .78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-brand b,
.header-brand em {
  font-style: normal;
}
.header-brand b {
  margin: 0 8px;
  opacity: .45;
}
.header-brand em {
  color: var(--muted);
}

.scroll-main {
  padding-left: 14px;
  padding-right: 14px;
  padding-bottom: calc(var(--dock-h) + 42px + env(safe-area-inset-bottom, 0px));
}

.card,
.sub-card,
.option-card,
.accordion,
.method-card,
.history-item,
.notice {
  box-shadow: 0 18px 42px rgba(0,0,0,.16);
}

.card.soft {
  background: rgba(15, 17, 24, 0.35);
}

.row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.h3 { margin: 0 0 8px; font-size: 15px; font-weight: 800; }
.small { font-size: 12px; line-height: 1.45; }

.btn,
.btn-ghost,
.btn-danger {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  user-select: none;
}
.btn:disabled,
.btn.disabled {
  opacity: .45;
  cursor: not-allowed;
  filter: grayscale(.25);
}
.btn.green {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(34, 197, 94, .18);
}
.btn-ghost {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.btn-danger {
  width: 100%;
  border: 1px solid rgba(255,77,93,.32);
  background: rgba(255,77,93,.1);
  color: #ff7a86;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
}

.dock-ic {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  line-height: 1;
}
.dock-ic svg {
  width: 22px;
  height: 22px;
  display: block;
}
.dock-item span:last-child:not(.dock-ic) {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}

.pill { margin-bottom: 0; }
.hero-card { margin-top: 16px; }
.hero-pct { color: #aeb8d3; }
.seg-bar span.is-fill,
.seg-bar span.filled { background: linear-gradient(90deg, #7c3aed, #e25b4a); }
.mini-days { color: #fff; }
.mini-gold .mini-days { color: #fff; }
.mini-days-sub { color: #d9ddec; }

.sub-card {
  background: linear-gradient(165deg, #141824, #0f1118);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 24px;
  padding: 18px;
  margin-bottom: 14px;
}
.sub-card .h2 {
  font-size: 20px;
  font-weight: 850;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  padding: 7px 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  white-space: nowrap;
}
.tag.active {
  border-color: rgba(34,197,94,.32);
  background: rgba(34,197,94,.12);
  color: #65e89a;
}
.tag.violet {
  border-color: rgba(255,167,86,.40);
  background: rgba(255,167,86,.16);
  color: #bca7ff;
}

.progress {
  width: 100%;
  height: 6px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(196,106,40,.16);
}
.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #ffa756, #e25b4a);
}

.countdown {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.countdown small {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
  margin-right: 3px;
}

.option-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  margin: 10px 0 0;
  border-radius: 16px;
  background: linear-gradient(165deg, var(--card2), var(--card));
  border: 1px solid var(--line);
  cursor: pointer;
}
.option-card.disabled { opacity: .55; cursor: default; }
.option-title { font-size: 16px; font-weight: 800; }
.option-desc { font-size: 12px; line-height: 1.4; color: var(--muted); margin-top: 4px; }

.square-ic,
.device-icon,
.happ-badge,
.method-ic {
  flex: 0 0 auto;
}
.square-ic {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #d67f33;
  background: rgba(255,167,86,.16);
  border: 1px solid rgba(255,167,86,.28);
  font-weight: 900;
}

.toggle {
  width: 50px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  padding: 3px;
  cursor: pointer;
}
.toggle span {
  width: 24px;
  height: 24px;
  display: block;
  border-radius: 50%;
  background: #fff;
  transition: transform .18s ease;
}
.toggle.on { background: linear-gradient(135deg, #ffa756, #ffa756); }
.toggle.on span { transform: translateX(20px); }

.accordion {
  display: none;
  margin-top: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(15,17,24,.5);
}
.accordion.open { display: block; }

.stepper {
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}
.stepper button {
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-size: 21px;
  font-weight: 900;
}
.stepper .num {
  text-align: center;
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
}

.notice {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.notice.green { background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.34); color: #6ee7a2; }
.notice.red { background: #fff1f0; border-color: rgba(180, 35, 24, .35); color: #9f1d1d; }
.notice.yellow { background: #fff1cc; border-color: #e0a020; color: #6a3e08; }

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.plan {
  padding: 14px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  cursor: pointer;
}
.plan.selected {
  border-color: rgba(255,167,86,.70);
  background: rgba(255,167,86,.18);
}
.plan-title { font-size: 16px; font-weight: 850; }
.plan-price { margin-top: 8px; color: #d67f33; font-size: 17px; font-weight: 850; }
.payline { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; }

.amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin-top: 14px;
}
.amount-grid button {
  min-height: 66px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255,255,255,.03);
  color: var(--text);
  font-family: inherit;
  font-weight: 850;
  cursor: pointer;
}
.amount-grid button.active { color: #d67f33; border-color: rgba(255,167,86,.55); }

.method-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255,255,255,.03);
  cursor: pointer;
}
.method-ic {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99,102,241,.18);
  font-size: 22px;
}

.history-item {
  padding: 13px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.03);
}
.hist-head {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.hist-amount.plus { color: #6ee7a2; }
.hist-amount.minus { color: #ff7a86; }

.toast-root {
  position: fixed;
  z-index: 9999;
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  width: min(390px, calc(100% - 24px));
  display: grid;
  gap: 8px;
  pointer-events: none;
}
.toast {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(20,24,36,.96);
  color: var(--text);
  font-size: 13px;
  font-weight: 750;
  box-shadow: 0 12px 32px rgba(0,0,0,.38);
}
.toast.green { border-color: rgba(34,197,94,.34); background: rgba(13,61,45,.96); }
.toast.red { border-color: rgba(255,77,93,.36); background: rgba(53,16,27,.96); }
.toast.yellow { border-color: rgba(251,191,36,.32); background: rgba(53,40,27,.96); }

.gate-icon { font-size: 44px; margin-bottom: 12px; }

@media (max-width: 370px) {
  .grid-2,
  .plans { grid-template-columns: 1fr; }
  .countdown { font-size: 19px; }
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
  .page-title { font-size: 20px; }
}


/* === 20260504 polish2: final visual cleanup after subscription update === */
:root { --dock-h: 72px; }

.app-root {
  max-width: 390px;
  min-height: 100dvh;
  overflow: hidden;
  background: transparent;
}

.app-header {
  padding: 14px 18px 12px;
  background: rgba(8, 8, 16, .78);
  border-bottom: 1px solid rgba(196,106,40,.14);
}
.header-top {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
}
.header-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  text-align: center;
  font-size: 11px;
  line-height: 1;
}
.header-row { gap: 12px; }
.avatar { width: 46px; height: 46px; font-size: 11px; }
.header-welcome { font-size: 15px; font-weight: 800; }
.icon-btn { min-width: 46px; min-height: 36px; border-radius: 11px; background: #111827; color: #dbe4ff; }

.scroll-main {
  padding: 12px 14px calc(var(--dock-h) + 54px + env(safe-area-inset-bottom, 0px));
}
.page-title {
  margin: 4px 0 16px;
  font-size: 24px;
  line-height: 1.08;
}

.card, .sub-card, .option-card, .accordion, .method-card, .history-item, .notice {
  border-color: rgba(255,255,255,.075);
}
.card {
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(165deg, #171c2a, #111724);
}
.pill {
  margin-bottom: 0;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}
.pill-accent {
  border-color: rgba(255,167,86,.80);
  background: rgba(76, 40, 132, .35);
  color: #fff;
}
.hero-card { margin-top: 16px; padding: 18px; }
.hero-top { align-items: center; margin-bottom: 20px; }
.chip, .chip-traffic {
  text-transform: none;
  letter-spacing: 0;
  color: #fff;
  background: rgba(0,0,0,.34);
  font-size: 12px;
  padding: 7px 11px;
  border-radius: 10px;
}
.hero-pct { font-size: 30px; color: #c6cdea; }
.hero-traffic { color: #9fb1dc; font-size: 14px; margin-bottom: 12px; }
.seg-ticks { font-size: 10px; color: #8fa0c8; white-space: nowrap; overflow: hidden; }

.device-card {
  align-items: center;
  padding: 18px;
  border-radius: 18px;
}
.device-icon {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  color: #9b6cff;
  background: rgba(255,167,86,.16);
  border-color: rgba(255,167,86,.34);
}
.device-icon svg { width: 25px; height: 25px; }
.device-title { font-size: 17px; font-weight: 850; }
.device-count { color: #9fb1dc; }
.device-hint { color: #fbbf24; font-size: 12px; line-height: 1.35; margin-top: 4px; }

.grid-2 { gap: 10px; }
.mini-card { min-height: 110px; border-radius: 16px; }
.mini-k { font-size: 11px; }
.mini-title { font-size: 15px; font-weight: 850; }
.mini-days { font-size: 23px; color: #fff; }
.mini-days-sub { color: #fff; font-size: 11px; font-weight: 750; }
.mini-cal svg { width: 20px; height: 20px; }

.sub-card {
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(165deg, #141927, #0f1420);
}
.sub-plan-title {
  margin: 16px 0 0 !important;
  font-size: 21px !important;
  font-weight: 900 !important;
}
.tag {
  border-radius: 10px;
  padding: 8px 11px;
  font-size: 11px;
  letter-spacing: .03em;
  text-transform: none;
}
.dot-mini {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 99px;
  background: #8b7cff;
  box-shadow: 0 0 10px rgba(139,124,255,.65);
}
.traffic-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-top: 26px;
  color: #9aa6c2;
  font-size: 12px;
  text-transform: none;
}
.traffic-row b {
  color: #9fb1dc;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.traffic-row span { color: #aeb8d3; white-space: nowrap; }
.progress { height: 6px; margin-top: 9px; }
.progress span { background: linear-gradient(90deg, #ffa756, #e25b4a); }
.sub-card .device-card {
  margin-top: 22px !important;
  background: rgba(15, 17, 24, 0.4);
}
.sub-url-row { margin-top: 12px !important; }
.inp {
  height: 46px;
  border-radius: 13px;
  background: rgba(6,10,18,.48);
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
}
.copy-btn {
  width: 52px;
  min-width: 52px;
  padding: 0;
  font-size: 18px;
}
.btn-ghost {
  min-height: 46px;
  border-radius: 13px;
  font-weight: 800;
}
.remain-card { margin-top: 18px !important; }
.remain-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #9fb1dc;
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 10px;
}
.remain-label svg { width: 18px; height: 18px; }
.countdown { color: #fff; font-size: 23px; gap: 5px; }
.countdown small { color: #aab3ca; font-size: 11px; }
.loc-label { margin: 16px 0 7px; text-transform: uppercase; color: #9fb1dc; }

.option-card {
  border-radius: 17px;
  padding: 16px;
  background: linear-gradient(165deg, #171c2a, #111724);
}
.option-title { font-size: 16px; }
.option-desc { color: #9aa6c2; }
.square-ic { color: #d67f33; }
.btn-link:disabled { opacity: .45; pointer-events: none; }
.notice { color: #9aa6c2; }

.dock {
  width: min(364px, calc(100% - 18px));
  height: 60px;
  bottom: 8px;
  border-radius: 18px;
  background: rgba(12, 16, 26, .92);
  padding: 5px 4px;
}
.dock-item { border-radius: 15px; padding: 5px 1px; }
.dock-item.is-active {
  background: rgba(88, 57, 153, .78);
  box-shadow: inset 0 0 0 1px rgba(172, 137, 255, .28);
}
.dock-ic, .dock-ic svg { width: 20px; height: 20px; }
.dock-tx, .dock-item span:last-child:not(.dock-ic) { font-size: 9px; }

.setup-head { margin-bottom: 14px; }
.setup-toolbar { margin-top: 10px; }
.happ-badge { width: 44px; height: 44px; border-radius: 14px; }
.plat-dd-btn { min-height: 44px; border-radius: 13px; }

@media (max-width: 370px) {
  .app-header { padding-left: 14px; padding-right: 14px; }
  .scroll-main { padding-left: 10px; padding-right: 10px; }
  .countdown { font-size: 20px; }
  .device-title { font-size: 15px; }
  .dock { width: calc(100% - 12px); }
}

/* === 20260504 setup/subscription polish === */
.lang-tray { z-index: 80; }
.gate-card { text-align: center; }
.acc-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d67f33;
  background: rgba(255,167,86,.12);
  cursor: pointer;
}
.acc-close svg { width: 20px; height: 20px; }
.accordion {
  margin: -2px 0 12px 0;
  padding: 16px 14px 18px;
  border-radius: 0 0 18px 18px;
  border-top-color: rgba(255,167,86,.20);
  background: linear-gradient(180deg, rgba(18,23,36,.92), rgba(12,17,27,.92));
}
.accordion.open { display: block; }
.option-total { margin-top: 8px; margin-bottom: 14px; }
.buy-warn { margin: 14px 0 18px; line-height: 1.45; }
.buy-warn .btn { margin-top: 12px; min-width: 122px; }
.option-buy-btn { margin-top: 14px; width: 100%; }
.traffic-disabled { text-align: center; margin: 26px 0 18px; font-size: 16px; line-height: 1.35; }
.big-back { font-size: 15px; min-height: 40px; padding: 0 6px; }
.method-ic.crypto,
.method-ic.stars,
.method-ic.platega,
.method-ic.v2raytun {
  color: #fff;
}
.method-ic.crypto { background: linear-gradient(135deg, #3631a6, #1d2552); }
.method-ic.platega { background: linear-gradient(135deg, #0f766e, #134e4a); }
.method-ic.stars { background: linear-gradient(135deg, #ffbf1f, #8a5300); color: #fff; }
.method-ic svg { width: 24px; height: 24px; }
.topup-row { align-items: stretch; }
#topup-btn svg { width: 18px; height: 18px; }
.amount-grid button { display: flex; align-items: center; justify-content: center; }
.amount-inline { display: inline-flex; align-items: baseline; gap: 5px; font-weight: 900; }
.amount-inline b { font-size: 13px; color: #9aa6c2; }
.app-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.app-choice-btn {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  color: var(--text);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}
.app-choice-btn.active {
  border-color: rgba(255,167,86,.62);
  background: rgba(255,167,86,.24);
  color: #fff;
}
.happ-badge.v2r,
.happ-badge.incy,
.happ-badge.happ {
  width: 44px;
  height: 44px;
}
img.happ-badge.v2r,
img.happ-badge.incy,
img.happ-badge.happ {
  background: transparent;
  color: transparent;
  font-size: 0;
  letter-spacing: 0;
}
.full { width: 100%; }
.copy-row .inp { font-size: 13px; }
button[disabled] { cursor: not-allowed !important; }

/* === 20260504 deeplink fix === */
.add-sub-hint { margin: 10px 2px 0; line-height: 1.35; }


/* === 20260505 sub launch / compact setup fix === */
.setup-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px!important}.setup-head .page-title{margin:0}.setup-toolbar-platform{margin-top:0!important}#page-setup>.card{margin-top:10px}.app-choice-btn{min-height:70px!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:12px!important;padding:10px 12px!important;text-align:left!important;line-height:1.1!important}.app-choice-btn .happ-badge{flex:0 0 auto}.happ-update-warn{margin:12px 0 0!important;font-size:13px;line-height:1.4}.add-sub-card .add-sub-main{margin-top:12px}.add-sub-card .copy-row{display:none!important}.sub-card .progress span,.hero-card .seg-bar span.is-fill{background:linear-gradient(90deg,#29e77c 0%,#f4d64e 52%,#ff9b2f 75%,#ff4d62 100%)}

/* BYWWO_MOBILE_IMPORT_UI_FIX_20260506 */
.hero-card .seg-bar.continuous{
  display:block!important;
  position:relative!important;
  height:10px!important;
  border-radius:999px!important;
  overflow:hidden!important;
  background:rgba(255,255,255,.065)!important;
  margin-bottom:8px!important;
}
.hero-card .seg-bar.continuous span{flex:none!important;display:block!important;border-radius:999px!important;background:transparent!important;position:absolute!important;inset:0 auto 0 0!important;}
.hero-card .seg-bar.continuous .seg-bg{display:none!important;}
.hero-card .seg-bar.continuous .seg-fill{height:100%!important;max-width:100%!important;background:linear-gradient(90deg,#ffa756 0%,#f9a057 45%,#c46a28 100%)!important;box-shadow:0 0 12px rgba(255,167,86,.40)!important;}
.renew-plan-card{padding:16px!important;}
.renew-plan-card .renew-plan-desc{margin:8px 0 10px!important;}
.renew-reset{margin:8px 0 0!important;}
.renew-limits{display:flex!important;align-items:center!important;gap:16px!important;flex-wrap:wrap!important;margin:10px 0!important;color:#fff!important;}
.renew-limits span{display:inline-flex!important;align-items:center!important;gap:6px!important;font-weight:700!important;}
.renew-limits svg{width:18px!important;height:18px!important;}
.renew-summary-compact{padding:14px 16px!important;}
.renew-summary-compact .h2{margin:0!important;}
.renew-limits.compact{margin:8px 0 0!important;gap:14px!important;color:#8b5a3c!important;}


/* === 20260731 site-palette mini redesign v2 === */
:root {
  --bg: #ffe8d1;
  --bg-elev: #fdebd0;
  --card: rgba(255,255,255,.55);
  --line: rgba(255,255,255,.09);
  --text: #5c3e2e;
  --muted: #a07050;
  --soft: #8b5a3c;
  --accent: #ffa756;
  --accent-2: #ffb56a;
  --dock-h: 70px;
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html, body {
  background: #ffe8d1 !important;
  color: var(--text) !important;
  font-family: var(--font) !important;
}

/* Same atmosphere as website cabinet — not flat black */
body {
  background:
    radial-gradient(circle at 77% 3%, rgba(255, 167, 86, 0.34), transparent 28rem),
    radial-gradient(circle at 12% 40%, rgba(249, 160, 87, 0.18), transparent 30rem),
    linear-gradient(180deg, #ffe4c4 0%, #f8dcc0 42%, #ffe8d1 100%) !important;
  background-attachment: fixed !important;
}

.app-root {
  max-width: 440px;
  min-height: 100dvh;
  background: transparent !important;
  background-image: none !important;
}

.scroll-main,
.page {
  background: transparent !important;
  background-image: none !important;
}

.app-header {
  padding: 12px 16px 10px !important;
  border-bottom: 1px solid rgba(196,106,40,.14);
  background: rgba(255, 232, 209, .84) !important;
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-top { margin-bottom: 10px !important; justify-content: flex-start !important; }
.header-brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: inherit !important;
}
.brand-mark {
  color: #3d2418 !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  letter-spacing: -.04em !important;
  text-transform: none !important;
}
.brand-sep { display: none !important; }
.brand-sub {
  margin: 0 !important;
  color: #a07050 !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
}

.avatar {
  display: none !important;
}
.header-welcome {
  font-size: 14px !important;
  font-weight: 650 !important;
  letter-spacing: -.02em;
  color: #5c3e2e;
}
.icon-btn {
  min-height: 36px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(196,106,40,.20) !important;
  background: rgba(255,255,255,.55) !important;
  color: #6a4633 !important;
}

.scroll-main {
  padding: 14px 16px calc(var(--dock-h) + 28px + env(safe-area-inset-bottom, 0px)) !important;
}

.foot {
  margin: 18px 0 8px !important;
  color: #676574 !important;
  text-align: center;
  font-size: 11px;
}

/* Floating dock — 5 equal tabs, never clipped */
.dock {
  position: fixed !important;
  left: 10px !important;
  right: 10px !important;
  bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important;
  transform: none !important;
  width: auto !important;
  max-width: none !important;
  height: var(--dock-h) !important;
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: 2px !important;
  padding: 6px !important;
  border-radius: 20px !important;
  border: 1px solid rgba(196,106,40,.16) !important;
  background: rgba(255,248,240,.94) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  box-shadow: 0 16px 44px rgba(196,106,40,.16) !important;
  z-index: 60 !important;
}
.dock-item {
  flex: none !important;
  min-width: 0 !important;
  width: 100% !important;
  height: 100% !important;
  padding: 4px 2px !important;
  border-radius: 14px !important;
  gap: 2px !important;
  color: #8a8798 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.dock-item.is-active {
  color: #fff !important;
  background: linear-gradient(135deg, rgba(147,92,255,.32), rgba(110,62,232,.16)) !important;
  box-shadow: inset 0 0 0 1px rgba(255,167,86,.40) !important;
}
.dock-ic, .dock-ic svg {
  width: 18px !important;
  height: 18px !important;
}
.dock-tx,
.dock-item span:last-child:not(.dock-ic) {
  font-size: 9px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100%;
}

.card,
.sub-card,
.option-card,
.method-card,
.hero-card,
.cab-panel,
.mini-card,
.stat-card,
.device-card,
.cab-stat,
.history-item,
.accordion,
.notice:not(.red):not(.green):not(.yellow) {
  border: 1px solid rgba(196, 106, 40, .22) !important;
  border-radius: 20px !important;
  background:
    radial-gradient(circle at 88% 0%, rgba(255,167,86,.12), transparent 46%),
    linear-gradient(165deg, #fff8f0 0%, #fff3e6 48%, #ffe8d1 100%) !important;
  box-shadow: 0 10px 24px rgba(196,106,40,.08) !important;
}
.card { padding: 16px !important; margin-top: 12px; }

.cab-stat {
  padding: 14px !important;
  border-radius: 18px !important;
}

.btn.ghost,
.btn-link.big-back,
.cab-actions .btn,
.icon-btn,
.amount-grid button,
.inp {
  border: 1px solid rgba(196, 106, 40, .22) !important;
  background:
    radial-gradient(circle at 90% 0%, rgba(255,167,86,.12), transparent 50%),
    linear-gradient(165deg, #fff8f0, #fff3e6) !important;
}

.dock {
  background:
    radial-gradient(circle at 50% 0%, rgba(255,167,86,.14), transparent 55%),
    rgba(255, 248, 240, .96) !important;
  border: 1px solid rgba(196, 106, 40, .22) !important;
}

.btn.primary,
.btn.green {
  border: 1px solid rgba(255,167,86,.55) !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #ffb56a, #e8943a) !important;
  color: #fff !important;
  font-weight: 720 !important;
  min-height: 48px;
  box-shadow: 0 14px 32px rgba(214,127,51,.28), inset 0 1px 0 rgba(255,255,255,.18) !important;
}
.btn.ghost,
.btn-link.big-back,
.cab-actions .btn {
  border-radius: 14px !important;
  color: #5c3e2e !important;
  min-height: 44px;
}

.page-title,
.cab-title {
  margin: 0 0 12px !important;
  font-size: 30px !important;
  font-weight: 560 !important;
  letter-spacing: -.05em !important;
  line-height: 1.05 !important;
  color: #fff;
}
.cab-kicker {
  margin: 2px 0 8px !important;
  color: #d67f33 !important;
  font-size: 11px !important;
  font-weight: 750 !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
}

.cab-traffic,
.hero-card.cab-traffic {
  margin-top: 4px !important;
  padding: 18px 16px 16px !important;
}
.cab-traffic-line,
.hero-traffic.cab-traffic-line {
  margin: 12px 0 14px !important;
  color: #fff !important;
  font-size: 26px !important;
  font-weight: 650 !important;
  letter-spacing: -.04em !important;
}
.chip,
.chip-traffic {
  display: inline-flex !important;
  align-items: center;
  min-height: 28px;
  padding: 0 11px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(249,160,87,.32) !important;
  background: rgba(255,167,86,.14) !important;
  color: #cbb6ff !important;
  font-size: 11px !important;
  font-weight: 740 !important;
}

.cab-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.cab-stat span {
  display: block;
  color: #9aa3bc;
  font-size: 10px;
  font-weight: 720;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.cab-stat strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 18px;
  font-weight: 680;
  letter-spacing: -.03em;
}
.cab-stat small {
  display: block;
  margin-top: 5px;
  color: #8b93a8;
  font-size: 11px;
  line-height: 1.3;
}

.cab-connect {
  width: 100%;
  margin-top: 12px;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center;
  gap: 4px;
  padding: 14px 16px !important;
  text-align: left;
}
.cab-connect small {
  opacity: .85;
  font-size: 12px;
  font-weight: 550;
}
.cab-connect:disabled {
  opacity: .45;
  box-shadow: none !important;
}

.cab-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 8px;
}
.cab-actions .btn { width: 100%; }
.cab-quick { display: none !important; }

.cab-rows { display: grid; gap: 0; margin: 0; }
.cab-rows > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,.075);
}
.cab-rows > div:last-child { border-bottom: 0; }
.cab-rows dt { color: #a07050; font-size: 13px; }
.cab-rows dd { margin: 0; color: #fff; font-size: 14px; font-weight: 700; text-align: right; }

.cab-balance-hero {
  margin: 2px 0 6px;
  font-size: 44px;
  font-weight: 650;
  letter-spacing: -.06em;
  color: #fff;
}
.cab-muted { margin: 0 0 10px; color: #a07050; }
.cab-option { margin-top: 14px !important; }
.cab-notice { margin-top: 10px; line-height: 1.45; }

.hero-pct, .seg-ticks { display: none !important; }

.progress {
  height: 12px !important;
  border-radius: 999px !important;
  overflow: hidden;
  background: rgba(196,106,40,.16) !important;
}
.progress span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #29e77c 0%, #f4d64e 45%, #ff9b2f 72%, #ff4d62 100%) !important;
}
.hero-card .seg-bar.continuous {
  height: 12px !important;
  background: rgba(196,106,40,.16) !important;
}
.hero-card .seg-bar.continuous .seg-fill {
  background: linear-gradient(90deg, #29e77c 0%, #f4d64e 45%, #ff9b2f 72%, #ff4d62 100%) !important;
  box-shadow: 0 0 14px rgba(41,231,124,.25) !important;
}

.method-card {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 14px !important;
  margin-top: 10px;
  cursor: pointer;
}
.amount-grid button {
  border-radius: 12px !important;
  color: #5c3e2e !important;
}
.amount-grid button.active {
  border-color: rgba(255,167,86,.50) !important;
  background: linear-gradient(135deg, rgba(255,167,86,.28), rgba(232,148,58,.16)) !important;
}
.inp {
  border-radius: 13px !important;
  color: #fff !important;
}
.history-item {
  border-radius: 14px !important;
  padding: 12px !important;
  margin-top: 8px;
}
.notice.red {
  border: 1px solid rgba(180, 35, 24, .35);
  background: #fff1f0;
  color: #9f1d1d;
  border-radius: 14px;
  padding: 12px 14px;
}
.notice.red,
.notice.red div,
.buy-warn,
.buy-warn div {
  color: #9f1d1d !important;
}
.notice.green {
  border: 1px solid rgba(80,220,140,.3);
  background: rgba(60,180,110,.12);
  color: #b8f5d0;
  border-radius: 14px;
  padding: 12px 14px;
}
.h2 { color: #fff !important; font-weight: 650 !important; letter-spacing: -.02em; }
.muted, .small.muted { color: #a07050 !important; }
.big { color: #fff !important; font-weight: 650; letter-spacing: -.04em; }

/* —— 20260731 UI polish —— */
.header-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  margin-bottom: 0 !important;
  gap: 12px;
}
.header-top .header-brand {
  width: auto !important;
  justify-content: flex-start !important;
  text-align: left !important;
}
.header-top .header-actions {
  flex: 0 0 auto;
  margin-left: auto;
  position: relative;
}
.app-header {
  overflow: visible !important;
}
.header-welcome,
.header-row { display: none !important; }

/* Darker surfaces */
.card,
.sub-card,
.option-card,
.method-card,
.hero-card,
.cab-panel,
.mini-card,
.stat-card,
.device-card,
.cab-stat,
.history-item,
.accordion,
.notice:not(.red):not(.green):not(.yellow),
.faq-item.option-faq,
.faq-block {
  background:
    radial-gradient(circle at 88% 0%, rgba(255,167,86,.12), transparent 46%),
    linear-gradient(165deg, #fff8f0 0%, #fff3e6 48%, #ffe8d1 100%) !important;
  border-color: rgba(196, 106, 40, .22) !important;
}
.btn.ghost,
.btn-link.big-back,
.cab-actions .btn,
.icon-btn,
.amount-grid button,
.inp,
.faq-head {
  background:
    radial-gradient(circle at 90% 0%, rgba(255,167,86,.10), transparent 50%),
    linear-gradient(165deg, #fff8f0, #ffe8d1) !important;
}
.btn.primary,
.btn.green {
  background: linear-gradient(135deg, #e8943a, #c46a28) !important;
  box-shadow: 0 12px 28px rgba(196,106,40,.22), inset 0 1px 0 rgba(255,255,255,.14) !important;
}
.btn.primary.sm {
  min-height: 34px !important;
  padding: 0 12px !important;
  font-size: 13px !important;
  border-radius: 10px !important;
  width: auto !important;
  min-width: 0 !important;
}

.cab-sub-only { margin-bottom: 10px !important; }
.cab-rows.tight { gap: 0 !important; }
.cab-rows.tight > div {
  padding: 8px 0 !important;
  min-height: 0 !important;
}
.cab-sub-info { margin-top: 4px !important; }
.cab-sub-actions { margin-top: 10px !important; }
.cab-traffic-sub { margin-top: 4px; text-align: center; }
.renew-btn {
  width: 100%;
  margin-top: 12px;
  min-height: 46px !important;
}
.autopay-row {
  margin-top: 10px !important;
  cursor: default !important;
}

/* Toggle animation */
.toggle {
  width: 52px !important;
  height: 30px !important;
  padding: 3px !important;
  transition: background .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s ease !important;
  box-shadow: inset 0 0 0 1px rgba(196,106,40,.16);
}
.toggle span {
  width: 24px !important;
  height: 24px !important;
  transition: transform .28s cubic-bezier(.2,.8,.2,1), background .2s ease !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.toggle.on {
  background: linear-gradient(135deg, #e8943a, #c46a28) !important;
  box-shadow: 0 0 0 1px rgba(255,167,86,.40), inset 0 1px 0 rgba(255,255,255,.2);
}
.toggle.on span { transform: translateX(22px) !important; }

/* FAQ accordion (site-style) */
.faq-item.option-faq,
.faq-block {
  overflow: hidden;
  margin-top: 10px;
  border-radius: 16px !important;
  padding: 0 !important;
}
.faq-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 12px 14px;
  border: 0 !important;
  border-radius: 16px !important;
  text-align: left;
  cursor: pointer;
  color: #fff;
  font: inherit;
}
.faq-head span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.faq-head strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.faq-head small {
  font-size: 12px;
  line-height: 1.35;
}
.faq-chev {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  flex: 0 0 32px !important;
  padding: 0 !important;
  border: 1px solid rgba(249,160,87,.28);
  border-radius: 10px;
  color: #d67f33;
  font-style: normal;
  font-size: 0 !important;
  line-height: 0 !important;
  text-align: center;
  transition: transform .28s ease, background .28s ease;
}
.faq-chev-svg {
  display: block;
  width: 16px;
  height: 16px;
  margin: 0 auto;
}
.faq-item.is-open .faq-chev,
.faq-block.is-open .faq-chev {
  transform: rotate(90deg);
  background: rgba(255,167,86,.14);
}

.method-ic {
  overflow: hidden;
  padding: 0 !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 12px !important;
  background: transparent !important;
}
.method-ic.platega,
.method-ic.crypto,
.method-ic.stars {
  background: transparent !important;
  color: transparent !important;
}
.method-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.renew-title-one {
  white-space: nowrap !important;
  font-size: 24px !important;
  margin-bottom: 14px !important;
}
.renew-site-card { padding: 18px !important; }
.renew-site-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.renew-kicker {
  color: #d67f33;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.renew-site-topline strong {
  color: #c4b0ff;
  font-size: 14px;
  font-weight: 700;
}
.renew-site-h {
  margin: 14px 0 6px !important;
  font-size: 26px !important;
  font-weight: 560 !important;
  letter-spacing: -.04em;
  color: #fff;
}
.renew-site-desc { margin: 0 0 12px !important; line-height: 1.45; }
.faq-chev.is-check {
  transform: none !important;
  background: rgba(80, 200, 140, .12);
  border-color: rgba(80, 200, 140, .35);
  color: #8dffc0;
}
.renew-site-rows {
  margin: 14px 0 16px;
}
.renew-site-rows > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.renew-site-rows > div:last-child { border-bottom: 0; }
.renew-site-rows dt { margin: 0; color: #8e8a9b; font-size: 13px; }
.renew-site-rows dd { margin: 0; color: #f1eff7; font-size: 14px; font-weight: 700; }

.plans.plans-compact {
  gap: 8px !important;
}
.plans-compact .plan {
  padding: 10px 12px !important;
  border-radius: 14px !important;
}
.plans-compact .plan-title {
  font-size: 13px !important;
  font-weight: 700 !important;
  margin-bottom: 6px;
}
.plan-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.plans-compact .plan-price {
  margin: 0 !important;
  font-size: 15px !important;
  color: #d67f33 !important;
}
.plan-disc {
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255,167,86,.24);
  color: #d6c7ff;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;
}
.plan-disc.ghost { visibility: hidden; }
.plans-compact .plan-per {
  margin-top: 4px;
  font-size: 11px !important;
}

.faq-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s cubic-bezier(.2,.8,.2,1);
}
.faq-item.is-open .faq-wrap,
.faq-block.is-open .faq-wrap {
  grid-template-rows: 1fr;
}
.faq-body {
  min-height: 0;
  overflow: hidden;
}
.faq-panel,
.devices-faq-inner {
  padding: 0 14px 16px;
}
.devices-faq-tools { margin-bottom: 8px; }

.stepper.compact {
  grid-template-columns: 42px auto 42px !important;
  justify-content: center;
  gap: 10px !important;
  max-width: 220px;
  margin-left: auto;
  margin-right: auto;
}
.stepper.compact .num { font-size: 28px; }

.buy-warn.compact {
  margin: 8px 0 10px !important;
  padding: 8px 10px !important;
  font-size: 13px !important;
  line-height: 1.3 !important;
}
.buy-warn.compact .btn {
  margin-top: 8px !important;
  min-width: 0 !important;
  width: auto !important;
  display: inline-flex !important;
}

.device-del {
  width: 40px !important;
  height: 40px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 12px !important;
  background: rgba(255,167,86,.14) !important;
  color: #c4b0ff !important;
}
.device-del svg {
  width: 22px !important;
  height: 22px !important;
  stroke-width: 2.6;
}

.method-card {
  margin-top: 10px;
  transition: border-color .2s ease, transform .18s ease, background .2s ease;
}
.method-card:active { transform: scale(.985); }
.promo-row { gap: 8px; }
.page-support .card,
#page-support .card {
  max-width: 100%;
}



/* === orange brand theme 20260817 mini (peach / mascot) === */
:root {
  --bg: #ffe8d1 !important;
  --bg-elev: #fdebd0 !important;
  --card: rgba(255,255,255,.78) !important;
  --line: rgba(196,106,40,.16) !important;
  --text: #5c3e2e !important;
  --muted: #a07050 !important;
  --soft: #8b5a3c !important;
  --accent: #ffa756 !important;
  --accent-2: #ffb56a !important;
}

html, body {
  background: #ffe8d1 !important;
  color: #5c3e2e !important;
}

body {
  background:
    radial-gradient(circle at 77% 3%, rgba(255, 167, 86, 0.34), transparent 28rem),
    radial-gradient(circle at 12% 40%, rgba(249, 160, 87, 0.16), transparent 30rem),
    linear-gradient(180deg, #ffe8d1 0%, #fde4c8 42%, #ffd9b0 100%) !important;
}

.app-header {
  border-bottom: 1px solid rgba(196,106,40,.14) !important;
  background: rgba(255, 232, 209, .84) !important;
}
.brand-mark { color: #5c3e2e !important; }
.brand-sub { color: #c46a28 !important; }
.header-welcome { color: #5c3e2e !important; }
.icon-btn {
  border-color: rgba(196,106,40,.22) !important;
  background: rgba(255,255,255,.65) !important;
  color: #5c3e2e !important;
}

.dock {
  background: rgba(255, 248, 240, .96) !important;
  border: 1px solid rgba(196,106,40,.18) !important;
  box-shadow: 0 16px 44px rgba(196,106,40,.16) !important;
}
.dock-item { color: #a07050 !important; }
.dock-item.active,
.dock-item.is-active {
  color: #c46a28 !important;
  background: rgba(255,167,86,.22) !important;
}

.card,
.sub-card,
.option-card,
.method-card,
.hero-card,
.cab-panel,
.mini-card,
.stat-card,
.device-card,
.cab-stat,
.history-item,
.accordion,
.notice:not(.red):not(.green):not(.yellow),
.faq-item.option-faq,
.faq-block,
.gate-card {
  background: #fff8f0 !important;
  border-color: rgba(196,106,40,.18) !important;
  color: #5c3e2e !important;
}

.btn.ghost,
.btn-link.big-back,
.cab-actions .btn,
.amount-grid button,
.inp,
.faq-head {
  border: 1px solid rgba(196,106,40,.22) !important;
  background: #fff !important;
  color: #5c3e2e !important;
}

.btn.primary,
.btn.green,
.renew-btn {
  border: 1px solid rgba(255,167,86,.55) !important;
  background: linear-gradient(135deg, #ffb56a, #e8943a) !important;
  color: #fff !important;
  box-shadow: 0 14px 32px rgba(214,127,51,.28), inset 0 1px 0 rgba(255,255,255,.18) !important;
}

.h2, .big, .page-title, .cab-title, .mini-days, .countdown,
.cab-rows dd, .cab-traffic-line, .hero-traffic.cab-traffic-line {
  color: #5c3e2e !important;
}
.cab-kicker { color: #c46a28 !important; }
.muted, .small.muted, .foot { color: #a07050 !important; }

.toggle.on {
  background: linear-gradient(135deg, #ffa756, #d67f33) !important;
}
.hero-card .seg-bar.continuous .seg-fill {
  background: linear-gradient(90deg, #ffa756 0%, #f9a057 45%, #d67f33 100%) !important;
  box-shadow: 0 0 12px rgba(255,167,86,.45) !important;
}
.progress span {
  background: linear-gradient(90deg, #ffa756, #d67f33) !important;
}
.amount-grid button.active {
  color: #c46a28 !important;
  border-color: rgba(255,167,86,.55) !important;
  background: linear-gradient(135deg, rgba(255,167,86,.28), rgba(232,148,58,.14)) !important;
}
.chip, .chip-traffic {
  border-color: rgba(249,160,87,.35) !important;
  color: #5c3e2e !important;
}
.faq-head { color: #5c3e2e !important; }
.faq-chev { color: #d67f33 !important; border-color: rgba(249,160,87,.28) !important; }

/* === mini cabinet contrast 20260817 === */
.cab-stat span { color: #c46a28 !important; }
.cab-stat strong,
.stat-val,
.cab-balance-hero,
.cab-rows dd,
.cab-title,
.page-title {
  color: #3d2418 !important;
}
.cab-stat small,
.cab-rows dt,
.cab-muted,
.stat-head,
.stat-sub {
  color: #7a4e34 !important;
}
.chip,
.chip-traffic {
  color: #c46a28 !important;
  border-color: rgba(196, 106, 40, .28) !important;
  background: rgba(255, 167, 86, .18) !important;
}
.hero-card .seg-bar.continuous {
  background: rgba(196, 106, 40, .28) !important;
}
.hero-card .seg-bar.continuous .seg-fill {
  background: linear-gradient(90deg, #ffa756 0%, #e8943a 55%, #c46a28 100%) !important;
  box-shadow: 0 0 10px rgba(232, 148, 58, .35) !important;
}
.cab-title span {
  color: #c46a28 !important;
  -webkit-text-fill-color: #c46a28 !important;
  background: none !important;
}
.renew-limits { color: #3d2418 !important; }
.cab-connect { color: #fff !important; }
.mini-days-sub { color: #7a4e34 !important; }

.device-del,
.device-del svg {
  color: #c46a28 !important;
  stroke: #c46a28 !important;
}
.amount-inline b,
.renew-site-topline strong {
  color: #c46a28 !important;
}
.option-desc,
.notice:not(.red):not(.green):not(.yellow),
.traffic-row {
  color: #7a4e34 !important;
}
.toast {
  background: #fff8f0 !important;
  border: 1px solid rgba(196, 106, 40, .22) !important;
  color: #3d2418 !important;
  box-shadow: 0 12px 28px rgba(196, 106, 40, .16) !important;
}
.toast.green {
  background: #e9f7ee !important;
  border-color: rgba(34, 140, 80, .35) !important;
  color: #1a6b3c !important;
}
.toast.red {
  background: #fdecec !important;
  border-color: rgba(196, 74, 58, .35) !important;
  color: #9b2c1a !important;
}
.toast.yellow {
  background: #fff6e4 !important;
  border-color: rgba(196, 140, 40, .35) !important;
  color: #7a4e12 !important;
}
.notice.green {
  background: #e9f7ee !important;
  border-color: rgba(34, 140, 80, .28) !important;
  color: #1a6b3c !important;
}

/* === mini UX contrast + buy clarity 20260823 === */
.renew-site-rows > div {
  border-bottom-color: rgba(196, 106, 40, .12) !important;
}
.renew-site-rows dt {
  color: #7a4e34 !important;
}
.renew-site-rows dd {
  color: #3d2418 !important;
}
.faq-chev.is-check {
  background: rgba(255, 167, 86, .18) !important;
  border-color: rgba(196, 106, 40, .35) !important;
  color: #c46a28 !important;
}

.lang-tray,
.plat-tray {
  background: #fffaf4 !important;
  border: 1px solid rgba(196, 106, 40, .22) !important;
  box-shadow: 0 14px 32px rgba(92, 48, 24, .14) !important;
  backdrop-filter: none !important;
}
.lang-opt,
.plat-opt {
  color: #3d2418 !important;
}
.lang-opt:hover,
.plat-opt:hover,
.plat-opt.is-active {
  background: rgba(255, 167, 86, .22) !important;
  color: #3d2418 !important;
}

.plans-compact .plan {
  background: #fff !important;
  border: 1.5px solid rgba(196, 106, 40, .18) !important;
  color: #3d2418 !important;
  position: relative;
  box-shadow: 0 4px 14px rgba(92, 48, 24, .05);
}
.plans-compact .plan-title {
  color: #3d2418 !important;
}
.plans-compact .plan-per,
.plans-compact .small.muted {
  color: #7a4e34 !important;
}
.plans-compact .plan.selected {
  border-color: #c46a28 !important;
  background: linear-gradient(180deg, #fff6eb 0%, #ffe8d1 100%) !important;
  box-shadow: 0 0 0 2px rgba(196, 106, 40, .28), 0 8px 20px rgba(196, 106, 40, .12) !important;
}
.plan-disc {
  background: rgba(255, 167, 86, .28) !important;
  color: #c46a28 !important;
}
.plan-badge {
  position: absolute;
  top: -8px;
  left: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #c46a28;
  color: #fff !important;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .02em;
  line-height: 1.3;
}
.plan-selected-mark {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #c46a28;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.plans-compact .plan.selected .plan-selected-mark {
  display: flex;
}
.renew-pick-hint {
  margin: 0 0 10px !important;
  color: #7a4e34 !important;
  font-size: 13px !important;
  line-height: 1.4;
}
.renew-pay-card {
  margin-top: 12px !important;
  border: 1.5px solid rgba(196, 106, 40, .2) !important;
}
.renew-pay-card .payline span.big,
.renew-pay-card .payline .big {
  color: #c46a28 !important;
}
#buy-renew {
  margin-top: 12px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .01em;
}

/* === subscription compact 20260825 === */
.sub-cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0 8px;
}
.sub-cta-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100% !important;
  min-height: 46px !important;
  margin: 0 !important;
  padding: 8px 12px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(196,106,40,.22) !important;
  background: #fff !important;
  color: #5c3e2e !important;
  font: inherit;
  font-size: 13px !important;
  font-weight: 750 !important;
  line-height: 1.25 !important;
  letter-spacing: -.01em;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(196,106,40,.06);
}
.sub-cta-btn > span {
  text-align: center;
  line-height: 1.2;
}
.sub-cta-btn .sub-cta-ic {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: #c46a28;
}
.sub-cta-btn:active { transform: scale(.985); }
.sub-link-row {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(196,106,40,.18);
  background: #fff8f0;
  color: #5c3e2e;
  font: inherit;
  font-size: 15px;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}
.sub-link-row:disabled {
  opacity: .55;
  cursor: default;
}
.sub-link-chev {
  color: #c46a28;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
}
.cab-slab {
  margin-top: 8px !important;
  padding: 10px 12px !important;
}
.cab-slab-traffic .cab-slab-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.cab-slab-val {
  font-size: 16px !important;
  font-weight: 750 !important;
  color: #5c3e2e !important;
  letter-spacing: -.02em;
}
.progress.slim {
  height: 5px !important;
  margin-top: 8px !important;
}
.cab-slab.autopay-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px !important;
}
.cab-slab-faq {
  margin-top: 8px !important;
}
.cab-slab-faq .faq-head.compact {
  min-height: 48px !important;
  padding: 10px 12px !important;
}
.devices-faq-tools {
  margin-bottom: 6px;
  justify-content: flex-end;
}
.sub-email-wrap {
  margin-top: 8px;
}
.sub-email-wrap .faq-item.option-faq {
  margin-top: 0 !important;
}
.sub-email-wrap .faq-head {
  min-height: 48px !important;
  padding: 10px 12px !important;
}
.sub-flow-sub {
  margin: -4px 0 10px !important;
  color: #a07050 !important;
  font-size: 13px !important;
}
.sub-flow-sub b { color: #5c3e2e; }
.sub-flow-status {
  margin: 0 0 10px !important;
  padding: 12px !important;
}
.sub-flow-status-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 780;
  color: #5c3e2e;
}
.sub-flow-status-grid {
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: #a07050;
}
.sub-flow-status-grid b { color: #5c3e2e; }
.sub-flow-card {
  padding: 12px !important;
  margin: 0 !important;
}
.sub-period-label {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: #7a4e34;
}
.sub-period-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 10px;
}
.sub-period-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 58px;
  padding: 8px 6px;
  border-radius: 12px;
  border: 1px solid rgba(196,106,40,.18);
  background: #fff;
  color: #5c3e2e;
  font: inherit;
  cursor: pointer;
}
.sub-period-chip strong {
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  line-height: 1.2;
}
.sub-period-chip span {
  font-size: 11px;
  color: #a07050;
  font-weight: 650;
}
.sub-period-chip.is-on {
  border-color: rgba(232,148,58,.65);
  background: linear-gradient(165deg, #fff6eb, #ffe8d1);
  box-shadow: 0 0 0 1px rgba(255,167,86,.25);
}
.sub-period-chip.is-on span { color: #c46a28; }
.sub-pay-rows {
  margin-top: 4px !important;
}
.sub-apply-hint {
  margin: 10px 0 0 !important;
  font-size: 12px;
  font-weight: 700;
  color: #c46a28;
  text-align: center;
}
.sub-slider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  color: #7a4e34;
}
.sub-slider-picked b { color: #c46a28; }
.sub-stepper {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 8px;
  margin: 4px 0 4px;
}
.sub-step-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(196,106,40,.22);
  background: #fff6eb;
  color: #c46a28;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.sub-step-btn:disabled {
  opacity: .4;
  cursor: default;
}
.sub-range-wrap { min-width: 0; }
.sub-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  margin: 8px 0 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e8943a 0 var(--fill, 0%), #ffe3c4 var(--fill, 0%), #ffe3c4 100%);
  outline: none;
  cursor: pointer;
}
.sub-range::-webkit-slider-runnable-track {
  height: 10px;
  border-radius: 999px;
  background: transparent;
}
.sub-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -6px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #e8943a;
  box-shadow: 0 2px 6px rgba(196,106,40,.35);
  cursor: grab;
}
.sub-range::-moz-range-track {
  height: 10px;
  border-radius: 999px;
  background: #ffe3c4;
  border: none;
}
.sub-range::-moz-range-progress {
  height: 10px;
  border-radius: 999px;
  background: #e8943a;
}
.sub-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #e8943a;
  box-shadow: 0 2px 6px rgba(196,106,40,.35);
  cursor: grab;
}
.sub-slider-ticks {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 11px;
  color: #a07050;
  font-weight: 650;
}
.page-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px !important;
}
.page-title-block {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.page-title-row .page-title {
  margin: 0 !important;
}
.page-balance-line {
  align-self: flex-start;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  color: #a07050;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}
.page-balance-line b {
  color: #5c3e2e;
  font-weight: 780;
}
.page-title-refresh {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #c46a28;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 6px 2px;
  cursor: pointer;
}
.page-title-refresh:disabled {
  opacity: .55;
  cursor: default;
}
.dock-item.is-locked,
.dock-item:disabled {
  opacity: .38 !important;
  pointer-events: none;
  cursor: default;
}
.sub-empty-hint {
  line-height: 1.45;
  margin-bottom: 10px !important;
}
.plans-catalog {
  padding: 12px !important;
  margin: 0 0 10px !important;
}
.tariff-offer {
  margin: 0 0 14px;
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(196,106,40,.12);
}
.tariff-offer-title {
  font-size: 17px;
  font-weight: 820;
  color: #5c3e2e;
  letter-spacing: -.02em;
}
.tariff-offer-desc {
  margin: 4px 0 10px !important;
  font-size: 13px;
  color: #a07050;
}
.tariff-offer-rows {
  margin: 0 !important;
}
.tariff-offer-price {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 820;
  color: #c46a28;
  letter-spacing: -.02em;
}
.plans-catalog-head {
  font-size: 14px;
  font-weight: 780;
  color: #5c3e2e;
  margin-bottom: 4px;
}
.plans-catalog-hint {
  margin: 0 0 10px !important;
}
.plans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.plan-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-height: 78px;
  padding: 10px 11px;
  border-radius: 14px;
  border: 1px solid rgba(196,106,40,.18);
  background: #fff;
  color: #5c3e2e;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.plan-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
}
.plan-card-top strong {
  font-size: 13px;
  font-weight: 780;
}
.plan-card-badge {
  font-style: normal;
  font-size: 10px;
  font-weight: 750;
  color: #c46a28;
  background: #fff1e0;
  border-radius: 999px;
  padding: 2px 6px;
  white-space: nowrap;
}
.plan-card-price {
  margin-top: 4px;
  font-size: 17px;
  font-weight: 820;
  letter-spacing: -.02em;
}
.plan-card-sub {
  font-size: 11px;
  color: #a07050;
  font-weight: 650;
}
.plan-card.is-on {
  border-color: rgba(232,148,58,.7);
  background: linear-gradient(165deg, #fff6eb, #ffe8d1);
  box-shadow: 0 0 0 1px rgba(255,167,86,.22);
}
.plans-catalog #buy-entry {
  width: 100%;
  margin: 0 !important;
}
.sub-flow-actions {
  display: grid;
  grid-template-columns: .85fr 1.35fr;
  gap: 8px;
  margin-top: 12px;
}
.sub-flow-actions .btn,
.sub-flow-actions .sub-cta-btn {
  min-height: 46px !important;
  margin: 0 !important;
  font-size: 14px !important;
  font-weight: 780 !important;
}
@media (max-width: 360px) {
  .sub-cta-row { grid-template-columns: 1fr; }
  .sub-period-grid { grid-template-columns: 1fr 1fr; }
}

/* === SEO landing (crawlable brand text for Yandex/Google) === */
/* Mini App: never flash SEO landing before JS boots */
#seo-landing,
.seo-landing {
  display: none !important;
}

.seo-landing-legacy {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  color: #5c3e2e;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.55;
}
.seo-landing.hidden { display: none !important; }
.seo-brand-mark {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #c46a28;
}
.seo-landing h1 {
  margin: 0 0 12px;
  font-size: clamp(22px, 5vw, 28px);
  font-weight: 820;
  letter-spacing: -.02em;
  line-height: 1.25;
  color: #3d2418;
}
.seo-lead { margin: 0 0 20px; font-size: 15px; color: #7a4e34; }
.seo-landing-section {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(196,106,40,.16);
  background: #fff8f0;
}
.seo-landing-section h2 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 780;
  color: #5c3e2e;
}
.seo-landing-section p,
.seo-landing-section ul {
  margin: 0;
  font-size: 14px;
  color: #7a4e34;
}
.seo-landing-section ul { padding-left: 18px; }
.seo-landing-section li { margin: 4px 0; }
.seo-landing a { color: #c46a28; font-weight: 650; }
.seo-landing-foot {
  margin-top: 16px;
  font-size: 12px;
  color: #a07050;
  text-align: center;
}

/* Connect / QR modal (20260908) */
.qr-entry-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  margin: 0 0 14px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid rgba(196,106,40,.18);
  background: rgba(255,255,255,.72);
  color: #5c3e2e;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
.docs-entry-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1.5px solid rgba(196,106,40,.28);
  background: #fff;
  color: #5c3e2e;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(196,106,40,.1);
}
.docs-entry-ic {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255,167,86,.18);
  color: #5c3e2e;
  flex: 0 0 auto;
}
.docs-entry-txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.docs-entry-txt strong {
  font-size: 15px;
  font-weight: 800;
}
.docs-entry-txt small {
  color: #8a5a3d;
  font-size: 12px;
  line-height: 1.35;
}
.docs-entry-chev {
  color: #a07050;
  font-size: 22px;
  line-height: 1;
  flex: 0 0 auto;
}
.docs-back-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin: 0 0 12px !important;
  padding: 0 16px !important;
  border-radius: 14px !important;
  border: 1.5px solid rgba(196,106,40,.28) !important;
  background: #fff !important;
  color: #5c3e2e !important;
  font: inherit !important;
  font-size: 14px !important;
  font-weight: 750 !important;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(196,106,40,.08);
}
.docs-back-btn:active { transform: scale(.98); }
.docs-lead {
  margin: 0 0 16px !important;
  line-height: 1.45;
}
.docs-sec { margin: 0 0 18px; }
.docs-sec-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
}
.docs-sec-title {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #7a4e34;
}
.docs-sec-count { display: none !important; }
.docs-list { display: grid; gap: 8px; }
.docs-topic {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 68px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1.5px solid rgba(196,106,40,.18);
  background: #fff;
  color: #5c3e2e;
  text-align: left;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(196,106,40,.08);
}
.docs-topic:active { transform: scale(.985); }
.docs-topic-ic {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255,167,86,.18);
  color: #5c3e2e;
  flex: 0 0 auto;
}
.docs-topic-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}
.docs-topic-body strong {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}
.docs-topic-body small {
  color: #8a5a3d;
  font-size: 12px;
  line-height: 1.35;
}
.docs-topic-chev {
  color: #c46a28;
  font-size: 22px;
  line-height: 1;
  flex: 0 0 auto;
}
.docs-article-title { font-size: 24px !important; }
.docs-shots { display: grid; gap: 12px; margin-top: 4px; }
.docs-shot {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1.5px solid rgba(196,106,40,.16);
  background: #fff;
  box-shadow: 0 10px 24px rgba(196,106,40,.1);
}
.docs-shot img {
  display: block;
  width: 100%;
  height: auto;
}
.docs-shot figcaption {
  padding: 10px 12px;
  border-top: 1px solid rgba(196,106,40,.12);
  background: #fff8f0;
  color: #8a5a3d;
  font-size: 12px;
  font-weight: 650;
}
.qr-entry-ic { font-size: 16px; opacity: .8; }
.how-title { margin: 0 0 12px !important; font-size: 26px !important; letter-spacing: -.03em; }
.plat-dd-block {
  position: relative;
  width: 100%;
  margin: 0 0 12px;
}
.plat-dd-wide {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 50px !important;
  padding: 0 14px !important;
  border-radius: 16px !important;
  background: #fff !important;
  color: #5c3e2e !important;
}
.plat-dd-block .plat-tray {
  position: static;
  right: auto;
  top: auto;
  min-width: 0;
  width: 100%;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  padding: 0 6px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: #fff;
  box-shadow: none;
  transition: max-height .28s ease, opacity .2s ease, margin .2s ease, padding .2s ease;
}
.plat-dd-block.is-open .plat-tray {
  max-height: 380px;
  opacity: 1;
  margin-top: 8px;
  padding: 6px;
  border-color: rgba(196,106,40,.16);
  box-shadow: 0 16px 36px rgba(92,62,46,.12);
}
.plat-dd-block .plat-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #5c3e2e;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.plat-dd-block .plat-opt.is-current,
.plat-dd-block .plat-opt:hover { background: rgba(255,167,86,.18); }
.app-stack { display: grid; gap: 8px; margin: 4px 0 12px; }
.app-stack-btn {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100%;
  min-height: 64px !important;
  padding: 8px 14px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(196,106,40,.16);
  background: #fff;
  color: #5c3e2e;
  font: inherit;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}
.app-stack-btn.active {
  border: 2px solid #e8943a !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(232,148,58,.22), 0 10px 22px rgba(196,106,40,.16) !important;
}
.app-stack-name { flex: 1; }
.app-rec {
  margin-left: auto;
  padding: 4px 8px;
  border-radius: 8px;
  background: #1c1c1e;
  color: #fff;
  font-size: 10px;
  letter-spacing: .06em;
  font-weight: 800;
}
.step-card { margin-top: 10px; }
.qr-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(40,24,16,.5);
  z-index: 90;
  padding: 20px 16px max(28px, env(safe-area-inset-bottom));
}
.qr-modal.is-open { display: flex; }
.qr-modal-card {
  width: min(420px, 100%);
  min-height: min(78vh, 620px);
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  background: #fff;
  padding: 22px 20px 28px;
  box-shadow: 0 28px 70px rgba(40,24,16,.34);
}
.qr-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  flex: 0 0 auto;
}
.qr-modal-x {
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #5c3e2e;
}
.qr-modal-frame {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1 1 auto;
  margin: 18px 0 22px;
}
.qr-modal-frame img {
  width: 248px;
  height: 248px;
  border-radius: 18px;
  background: #fff;
  padding: 12px;
  border: 1px solid rgba(196,106,40,.14);
  box-shadow: 0 10px 28px rgba(92,62,46,.1);
}
#page-setup .qr-modal #qr-modal-copy,
.qr-modal #qr-modal-copy,
.qr-modal-copy-btn {
  flex: 0 0 auto;
  min-height: 54px !important;
  margin-top: auto;
  font-weight: 800 !important;
  background: linear-gradient(135deg, #ffb56a, #e8943a) !important;
  border: 1.5px solid #d47f33 !important;
  color: #fff !important;
  box-shadow: 0 14px 30px rgba(196,106,40,.32) !important;
}

html, body, .app-root, .scroll-main, .page, * {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  scrollbar-gutter: unset !important;
}
html, body { overflow-x: hidden !important; }
html::-webkit-scrollbar,
body::-webkit-scrollbar,
.scroll-main::-webkit-scrollbar,
.app-root::-webkit-scrollbar,
.page::-webkit-scrollbar,
*::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

.qr-ico, .plat-ico { flex: 0 0 auto; color: #5c3e2e; display: block; }
.plat-dd-label, .plat-opt {
  display: flex !important;
  align-items: center;
  gap: 10px;
}
.plat-dd-wide { background: #fff !important; border: 1.5px solid rgba(196,106,40,.35) !important; box-shadow: 0 6px 16px rgba(196,106,40,.08); }
.plat-dd-block .plat-tray { background: #fff !important; border: 1.5px solid rgba(196,106,40,.22) !important; }
.qr-entry-btn {
  background: #fff !important;
  border: 1.5px solid rgba(196,106,40,.28) !important;
  box-shadow: 0 8px 18px rgba(196,106,40,.08);
}

.app-stack-btn {
  background: #fff !important;
  border: 1.5px solid rgba(196,106,40,.22) !important;
  box-shadow: 0 8px 18px rgba(196,106,40,.07);
}
.app-stack-btn.active {
  background: #fff !important;
  border: 2px solid #e8943a !important;
  box-shadow: 0 0 0 3px rgba(232,148,58,.22), 0 10px 22px rgba(196,106,40,.16) !important;
}

.notice.yellow,
.happ-update-warn {
  background: #fff1cc !important;
  border: 1.5px solid #e0a020 !important;
  color: #6a3e08 !important;
}

#page-setup .card,
#page-setup .step-card {
  background: #fff !important;
  border: 1.5px solid rgba(196,106,40,.22) !important;
  box-shadow: 0 10px 24px rgba(196,106,40,.08) !important;
  color: #5c3e2e !important;
}
#page-setup .btn {
  background: #fff !important;
  border: 1.5px solid rgba(196,106,40,.38) !important;
  color: #5c3e2e !important;
  box-shadow: 0 6px 14px rgba(196,106,40,.1) !important;
}
#page-setup .btn.primary {
  background: linear-gradient(135deg, #ffb56a, #e8943a) !important;
  border-color: #e8943a !important;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(196,106,40,.22) !important;
}
#page-setup .muted,
#page-setup .add-sub-hint { color: #7a4e34 !important; }

