@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Syne:wght@600;700;800&display=swap");

:root {
  color-scheme: dark;
  --bg: #06080b;
  --bg-2: #0b0f14;
  --panel: rgba(10, 14, 20, 0.78);
  --panel-strong: rgba(10, 14, 20, 0.92);
  --muted: #95a3b8;
  --text: #e7edf7;
  --gold: #6ef3ff;
  --gold-2: #ffcf88;
  --gold-soft: rgba(110, 243, 255, 0.18);
  --emerald: #b9ff63;
  --emerald-soft: rgba(185, 255, 99, 0.18);
  --blue: #8f93ff;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 32px 70px rgba(2, 6, 12, 0.6);
  --radius: 20px;
  --font-sans: "Space Grotesk", "Onest", "Manrope", sans-serif;
  --font-display: "Syne", "Space Grotesk", sans-serif;
}

.accent-blue { --accent-1: #6ef3ff; --accent-2: #9af9ff; --accent-glow: rgba(110, 243, 255, 0.22); }
.accent-purple { --accent-1: #8f93ff; --accent-2: #b4b7ff; --accent-glow: rgba(143, 147, 255, 0.22); }
.accent-cyan { --accent-1: #b9ff63; --accent-2: #dbff9d; --accent-glow: rgba(185, 255, 99, 0.22); }
.accent-green { --accent-1: #57f0c7; --accent-2: #8ff6dc; --accent-glow: rgba(87, 240, 199, 0.22); }
.accent-orange { --accent-1: #ffcf88; --accent-2: #ffe2b5; --accent-glow: rgba(255, 207, 136, 0.22); }
.accent-pink { --accent-1: #f07ad7; --accent-2: #f6a6e9; --accent-glow: rgba(240, 122, 215, 0.22); }
.accent-red { --accent-1: #ff6b6b; --accent-2: #ff9a9a; --accent-glow: rgba(255, 107, 107, 0.22); }
.accent-gold { --accent-1: #ffcf88; --accent-2: #ffe2b5; --accent-glow: rgba(255, 207, 136, 0.22); }


* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
}

.video-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #06080b;
}

.video-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 15% 20%, rgba(110, 243, 255, 0.2), transparent 60%),
    radial-gradient(700px 400px at 85% 10%, rgba(255, 207, 136, 0.18), transparent 55%),
    linear-gradient(180deg, rgba(6, 8, 11, 0.6), rgba(6, 8, 11, 0.4) 45%, rgba(6, 8, 11, 0.65) 100%);
  opacity: 0.85;
}

.video-bg video {
  position: absolute;
  inset: -2% -2% 0;
  width: 104%;
  height: 104%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
  filter: saturate(1.05) contrast(1.05) brightness(0.75);
  transform: scale(1.02);
}

.video-bg video.is-front {
  opacity: 1;
}


.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.scene canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  opacity: 0.12;
  mix-blend-mode: soft-light;
}

.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, rgba(6, 8, 11, 0.55), rgba(6, 8, 11, 0.32) 45%, rgba(6, 8, 11, 0.6) 100%);
  overflow-x: hidden;
}

.app > * {
  position: relative;
  z-index: 1;
}

.app::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 600px at 20% 0%, rgba(110, 243, 255, 0.12), transparent 55%),
    radial-gradient(900px 700px at 90% 100%, rgba(255, 207, 136, 0.12), transparent 60%);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 22px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(12, 16, 22, 0.96), rgba(10, 12, 16, 0.98));
  backdrop-filter: blur(16px);
  z-index: 2;
  transition: width 0.3s ease, padding 0.3s ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background-image: url("/assets/logo.jpg");
  background-size: 120% auto;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #0d1117;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6), 0 0 26px rgba(229, 195, 107, 0.3);
}

.brand-title {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.4px;
}

