:root {
  --bg-main: #05020f;
  --bg-card: rgba(12, 9, 26, 0.86);
  --bg-card-strong: rgba(10, 8, 24, 0.96);
  --line: rgba(150, 108, 255, 0.26);
  --line-soft: rgba(150, 108, 255, 0.16);
  --text-main: #f3f3ff;
  --text-muted: rgba(214, 210, 242, 0.72);
  --violet: #8f57ff;
  --cyan: #43d7ff;
  --green: #5be4a8;
  --blue: #3e9eff;
  --gold: #f3c76d;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background: var(--bg-main);
  color: var(--text-main);
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
}

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

.portal-root {
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(1200px 700px at 10% 5%, rgba(110, 62, 215, 0.25), transparent 65%),
    radial-gradient(1100px 640px at 88% 9%, rgba(32, 120, 190, 0.19), transparent 60%),
    radial-gradient(900px 600px at 50% 100%, rgba(78, 40, 155, 0.18), transparent 68%),
    var(--bg-main);
}

.stars-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.star {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 0 10px rgba(209, 192, 255, 0.92);
  animation: twinkle 4.8s ease-in-out infinite;
}

.star.s1 {
  left: 8%;
  top: 18%;
  animation-delay: 0.2s;
}

.star.s2 {
  left: 17%;
  top: 63%;
  animation-delay: 1.1s;
}

.star.s3 {
  left: 36%;
  top: 41%;
  animation-delay: 2.1s;
}

.star.s4 {
  left: 62%;
  top: 24%;
  animation-delay: 1.4s;
}

.star.s5 {
  left: 78%;
  top: 66%;
  animation-delay: 2.9s;
}

.star.s6 {
  left: 91%;
  top: 34%;
  animation-delay: 0.8s;
}

.comet {
  position: absolute;
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(141, 208, 255, 0.94));
  filter: drop-shadow(0 0 14px rgba(141, 208, 255, 0.54));
  transform: rotate(-18deg);
  animation: comet 9s linear infinite;
  opacity: 0;
}

.comet.c1 {
  top: 25%;
  left: -180px;
  animation-delay: 1.6s;
}

.comet.c2 {
  top: 58%;
  left: -220px;
  animation-delay: 5.8s;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.2;
    transform: scale(0.7);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

@keyframes comet {
  0% {
    transform: translateX(0) translateY(0) rotate(-18deg);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  26% {
    opacity: 0;
  }
  100% {
    transform: translateX(140vw) translateY(22vh) rotate(-18deg);
    opacity: 0;
  }
}

.portal-topbar {
  height: 68px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(7, 5, 15, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  position: sticky;
  top: 0;
  z-index: 30;
}

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

.brand-home-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  cursor: pointer;
}

.brand-home-btn:disabled {
  cursor: default;
}

.brand-orb {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, #ddd0ff, #7f48ff 66%);
  box-shadow: 0 0 18px rgba(127, 72, 255, 0.88);
}

.brand-text {
  font-family: "Jura", sans-serif;
  letter-spacing: 0.17em;
  font-weight: 700;
  font-size: 19px;
  text-transform: uppercase;
}

.topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn {
  min-height: 42px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  border-radius: 12px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  border-color: rgba(174, 136, 255, 0.56);
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: linear-gradient(135deg, rgba(147, 85, 255, 0.9), rgba(90, 46, 179, 0.95));
  border-color: rgba(182, 148, 255, 0.5);
}

.btn-cyan {
  background: linear-gradient(135deg, rgba(43, 184, 222, 0.95), rgba(19, 112, 157, 0.95));
  border-color: rgba(98, 219, 250, 0.5);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.02);
}

.btn-danger {
  background: rgba(188, 63, 109, 0.18);
  border-color: rgba(221, 116, 157, 0.45);
}

.btn-lg {
  min-height: 46px;
  font-size: 14px;
}

.auth-wrap {
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(100%, 470px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--bg-card);
  padding: 28px;
  box-shadow: 0 28px 74px rgba(0, 0, 0, 0.46);
}

.auth-title {
  margin: 0;
  font-size: 42px;
  line-height: 1.02;
  font-weight: 800;
}

.auth-subtitle {
  margin: 10px 0 18px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.45;
}

.auth-grid {
  display: grid;
  gap: 10px;
}

.auth-hint {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.4;
}

.landing-wrap {
  min-height: calc(100vh - 68px - 46px);
  padding: 24px clamp(20px, 4vw, 56px) 18px;
  display: grid;
  grid-template-columns: minmax(440px, 1fr) minmax(360px, 620px);
  align-items: center;
  gap: clamp(28px, 4vw, 80px);
}

.landing-map {
  position: relative;
  min-height: clamp(320px, 56vh, 620px);
  border-radius: 26px;
  overflow: hidden;
}

.landing-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 68% 52%, rgba(147, 83, 255, 0.18), transparent 36%),
    radial-gradient(circle at 27% 30%, rgba(67, 215, 255, 0.12), transparent 44%);
}

