:root {
  --bg: #0b0d10;
  --text: #f0f2f5;
  --muted: #9aa0ab;
  --accent: #313bee;
  --accent-hover: #4a54f5;
  --border: rgba(255, 255, 255, 0.08);
  --font: "Onest", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 70% 55% at 50% 45%,
    rgba(49, 59, 238, 0.07) 0%,
    transparent 70%
  );
}

.cursor-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  background: radial-gradient(
    600px circle at var(--x, 50%) var(--y, 50%),
    rgba(49, 59, 238, 0.28) 0%,
    rgba(49, 59, 238, 0.1) 40%,
    transparent 70%
  );
}

.cursor-glow.is-active {
  opacity: 1;
}

.page,
.footer {
  position: relative;
  z-index: 1;
}

a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--text);
}

.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem 3rem;
  text-align: center;
}

.logo {
  width: auto;
  height: 52px;
  margin-bottom: 1.75rem;
}

.logo-sm {
  height: 40px;
  margin-bottom: 2rem;
}

.tagline {
  margin: 0 0 1.75rem;
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.5;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  align-items: center;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2.25rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border-radius: 10px;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  box-shadow: 0 0 0 rgba(49, 59, 238, 0);
}

.btn:hover {
  background: var(--accent-hover);
  color: #fff;
  box-shadow: 0 0 36px rgba(49, 59, 238, 0.4);
  transform: translateY(-1px);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(49, 59, 238, 0.12);
  border-color: rgba(49, 59, 238, 0.35);
  color: var(--text);
  box-shadow: 0 0 28px rgba(49, 59, 238, 0.2);
}