.brand-sub {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.app.sidebar-collapsed {
  grid-template-columns: 96px 1fr;
}

.app.sidebar-collapsed .sidebar {
  width: 96px;
  padding: 24px 14px;
}

.app.sidebar-collapsed .brand {
  justify-content: center;
}

.app.sidebar-collapsed .brand-title,
.app.sidebar-collapsed .brand-sub,
.app.sidebar-collapsed .plan-card,
.app.sidebar-collapsed .sidebar-foot {
  display: none;
}

.app.sidebar-collapsed .nav a {
  justify-content: center;
  padding: 12px;
  color: rgba(231, 237, 247, 0.78);
  background: rgba(8, 12, 18, 0.55);
  border-color: rgba(255, 255, 255, 0.06);
}

.app.sidebar-collapsed .nav a:hover,
.app.sidebar-collapsed .nav a.active {
  color: var(--text);
  background: rgba(110, 243, 255, 0.14);
  border-color: rgba(110, 243, 255, 0.25);
}

.app.sidebar-collapsed .nav-text {
  display: none;
}

.app.sidebar-collapsed .menu-label {
  display: none;
}

.app.sidebar-collapsed .card,
.app.sidebar-collapsed .plan-card,
.app.sidebar-collapsed .kpi,
.app.sidebar-collapsed .table,
.app.sidebar-collapsed .activity li,
.app.sidebar-collapsed .shard-card,
.app.sidebar-collapsed .topbar {
  background: rgba(10, 14, 20, 0.55);
  border-color: rgba(255, 255, 255, 0.06);
}

.nav {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.2px;
  transition: all 0.25s ease;
  --nav-accent-1: var(--gold);
  --nav-accent-2: var(--gold-2);
}

.nav a::before {
  display: none;
}

.nav a::after {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  width: 6px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--nav-accent-1), var(--nav-accent-2));
  transform: translateY(-50%);
  opacity: 0;
  transition: all 0.25s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  border-color: color-mix(in srgb, var(--nav-accent-1) 40%, transparent);
  background: color-mix(in srgb, var(--nav-accent-1) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nav-accent-1) 16%, transparent);
}

.nav a:hover::before,
.nav a.active::before {
  display: none;
}

.nav a:hover::after,
.nav a.active::after {
  opacity: 1;
  left: -6px;
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: inherit;
}

.nav-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav a:hover .nav-icon,
.nav a.active .nav-icon {
  color: var(--gold);
}

