:root {
  color-scheme: dark;
  --bg: #161b23;
  --bg-soft: #1b222d;
  --card: rgba(24, 31, 41, 0.94);
  --card-strong: rgba(20, 26, 35, 0.98);
  --border: rgba(111, 127, 150, 0.16);
  --border-strong: rgba(79, 140, 255, 0.24);
  --text: #eef3fb;
  --muted: #93a0b5;
  --primary: #5d93ff;
  --accent: #3fd2b1;
  --danger: #ff5f7d;
  --warning: #ffbf69;
  --shadow:
    0 10px 28px rgba(8, 11, 16, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.01);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Montserrat", sans-serif;
}

body {
  overflow-x: hidden;
}

body.lk-shell-pending .page-shell {
  opacity: 0;
  pointer-events: none;
}

button,
a {
  font: inherit;
}

button {
  border: 0;
  background: none;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.hidden {
  display: none !important;
}

.background-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.matrix-layer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 120;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  mix-blend-mode: screen;
}

body.matrix-enabled .matrix-layer {
  opacity: 0.28;
}

body.matrix-low .matrix-layer {
  opacity: 0.16;
}

body.matrix-medium .matrix-layer {
  opacity: 0.26;
}

body.matrix-high .matrix-layer {
  opacity: 0.38;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(160px);
  opacity: 0.3;
  animation: drift 10s ease-in-out infinite;
}

.orb-primary {
  width: 520px;
  height: 520px;
  top: -180px;
  left: -150px;
  background: rgba(79, 140, 255, 0.12);
}

.orb-accent {
  width: 420px;
  height: 420px;
  right: -160px;
  bottom: -160px;
  background: rgba(44, 209, 179, 0.08);
  animation-duration: 13s;
}

.orb-danger {
  width: 220px;
  height: 220px;
  top: 36%;
  left: 55%;
  background: rgba(255, 95, 125, 0.05);
  animation-duration: 15s;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.02;
  background-image:
    linear-gradient(rgba(79, 140, 255, 0.8) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 140, 255, 0.8) 1px, transparent 1px);
  background-size: 60px 60px;
}

.particle-field {
  position: absolute;
  inset: 0;
}

.particle {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: rgba(79, 140, 255, 0.4);
  animation: particle-float linear infinite;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 640px);
  margin: 0 auto;
  padding: 12px 10px 22px;
  transition: opacity 0.18s ease;
}

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

.brand-block {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  position: relative;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #f8fbff;
  box-shadow: 0 0 16px rgba(79, 140, 255, 0.22);
}

.brand-logo svg {
  width: 18px;
  height: 18px;
}

.brand-title {
  font-size: 14px;
  font-weight: 700;
  color: #f4f7fd;
}

.brand-status-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(44, 209, 179, 0.72);
  animation: pulse-glow 2s ease-in-out infinite;
}

.brand-status {
  font-size: 9px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-button,
.ghost-icon-button,
.collapse-button,
.matrix-toggle-button {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
  transition: transform 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.icon-button:hover,
.ghost-icon-button:hover,
.collapse-button:hover,
.matrix-toggle-button:hover {
  transform: translateY(-1px);
  color: var(--text);
  border-color: rgba(79, 140, 255, 0.3);
}

.matrix-toggle-button {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 80;
  width: auto;
  min-width: 112px;
  min-height: 38px;
  padding: 0 10px;
  justify-content: flex-start;
  gap: 8px;
  border-radius: 12px;
  background: rgba(16, 22, 20, 0.92);
  border: 1px solid rgba(80, 255, 120, 0.14);
  box-shadow:
    0 12px 24px rgba(3, 8, 6, 0.34),
    0 0 18px rgba(54, 255, 94, 0.08);
  backdrop-filter: blur(14px);
  pointer-events: auto;
}

.matrix-toggle-button svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.matrix-toggle-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
}

.matrix-toggle-title {
  font-size: 10px;
  font-weight: 700;
  color: #d6deeb;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.matrix-toggle-state {
  margin-top: 2px;
  font-size: 10px;
  color: var(--muted);
}

body.matrix-enabled [data-action="toggle-matrix"] {
  color: #baffc1;
  border-color: rgba(87, 255, 126, 0.28);
  background: rgba(20, 255, 93, 0.08);
  box-shadow: 0 0 18px rgba(54, 255, 94, 0.12);
}

body.matrix-enabled .matrix-toggle-title,
body.matrix-enabled .matrix-toggle-state {
  color: #baffc1;
}

@media (max-width: 720px) {
  .matrix-toggle-button {
    top: 10px;
    right: 10px;
    min-width: 104px;
    min-height: 36px;
    padding: 0 9px;
  }

  .matrix-toggle-title,
  .matrix-toggle-state {
    font-size: 9px;
  }
}

.primary-glow-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #65a2ff);
  color: #07111d;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 0 16px rgba(79, 140, 255, 0.18);
  cursor: pointer;
}