.btn:disabled,
.btn.disabled {
  opacity: 0.38;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.footer {
  padding: 1.5rem;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.footer-sep {
  margin: 0 0.35rem;
  opacity: 0.45;
}

.footer a {
  color: inherit;
}

.footer a:hover {
  color: var(--text);
}

/* Downloads */
.page-downloads {
  justify-content: flex-start;
  padding-top: 2.5rem;
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}

.page-downloads .logo-sm {
  width: 200px;
  height: auto;
  margin-bottom: 2rem;
}

.back {
  align-self: flex-start;
  margin-bottom: 2.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--muted);
}

.back:hover {
  color: var(--text);
}

.releases {
  width: 100%;
  text-align: left;
}

.release-block + .release-block {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.release-block--latest {
  padding: 2rem 1.75rem 1.75rem;
  border: 1px solid rgba(49, 59, 238, 0.35);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(49, 59, 238, 0.1) 0%, rgba(49, 59, 238, 0.03) 100%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.release-header {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.release-block--latest .release-header {
  margin-bottom: 1.25rem;
}

.release-header h2 {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.release-block--latest .release-header h2 {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--text);
}

.badge-latest {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4ade80;
}

.release-block--latest .badge-latest {
  font-size: 0.75rem;
}

.release-notes {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
}

.release-block--latest .release-notes {
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

.platform-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.release-block--latest .platform-list {
  gap: 0.65rem;
}

.platform-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.release-block--latest .platform-row {
  padding: 1.1rem 1.25rem;
  border-radius: 14px;
  gap: 1rem;
}

.platform-row:hover {
  border-color: rgba(49, 59, 238, 0.28);
  background: rgba(49, 59, 238, 0.05);
}

.platform-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.platform-icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.release-block--latest .platform-icon-badge {
  width: 3rem;
  height: 3rem;
}

.platform-icon-img {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
}

.release-block--latest .platform-icon-img {
  width: 1.65rem;
  height: 1.65rem;
}

.platform-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.platform-label {
  flex: 1;
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.release-block--latest .platform-label {
  font-size: 1.125rem;
}

.platform-meta {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.release-block--latest .platform-meta {
  font-size: 0.875rem;
}

.platform-row .btn {
  padding: 0.45rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 8px;
}

.release-block--latest .platform-row .btn {
  padding: 0.55rem 1.15rem;
  font-size: 0.875rem;
}

.platform-row .btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
}

.platform-row .btn-secondary:hover {
  background: transparent;
  box-shadow: none;
  transform: none;
  color: var(--muted);
}

.loading,
.error-msg {
  text-align: center;
  font-size: 0.9375rem;
  color: var(--muted);
  padding: 1.5rem 0;
}

.error-msg {
  color: #f87171;
}

@media (prefers-reduced-motion: reduce) {
  .cursor-glow {
    display: none;
  }

  .btn:hover {
    transform: none;
  }
}

@media (max-width: 480px) {
  .tagline {
    font-size: 1rem;
  }

  .platform-row {
    flex-wrap: wrap;
  }

  .platform-row .btn {
    width: 100%;
    text-align: center;
  }
}

/* Network checkout */
.page-network {
  justify-content: flex-start;
  padding-top: 2.5rem;
  max-width: 440px;
  margin: 0 auto;
  width: 100%;
}

.page-network-landing {
  max-width: 920px;
  padding-top: 1.25rem;
  text-align: left;
}

.network-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  margin-bottom: 2rem;
  gap: 0.75rem;
}

.network-top .back {
  justify-self: start;
  margin: 0;
}

.network-top-logo {
  justify-self: center;
  margin: 0;
}

.network-top .btn-sm {
  justify-self: end;
  padding: 0.55rem 1.1rem;
  font-size: 0.8125rem;
}

.network-hero {
  text-align: center;
  padding: 1.5rem 0 3rem;
}

.network-hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0.4rem 0.9rem 0.4rem 0.55rem;
  border: 1px solid rgba(49, 59, 238, 0.35);
  border-radius: 999px;
  background: rgba(49, 59, 238, 0.1);
  color: #b8bcff;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1;
}

.network-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.network-icon {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.network-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9px;
  background: rgba(49, 59, 238, 0.16);
  color: #9aa8ff;
  flex-shrink: 0;
}

.network-icon-wrap--badge {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: rgba(49, 59, 238, 0.22);
}

.network-icon-wrap--badge .network-icon {
  width: 0.95rem;
  height: 0.95rem;
}

.network-benefit .network-icon-wrap {
  margin-bottom: 0.75rem;
}

.network-benefit .network-icon-wrap .network-icon {
  width: 1.2rem;
  height: 1.2rem;
}

.network-hero-title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.network-hero-lead {
  margin: 0 auto 1.75rem;
  max-width: 36rem;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--muted);
}

.network-hero-cta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  width: min(100%, 26rem);
  margin: 0 auto;
}

.network-hero-cta .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  padding-left: 1rem;
  padding-right: 1rem;
  text-align: center;
}

.network-section {
  margin-bottom: 3rem;
}

.network-section-title {
  margin: 0 0 0.5rem;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
}

.network-section-lead {
  margin: 0 0 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9375rem;
}

.network-benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.network-benefit {
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.network-benefit h3 {
  margin: 0 0 0.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.network-benefit p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted);
}

.network-pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.network-price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1.25rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
}

.network-price-card--featured {
  border-color: rgba(255, 205, 110, 0.45);
  background: linear-gradient(
    160deg,
    rgba(255, 210, 110, 0.08) 0%,
    rgba(255, 255, 255, 0.02) 45%,
    rgba(0, 0, 0, 0.12) 100%
  );
  box-shadow: 0 0 0 1px rgba(255, 210, 110, 0.12);
}

.network-price-badge {
  position: absolute;
  top: -0.55rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd46e, #ffb830);
  color: #1a1200;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.network-price-name {
  margin: 0.35rem 0 0.25rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.network-price-tagline {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
  min-height: 2.35rem;
}

.network-price-from {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.network-price-from strong {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.network-price-from span {
  font-size: 0.875rem;
}

.network-price-features {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  flex: 1;
}

.network-price-features li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.35rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
}

.network-price-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42rem;
  width: 0.875rem;
  height: 0.875rem;
  background-color: #6ee7a0;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.network-price-btn {
  width: 100%;
  text-align: center;
  margin-top: auto;
}

.network-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.network-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.network-step-num {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(49, 59, 238, 0.2);
  color: #b8bcff;
  font-size: 0.875rem;
  font-weight: 600;
}

.network-step strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.9375rem;
}