.nav a:nth-child(1) { --nav-accent-1: #6ef3ff; --nav-accent-2: #9af9ff; }
.nav a:nth-child(2) { --nav-accent-1: #ffcf88; --nav-accent-2: #ffe2b5; }
.nav a:nth-child(3) { --nav-accent-1: #b9ff63; --nav-accent-2: #dbff9d; }
.nav a:nth-child(4) { --nav-accent-1: #8f93ff; --nav-accent-2: #b4b7ff; }
.nav a:nth-child(5) { --nav-accent-1: #ff6b6b; --nav-accent-2: #ff9a9a; }
.nav a:nth-child(6) { --nav-accent-1: #6ef3ff; --nav-accent-2: #ffcf88; }

.plan-card {
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(14, 17, 22, 0.95), rgba(8, 10, 12, 0.96));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.plan-card h4 {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--muted);
}

.plan-tier {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
}

.progress {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin: 10px 0 6px;
}

.progress span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  transition: width 0.4s ease;
}

.plan-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}

.sidebar-foot {
  margin-top: 18px;
  font-size: 12px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

.status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff6b6b;
  box-shadow: 0 0 8px rgba(255, 107, 107, 0.6);
}

.dot.ok {
  background: #4ce381;
  box-shadow: 0 0 10px rgba(76, 227, 129, 0.6);
}

.dot.warn {
  background: #ffcf88;
  box-shadow: 0 0 10px rgba(255, 207, 136, 0.65);
}

.main {
  position: relative;
  z-index: 1;
  padding: 28px 36px 80px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.net-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(10, 12, 16, 0.75);
  box-shadow: 0 10px 24px rgba(2, 6, 12, 0.35);
  font-size: 12px;
  color: var(--muted);
  --net-color: #6ef3ff;
  --net-glow: rgba(110, 243, 255, 0.5);
}

.net-indicator.good { --net-color: #57f0c7; --net-glow: rgba(87, 240, 199, 0.55); }
.net-indicator.warn { --net-color: #ffcf88; --net-glow: rgba(255, 207, 136, 0.55); }
.net-indicator.bad { --net-color: #ff6b6b; --net-glow: rgba(255, 107, 107, 0.55); }
.net-indicator.off { --net-color: #9aa4b2; --net-glow: rgba(148, 160, 178, 0.45); }

.net-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
}

.net-bar {
  width: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.18);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.net-bar:nth-child(1) { height: 6px; }
.net-bar:nth-child(2) { height: 9px; }
.net-bar:nth-child(3) { height: 12px; }
.net-bar:nth-child(4) { height: 15px; }

.net-bar.is-on {
  background: var(--net-color);
  box-shadow: 0 0 8px var(--net-glow);
}

.net-label {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.net-meta {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.net-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(10, 14, 20, 0.65);
  box-shadow: 0 18px 40px rgba(2, 6, 12, 0.35);
}

.net-alert.warn {
  border-color: rgba(255, 207, 136, 0.35);
  background: rgba(255, 207, 136, 0.08);
}

.net-alert.bad {
  border-color: rgba(255, 107, 107, 0.4);
  background: rgba(255, 107, 107, 0.08);
}

.net-alert strong {
  color: var(--text);
}

.icon-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: none;
}

.search {
  flex: 1;
  max-width: 360px;
  position: relative;
}

.search input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(10, 12, 16, 0.9);
  color: var(--text);
  padding: 12px 14px;
  font-size: 14px;
  outline: none;
  transition: border 0.2s ease;
}

.search input:focus {
  border-color: rgba(229, 195, 107, 0.5);
}

.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.6px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 50;
}

.modal.hidden {
  display: none;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 10, 0.7);
  backdrop-filter: blur(6px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(620px, 92vw);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(10, 14, 20, 0.78), rgba(8, 12, 18, 0.6));
  box-shadow: 0 30px 70px rgba(2, 6, 12, 0.65);
  padding: 24px;
  color: var(--text);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.modal-card .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
}

.modal-head h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-family: var(--font-display);
}

.modal-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.modal-body .stat-row {
  margin-bottom: 8px;
}

.connect-steps {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.connect-steps-cards .step-card {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 10px 12px;
}

.connect-steps-cards .step-index {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #0b0f14;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
}

.connect-steps-cards .step-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #ecf4ff;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.connect-steps-cards .step-text {
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

.connect-steps-cards .step-warning {
  border-color: rgba(229, 195, 107, 0.3);
  background: rgba(229, 195, 107, 0.08);
}

.connect-steps-cards .step-warning .step-index {
  background: rgba(229, 195, 107, 0.22);
  color: var(--gold-2);
  border: 1px solid rgba(229, 195, 107, 0.45);
}

.modal-actions-main {
  margin-top: 14px;
}

.modal-actions-main .btn-primary {
  min-width: 220px;
}

.advanced-help {
  margin-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  padding-top: 10px;
}

.advanced-help summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  user-select: none;
}

.advanced-help[open] summary {
  color: #ecf4ff;
}

.advanced-help .code-block {
  margin-top: 10px;
}

.advanced-help .modal-actions {
  margin-top: 8px;
}

.code-block {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(7, 10, 14, 0.85);
  padding: 14px 16px;
  font-family: "Space Grotesk", monospace;
  font-size: 12px;
  color: #dffbff;
  word-break: break-all;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.modal-foot {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
}

.btn {
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 10px 16px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  color: #0b0f14;
  font-weight: 600;
  box-shadow: 0 12px 28px rgba(229, 195, 107, 0.26);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(229, 195, 107, 0.28);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(229, 195, 107, 0.4);
  color: var(--gold);
}

.btn-xs {
  padding: 6px 10px;
  font-size: 10px;
  letter-spacing: 0.6px;
  border-radius: 10px;
}

.lang-switch {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.lang-switch button {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.lang-switch button.active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.status-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.status-pill.active {
  color: #b9ff63;
  border-color: rgba(185, 255, 99, 0.35);
  background: rgba(185, 255, 99, 0.12);
}

.status-pill.paused {
  color: #ffcf88;
  border-color: rgba(255, 207, 136, 0.35);
  background: rgba(255, 207, 136, 0.12);
}

.status-pill.offline {
  color: #ff6b6b;
  border-color: rgba(255, 107, 107, 0.35);
  background: rgba(255, 107, 107, 0.12);
}

.status-note {
  font-size: 10px;
  color: var(--muted);
}

.session-note {
  margin-top: 14px;
  padding: 12px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.session-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 6px;
}

.session-value {
  font-size: 14px;
  font-weight: 600;
}

.session-warning {
  margin-top: 6px;
  font-size: 11px;
  color: var(--gold-2);
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(229, 195, 107, 0.4), rgba(90, 168, 255, 0.3));
  font-weight: 600;
  color: #0b0f14;
}

.avatar.has-photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

.avatar-trigger {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  border-radius: 50%;
  line-height: 0;
}

.avatar-trigger:focus-visible {
  outline: 2px solid rgba(110, 243, 255, 0.6);
  outline-offset: 2px;
}

.account-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(320px, calc(100vw - 20px));
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(14, 18, 25, 0.96), rgba(9, 12, 17, 0.98));
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
  padding: 12px;
  z-index: 30;
}

.account-menu.hidden {
  display: none;
}

.account-menu-head {
  display: grid;
  gap: 2px;
  padding: 6px 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.account-menu-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.account-menu-email {
  font-size: 12px;
  color: var(--muted);
  word-break: break-word;
}

.account-menu-meta {
  margin-top: 10px;
  padding: 0 8px 10px;
  display: grid;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.account-menu-meta strong {
  font-family: "Space Grotesk", monospace;
  font-size: 11px;
  color: var(--text);
  word-break: break-all;
}

.account-menu-actions {
  margin-top: 10px;
  display: grid;
  gap: 6px;
}

.account-menu-item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.account-menu-item:hover {
  border-color: rgba(110, 243, 255, 0.35);
  background: rgba(110, 243, 255, 0.08);
}

.account-menu-item:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.account-menu-item.danger {
  border-color: rgba(255, 107, 107, 0.28);
  color: #ff9a9a;
}

.account-menu-item.danger:hover {
  border-color: rgba(255, 107, 107, 0.45);
  background: rgba(255, 107, 107, 0.1);
}

.page {
  animation: slideIn 0.4s ease;
}

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

.page-title {
  font-family: var(--font-display);
  font-size: 30px;
  margin: 0 0 6px;
}

.page-subtitle {
  margin: 0;
  color: var(--muted);
  max-width: 640px;
  line-height: 1.6;
}

.section {
  margin-bottom: 32px;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  background: linear-gradient(135deg, rgba(17, 20, 25, 0.95), rgba(7, 9, 12, 0.95));
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero h2 {
  font-family: var(--font-display);
  font-size: 26px;
  margin: 0 0 12px;
}

.hero p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.6;
}

.hero-card {
  background: rgba(10, 12, 16, 0.75);
  border-radius: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  display: grid;
  gap: 10px;
}

.hero-kpi {
  font-size: 28px;
  font-weight: 600;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.kpi {
  --accent-1: var(--gold);
  --accent-2: var(--gold-2);
  --accent-glow: var(--gold-soft);
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(20, 26, 36, 0.95), rgba(10, 12, 16, 0.9));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 6px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  transition: transform 0.2s ease, border 0.2s ease;
}

.kpi:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent-1) 30%, transparent);
}

.kpi label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.4px;
}

