/* Mr. Don cabinet — visual system Gor Cosmic-purple (glass dark bg, violet accents) */
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/Inter-Regular.woff2') format('woff2')}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/Inter-SemiBold.woff2') format('woff2')}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url('/fonts/Inter-Bold.woff2') format('woff2')}
@font-face{font-family:'Inter';font-style:normal;font-weight:900;font-display:swap;src:url('/fonts/Inter-Black.woff2') format('woff2')}
@font-face{font-family:'Inter';font-style:italic;font-weight:400;font-display:swap;src:url('/fonts/Inter-Italic.woff2') format('woff2')}
@font-face{font-family:'Inter';font-style:italic;font-weight:600;font-display:swap;src:url('/fonts/Inter-SemiBoldItalic.woff2') format('woff2')}
@font-face{font-family:'Inter';font-style:italic;font-weight:700;font-display:swap;src:url('/fonts/Inter-BoldItalic.woff2') format('woff2')}
@font-face{font-family:'Inter';font-style:italic;font-weight:900;font-display:swap;src:url('/fonts/Inter-BlackItalic.woff2') format('woff2')}

:root {
  /* Gor.cc measured structure → Cosmic purple (Mr. Don). Live gor.cc :root 2026-09-30. */
  --bg-solid: #120f1a;
  --bg: #120f1a;
  /* Gor formula: radial primary@10% + vertical stops 13/20/50/80/90% */
  --background: radial-gradient(1200px 600px at 60% 50%, #b18cf51a, transparent 60%),
    linear-gradient(to bottom, #120f1a 13%, #1a1328 20%, #221a35 50%, #1a1328 80%, #120f1a 90%);
  /* Gor exact glass fill */
  --content: linear-gradient(180deg, #ffffff0d 0%, #ffffff05 100%);
  --surface: #221c32;
  --surface-soft: #161022;
  --card-content: #2a2438;
  /* Gor exact border */
  --border: #ffffff08;
  --border-strong: #ffffff14;
  /* Softened title white (Gor titles sample #e2e8f0; Adam #E8E4F0) */
  --text: #E8E4F0;
  --text-primary: #E8E4F0;
  /* Gor exact secondary */
  --text-secondary: #9fa9c6;
  --text-muted: #9fa9c6b3; /* secondary @ ~70% like Gor /70 */
  --primary: #b18cf5;
  --primary-hover: #9a72e8;
  --primary-soft: #b18cf526;
  --primary-shadow: #b18cf533; /* Gor primary-shadow alpha pattern */
  --primary-border: #b18cf555;
  --gold: #ffc94a;
  --gold-soft: #ffc94a22;
  --danger: #ff3957;
  --danger-soft: #ff395722;
  --ok: #10b981;
  --ok-soft: #10b98122;
  /* Gor radii pattern */
  --radius: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px; /* rounded-[36px] cards */
  --radius-btn: 22px; /* rounded-[22px] CTA */
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* Gor glass shadow exact */
  --shadow: inset 0 1px #ffffff2b, inset 0 -1px #ffffff08, 0 15px 35px #00000040;
  --ease: cubic-bezier(.34, 1.56, .64, 1);
  --btn-hover-easing: ease-in-out;
  --btn-spring-duration: .22s;
  --btn-spring-easing: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-solid);
  -webkit-font-smoothing: antialiased;
}
body {
  min-height: 100dvh;
  background: var(--background);
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }
img { max-width: 100%; height: auto; }

.app-shell {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  min-height: 100dvh;
  padding: 16px 16px 48px;
  position: relative;
}

/* —— Brand —— */
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  width: 100%;
}
.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 5px var(--primary-soft);
  animation: logoPulse 2.3s ease-in-out infinite;
}
.brand-name {
  font-size: 28px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}
.brand-name span {
  color: var(--text-secondary);
  font-weight: 700;
  font-style: italic;
}

/* —— Glass cards —— */
.card, .glass, .bg-content {
  position: relative;
  background: var(--content);
  border: .5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card + .card, .glass + .glass { margin-top: 14px; }
.card-tight, .glass-tight { padding: 16px 18px; }
.card::after, .bg-content::after, .glass::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 30%, #ffffff57 45%, #e4d4ff3d 55%, #b18cf547 65%, transparent 75%);
  background-size: 230% 230%;
  opacity: 0;
  animation: contentBorderGlint 5s ease-in-out infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
}

.label, .label-caps {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  margin: 0 0 14px;
}