.network-step p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted);
}

.network-how-note {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted);
}

.network-how-note a {
  color: var(--accent);
}

.network-final-cta {
  text-align: center;
  padding: 2rem 1.5rem;
  border: 1px solid rgba(49, 59, 238, 0.25);
  border-radius: 18px;
  background: linear-gradient(
    145deg,
    rgba(49, 59, 238, 0.12) 0%,
    rgba(255, 255, 255, 0.02) 50%,
    rgba(0, 0, 0, 0.1) 100%
  );
}

.network-final-cta h2 {
  margin: 0 0 0.5rem;
  font-size: 1.375rem;
  font-weight: 600;
}

.network-final-cta p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.network-login-card {
  margin-top: 0.5rem;
}

.network-login-title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

@media (max-width: 720px) {
  .network-benefits-grid,
  .network-pricing-grid {
    grid-template-columns: 1fr;
  }

  .network-price-tagline {
    min-height: 0;
  }

  .network-top {
    grid-template-columns: auto 1fr auto;
  }
}

@media (max-width: 520px) {
  .network-hero-cta {
    grid-template-columns: 1fr;
    max-width: 18rem;
  }
}

@media (max-width: 480px) {
  .page-network-landing {
    padding-top: 1rem;
  }

  .network-hero {
    padding-bottom: 2rem;
  }
}

.page-profile {
  max-width: 520px;
  padding-top: 2rem;
  padding-bottom: 2.5rem;
}

.profile-loading {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.profile-loading[hidden] {
  display: none;
}

.profile-skeleton {
  border-radius: 14px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.04) 100%
  );
  background-size: 200% 100%;
  animation: profile-shimmer 1.2s ease-in-out infinite;
}

.profile-skeleton-hero {
  height: 7.5rem;
}

.profile-skeleton-stats {
  height: 5.5rem;
}

.profile-skeleton-card {
  height: 10rem;
}

@keyframes profile-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.profile-hero {
  margin-bottom: 0.85rem;
  padding: 1.1rem 1.15rem;
  background: linear-gradient(
    145deg,
    rgba(49, 59, 238, 0.14) 0%,
    rgba(255, 255, 255, 0.03) 45%,
    rgba(0, 0, 0, 0.15) 100%
  );
  border-color: rgba(49, 59, 238, 0.22);
}

.profile-hero--premium {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 205, 90, 0.45);
  background: linear-gradient(
    145deg,
    rgba(255, 210, 110, 0.1) 0%,
    rgba(255, 255, 255, 0.03) 42%,
    rgba(0, 0, 0, 0.18) 100%
  );
  animation: premium-frame-glow 4.5s ease-in-out infinite;
}

.profile-hero--premium::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 12% -5%, rgba(255, 214, 120, 0.22), transparent 58%),
    radial-gradient(ellipse 70% 55% at 88% -5%, rgba(255, 214, 120, 0.22), transparent 58%),
    radial-gradient(ellipse 90% 40% at 50% 120%, rgba(255, 200, 90, 0.08), transparent 62%);
  opacity: 0.85;
}

.profile-hero--premium::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    rgba(255, 220, 140, 0.05) 0%,
    rgba(255, 210, 110, 0.75) 22%,
    rgba(255, 245, 210, 0.95) 50%,
    rgba(255, 210, 110, 0.75) 78%,
    rgba(255, 220, 140, 0.05) 100%
  );
  background-size: 220% 100%;
  animation: premium-border-shine 5s linear infinite;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

.profile-hero--premium > * {
  position: relative;
  z-index: 1;
}