.kpi label::before {
  content: "";
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  box-shadow: 0 10px 22px var(--accent-glow);
  flex-shrink: 0;
}

.kpi .value {
  font-size: 22px;
  font-weight: 600;
}

.kpi .trend {
  font-size: 12px;
  color: var(--accent-1);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.card {
  background: var(--panel);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--muted);
}

.card-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.card-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-1, var(--gold)), var(--accent-2, var(--gold-2)));
  box-shadow: 0 8px 18px var(--accent-glow, var(--gold-soft));
  display: inline-block;
}

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

.pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid color-mix(in srgb, var(--accent-1, var(--gold)) 35%, transparent);
  color: var(--accent-1, var(--gold));
  background: color-mix(in srgb, var(--accent-1, var(--gold)) 12%, transparent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chart {
  width: 100%;
  height: 170px;
}

.chart canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 6px 0;
  color: var(--muted);
  border-bottom: 1px dashed rgba(255,255,255,0.06);
}

.stat-row strong {
  color: var(--text);
  font-weight: 600;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.table th, .table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.table th {
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 11px;
}

.table tbody tr:hover {
  background: rgba(229, 195, 107, 0.05);
}

.tag {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(87, 210, 197, 0.1);
  color: var(--emerald);
  border: 1px solid rgba(87, 210, 197, 0.3);
}

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

.shard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.cluster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.shard-card {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(8, 10, 13, 0.85);
  display: grid;
  gap: 8px;
}

.cluster-card {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(229, 195, 107, 0.2);
  background: linear-gradient(145deg, rgba(10, 12, 16, 0.85), rgba(18, 22, 28, 0.9));
  display: grid;
  gap: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.shard-title {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
}

.cluster-title {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cluster-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}

.payment-notice {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(87, 210, 197, 0.35);
  background: rgba(87, 210, 197, 0.08);
  color: var(--text);
}

.payment-notice.error {
  border-color: rgba(255, 138, 99, 0.45);
  background: rgba(255, 138, 99, 0.12);
}

.buyer-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.buyer-plan-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(145deg, rgba(10, 12, 16, 0.86), rgba(19, 24, 31, 0.9));
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.buyer-plan-card.active {
  border-color: rgba(110, 243, 255, 0.56);
  box-shadow: 0 20px 32px rgba(6, 13, 20, 0.44), inset 0 0 0 1px rgba(110, 243, 255, 0.2);
  transform: translateY(-2px);
}

.buyer-plan-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.buyer-plan-head h3 {
  margin: 0;
  font-size: 16px;
}

.buyer-plan-price {
  font-size: 26px;
  font-family: "Unbounded", sans-serif;
  color: var(--gold);
}

.buyer-plan-profile {
  color: var(--text);
  font-size: 13px;
}

.buyer-plan-power {
  color: var(--muted);
  font-size: 12px;
}

.buyer-plan-benefits {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
}

.buyer-config-grid {
  display: grid;
  gap: 16px;
}

.buyer-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.buyer-field span {
  font-weight: 600;
  color: var(--text);
}

.buyer-field select {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 12px;
  padding: 12px;
  font-size: 13px;
}

.buyer-qty {
  display: flex;
  align-items: center;
  gap: 10px;
}

.buyer-qty strong {
  min-width: 46px;
  text-align: center;
  font-size: 18px;
}

.buyer-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.buyer-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

.buyer-chip.active {
  border-color: rgba(110, 243, 255, 0.5);
  color: #b8f6ff;
  background: rgba(110, 243, 255, 0.12);
}

.buyer-summary .buyer-price {
  margin-top: 6px;
  margin-bottom: 4px;
  font-size: 34px;
  font-family: "Unbounded", sans-serif;
  color: var(--gold);
  line-height: 1.1;
}

.activity {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  font-size: 13px;
}

.activity li {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(10, 12, 16, 0.7);
  border: 1px solid var(--line);
}

.empty {
  padding: 24px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 14px;
}

.toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.06);
  cursor: pointer;
}