.map-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(140, 120, 198, 0.56);
  background: rgba(114, 87, 209, 0.14);
  box-shadow: 0 0 16px rgba(146, 104, 248, 0.26);
}

.map-dot::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 999px;
  background: rgba(194, 182, 255, 0.72);
}

.map-dot.d1 { left: 8%; top: 56%; }
.map-dot.d2 { left: 16%; top: 40%; }
.map-dot.d3 { left: 22%; top: 66%; }
.map-dot.d4 { left: 30%; top: 35%; }
.map-dot.d5 { left: 38%; top: 52%; }
.map-dot.d6 { left: 46%; top: 43%; }
.map-dot.d7 { left: 56%; top: 58%; }
.map-dot.d8 { left: 62%; top: 37%; }
.map-dot.d9 { left: 70%; top: 50%; }
.map-dot.d10 { left: 78%; top: 31%; }
.map-dot.d11 { left: 84%; top: 62%; }
.map-dot.d12 { left: 92%; top: 47%; }

.map-link {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, rgba(132, 100, 222, 0.05), rgba(132, 100, 222, 0.38), rgba(132, 100, 222, 0.08));
  transform-origin: left center;
}

.map-link.l1 { left: 9%; top: 57%; width: 90px; transform: rotate(-26deg); }
.map-link.l2 { left: 17%; top: 40%; width: 104px; transform: rotate(17deg); }
.map-link.l3 { left: 23%; top: 66%; width: 124px; transform: rotate(-56deg); }
.map-link.l4 { left: 31%; top: 35%; width: 112px; transform: rotate(18deg); }
.map-link.l5 { left: 39%; top: 52%; width: 116px; transform: rotate(-20deg); }
.map-link.l6 { left: 47%; top: 43%; width: 116px; transform: rotate(28deg); }
.map-link.l7 { left: 57%; top: 58%; width: 104px; transform: rotate(-37deg); }
.map-link.l8 { left: 63%; top: 37%; width: 98px; transform: rotate(16deg); }
.map-link.l9 { left: 71%; top: 50%; width: 104px; transform: rotate(-26deg); }
.map-link.l10 { left: 79%; top: 31%; width: 118px; transform: rotate(37deg); }