@keyframes premium-border-shine {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 220% 50%;
  }
}

@keyframes premium-frame-glow {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(255, 205, 90, 0.28),
      0 8px 32px rgba(255, 190, 80, 0.08);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(255, 220, 130, 0.5),
      0 10px 36px rgba(255, 200, 90, 0.16);
  }
}

.profile-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.profile-hero-user {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  min-width: 0;
}

.profile-avatar {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.125rem;
  font-weight: 600;
  color: #e8eaff;
  background: linear-gradient(135deg, rgba(49, 59, 238, 0.85), rgba(74, 84, 245, 0.55));
  box-shadow: 0 8px 24px rgba(49, 59, 238, 0.25);
}

.profile-avatar--premium {
  color: #fff8e8;
  background: linear-gradient(135deg, rgba(214, 168, 60, 0.9), rgba(255, 210, 110, 0.45));
  box-shadow: 0 8px 24px rgba(255, 200, 90, 0.18);
}

.profile-hero-text {
  min-width: 0;
}

.profile-hero-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.profile-hero-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  word-break: break-word;
}

.profile-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.55rem;
}

.badge-tier {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: rgba(49, 59, 238, 0.2);
  color: #b8befe;
  border: 1px solid rgba(49, 59, 238, 0.35);
}

.badge-tier--premium {
  background: rgba(255, 210, 110, 0.12);
  color: #ffe9b8;
  border-color: rgba(255, 205, 90, 0.4);
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.stat-card {
  padding: 0.75rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  text-align: center;
}

.stat-card--highlight {
  border-color: rgba(72, 187, 120, 0.35);
  background: rgba(72, 187, 120, 0.06);
}

.stat-card--premium-tier {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 205, 90, 0.42);
  background: linear-gradient(
    160deg,
    rgba(255, 210, 110, 0.12) 0%,
    rgba(0, 0, 0, 0.22) 100%
  );
  animation: premium-frame-glow 4.5s ease-in-out infinite;
}

.stat-card--premium-tier::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    rgba(255, 220, 140, 0.08) 0%,
    rgba(255, 210, 110, 0.65) 25%,
    rgba(255, 245, 210, 0.9) 50%,
    rgba(255, 210, 110, 0.65) 75%,
    rgba(255, 220, 140, 0.08) 100%
  );
  background-size: 220% 100%;
  animation: premium-border-shine 5s linear infinite;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

.stat-card--premium-tier .stat-card-value {
  color: #ffe9b8;
  text-shadow: 0 0 18px rgba(255, 210, 110, 0.2);
}

.stat-card--premium-tier > * {
  position: relative;
  z-index: 1;
}

.stat-card-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.6875rem;
  color: var(--muted);
  line-height: 1.2;
}

.stat-card-value {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
}

.stat-card-value .badge-ok,
.stat-card-value .badge-muted {
  font-size: 0.6875rem;
}

.profile-section-head {
  margin-bottom: 0.85rem;
}

.profile-section-head .section-title {
  margin-bottom: 0.25rem;
}

.profile-section-head .section-hint {
  margin: 0;
}

.devices-meter {
  margin-bottom: 1rem;
}

.devices-meter-bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.devices-meter-bar::after {
  content: "";
  display: block;
  height: 100%;
  width: var(--meter-pct, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #4a54f5);
  transition: width 0.35s ease;
}

.device-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.device-item {
  padding: 0;
  border: none;
}

.device-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
}

.device-card-icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #c5caff;
  background: rgba(49, 59, 238, 0.15);
  border: 1px solid rgba(49, 59, 238, 0.25);
}

.device-card-body {
  flex: 1;
  min-width: 0;
}

.device-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.device-card-head strong {
  font-size: 0.9375rem;
  font-weight: 600;
}

