:root {
  --bg: #050612;
  --bg-2: #090b1b;
  --panel: rgba(14, 17, 33, 0.84);
  --panel-strong: rgba(18, 22, 41, 0.96);
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f7ff;
  --muted: #9ca7ca;
  --orange: #ff7a00;
  --violet: #7b5cff;
  --green: #30dd82;
  --red: #ff6464;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 122, 0, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(123, 92, 255, 0.2), transparent 32%),
    linear-gradient(180deg, var(--bg) 0%, #060815 45%, var(--bg-2) 100%);
  font-family: "Inter", "Segoe UI", sans-serif;
}

button {
  font: inherit;
}

.hidden {
  display: none !important;
}

.bg-grid,
.bg-orb {
  position: fixed;
  pointer-events: none;
}

.bg-grid {
  inset: 0;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95), transparent 85%);
}

.bg-orb {
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.28;
}

.bg-orb-left {
  top: -160px;
  left: -100px;
  background: radial-gradient(circle, rgba(255, 122, 0, 0.55), transparent 65%);
}

.bg-orb-right {
  top: 50px;
  right: -100px;
  background: radial-gradient(circle, rgba(123, 92, 255, 0.52), transparent 65%);
}

.dashboard-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 288px 1fr;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 20px;
  border-right: 1px solid var(--line);
  background: rgba(6, 8, 21, 0.86);
  backdrop-filter: blur(16px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 24px;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-avatar,
.avatar {
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 122, 0, 0.98), rgba(123, 92, 255, 0.95));
  box-shadow: 0 18px 40px rgba(123, 92, 255, 0.22);
}

.sidebar-logo {
  display: block;
}

.hero-avatar,
.avatar {
  display: grid;
  place-items: center;
}

.sidebar-logo {
  width: 176px;
  height: auto;
  filter: drop-shadow(0 12px 32px rgba(123, 92, 255, 0.22));
}

.brand-name,
.brand-sub {
  display: block;
}

.brand-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.brand-sub {
  color: var(--muted);
  font-size: 0.9rem;
}

.sidebar-nav {
  display: grid;
  gap: 8px;
  align-content: start;
}

.nav-item {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-item:hover,
.nav-item.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 122, 0, 0.16);
  transform: translateX(2px);
}

.sidebar-help,
.card,
.hero-card,
.loading-card,
.feedback-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(16, 18, 34, 0.94), rgba(10, 12, 24, 0.92));
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.sidebar-help {
  padding: 20px;
}

.help-badge,
.eyebrow,
.pricing-label,
.status-pill,
.plan-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border-radius: 999px;
}

.help-badge,
.pricing-label {
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffd8c0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.sidebar-help h3,
.section-title h2,
.feedback-card h2,
.hero-card h2 {
  margin: 12px 0 0;
  font-family: "Space Grotesk", sans-serif;
}

.sidebar-help p,
.section-title p,
.feature-list,
.feedback-card p,
.inline-feedback,
.placeholder-card p,
.split-card p,
.quick-action span,
.download-box p,
.trial-box p {
  color: var(--muted);
}

.button {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 16px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease, border-color 180ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.button-primary {
  color: #150b14;
  background: linear-gradient(135deg, #ff9d4a, var(--orange) 34%, var(--violet) 100%);
  box-shadow: 0 14px 34px rgba(255, 122, 0, 0.18), 0 0 28px rgba(123, 92, 255, 0.18);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.12);
}

.button-full {
  width: 100%;
}

.dashboard-shell {
  padding: 24px 28px 40px;
}

.dashboard-header {
  position: relative;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.header-search h1 {
  margin: 8px 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  letter-spacing: -0.05em;
}

.header-copy {
  margin-top: 10px;
  color: var(--muted);
}

.eyebrow {
  gap: 8px;
  color: #ffd8c0;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.74rem;
  font-weight: 600;
}

.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--violet));
}