.landing-hero {
  justify-self: end;
  max-width: 620px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.landing-kicker {
  margin: 0;
  color: #ad84ff;
  font-size: 13px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  font-weight: 700;
}

.landing-title {
  margin: 0;
  font-size: clamp(46px, 6.3vw, 90px);
  line-height: 0.94;
  letter-spacing: -0.025em;
  text-wrap: balance;
  max-width: 12ch;
}

.landing-subtitle {
  margin: 2px 0 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.45;
  max-width: 520px;
}

.landing-actions {
  margin-top: 12px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.landing-actions .btn {
  min-width: 240px;
  min-height: 52px;
  border-radius: 10px;
  border-width: 1px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-weight: 800;
}

.landing-poster {
  width: min(590px, 100%);
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  border: 1px solid var(--line-soft);
  background:
    radial-gradient(circle at 74% 23%, rgba(132, 90, 255, 0.32), transparent 45%),
    radial-gradient(circle at 17% 72%, rgba(56, 160, 255, 0.26), transparent 50%),
    linear-gradient(165deg, #0f0a22, #060310 74%);
  position: relative;
  overflow: hidden;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.45);
  animation: poster-float 6s ease-in-out infinite;
}

.landing-poster::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: linear-gradient(
    112deg,
    transparent 0%,
    rgba(214, 176, 255, 0.08) 46%,
    rgba(123, 212, 255, 0.14) 50%,
    transparent 56%
  );
  transform: translateX(-70%);
  animation: poster-scan 7s linear infinite;
  pointer-events: none;
}

.poster-grid {
  position: absolute;
  width: 42%;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(240, 188, 255, 0.42);
  background:
    linear-gradient(rgba(254, 186, 255, 0.24) 1px, transparent 1px),
    linear-gradient(90deg, rgba(254, 186, 255, 0.24) 1px, transparent 1px),
    rgba(220, 130, 255, 0.08);
  background-size: 16px 16px;
}

.poster-grid.g1 {
  left: -6%;
  top: 8%;
  transform: rotate(-10deg);
}

.poster-grid.g2 {
  right: -6%;
  bottom: 7%;
  transform: rotate(8deg);
}

.poster-wire {
  position: absolute;
  width: 66%;
  height: 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: repeating-linear-gradient(
    -15deg,
    rgba(255, 255, 255, 0.08) 0 6px,
    rgba(255, 255, 255, 0.34) 6px 10px
  );
  box-shadow: 0 0 24px rgba(138, 95, 246, 0.22);
}

.poster-wire.w1 {
  top: 30%;
  left: -4%;
  transform: rotate(-16deg);
}

.poster-wire.w2 {
  top: 55%;
  right: -8%;
  transform: rotate(-16deg);
}

.poster-router {
  position: absolute;
  width: 52%;
  height: 32%;
  left: 24%;
  top: 35%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: linear-gradient(155deg, rgba(8, 12, 30, 0.96), rgba(28, 64, 180, 0.52));
  transform: rotate(-16deg);
  box-shadow: 0 18px 28px rgba(4, 6, 19, 0.56);
}

.poster-leds {
  position: absolute;
  width: 66px;
  height: 8px;
  right: 20%;
  top: 52%;
  transform: rotate(-16deg);
  background:
    linear-gradient(90deg, #ff9f9f 0 14%, transparent 14% 24%, #ffd37f 24% 38%, transparent 38% 48%, #7de6ff 48% 62%, transparent 62% 72%, #78ffbf 72% 86%, transparent 86% 100%);
  filter: drop-shadow(0 0 8px rgba(125, 230, 255, 0.35));
}

@keyframes poster-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes poster-scan {
  0% {
    transform: translateX(-70%);
    opacity: 0;
  }
  15% {
    opacity: 0.9;
  }
  55% {
    opacity: 0.6;
  }
  100% {
    transform: translateX(80%);
    opacity: 0;
  }
}

.landing-strip {
  height: 46px;
  border-top: 1px solid var(--line-soft);
  background: rgba(7, 5, 15, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 0 14px;
  color: rgba(208, 199, 242, 0.72);
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.landing-strip::-webkit-scrollbar {
  display: none;
}

.landing-strip span::before {
  content: "•";
  margin-right: 8px;
  color: #a171ff;
}

.field {
  display: grid;
  gap: 7px;
}

.field label,
.field span {
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.field input {
  width: 100%;
  min-height: 46px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(8, 6, 18, 0.78);
  color: var(--text-main);
  padding: 0 12px;
  font-size: 15px;
  outline: none;
}

.field input:focus {
  border-color: rgba(167, 128, 255, 0.85);
  box-shadow: 0 0 0 2px rgba(141, 86, 255, 0.2);
}

.portal-shell {
  max-width: 1320px;
  margin: 22px auto 18px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
}

.portal-sidebar {
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: var(--bg-card);
  padding: 10px 0;
  align-self: start;
  position: sticky;
  top: 84px;
}

.nav-item {
  width: 100%;
  border: 0;
  border-left: 3px solid transparent;
  background: transparent;
  color: var(--text-muted);
  min-height: 44px;
  text-align: left;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
}

.nav-item.active {
  border-left-color: var(--violet);
  background: rgba(138, 84, 248, 0.13);
  color: #fff;
}

.nav-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(155, 122, 247, 0.45);
  display: grid;
  place-items: center;
  font-size: 10px;
  background: rgba(131, 83, 237, 0.15);
}

.portal-content {
  display: grid;
  gap: 16px;
}

.notice {
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  border: 1px solid transparent;
}

.notice-ok {
  border-color: rgba(110, 235, 181, 0.4);
  background: rgba(110, 235, 181, 0.11);
  color: #b5ffd9;
}

.notice-error {
  border-color: rgba(235, 110, 152, 0.42);
  background: rgba(235, 110, 152, 0.12);
  color: #ffbfd2;
}

.kpi-bar {
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: var(--bg-card);
  padding: 10px 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.kpi-cell {
  display: grid;
  gap: 5px;
}

.kpi-cell span {
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.kpi-cell strong {
  font-size: 17px;
  font-weight: 800;
}

.account-status.is-active {
  color: #8effbf;
}

.account-status.is-pending {
  color: #ffd58f;
}

.layout-grid {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 16px;
}

.left-stack {
  display: grid;
  gap: 16px;
}

.bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 16px;
}

.bottom-grid.single {
  grid-template-columns: 1fr;
}

.card {
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: var(--bg-card);
  padding: 18px;
}

.wide-card {
  max-width: 920px;
}

.card-title {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.section-kicker {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: #b994ff;
  text-transform: uppercase;
}

.section-title {
  margin: 10px 0 6px;
  font-size: 30px;
  line-height: 1.04;
}

.section-sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.45;
}

.profile-card {
  min-height: 250px;
}

.ring-wrap {
  width: 72px;
  height: 72px;
  position: relative;
}

.ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
}

.ring-outer {
  border: 2px solid rgba(146, 96, 251, 0.7);
  box-shadow: 0 0 18px rgba(146, 96, 251, 0.45);
  animation: pulse-ring 3s ease-in-out infinite;
}

.ring-inner {
  inset: 10px;
  border: 1px dashed rgba(146, 96, 251, 0.55);
}

@keyframes pulse-ring {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

.profile-login {
  margin-top: 14px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.04;
}

.profile-email {
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 14px;
}

.profile-note {
  margin-top: 14px;
  color: #c09dff;
  font-size: 15px;
}

.profile-meta {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.profile-meta strong {
  font-size: 13px;
  letter-spacing: 0.04em;
}

.device-card .device-row {
  margin-top: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 14px;
}

.device-card .device-row strong {
  color: #fff;
}

.connection-card {
  --accent-rgb: 68, 215, 255;
  --accent-border: rgba(68, 215, 255, 0.5);
  --accent-glow: rgba(68, 215, 255, 0.18);
}

.connection-card[data-platform="android"] {
  --accent-rgb: 91, 228, 168;
  --accent-border: rgba(91, 228, 168, 0.5);
  --accent-glow: rgba(91, 228, 168, 0.18);
}

.connection-card[data-platform="windows"] {
  --accent-rgb: 62, 158, 255;
  --accent-border: rgba(62, 158, 255, 0.5);
  --accent-glow: rgba(62, 158, 255, 0.18);
}

.connection-card[data-platform="macos"] {
  --accent-rgb: 143, 87, 255;
  --accent-border: rgba(143, 87, 255, 0.5);
  --accent-glow: rgba(143, 87, 255, 0.18);
}

.connection-card[data-platform="linux"] {
  --accent-rgb: 243, 199, 109;
  --accent-border: rgba(243, 199, 109, 0.5);
  --accent-glow: rgba(243, 199, 109, 0.18);
}

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

.platform-tabs {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 6px;
}

.platform-tab {
  min-width: 46px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 8px;
  cursor: pointer;
  transition: 0.2s ease;
}

.platform-icon {
  font-size: 12px;
  line-height: 1;
}

.platform-short {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.platform-tab.active {
  border-color: var(--accent-border);
  color: #fff;
  box-shadow: 0 0 16px var(--accent-glow);
}

.steps-line {
  display: grid;
  gap: 14px;
}

.steps-line.guide {
  margin-top: 14px;
}

.step-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  border: 1px solid var(--accent-border);
  box-shadow: 0 0 13px var(--accent-glow);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  color: rgb(var(--accent-rgb));
}

.step-body h4 {
  margin: 0;
  font-size: 28px;
  line-height: 1.02;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.step-body p {
  margin: 8px 0 10px;
  color: var(--text-muted);
  font-size: 20px;
  line-height: 1.35;
}

.step-body p strong {
  color: #fff;
}

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

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

.mini-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: #dce3ff;
  border-radius: 10px;
  min-height: 40px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.mini-btn:hover {
  transform: translateY(-1px);
}

.mini-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.mini-btn.primary {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.93), rgba(var(--accent-rgb), 0.62));
  border-color: var(--accent-border);
  color: #04121a;
  box-shadow: 0 0 17px var(--accent-glow);
}

.mini-btn.secondary {
  background: rgba(255, 255, 255, 0.02);
}

.mono-link {
  margin-top: 12px;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background: rgba(5, 5, 13, 0.92);
  padding: 10px;
  font-family: Consolas, Menlo, Monaco, monospace;
  font-size: 11px;
  line-height: 1.35;
  color: #d5e3ff;
  word-break: break-all;
}

.card-hint {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 13px;
}

.quick-list {
  margin-top: 8px;
  display: grid;
}

.quick-list button {
  min-height: 42px;
  border: 0;
  border-top: 1px solid var(--line-soft);
  background: transparent;
  color: var(--text-muted);
  text-align: left;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
}

.quick-list button:hover {
  color: #fff;
}

.plans-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.trial-box {
  margin-top: 12px;
  margin-bottom: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.trial-box.is-available {
  border-color: rgba(91, 228, 168, 0.48);
  background: linear-gradient(120deg, rgba(56, 191, 145, 0.1), rgba(255, 255, 255, 0.02));
  box-shadow: 0 0 18px rgba(91, 228, 168, 0.14);
}

.trial-box.is-unavailable {
  border-color: rgba(243, 199, 109, 0.42);
  background: linear-gradient(120deg, rgba(243, 199, 109, 0.09), rgba(255, 255, 255, 0.02));
}

.trial-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.trial-sub {
  margin-top: 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.trial-meta {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 12px;
}

.plan-card {
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.02);
  text-align: left;
  padding: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.plan-card:hover {
  transform: translateY(-1px);
  border-color: rgba(183, 149, 255, 0.5);
}

.plan-card.active {
  border-color: rgba(183, 149, 255, 0.72);
  background: rgba(143, 87, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(183, 149, 255, 0.3), 0 0 20px rgba(143, 87, 255, 0.16);
}

.plan-card h4 {
  margin: 0;
  font-size: 15px;
}

.plan-card p {
  margin: 7px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.4;
}

.settings-grid {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.portal-footer {
  max-width: 1320px;
  margin: 16px auto 0;
  padding: 0 16px 16px;
  color: rgba(199, 195, 229, 0.5);
  font-size: 11px;
  display: flex;
  justify-content: flex-end;
}

.scene-enter {
  animation: scene-enter 280ms ease both;
}

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

@media (max-width: 1080px) {
  .landing-wrap {
    grid-template-columns: 1fr;
    gap: 20px;
    min-height: calc(100vh - 64px - 46px);
  }

  .landing-map {
    min-height: 320px;
  }

  .landing-hero {
    justify-self: start;
    max-width: 680px;
  }

  .portal-shell {
    grid-template-columns: 1fr;
  }

  .portal-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
  }

  .nav-item {
    border-left: 0;
    border-radius: 10px;
    justify-content: center;
    min-height: 42px;
    padding: 0 8px;
  }

  .nav-item.active {
    border-left: 0;
  }

  .layout-grid,
  .bottom-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .landing-wrap {
    min-height: calc(100vh - 58px - 46px);
    padding: 12px 14px 10px;
    align-items: start;
  }

  .landing-map {
    display: none;
    min-height: 0;
  }

  .landing-hero {
    gap: 8px;
    max-width: 100%;
  }

  .landing-poster {
    width: min(100%, 560px);
    border-radius: 18px;
    margin-bottom: 2px;
  }

  .landing-title {
    font-size: clamp(52px, 15vw, 78px);
    line-height: 0.94;
  }

  .landing-kicker {
    font-size: 11px;
    letter-spacing: 0.28em;
  }

  .landing-subtitle {
    font-size: 15px;
  }

  .landing-actions {
    margin-top: 14px;
  }

  .landing-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .landing-strip {
    justify-content: flex-start;
    font-size: 10px;
  }

  .portal-topbar {
    height: 58px;
  }

  .auth-wrap {
    min-height: calc(100vh - 58px);
    padding: 16px;
  }

  .auth-card {
    padding: 22px;
  }

  .auth-title {
    font-size: 34px;
  }

  .kpi-bar {
    grid-template-columns: 1fr;
  }

  .step-body h4 {
    font-size: 22px;
  }

  .step-body p {
    font-size: 16px;
  }

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