.device-card-kind {
  margin: 0 0 0.55rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.add-device-panel {
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.field-compact {
  margin-bottom: 0.85rem;
}

.profile-purchase {
  padding: 0;
  overflow: hidden;
}

.purchase-details {
  margin: 0;
}

.purchase-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.purchase-summary::-webkit-details-marker {
  display: none;
}

.purchase-summary-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.purchase-summary-text .section-title {
  margin: 0;
}

.purchase-summary-hint {
  margin: 0;
  font-size: 0.8125rem;
}

.purchase-chevron {
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.purchase-details[open] .purchase-chevron {
  transform: rotate(-135deg);
  margin-top: 0.25rem;
}

.purchase-body {
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
}

.purchase-body .tier-tabs {
  margin-top: 1rem;
}

.profile-telegram-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: linear-gradient(
    135deg,
    rgba(14, 116, 144, 0.18) 0%,
    rgba(15, 23, 42, 0.55) 100%
  );
}

.profile-telegram-banner[hidden] {
  display: none !important;
}

.profile-telegram-banner-text {
  flex: 1 1 16rem;
  min-width: 0;
}

.profile-telegram-banner .section-title {
  margin-bottom: 0.35rem;
}

.profile-telegram-banner .section-hint {
  margin: 0;
  max-width: 36rem;
}

.profile-telegram-widget {
  flex: 0 0 auto;
  width: 100%;
  max-width: 280px;
  min-width: 220px;
  min-height: 48px;
}

.profile-telegram-error {
  margin-top: 0.75rem;
  margin-bottom: 0;
}

.referral-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.referral-stat {
  flex: 1 1 8rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
}

.referral-stat-label {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.6875rem;
  color: var(--muted);
}

.referral-stat-value {
  font-size: 0.9375rem;
  font-weight: 600;
}

#referral-section .sub-field {
  margin-bottom: 0.65rem;
}

.profile-referral-teaser {
  margin-top: 0.75rem;
  opacity: 0.85;
}

.profile-root--active #devices-section {
  border-color: rgba(49, 59, 238, 0.28);
}

.profile-error {
  width: 100%;
  margin-top: 0.5rem;
}

@media (max-width: 480px) {
  .page-profile {
    max-width: 100%;
  }

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

  .stat-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding: 0.75rem 1rem;
  }

  .stat-card-label {
    margin: 0;
  }

  .profile-hero-top {
    flex-direction: column;
  }

  .profile-toolbar-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