.switch {
  width: 46px;
  height: 24px;
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s ease;
}

.switch::after {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  position: absolute;
  top: 3px;
  left: 4px;
  transition: transform 0.2s ease;
}

.switch.active::after {
  transform: translateX(20px);
}

.switch.active {
  background: rgba(110, 243, 255, 0.22);
}

.triad-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  max-width: min(520px, calc(100vw - 32px));
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(110, 243, 255, 0.35);
  background: rgba(7, 11, 16, 0.96);
  color: var(--text);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.35);
  font-size: 13px;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
}

.triad-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.triad-toast.success {
  border-color: rgba(87, 240, 199, 0.5);
}

.triad-toast.error {
  border-color: rgba(255, 107, 107, 0.45);
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, rgba(6, 8, 11, 0.55), rgba(6, 8, 11, 0.32) 45%, rgba(6, 8, 11, 0.6) 100%);
  overflow-x: hidden;
}
  .sidebar {
    position: fixed;
    transform: translateX(-105%);
    transition: transform 0.3s ease;
    width: 280px;
  }
  .app.sidebar-open .sidebar { transform: translateX(0); }
  .main { padding: 24px; }
  .icon-btn { display: inline-flex; }
  .topbar { flex-wrap: wrap; }
  .net-meta { display: none; }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .top-actions { width: 100%; justify-content: space-between; }
  .search { max-width: 100%; }
  .net-indicator { width: 100%; justify-content: space-between; }
  .modal-card {
    width: min(680px, 95vw);
    padding: 18px;
  }
  .modal-actions-main .btn {
    width: 100%;
  }
  .connect-steps-cards .step-card {
    grid-template-columns: 24px 1fr;
    gap: 10px;
  }
  .connect-steps-cards .step-index {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }
}


.brand-logo {
  border: 1px solid rgba(110, 243, 255, 0.25);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6), 0 0 30px rgba(110, 243, 255, 0.35);
}

.btn-primary {
  box-shadow: 0 18px 36px rgba(110, 243, 255, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 26px 52px rgba(110, 243, 255, 0.35);
}

.card,
.plan-card,
.kpi,
.table,
.activity li,
.shard-card,
.topbar {
  backdrop-filter: blur(16px) saturate(1.2);
}

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

.hidden { display: none; }


.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
}

.icon-btn:hover {
  border-color: rgba(110, 243, 255, 0.4);
  color: var(--gold);
}

.icon-btn .burger {
  width: 18px;
  height: 12px;
  position: relative;
}

.icon-btn .burger::before,
.icon-btn .burger::after,
.icon-btn .burger span {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.icon-btn .burger::before {
  top: 0;
}

.icon-btn .burger span {
  top: 5px;
}

.icon-btn .burger::after {
  bottom: 0;
}

.menu-label {
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
}

.app.sidebar-collapsed {
  grid-template-columns: 96px 1fr;
}

.app.sidebar-collapsed .sidebar {
  width: 96px;
  padding: 24px 14px;
  border-right: 1px solid var(--line);
  overflow: visible;
}

.app.sidebar-collapsed .main {
  padding-left: 24px;
}

.card-note {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.cluster-kind {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cluster-targets {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.cluster-targets strong {
  color: var(--text);
}