.header-actions,
.account-toggle,
.account-meta,
.split-inline,
.meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-actions {
  position: relative;
  z-index: 31;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

.icon {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  flex: 0 0 auto;
}

.account-menu-wrap {
  position: relative;
  z-index: 32;
}

.account-toggle {
  min-width: 260px;
  padding: 10px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

.avatar {
  width: 40px;
  height: 40px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.account-meta {
  gap: 8px;
}

.account-meta strong {
  display: block;
}

.plan-badge {
  padding: 6px 12px;
  font-size: 0.76rem;
  font-weight: 700;
}

.plan-trial {
  background: rgba(123, 92, 255, 0.14);
  color: #d9cdff;
}

.plan-base {
  background: rgba(255, 122, 0, 0.12);
  color: #ffd2ab;
}

.plan-pro,
.plan-enterprise {
  background: rgba(48, 221, 130, 0.12);
  color: #cbffe0;
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 40;
  min-width: 260px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(12, 14, 28, 0.97);
  box-shadow: var(--shadow);
}

.dropdown-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.dropdown-item span {
  flex: 1 1 auto;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.dropdown-item.danger {
  color: #ff9d9d;
}

.loading-card,
.feedback-card {
  min-height: 280px;
  padding: 28px;
  display: grid;
  place-items: center;
  text-align: center;
}

.loading-spinner {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--orange);
  animation: spin 900ms linear infinite;
}

.content-grid {
  display: grid;
  gap: 22px;
}

.section-block {
  display: grid;
  gap: 18px;
}

.hero-card {
  padding: 28px;
  display: grid;
  grid-template-columns: 1.25fr 1.45fr;
  gap: 24px;
  animation: rise 420ms ease;
}

.user-summary,
.plan-summary,
.three-up,
.two-up,
.stats-grid,
.device-grid {
  display: grid;
  gap: 18px;
}

.user-summary {
  grid-template-columns: 128px 1fr;
  align-items: center;
}

.hero-avatar {
  width: 128px;
  height: 128px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 3.7rem;
  font-weight: 700;
}

.status-pill {
  padding: 7px 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-active {
  background: rgba(48, 221, 130, 0.14);
  color: #d0ffe2;
}

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

.split-card {
  padding: 18px 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.split-card small,
.device-card small {
  color: var(--muted);
}

.split-card strong {
  display: block;
  margin-top: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.4rem;
  letter-spacing: -0.04em;
}

.device-progress {
  margin-top: 16px;
}

.device-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.progress-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), var(--orange));
  transition: width 220ms ease;
}

.three-up {
  grid-template-columns: 1.05fr 0.9fr 0.9fr;
}

.two-up {
  grid-template-columns: 1.05fr 1fr;
}

.card {
  padding: 24px;
  animation: rise 420ms ease;
}

.card-column {
  align-content: start;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.card-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 122, 0, 0.1);
  color: #ffd0ad;
  font-weight: 700;
}

.card-icon .icon {
  width: 18px;
  height: 18px;
}

.card-icon.accent {
  background: rgba(123, 92, 255, 0.14);
  color: #d7ccff;
}

.card-icon.accent-2 {
  background: rgba(48, 221, 130, 0.12);
  color: #ccffe2;
}

.card-icon.accent-3 {
  background: rgba(255, 100, 100, 0.12);
  color: #ffc5c5;
}

.plan-stack,
.trial-box,
.download-box,
.quick-actions,
.activity-list {
  display: grid;
  gap: 14px;
}

.plan-primary {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 122, 0, 0.18);
  background: linear-gradient(180deg, rgba(255, 122, 0, 0.08), rgba(123, 92, 255, 0.08));
}

.plan-primary strong,
.trial-box strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.1rem;
}

.feature-list {
  display: grid;
  gap: 10px;
  padding-left: 18px;
  margin: 0;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pricing-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 16px;
}

.pricing-card.highlight {
  border-color: rgba(123, 92, 255, 0.32);
  background:
    linear-gradient(180deg, rgba(255, 122, 0, 0.08), rgba(123, 92, 255, 0.12)),
    rgba(255, 255, 255, 0.03);
  box-shadow: 0 0 28px rgba(123, 92, 255, 0.16);
}

.quick-action {
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 6px;
}

.quick-action-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 122, 0, 0.1);
  color: #ffd0ad;
}

.icon-btn svg,
.action-btn svg {
  width: 16px;
  height: 16px;
}

.hero-btn svg,
.window-add-button svg,
.button svg,
.icon-button svg,
.quick-action svg,
.dropdown-item svg {
  width: 18px;
  height: 18px;
}

.quick-action:hover {
  border-color: rgba(255, 122, 0, 0.22);
  transform: translateY(-1px);
}

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

.stat-card,
.device-card {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-card strong,
.device-card strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.9rem;
}

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

.activity-item {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.activity-item strong,
.activity-item span,
.activity-item small {
  display: block;
}

.activity-item span,
.activity-item small,
.muted {
  color: var(--muted);
}

.placeholder-card {
  min-height: 180px;
}

.inline-feedback {
  min-height: 44px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.inline-feedback.success {
  color: #d6ffe6;
  border-color: rgba(48, 221, 130, 0.25);
  background: rgba(48, 221, 130, 0.08);
}

.inline-feedback.error {
  color: #ffd6d6;
  border-color: rgba(255, 100, 100, 0.25);
  background: rgba(255, 100, 100, 0.08);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

@media (max-width: 1280px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
    grid-template-rows: auto auto auto;
  }

  .dashboard-shell {
    padding-top: 18px;
  }

  .hero-card,
  .three-up,
  .two-up,
  .plan-grid,
  .device-grid,
  .plan-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .dashboard-shell,
  .sidebar {
    padding-left: 18px;
    padding-right: 18px;
  }

  .sidebar-logo {
    width: 148px;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: stretch;
  }

  .header-actions {
    flex-wrap: wrap;
  }

  .account-toggle {
    min-width: 100%;
  }

  .user-summary,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-avatar {
    width: 88px;
    height: 88px;
    font-size: 2.8rem;
  }
}

.user-summary .hero-avatar {
  width: 128px;
  height: 128px;
  min-width: 128px;

  display: flex !important;
  align-items: center;
  justify-content: center;

  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 122, 0, 0.98), rgba(123, 92, 255, 0.95));
  box-shadow: 0 18px 40px rgba(123, 92, 255, 0.22);

  color: #ffffff;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 3.7rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  text-align: center;
}