.network-title {
  margin: 0 0 0.35rem;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.network-lead {
  margin: 0 0 1.75rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.network-card {
  width: 100%;
  text-align: left;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.tier-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tier-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.tier-tab::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 65% at 20% -8%, rgba(49, 59, 238, 0.16), transparent 58%),
    radial-gradient(ellipse 50% 65% at 80% -8%, rgba(49, 59, 238, 0.16), transparent 58%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.tier-tab strong,
.tier-tab span {
  position: relative;
  z-index: 1;
}

.tier-tab span {
  font-size: 0.8125rem;
  color: var(--muted);
}

.tier-tab:hover::before,
.tier-tab.is-active::before {
  opacity: 1;
}

.tier-tab.is-active {
  border-color: rgba(49, 59, 238, 0.45);
  background: rgba(49, 59, 238, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.tier-tab-title {
  display: block;
}

.tier-tab--premium {
  border-color: rgba(230, 190, 95, 0.38);
  background: linear-gradient(
    135deg,
    rgba(255, 210, 110, 0.07) 0%,
    rgba(49, 59, 238, 0.05) 55%,
    rgba(255, 210, 110, 0.04) 100%
  );
}

.tier-tab--premium::before {
  background:
    radial-gradient(ellipse 55% 70% at 18% -10%, rgba(255, 214, 120, 0.28), transparent 58%),
    radial-gradient(ellipse 55% 70% at 82% -10%, rgba(255, 214, 120, 0.28), transparent 58%),
    radial-gradient(ellipse 90% 45% at 50% 115%, rgba(49, 59, 238, 0.1), transparent 62%);
  opacity: 0.55;
}

.tier-tab--premium:hover::before,
.tier-tab--premium.is-active::before {
  opacity: 1;
}

.tier-tab--premium.is-active {
  border-color: rgba(255, 205, 90, 0.62);
  background: linear-gradient(
    135deg,
    rgba(255, 210, 110, 0.12) 0%,
    rgba(49, 59, 238, 0.1) 55%,
    rgba(255, 210, 110, 0.08) 100%
  );
  box-shadow:
    0 0 28px rgba(255, 200, 90, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.tier-tab--premium strong {
  color: #fff8e8;
}

.plan-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.plan-option.is-active,
.plan-chip.is-selected {
  border-color: rgba(49, 59, 238, 0.45);
  background: rgba(49, 59, 238, 0.08);
}

.plan-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9375rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.plan-chip.is-selected {
  border-color: rgba(49, 59, 238, 0.45);
  background: rgba(49, 59, 238, 0.08);
}

.plan-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9375rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.plan-option.is-active {
  border-color: rgba(49, 59, 238, 0.45);
  background: rgba(49, 59, 238, 0.08);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.field input {
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9375rem;
}

.field input:focus {
  outline: none;
  border-color: rgba(49, 59, 238, 0.45);
}

.telegram-block {
  margin-bottom: 1.25rem;
}

.telegram-label {
  margin: 0 0 0.65rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.telegram-hint {
  margin: 0.65rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.btn-pay {
  position: relative;
  width: 100%;
  border: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
}

.btn-pay::before {
  content: "";
  position: absolute;
  top: -45%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 90%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.14) 0%, transparent 68%);
  pointer-events: none;
}

.pay-note {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
}

.network-card .error-msg {
  margin-top: 1rem;
  padding: 0;
  text-align: left;
}

.network-card-secondary {
  margin-top: 1rem;
  text-align: center;
}

.cabinet-hint {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--text);
}

.btn-cabinet {
  width: 100%;
}

.auth-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.auth-tab {
  flex: 1;
  padding: 0.55rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.8125rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.auth-tab.is-active {
  border-color: rgba(49, 59, 238, 0.45);
  background: rgba(49, 59, 238, 0.08);
  color: var(--text);
}

.auth-hint {
  margin: 0 0 0.85rem;
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
}

.auth-password-details {
  margin-top: 1.25rem;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}

.auth-password-details summary {
  cursor: pointer;
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
  list-style: none;
}

.auth-password-details summary::-webkit-details-marker {
  display: none;
}

.auth-password-body {
  margin-top: 1rem;
}

.auth-password-body .btn {
  width: 100%;
}

.network-landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 0 0 1.5rem;
}

.network-landing-actions .btn {
  min-width: 9.5rem;
  flex: 1 1 9.5rem;
  max-width: 12rem;
}

.auth-inline-back {
  display: block;
  margin: 0 0 0.85rem;
  padding: 0;
  border: none;
  background: none;
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.8125rem;
  cursor: pointer;
  text-align: left;
}

.auth-inline-back:hover {
  color: var(--text);
}

.auth-alt-link {
  margin-top: 1rem;
  text-align: center;
}

.auth-forgot-row {
  margin: -0.25rem 0 0.85rem;
  text-align: right;
}

.auth-forgot-link {
  padding: 0;
  border: none;
  background: none;
  color: var(--accent);
  font-family: var(--font);
  font-size: 0.8125rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-forgot-link:hover {
  color: var(--accent-hover);
}

.auth-forgot-link:disabled {
  opacity: 0.6;
  cursor: wait;
}

.auth-captcha {
  margin: 0.5rem 0 1rem;
}

.auth-captcha[hidden] {
  display: none !important;
}

.auth-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Slider captcha */
.captcha-box {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  padding: 0.75rem;
}

.captcha-box--loading .slider-captcha-track--skeleton {
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.09) 50%,
    rgba(255, 255, 255, 0.04) 100%
  );
  background-size: 200% 100%;
  animation: profile-shimmer 1.2s ease-in-out infinite;
}

.captcha-box--failed {
  text-align: center;
  padding: 1rem;
}

.slider-captcha-track-wrap {
  margin-bottom: 0.55rem;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

.slider-captcha-track-wrap--dragging .slider-captcha-thumb,
.slider-captcha-track-wrap--dragging .slider-captcha-fill {
  transition: none !important;
}

.slider-captcha-track-wrap--disabled {
  opacity: 0.5;
  pointer-events: none;
}

.slider-captcha-track {
  position: relative;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  user-select: none;
  touch-action: none;
  --slider-travel: 0px;
}

.slider-captcha-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: calc(3px + var(--slider-ratio, 0) * var(--slider-travel, 0px) + 2.5rem);
  max-width: 100%;
  border-radius: 11px;
  background: linear-gradient(90deg, rgba(49, 59, 238, 0.35), rgba(74, 84, 245, 0.2));
  pointer-events: none;
  will-change: width;
  transition: width 0.18s ease-out;
}

.slider-captcha-track-wrap--done .slider-captcha-fill {
  background: linear-gradient(90deg, rgba(62, 207, 142, 0.35), rgba(62, 207, 142, 0.15));
}

.slider-captcha-track-wrap--done .slider-captcha-track {
  border-color: rgba(72, 187, 120, 0.4);
}

.slider-captcha-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
  transition: opacity 0.2s;
}

.slider-captcha-track-wrap--done .slider-captcha-text {
  color: rgba(110, 231, 160, 0.85);
}

.slider-captcha-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 2.5rem;
  height: calc(100% - 6px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(180deg, #525cff, #313bee);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.35),
    0 0 16px rgba(49, 59, 238, 0.25);
  cursor: grab;
  touch-action: none;
  z-index: 2;
  will-change: transform;
  transform: translate3d(calc(var(--slider-ratio, 0) * var(--slider-travel, 0px)), 0, 0);
  transition: transform 0.18s ease-out, background 0.2s, box-shadow 0.2s;
}

.slider-captcha-thumb svg {
  width: 1.125rem;
  height: 1.125rem;
  color: #fff;
}

.slider-captcha-track-wrap--done .slider-captcha-thumb {
  background: linear-gradient(180deg, #5ee0a8, #22c55e);
  box-shadow: 0 0 16px rgba(62, 207, 142, 0.35);
}

.slider-captcha-thumb:active,
.slider-captcha-track-wrap--dragging .slider-captcha-thumb {
  cursor: grabbing;
  transform: translate3d(calc(var(--slider-ratio, 0) * var(--slider-travel, 0px)), 0, 0) scale(0.98);
}

@media (max-width: 640px) {
  .slider-captcha-track {
    height: 52px;
  }

  .slider-captcha-thumb {
    width: 2.875rem;
  }

  .slider-captcha-fill {
    width: calc(3px + var(--slider-ratio, 0) * var(--slider-travel, 0px) + 2.875rem);
  }
}

.slider-captcha-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.slider-captcha-status {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slider-captcha-refresh {
  flex-shrink: 0;
  padding: 0;
  border: none;
  background: none;
  color: rgba(154, 168, 255, 0.9);
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.slider-captcha-refresh:hover {
  color: #b8bcff;
}

/* legacy puzzle captcha (unused) */
.local-captcha {
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.local-captcha-label {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.local-captcha-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  min-height: 4.5rem;
}

.local-captcha-img {
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0b1220;
}

.local-captcha-input {
  width: 5.5rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-family: ui-monospace, monospace;
  font-size: 0.9375rem;
  text-transform: uppercase;
}

.local-captcha-hint {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.local-captcha-loading {
  font-size: 0.8125rem;
  color: var(--muted);
}

.network-lead-actions {
  margin-top: -0.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.telegram-auth {
  position: relative;
  width: 100%;
  min-height: 48px;
  margin-bottom: 0.5rem;
}

.telegram-auth-facade {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 48px;
  padding: 0.8rem 1.25rem;
  pointer-events: none;
  user-select: none;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.telegram-auth:hover .telegram-auth-facade {
  background: var(--accent-hover);
  box-shadow: 0 0 36px rgba(49, 59, 238, 0.4);
  transform: translateY(-1px);
}

.telegram-auth-icon {
  flex-shrink: 0;
  opacity: 0.95;
}

.telegram-auth-widget {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  border-radius: 10px;
}

.telegram-auth-widget iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
  opacity: 0.01;
  cursor: pointer;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.profile-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  margin-bottom: 1rem;
}

.profile-email {
  font-size: 0.875rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.8125rem;
  flex-shrink: 0;
}

.claim-card {
  margin-top: 1rem;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
  cursor: pointer;
}

.consent-label input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.consent-label a {
  color: rgba(49, 59, 238, 0.9);
  text-decoration: none;
}

.consent-label a:hover {
  text-decoration: underline;
}

.page-legal .legal-doc {
  text-align: left;
}

.legal-intro {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text);
}

.legal-doc section {
  margin-top: 1.5rem;
}

.legal-doc p,
.legal-doc ul {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted);
}

.legal-doc ul {
  padding-left: 1.25rem;
}

.legal-doc a {
  color: rgba(49, 59, 238, 0.9);
}

.legal-updated {
  margin-top: 2rem !important;
  font-size: 0.75rem !important;
}

.legal-links {
  margin-top: 0.75rem !important;
}

.back-center {
  align-self: center;
  margin-top: 1.5rem;
}

.delivery-block {
  margin-bottom: 1rem;
}

.delivery-block p {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.sub-field {
  width: 100%;
  padding: 0.75rem 0.9rem;
  margin-bottom: 0.65rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.8125rem;
}

.profile-section {
  margin-bottom: 0.85rem;
}

.profile-section .section-title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.section-hint {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--muted);
}

/* legacy stat list (login/other) */
.stat-grid {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}

.stat-item:last-child {
  border-bottom: none;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--muted);
}

.stat-value {
  font-size: 0.9375rem;
  font-weight: 500;
}

.badge-ok,
.badge-muted {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-ok {
  background: rgba(72, 187, 120, 0.15);
  color: #7ddea8;
}

.badge-muted {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.device-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.device-delivery {
  margin-top: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.8125rem;
  width: fit-content;
}

.page-admin .admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.page-admin .network-title {
  margin: 0;
}

.admin-updated {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.admin-kpi {
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
}

.admin-kpi--accent {
  border-color: rgba(125, 222, 168, 0.35);
  background: rgba(72, 187, 120, 0.08);
}

.admin-kpi-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.admin-kpi-value {
  font-size: 1.125rem;
  font-weight: 600;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.admin-table th,
.admin-table td {
  padding: 0.65rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.admin-table th {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}

.admin-empty {
  color: var(--muted);
  text-align: center;
}

@media (max-width: 640px) {
  .page-admin .admin-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

.cookie-notice {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: min(36rem, calc(100vw - 2rem));
  padding: 0.85rem 1rem 0.85rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(18, 20, 26, 0.96);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  transform: translateX(-50%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-notice.is-hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(0.75rem);
  pointer-events: none;
}

.cookie-notice-text {
  margin: 0;
  flex: 1;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
}

.cookie-notice-text a {
  color: rgba(49, 59, 238, 0.95);
  text-decoration: none;
}

.cookie-notice-text a:hover {
  text-decoration: underline;
}

.cookie-notice-btn {
  flex-shrink: 0;
  padding: 0.45rem 1rem;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #fff;
  background: var(--accent);
  cursor: pointer;
  transition: background 0.2s ease;
}

.cookie-notice-btn:hover {
  background: var(--accent-hover);
}

@media (max-width: 520px) {
  .cookie-notice {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    bottom: 1rem;
  }

  .cookie-notice-btn {
    width: 100%;
  }
}