.copy-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.copy-state svg {
  width: 16px;
  height: 16px;
}

.glass-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 10px;
  padding: 13px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 45%);
  pointer-events: none;
}

.hero-head,
.section-title-row,
.panel-head {
  position: relative;
  z-index: 1;
}

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

.hero-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-avatar-wrap {
  position: relative;
}

.hero-avatar {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  font-size: 17px;
  font-weight: 700;
}

.hero-avatar-fallback {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #eff7ff;
}

.hero-avatar-photo {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-avatar-fallback.hidden {
  display: none;
}

.hero-avatar-online {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 14px;
  height: 14px;
  border: 2px solid #1b222d;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(44, 209, 179, 0.8);
}

.hero-user-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-user-name {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.hero-user-subtitle {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.sparkles-icon {
  width: 13px;
  height: 13px;
  color: var(--accent);
}

.mono {
  font-family: "Fira Mono", monospace;
}

.accent-text {
  color: var(--accent);
}

.warning-text {
  color: var(--warning);
}

.danger-text {
  color: var(--danger);
}

.collapse-icon {
  display: inline-flex;
  transition: transform 0.22s ease;
}

.collapse-icon.expanded {
  transform: rotate(180deg);
}

.stats-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.mini-stat-card {
  padding: 9px 8px;
  text-align: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.mini-stat-icon {
  width: 14px;
  height: 14px;
  margin-bottom: 6px;
}

.primary-icon {
  color: var(--primary);
}

.accent-icon {
  color: var(--accent);
}

.mini-stat-value {
  font-size: 15px;
  font-weight: 700;
}

.mini-stat-label {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.traffic-block {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.traffic-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
}

.traffic-title svg,
.section-title svg,
.server-trail svg {
  width: 14px;
  height: 14px;
}

.traffic-speed {
  color: var(--accent);
  font-size: 11px;
  font-weight: 500;
}

.traffic-graph {
  width: 100%;
  height: 46px;
}

.expandable-links {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.subscription-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  margin-top: 8px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.subscription-link-copy {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.link-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 19px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(79, 140, 255, 0.14);
  color: var(--primary);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.subscription-link-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 11px;
}

.links-actions {
  margin-top: 10px;
}

.subtle-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 11px;
  border-radius: 10px;
  background: rgba(79, 140, 255, 0.08);
  color: var(--primary);
  cursor: pointer;
}

.subtle-button svg {
  width: 16px;
  height: 16px;
}

.qr-wrap {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.qr-card {
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: #f2f8ff;
  color: #0b1321;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.qr-card svg {
  width: 96px;
  height: 96px;
}

.section-title-row {
  margin-bottom: 12px;
}

.section-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.speed-rings {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 8px;
}

.speed-ring-card {
  position: relative;
  text-align: center;
}

.speed-ring {
  width: 64px;
  height: 64px;
  transform: rotate(-90deg);
}

.ring-track,
.ring-progress {
  fill: none;
  stroke-width: 4;
}

.ring-track {
  stroke: rgba(255, 255, 255, 0.08);
}

.ring-progress {
  stroke: url(#lineGradient);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s ease;
}

.speed-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.speed-ring-label {
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.main-tabs,
.platform-tabs {
  display: flex;
  gap: 4px;
  padding: 3px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.main-tabs {
  margin-bottom: 12px;
}

.platform-tabs {
  margin-bottom: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.platform-tabs::-webkit-scrollbar {
  display: none;
}

.tab-button,
.platform-button {
  flex: 1 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 9px;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.22s ease;
  white-space: nowrap;
  font-size: 11px;
}

.tab-button.active,
.platform-button.active {
  background: linear-gradient(135deg, rgba(79, 140, 255, 0.9), rgba(79, 140, 255, 0.72));
  color: #f4f9ff;
  box-shadow: 0 8px 22px rgba(79, 140, 255, 0.22);
}

.tab-button svg,
.platform-button svg {
  width: 14px;
  height: 14px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.app-list,
.server-list {
  display: grid;
  gap: 8px;
}

.app-card,
.server-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.app-card:hover,
.server-card:hover {
  transform: translateY(-1px);
  border-color: rgba(79, 140, 255, 0.2);
}

.app-card-trigger,
.app-card-main,
.server-card-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.app-card-trigger {
  width: 100%;
  justify-content: space-between;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.app-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(79, 140, 255, 0.18), rgba(44, 209, 179, 0.12));
  border: 1px solid rgba(79, 140, 255, 0.14);
  font-size: 13px;
  font-weight: 700;
}

.app-copy,
.server-copy {
  min-width: 0;
}

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

.app-title,
.server-title {
  font-size: 12px;
  font-weight: 600;
}

.rec-badge {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(44, 209, 179, 0.12);
  border: 1px solid rgba(44, 209, 179, 0.16);
  color: var(--accent);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.app-actions-inline {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mini-action {
  min-height: 28px;
  padding: 0 9px;
  border-radius: 9px;
  background: rgba(79, 140, 255, 0.08);
  border: 1px solid rgba(79, 140, 255, 0.14);
  color: #dbe9ff;
  font-size: 10px;
  cursor: pointer;
}

.app-chevron {
  color: var(--muted);
  transition: transform 0.2s ease;
}

.app-chevron svg {
  width: 14px;
  height: 14px;
}

.app-chevron.is-open {
  transform: rotate(180deg);
}

.app-details {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 8px;
}

.app-detail-block {
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.app-detail-title {
  font-size: 11px;
  font-weight: 600;
}

.app-detail-text {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.app-actions-inline-detail {
  justify-content: flex-start;
  margin-top: 8px;
}

.server-flag {
  font-size: 20px;
}

.server-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.load-bar {
  width: 56px;
  height: 5px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.load-bar-inner {
  height: 100%;
  border-radius: 999px;
}

.load-bar-inner.is-low {
  background: linear-gradient(90deg, var(--accent), var(--primary));
}

.load-bar-inner.is-medium {
  background: linear-gradient(90deg, #ffc658, #ff9f43);
}

.load-bar-inner.is-high {
  background: linear-gradient(90deg, #ff5f7d, #ff7a59);
}

.server-load {
  color: var(--muted);
  font-size: 9px;
}

.server-trail {
  color: var(--primary);
  opacity: 0.85;
}

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

.step-row {
  display: flex;
  gap: 10px;
}

.step-marker {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(79, 140, 255, 0.24), rgba(44, 209, 179, 0.12));
  border: 1px solid rgba(79, 140, 255, 0.16);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
}

.step-title {
  font-size: 12px;
  font-weight: 600;
}

.step-text {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.page-footer {
  padding: 2px 0 8px;
  text-align: center;
}

.footer-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(143, 159, 188, 0.6);
  font-size: 10px;
}

.footer-copy svg {
  width: 12px;
  height: 12px;
}

.text-gradient {
  background: linear-gradient(90deg, #bcd4ff, #35e4c7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.empty-card {
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.toast {
  position: fixed;
  right: 12px;
  bottom: 12px;
  max-width: min(320px, calc(100vw - 24px));
  padding: 11px 12px;
  border-radius: 10px;
  background: rgba(7, 13, 24, 0.94);
  color: #eef4ff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 40;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}

@keyframes drift {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(20px, -26px, 0) scale(1.08);
  }
}

@keyframes particle-float {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 0;
  }
  20% {
    opacity: 0.6;
  }
  80% {
    opacity: 0.2;
  }
  100% {
    transform: translate3d(0, -30px, 0);
    opacity: 0;
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding: 10px 8px 16px;
  }

  .hero-head,
  .traffic-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .header-actions {
    width: 100%;
  }

  .primary-glow-button {
    flex: 1 1 auto;
    justify-content: center;
  }

  .speed-rings {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .app-actions-inline {
    justify-content: stretch;
  }

  .mini-action {
    flex: 1 1 auto;
  }
}

@media (max-width: 520px) {
  .hero-user {
    align-items: flex-start;
  }

  .speed-rings,
  .stats-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .subscription-link-row,
  .subscription-link-copy {
    align-items: flex-start;
  }

  .subscription-link-row {
    flex-direction: column;
  }

  .app-actions-inline,
  .header-actions,
  .hero-user,
  .hero-user-copy {
    width: 100%;
  }

  .hero-user-name {
    font-size: 15px;
  }

  .brand-title {
    font-size: 13px;
  }
}

body.onboarding-open {
  overflow: hidden;
}

.onboarding-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 18px;
}

.onboarding-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 9, 14, 0.76);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: onboardingFadeIn 180ms ease-out;
}

.onboarding-card {
  position: relative;
  width: min(560px, calc(100vw - 36px));
  border-radius: 18px;
  background: rgba(22, 27, 35, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  animation: onboardingPopIn 200ms ease-out;
}

.onboarding-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 10px;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.onboarding-title {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.2px;
}

.onboarding-close {
  appearance: none;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  width: 34px;
  height: 34px;
  border-radius: 12px;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
  transition: transform 160ms ease, background 160ms ease;
}

.onboarding-close:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.12);
}

.onboarding-body {
  padding: 14px 16px 6px;
}

.onboarding-steps {
  display: grid;
  gap: 10px;
}

.onboarding-step {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 10px 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  line-height: 1.35;
}

.onboarding-step strong {
  color: rgba(255, 255, 255, 0.95);
}

.onboarding-step-num {
  width: 26px;
  height: 26px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 25% 25%, rgba(79, 140, 255, 0.38), rgba(79, 140, 255, 0.12));
  border: 1px solid rgba(79, 140, 255, 0.38);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  font-size: 12px;
  font-family: "Fira Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.onboarding-hint {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(41, 210, 177, 0.08);
  border: 1px solid rgba(41, 210, 177, 0.22);
  color: rgba(255, 255, 255, 0.86);
  font-size: 12.5px;
  line-height: 1.35;
}

.onboarding-link {
  color: rgba(41, 210, 177, 0.95);
  text-decoration: none;
}

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

.onboarding-actions {
  display: flex;
  gap: 10px;
  padding: 12px 16px 16px;
}

.onboarding-primary,
.onboarding-secondary {
  flex: 1 1 auto;
  border-radius: 14px;
  padding: 12px 12px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 700;
  font-size: 13px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.onboarding-primary {
  background: linear-gradient(90deg, rgba(79, 140, 255, 0.92), rgba(41, 210, 177, 0.9));
  color: rgba(8, 10, 16, 0.92);
  box-shadow: 0 10px 28px rgba(79, 140, 255, 0.18);
}

.onboarding-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
}

.onboarding-primary:hover,
.onboarding-secondary:hover {
  transform: translateY(-1px);
}

@keyframes onboardingFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes onboardingPopIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