/* —— Primary CTA with 5s shimmer —— */
.btn, .cta, .btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.01em;
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
  text-decoration: none;
  background-color: transparent;
  background-image:
    linear-gradient(180deg, #c4a6ffd9, #b18cf5d9),
    linear-gradient(120deg, transparent 35%, #ffffff70 48%, #e4d4ff57 52%, transparent 65%),
    linear-gradient(#ffffff14, #ffffff14);
  background-size: 100% 100%, 230% 230%, 100% 100%;
  background-position: 0 0, 135% 0, 0 0;
  background-origin: border-box;
  background-clip: padding-box, border-box, border-box;
  box-shadow: inset 0 1px #ffffff40, 0 8px 24px var(--primary-shadow);
  animation: primaryButtonBorderGlint 5s ease-in-out infinite;
  transition: filter .25s var(--btn-hover-easing), transform .22s var(--ease);
}
.btn::after, .cta::after, .btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(#ffffff40, transparent 50%);
  opacity: .4;
  pointer-events: none;
}
.btn:hover, .cta:hover { filter: brightness(1.08); }
.btn:active, .cta:active { transform: scale(0.97); }
.btn:disabled, .cta:disabled { opacity: .45; cursor: not-allowed; transform: none; filter: none; }

.btn-ghost, .cta-ghost, .btn-secondary {
  background-image: linear-gradient(180deg, #ffffff0d, #ffffff05);
  background-size: 100% 100%;
  animation: none;
  color: #e5e7eb;
  font-weight: 700;
  border: .5px solid var(--border-strong);
  box-shadow: inset 0 1px #ffffff18, 0 8px 20px #00000030;
}
.btn-ghost::after, .cta-ghost::after, .btn-secondary::after { display: none; }
.btn-ghost:hover, .cta-ghost:hover { filter: brightness(1.08); }

.btn-soft {
  background-image: none;
  background: var(--primary-soft);
  color: #C4B5FD;
  border: 1px solid var(--primary-border);
  animation: none;
  box-shadow: none;
}
.btn-soft::after { display: none; }

.btn-danger, .cta-danger {
  background-image: linear-gradient(180deg, #ff3957, #e70044);
  animation: none;
  color: #fff;
}
.btn-danger::after { opacity: .25; }

.btn-sm, .cta-sm {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 14px;
  width: auto;
  border-radius: 16px;
}

.btn-icon, .icon-btn {
  width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  border-radius: 16px;
  border: .5px solid var(--border-strong);
  background: linear-gradient(180deg, #ffffff0d, #ffffff05);
  color: var(--text);
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
  animation: none;
  box-shadow: inset 0 1px #ffffff18;
}
.btn-icon::after { display: none; }

/* —— Header pill —— */
.topbar, .header-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 999px;
  background: #ffffff0a;
  border: .5px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 10px;
  z-index: 40;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px #00000035;
}
.topbar .avatar, .header-pill .avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary-soft);
  border: 1px solid var(--primary-border);
  color: #C4B5FD;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-style: italic;
  font-size: 15px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.topbar .meta, .header-pill .meta { flex: 1; min-width: 0; }
.topbar .mail, .header-pill .mail {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar .role, .header-pill .role {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
  letter-spacing: 0.04em;
}
.topbar .menu-btn, .header-pill .menu-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-size: 20px;
  letter-spacing: 0.02em;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  line-height: 1;
}
.topbar .menu-btn:hover { color: var(--text); background: #ffffff0a; }
/* Gor home: no separate door — logout lives in ⋯ menu */
.home-page .logout-door { display: none !important; }

.topbar .logout-door, .header-pill .logout-door {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: .5px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  padding: 0;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease, opacity .2s ease;
}
.topbar .logout-door svg { display: block; }
.topbar .logout-door:hover {
  color: #ff3957cc;
  background: #ff395714;
  border-color: #ff395733;
}

.nav-back, .header-back {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.nav-back a.back, .header-back a.back {
  font-size: 13px;
  font-weight: 600;
  font-style: italic;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: 999px;
  border: .5px solid var(--border);
  background: #ffffff0a;
  backdrop-filter: blur(12px);
}
.nav-back .crumb, .header-back .step {
  flex: 1;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.menu-drop {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: linear-gradient(180deg, #1a1628f2, #12101cf5);
  border: .5px solid var(--border-strong);
  border-radius: 22px;
  padding: 8px;
  box-shadow: 0 20px 48px #00000080;
  backdrop-filter: blur(20px);
  z-index: 50;
}
.menu-drop.open { display: block; }
.menu-drop a, .menu-drop button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  font-style: italic;
  border-radius: 14px;
  text-align: left;
}
.menu-drop a:hover, .menu-drop button:hover { background: #ffffff0a; }
.menu-drop .danger { color: #fb7185; }

/* —— Titles —— */
.page-title, .login-heading {
  font-size: 32px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 8px 0 8px;
  color: #fff;
  animation: enter-title-fade .24s ease-out both;
}
.page-sub, .login-sub {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 22px;
}
.login-heading, .login-sub { text-align: center; }

.landing-title {
  font-size: 26px;
  line-height: 1.2;
  max-width: 16em;
  margin: 8px auto 28px;
  text-wrap: balance;
}


.hero-days {
  text-align: center;
  padding: 18px 0 22px;
  animation: enter-content-rise .82s both;
}
.hero-days .num {
  font-family: var(--font);
  font-size: 96px;
  font-weight: 900;
  font-style: italic;
  line-height: 0.88;
  letter-spacing: -0.055em;
  color: var(--text-primary);
}
.hero-days .num em {
  font-style: italic;
  color: var(--primary);
  font-size: 0.32em;
  font-weight: 800;
  vertical-align: super;
  margin-left: 6px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-days .caption {
  margin-top: 6px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-primary);
  opacity: 0.92;
}

/* Home — Gor-lean density: paid-until + renew pill */
.home-page .app-shell { padding-bottom: max(28px, calc(20px + env(safe-area-inset-bottom))); }
.home-page .card + .card { margin-top: 12px; }
.sub-tile { padding: 18px 18px 16px; }
.sub-tile .label { margin-bottom: 10px; }
.sub-tile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.sub-tile-info { min-width: 0; flex: 1; }
.paid-until {
  font-size: 20px;
  font-weight: 900;
  font-style: italic;
  font-family: var(--font);
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.1;
  white-space: nowrap;
}
.sub-tile-info .meta {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-secondary);
}
.btn.btn-renew {
  width: auto;
  flex-shrink: 0;
  min-width: 118px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
}
.devices-tile { margin-top: 12px; }
.home-page .wa-row { margin-top: 14px; }

/* Home — invite friend card (visible, not only ⋯ menu) */
.invite-tile {
  margin-top: 12px;
  padding: 18px 18px 16px;
}
.invite-tile .label {
  margin-bottom: 8px;
  font-family: var(--font);
  font-weight: 900;
  font-style: italic;
}
.invite-desc {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-secondary);
}
.btn.btn-invite {
  width: 100%;
  min-height: 48px;
  font-weight: 800;
  font-style: italic;
}
.home-page .section-head h3,
.home-page .label,
.home-page .sub-tile-info .meta {
  font-family: var(--font);
  font-style: italic;
}
.home-page .section-head h3 {
  font-weight: 900;
}
.home-page .device-row .name {
  font-weight: 800;
  font-style: italic;
}

/* —— Landing action cards —— */
.landing-actions { display: flex; flex-direction: column; gap: 14px; }
.action-card {
  position: relative;
  display: block;
  padding: 22px 20px;
  border-radius: var(--radius-xl);
  background: var(--content);
  border: .5px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .22s var(--ease), filter .25s;
  cursor: pointer;
  text-align: left;
  width: 100%;
  color: inherit;
}
.action-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 30%, #ffffff57 45%, #e4d4ff3d 55%, #b18cf547 65%, transparent 75%);
  background-size: 230% 230%;
  opacity: 0;
  animation: contentBorderGlint 5s ease-in-out infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
}
.action-card:hover { filter: brightness(1.06); transform: translateY(-1px); }
.action-card:active { transform: scale(0.985); }
.action-card .ac-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.action-card .ac-title {
  font-size: 22px;
  font-weight: 900;
  font-style: italic;
  margin: 0 0 6px;
}
.action-card .ac-desc {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.45;
}
.action-card.primary .ac-title { color: #C4B5FD; }

.panel-step { animation: enter-content-rise .6s both; }

/* —— Segmented / well —— */
.well {
  background: #0206171a;
  border-radius: 18px;
  padding: 4px;
  border: .5px solid var(--border);
  box-shadow: inset 0 1px #00000040;
}
.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  position: relative;
}
.seg button {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
  font-style: italic;
  font-size: 14px;
  padding: 12px;
  border-radius: 14px;
  position: relative;
  z-index: 1;
  transition: color .25s;
}
.seg button.active { color: #fff; }
.seg .thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 14px;
  background-image: linear-gradient(180deg, #c4a6ffd9, #b18cf5d9);
  box-shadow: inset 0 1px #ffffff30;
  transition: transform .3s ease;
  z-index: 0;
}
.seg .thumb.right { transform: translateX(100%); }

.field {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}
.field input, .input-alone {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 52px;
  border-radius: 18px;
  border: .5px solid var(--border-strong);
  background: #02061733;
  color: var(--text);
  padding: 0 18px;
  font-size: 16px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  box-shadow: inset 0 1px #ffffff10;
}
.field input::placeholder, .input-alone::placeholder { color: #6b7385; }
.field input:focus, .input-alone:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft), inset 0 1px #ffffff10;
}

.auth-hint {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 12px 0 0;
  line-height: 1.45;
}
.auth-error {
  margin: 12px 0 0;
  font-size: 13px;
  color: #fda4af;
  font-weight: 600;
}
.auth-ok {
  margin: 12px 0 0;
  font-size: 13px;
  color: #6ee7b7;
  font-weight: 600;
}

.footnote {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 28px;
  line-height: 1.55;
}
.footnote a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }

/* WhatsApp support only */
.wa-fab, .wa-icon-btn {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 28px auto 0;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 8px 24px #25d36644;
  transition: transform .15s var(--ease), filter .15s;
}
.wa-fab:hover, .wa-icon-btn:hover { filter: brightness(1.06); }
.wa-fab:active { transform: scale(0.96); }
.wa-fab svg { display: block; }

.wa-row, .wa-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 20px;
  background: var(--content);
  border: .5px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
  box-shadow: var(--shadow);
}
.wa-row strong, .wa-hint strong { color: var(--text); font-weight: 700; font-style: italic; }
.wa-row .wa-mini {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* —— Tariffs —— */
.tariff-grid { display: flex; flex-direction: column; gap: 12px; }
.tariff-card { position: relative; padding: 18px; }
.tariff-card .period {
  font-size: 16px;
  font-weight: 800;
  font-style: italic;
}
.tariff-card .price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 10px 0 6px;
}
.tariff-card .price {
  font-size: 32px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.03em;
}
.tariff-card .per { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.tariff-card .meta-line {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 11px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: #C4B5FD;
  border: 1px solid var(--primary-border);
}
.badge.gold {
  background: var(--gold-soft);
  color: var(--gold);
  border-color: #ffc94a55;
}
.tariff-card.featured {
  background: linear-gradient(160deg, #b18cf522, #ffffff08 50%);
  border-color: var(--primary-border);
}

/* —— Devices —— */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.section-head h3 {
  margin: 0;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.section-head h3 span { color: var(--primary); }

.add-btn, .pulse-add {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  border: 0;
  padding: 0;
  background: var(--primary);
  text-decoration: none;
  box-shadow: 0 0 0 0 #b18cf566;
  animation: addDevicePulse 2s ease-in-out infinite, primaryButtonBorderGlint 5s ease-in-out infinite;
  background-image:
    linear-gradient(180deg, #c4a6ffd9, #b18cf5d9),
    linear-gradient(120deg, transparent 35%, #ffffff70 48%, #e4d4ff57 52%, transparent 65%);
  background-size: 100% 100%, 230% 230%;
  background-position: 0 0, 135% 0;
}

.device-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: .5px solid var(--border);
  color: inherit;
}
.device-row:first-of-type { border-top: 0; padding-top: 4px; }
.device-ico {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: #02061733;
  border: .5px solid var(--border);
  display: grid;
  place-items: center;
  color: #C4B5FD;
  flex-shrink: 0;
}
.device-ico svg { width: 18px; height: 18px; display: block; }
.device-row .info { flex: 1; min-width: 0; }
.device-row .name {
  font-weight: 700;
  font-style: italic;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.device-row .sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.chip {
  font-size: 11px;
  font-weight: 700;
  font-style: italic;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ok-soft);
  color: #6ee7b7;
  flex-shrink: 0;
}
.chip.warn { background: var(--gold-soft); color: var(--gold); }
.chip.off { background: #ffffff0a; color: var(--text-muted); }

.empty {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 4px 0 0;
  line-height: 1.5;
}

/* —— Setup picks —— */
.pick-list { display: flex; flex-direction: column; gap: 10px; }
.pick {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #02061722;
  border: .5px solid var(--border);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.pick:hover { border-color: var(--border-strong); }
.pick.selected {
  background: var(--primary-soft);
  border-color: var(--primary-border);
}
.pick .radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid #ffffff30;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.pick.selected .radio {
  border-color: var(--primary);
  background: var(--primary);
}
.pick.selected .radio i {
  width: 7px;
  height: 7px;
  border-radius: 3px;
  background: #fff;
  display: block;
}
.pick .name { font-weight: 700; font-style: italic; font-size: 15px; flex: 1; }
.pick .glyph {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  flex-shrink: 0; color: var(--text-secondary);
}
.pick.selected .glyph { color: #C4B5FD; }
.pick .glyph svg { width: 20px; height: 20px; display: block; }

.app-card {
  padding: 16px;
  border-radius: 18px;
  background: #02061722;
  border: .5px solid var(--border);
  display: flex;
  gap: 14px;
  align-items: center;
}
.app-card.only {
  border-color: var(--primary-border);
  background: var(--primary-soft);
}
.app-logo {
  width: 52px; height: 52px; border-radius: 14px;
  background: #0a0a0a; display: grid; place-items: center;
  flex-shrink: 0; overflow: hidden;
}
.app-logo img { width: 52px; height: 52px; display: block; object-fit: cover; border-radius: 14px; }
.app-card .info h4 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 800;
  font-style: italic;
}
.app-card .info p {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.store-row {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: center; gap: 10px; margin-top: 14px;
}
.store-badge { display: inline-flex; line-height: 0; }
.store-badge img {
  display: block; height: 44px; width: auto; max-width: 160px; object-fit: contain;
}
.store-badge:hover { opacity: 0.9; }

.link-box {
  display: flex; gap: 8px; align-items: center;
  margin: 0 0 12px; padding: 14px;
  border-radius: 16px; background: #02061733;
  border: .5px solid var(--border);
  font-size: 12px; word-break: break-all;
  color: #C4B5FD; font-weight: 600; line-height: 1.45;
}
.link-box code { flex: 1; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }

.status-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding: 12px 0; font-size: 14px;
  border-top: .5px solid var(--border);
}
.status-row:first-of-type { border-top: 0; }
.status-row .k { color: var(--text-secondary); }
.status-row .v { font-weight: 700; font-style: italic; text-align: right; word-break: break-all; }

.acc-item { border-top: .5px solid var(--border); padding: 14px 0; }
.acc-item:first-child { border-top: 0; }
.acc-btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  gap: 12px; background: none; border: 0; color: var(--text);
  font-size: 15px; font-weight: 700; font-style: italic; text-align: left; padding: 0;
}
.acc-btn .chev { transition: transform .2s; color: var(--text-muted); font-size: 12px; }
.acc-item.open .chev { transform: rotate(180deg); }
.acc-body {
  display: none; margin-top: 10px; font-size: 14px;
  color: var(--text-secondary); line-height: 1.55;
}
.acc-item.open .acc-body { display: block; }
.acc-body a { color: #c4a6ff; text-decoration: underline; text-underline-offset: 2px; }

.stat-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 14px;
}
.stat {
  text-align: center; padding: 14px 6px; border-radius: 16px;
  background: #02061722; border: .5px solid var(--border);
}
.stat .n { font-size: 22px; font-weight: 900; font-style: italic; letter-spacing: -0.02em; }
.stat .l {
  font-size: 10px; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.12em; margin-top: 4px; font-weight: 700;
}

.notice, .notice-gold {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 14px 16px; border-radius: 18px;
  background: var(--gold-soft); border: 1px solid #ffc94a44;
  color: #fde68a; font-size: 13px; line-height: 1.45; margin-bottom: 14px;
}

.stack, .stack-gap { display: flex; flex-direction: column; gap: 10px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.center { text-align: center; }
.muted { color: var(--text-secondary); }
.hide { display: none !important; }

.login-wrap {
  display: flex; flex-direction: column; align-items: stretch;
  padding-top: 48px; padding-bottom: 32px;
}

.setup-page .app-shell {
  display: flex; flex-direction: column; min-height: 100dvh;
  padding-bottom: max(28px, calc(16px + env(safe-area-inset-bottom)));
}
.setup-page [data-panel] { width: 100%; }
.setup-step-pill {
  margin-bottom: 8px;
}
.setup-step-pill .step-back {
  font-size: 16px;
  letter-spacing: -0.06em;
}
.setup-step-pill .step-spacer {
  width: auto;
  min-width: 28px;
  text-align: center;
  color: var(--text-muted);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  opacity: 0.7;
}

.setup-hero {
  position: relative;
  text-align: center;
  padding: 32px 8px 20px;
  margin-bottom: 4px;
  min-height: 132px;
  display: block;
  overflow: visible;
}
.setup-watermark,
.setup-bg-num {
  /* Gor live + purple refs 2026-09-30: digit sits RIGHT (~72–77% peak X) */
  position: absolute;
  left: auto;
  top: 50%;
  right: -8px;
  bottom: auto;
  transform: translateY(-52%);
  margin: 0;
  padding: 0;
  width: auto;
  max-width: none;
  font-family: var(--font);
  font-size: 240px; /* measured Gor .text-[240px] */
  font-weight: 900;
  font-style: italic;
  line-height: 0.9; /* leading-[0.90] */
  letter-spacing: -0.04em; /* tracking tight */
  text-align: right;
  color: var(--primary);
  opacity: 0.08; /* between Gor opacity-5 (.05) and opacity-10 (.10) */
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.setup-hero .setup-watermark,
.setup-hero .setup-bg-num {
  z-index: 0;
}
.setup-title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font);
  font-size: 30px; /* Gor page title 28–36px */
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.02em;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--text-primary); /* #E8E4F0 not #fff */
  animation: enter-title-fade .24s ease-out both;
}

.setup-card {
  padding: 18px 16px 16px;
  animation: enter-content-rise .6s both;
}
.setup-card .setup-cta {
  margin-top: 16px;
}
.setup-footnote {
  margin: 16px 8px 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* Step 1 — radios on the right, uppercase names */
.pick-list-setup { gap: 8px; }
.pick-list-setup .pick {
  padding: 16px 16px;
  border-radius: 16px;
  background: #02061733;
}
.pick-list-setup .pick .name {
  flex: 1;
  font-size: 15px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pick-list-setup .pick .radio { margin-left: auto; }
.pick-list-setup .pick .glyph { display: none; }

/* Step 2 — Happ only install block */
.app-install { display: flex; flex-direction: column; gap: 14px; }
.app-install-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 2px;
}
.app-install-row .info { flex: 1; min-width: 0; }
.app-install-row .info h4 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  font-style: italic;
}
.app-install-row .info p {
  margin: 3px 0 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.app-install-row .radio {
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 1.5px solid var(--primary);
  background: var(--primary);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.app-install-row .radio i {
  width: 7px; height: 7px; border-radius: 2px; background: #fff; display: block;
}
.setup-stores {
  justify-content: flex-start;
  padding: 0 2px;
}
.setup-stores .store-badge img { display: block; height: 40px; width: auto; }

/* Step 3 — open + copy row */
.link-actions {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-top: 12px;
}
.link-actions .btn-open-happ {
  flex: 1;
  width: auto;
  min-height: 48px;
  margin: 0;
  gap: 8px;
}
.btn-copy-icon {
  appearance: none; -webkit-appearance: none;
  flex-shrink: 0;
  width: 48px; min-height: 48px; padding: 0;
  display: grid; place-items: center;
  border-radius: 16px;
  border: .5px solid var(--border-strong);
  background: linear-gradient(180deg, #ffffff0d, #ffffff05);
  box-shadow: inset 0 1px #ffffff18;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color .2s var(--ease), background .2s var(--ease), filter .2s var(--ease);
}
.btn-copy-icon:hover { color: #fff; background: #ffffff14; filter: brightness(1.06); }
.btn-copy-icon:active { transform: scale(0.96); }
.btn-copy-icon.is-copied { color: #6ee7b7; border-color: #10b98155; }

.setup-progress {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  color: var(--text-muted); font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.step-dots { display: inline-flex; align-items: center; gap: 5px; }
.step-dot { width: 6px; height: 6px; border-radius: 50%; background: #ffffff22; }
.step-dot.active { width: 16px; border-radius: 999px; background: var(--primary); }

.legal-page { padding-top: 8px; padding-bottom: 48px; max-width: 560px; }
.legal-card { padding: 20px 18px 48px; }
.legal-card h2 {
  margin: 22px 0 8px; font-size: 16px; font-weight: 800; font-style: italic; color: var(--text);
}
.legal-card h2:first-of-type { margin-top: 10px; }
.legal-card p, .legal-card li {
  margin: 0 0 10px; font-size: 14px; line-height: 1.6; color: var(--text-secondary);
}
.legal-card ul { margin: 0 0 10px; padding-left: 18px; }
.legal-card a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.legal-meta { font-size: 12px !important; color: var(--text-muted) !important; }

.sub-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.sub-row .title { font-size: 17px; font-weight: 800; font-style: italic; }
.sub-row .meta { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
.sub-row .price { text-align: right; flex-shrink: 0; }
.sub-row .price .n { font-size: 20px; font-weight: 900; font-style: italic; }
.sub-row .price .u { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.profile-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.profile-head .avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--primary-soft); border: 1px solid var(--primary-border);
  color: #C4B5FD; display: grid; place-items: center;
  font-weight: 900; font-style: italic; font-size: 20px; flex-shrink: 0;
}
.profile-head .email { font-weight: 700; font-style: italic; font-size: 16px; word-break: break-all; }
.profile-head .id { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.login-pending-dots { display: inline-flex; gap: 6px; margin-left: 6px; }
.login-pending-dots > span {
  width: 6px; height: 6px; border-radius: 50%; background: #fff;
  animation: login-pending-dot 1s ease-in-out infinite;
}
.login-pending-dots > span:nth-child(2) { animation-delay: .14s; }
.login-pending-dots > span:nth-child(3) { animation-delay: .28s; }

.blob {
  position: absolute; width: 180px; height: 180px; border-radius: 50%;
  background: var(--primary); opacity: .12; filter: blur(40px); pointer-events: none;
}
.blob-tl { top: -40px; left: -40px; }
.blob-br { bottom: -50px; right: -30px; opacity: .1; }

@keyframes primaryButtonBorderGlint {
  0%, 58% { background-position: 0 0, 135% 0, 0 0; }
  to { background-position: 0 0, -35% 100%, 0 0; }
}
@keyframes contentBorderGlint {
  0%, 58% { opacity: 0; background-position: 135% 0; }
  68% { opacity: .8; }
  to { opacity: 0; background-position: -35% 100%; }
}
@keyframes addDevicePulse {
  0%, to { transform: scale(1); box-shadow: 0 0 0 0 #b18cf566; }
  50% { transform: scale(1.07); box-shadow: 0 0 0 10px #b18cf500; }
}
@keyframes balancePulse {
  0%, to { opacity: .12; }
  50% { opacity: .35; }
}
@keyframes logoPulse {
  0%, to { transform: scale(1); }
  50% { transform: scale(1.35); }
}
@keyframes login-pending-dot {
  0%, 70%, to { opacity: .22; transform: scale(.82); }
  35% { opacity: 1; transform: scale(1); }
}
@keyframes header-back-mark-enter {
  0% { opacity: 0; transform: translateX(-6px) scale(.92); }
  to { opacity: 1; transform: none; }
}
@keyframes enter-title-fade {
  0% { opacity: 0; }
  to { opacity: 1; }
}
@keyframes enter-content-rise {
  0% { opacity: 0; filter: blur(2px); transform: translateY(18px) scaleX(1.018) scaleY(.948); }
  44% { opacity: 1; filter: saturate(1.08); transform: translateY(-1.2px) scaleX(.996) scaleY(1.009); }
  to { opacity: 1; filter: none; transform: none; }
}
@keyframes clockColonBlink {
  0%, 49% { opacity: 1; }
  50%, to { opacity: 0; }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  to { background-position: 200% 0; }
}

.animate-clock-colon { animation: clockColonBlink 1s step-end infinite; }

@media (max-width: 390px) {
  .app-shell { padding-left: 14px; padding-right: 14px; }
  .page-title, .login-heading { font-size: 28px; }
  .hero-days .num { font-size: 76px; }
  .tariff-card .price { font-size: 28px; }
  .brand-name { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}


/* —— Step pill (ШАГ N ИЗ M) —— */
.step-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  margin: 0 0 18px;
  border-radius: 999px;
  background: #ffffff0a;
  border: .5px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.step-back {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 12px;
  cursor: pointer;
  animation: header-back-mark-enter .35s ease-out both;
}
.step-back:hover { color: #fff; background: #ffffff10; }
.step-center {
  flex: 1;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.step-spacer { width: 36px; }

/* —— Huge amount hero —— */
.amount-hero {
  text-align: center;
  font-size: 64px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #fff;
  margin: 12px 0 22px;
  animation: enter-title-fade .24s ease-out both;
}
.amount-hero.sm { font-size: 40px; margin: 8px 0 12px; }
.amount-hero.ok {
  font-size: 72px;
  color: var(--ok);
  text-shadow: 0 0 40px #10b98155;
}

/* —— Month pills (tariff select) —— */
.month-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.month-pill {
  position: relative;
  appearance: none;
  border: .5px solid var(--border-strong);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff0d, #ffffff05);
  box-shadow: inset 0 1px #ffffff18;
  color: #fff;
  padding: 16px 8px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  transition: border-color .2s, transform .22s var(--ease), background .2s;
  font-family: inherit;
}
.month-pill:hover { filter: brightness(1.08); }
.month-pill:active { transform: scale(0.97); }
.month-pill.selected {
  border-color: var(--primary);
  background: linear-gradient(180deg, #b18cf533, #b18cf514);
  box-shadow: inset 0 1px #ffffff2b, 0 0 0 1px var(--primary-border), 0 10px 28px var(--primary-shadow);
}
.month-pill .mp-num {
  font-size: 28px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.03em;
  line-height: 1;
}
.month-pill .mp-unit {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
}
.month-pill .mp-price {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #C4B5FD;
}
.month-pill .mp-badge {
  position: absolute;
  top: -8px;
  right: -4px;
  font-size: 10px;
  font-weight: 800;
  font-style: italic;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px var(--primary-shadow);
}
.month-pill.featured.selected .mp-badge { animation: addDevicePulse 2s ease-in-out infinite; }

/* —— Payment requisites rows —— */
.pay-card { padding: 22px 20px; }
.req-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: .5px solid var(--border);
}
.req-row:last-of-type { border-bottom: 0; }
.req-meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.req-k {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}
.req-v {
  font-size: 17px;
  font-weight: 800;
  font-style: italic;
  color: #fff;
  word-break: break-word;
}
.btn-copy {
  appearance: none;
  flex-shrink: 0;
  border: .5px solid var(--primary-border);
  background: var(--primary-soft);
  color: #C4B5FD;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  font-style: italic;
  padding: 8px 12px;
  border-radius: 14px;
  cursor: pointer;
  transition: filter .2s;
}
.btn-copy:hover { filter: brightness(1.12); }

.enter-title-fade { animation: enter-title-fade .24s ease-out both; }
.enter-content-rise { animation: enter-content-rise .82s both; }

@media (prefers-reduced-motion: reduce) {
  .amount-hero, .enter-title-fade, .enter-content-rise, .step-back,
  .month-pill.featured.selected .mp-badge { animation: none !important; }
}

/* —— Referral — Gor-structure (cosmic purple), +7 days logic —— */
.referral-page .app-shell {
  padding-bottom: max(36px, calc(24px + env(safe-area-inset-bottom)));
}
.referral-hero {
  min-height: 132px;
  padding: 20px 8px 14px;
}
.referral-watermark {
  font-size: 140px;
  opacity: 0.12;
  color: var(--primary);
  transform: translateY(-4px) rotate(-8deg);
}
.referral-page .setup-title {
  font-size: 30px;
  letter-spacing: 0.01em;
}
.ref-share-card,
.ref-stats-card {
  padding: 20px 18px 18px;
  animation: enter-content-rise .6s both;
}
.ref-stats-card { margin-top: 14px; }
.ref-bonus-head {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text-primary);
}
.ref-bonus-desc {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}
.ref-share-card .label { margin-bottom: 8px; }
.btn-share-ref {
  flex: 1;
  width: auto;
  min-height: 48px;
  margin: 0;
  gap: 8px;
}
.ref-earned {
  padding-bottom: 16px;
  margin-bottom: 4px;
  border-bottom: .5px solid var(--border-strong);
}
.ref-earned-val {
  margin-top: 6px;
  font-size: 40px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #fff;
}
.ref-earned-val em {
  font-style: italic;
  font-size: 0.42em;
  font-weight: 800;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  margin-left: 4px;
  vertical-align: baseline;
}
.ref-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 14px;
}
.ref-stat .n {
  margin-top: 6px;
  font-size: 32px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #fff;
}
.ref-stat .label,
.ref-earned .label {
  margin-bottom: 0;
}

@media (max-width: 380px) {
  .referral-page .setup-title { font-size: 26px; }
  .ref-bonus-head { font-size: 24px; }
  .ref-earned-val { font-size: 34px; }
  .ref-stat .n { font-size: 28px; }
}


/* —— Devices row: immediate reset/delete (Gor-style) —— */
.device-row {
  position: relative;
}
.device-row .device-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: auto;
}
.device-reset-btn {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: .5px solid var(--border-strong);
  background: #02061744;
  color: var(--text-secondary);
  display: grid;
  place-items: center;
  padding: 0;
  flex-shrink: 0;
  transition: color .18s, background .18s, border-color .18s;
}
.device-reset-btn:hover,
.device-reset-btn:focus-visible {
  color: var(--danger);
  border-color: #ff395755;
  background: var(--danger-soft);
}
.device-reset-btn:disabled { opacity: .45; pointer-events: none; }
.device-reset-btn svg { width: 16px; height: 16px; display: block; }
.devices-tile .devices-plan {
  margin: -4px 0 10px;
  font-size: 11px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.devices-tile .empty {
  margin: 4px 0 2px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-secondary);
  text-align: left;
}
.device-ico svg.apple-logo { width: 18px; height: 18px; }

.device-row > a.info,
.device-row > a.device-ico {
  color: inherit;
  text-decoration: none;
}
.device-row > a.info { flex: 1; min-width: 0; }
.device-row > a.device-ico { display: grid; place-items: center; }
