:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-muted: #f7f8fc;
  --sidebar: #080b13;
  --sidebar-soft: #10141f;
  --text: #171a25;
  --text-soft: #697083;
  --line: #e5e8f0;
  --purple: #7967ff;
  --purple-dark: #624df2;
  --purple-soft: #eeeaff;
  --blue: #3987f6;
  --green: #2bbf82;
  --orange: #f39a45;
  --danger: #e45366;
  --shadow: 0 18px 55px rgba(29, 37, 64, 0.1);
  --radius-xl: 24px;
  --radius-lg: 17px;
  --radius-md: 12px;
  --sidebar-width: 270px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(121, 103, 255, 0.25);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.noscript-message {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto;
  padding: 12px 20px;
  color: #fff;
  background: var(--danger);
  text-align: center;
  font-weight: 700;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

/* Login */
.login-view {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(430px, 1.05fr) minmax(480px, 0.95fr);
  background: var(--surface);
}

.login-showcase {
  position: relative;
  display: flex;
  min-height: 100vh;
  padding: 44px clamp(40px, 5vw, 82px) 34px;
  overflow: hidden;
  flex-direction: column;
  color: #fff;
  background:
    radial-gradient(circle at 19% 20%, rgba(130, 101, 255, 0.18), transparent 26%),
    radial-gradient(circle at 78% 75%, rgba(80, 136, 255, 0.14), transparent 27%),
    linear-gradient(145deg, #080b15 0%, #0e1120 55%, #090b12 100%);
}

.login-showcase::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.33;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 83%);
}

.ambient {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.ambient-one {
  width: 420px;
  height: 420px;
  top: -210px;
  right: -110px;
  border: 1px solid rgba(153, 137, 255, 0.14);
  box-shadow: 0 0 120px rgba(113, 83, 255, 0.13) inset;
}

.ambient-two {
  width: 250px;
  height: 250px;
  bottom: 7%;
  left: -140px;
  background: rgba(87, 63, 225, 0.08);
  filter: blur(60px);
}

.brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(145deg, #8775ff, #5b45e7);
  box-shadow: 0 8px 24px rgba(100, 74, 239, 0.34);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -1.2px;
}

.brand-mark::after {
  position: absolute;
  width: 45px;
  height: 12px;
  content: "";
  background: rgba(255, 255, 255, 0.17);
  transform: rotate(-38deg) translateY(-10px);
}

.brand-copy {
  display: flex;
  line-height: 1;
  flex-direction: column;
  gap: 4px;
}

.brand-copy strong {
  font-size: 18px;
  letter-spacing: 4px;
}

.brand-copy small {
  color: rgba(255, 255, 255, 0.52);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 5px;
}

.showcase-content {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  margin: auto 0;
  padding: 55px 0 25px;
}

.eyebrow,
.login-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #a99cff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.1px;
}

.status-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7f69ff;
  box-shadow: 0 0 0 5px rgba(127, 105, 255, 0.12), 0 0 16px #7f69ff;
}

.showcase-content h1 {
  margin: 24px 0 20px;
  color: #f7f8ff;
  font-size: clamp(42px, 4.4vw, 70px);
  line-height: 1.04;
  letter-spacing: -3px;
}

.showcase-content h1 span {
  color: #8e7cff;
  background: linear-gradient(90deg, #a89bff, #6d8dff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.showcase-content > p {
  max-width: 560px;
  margin: 0;
  color: rgba(232, 235, 250, 0.6);
  font-size: 16px;
  line-height: 1.75;
}

.showcase-preview {
  width: min(560px, 95%);
  height: 255px;
  margin-top: 44px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 35px 75px rgba(0, 0, 0, 0.28);
  transform: perspective(900px) rotateY(-2deg) rotateX(1deg);
  backdrop-filter: blur(10px);
}

.preview-topline {
  display: flex;
  height: 29px;
  padding: 0 12px;
  align-items: center;
  gap: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.preview-topline span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.preview-body {
  display: grid;
  height: calc(100% - 29px);
  grid-template-columns: 72px 1fr;
}

.preview-menu {
  padding: 21px 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.055);
  background: rgba(0, 0, 0, 0.13);
}

.preview-menu i {
  display: block;
  height: 6px;
  margin-bottom: 17px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.09);
}

.preview-menu i:first-child {
  background: rgba(132, 112, 255, 0.55);
}

.preview-content {
  padding: 22px;
}

.preview-heading {
  width: 100px;
  height: 8px;
  margin-bottom: 20px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.15);
}

.preview-cards {
  display: grid;
  margin-bottom: 18px;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
}

.preview-cards i {
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.preview-chart {
  display: flex;
  height: 86px;
  padding: 14px 15px 0;
  align-items: flex-end;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9px;
  background:
    repeating-linear-gradient(to bottom, transparent 0, transparent 21px, rgba(255, 255, 255, 0.03) 22px);
}

.preview-chart span {
  width: 6%;
  min-height: 6px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(#8d7aff, rgba(96, 72, 227, 0.25));
}

.preview-chart .bar-one { height: 38%; }
.preview-chart .bar-two { height: 58%; }
.preview-chart .bar-three { height: 46%; }
.preview-chart .bar-four { height: 78%; }
.preview-chart .bar-five { height: 63%; }
.preview-chart .bar-six { height: 88%; }
.preview-chart .bar-seven { height: 72%; }

.showcase-footer {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.26);
  font-size: 11px;
}

.login-panel {
  display: grid;
  min-height: 100vh;
  padding: 60px clamp(44px, 7vw, 120px);
  place-items: center;
  background:
    radial-gradient(circle at 100% 0%, rgba(126, 105, 255, 0.05), transparent 25%),
    #fff;
}

.login-card {
  width: min(430px, 100%);
}

.mobile-brand {
  display: none;
  margin-bottom: 48px;
  align-items: center;
  gap: 11px;
}

.mobile-brand .brand-copy strong {
  color: #171a25;
}

.mobile-brand .brand-copy small {
  color: #8a90a0;
}

.login-card h2 {
  margin: 13px 0 12px;
  font-size: clamp(29px, 3vw, 38px);
  line-height: 1.18;
  letter-spacing: -1.3px;
}

.login-subtitle {
  margin: 0 0 34px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.65;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-field label {
  display: block;
  margin-bottom: 9px;
  color: #343846;
  font-size: 13px;
  font-weight: 700;
}

.input-shell {
  position: relative;
  display: flex;
  height: 54px;
  align-items: center;
  border: 1px solid #dfe2ea;
  border-radius: var(--radius-md);
  background: #fafbfe;
  transition: 0.2s ease;
}

.input-shell:focus-within {
  border-color: rgba(121, 103, 255, 0.75);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(121, 103, 255, 0.09);
}

.input-shell > svg {
  width: 19px;
  height: 19px;
  margin-left: 16px;
  color: #8c92a0;
}

.input-shell input {
  width: 100%;
  height: 100%;
  padding: 0 15px 0 12px;
  border: 0;
  outline: 0;
  color: #222632;
  background: transparent;
  font-size: 14px;
}

.input-shell input::placeholder {
  color: #a4a9b5;
}

.password-toggle {
  display: grid;
  width: 44px;
  height: 44px;
  margin-right: 5px;
  padding: 0;
  flex: 0 0 auto;
  cursor: pointer;
  place-items: center;
  border-radius: 9px;
  color: #9298a7;
  background: transparent;
}

.password-toggle:hover {
  color: var(--purple);
  background: var(--purple-soft);
}

.password-toggle svg {
  width: 19px;
  height: 19px;
}

.password-toggle .eye-closed,
.password-toggle.visible .eye-open {
  display: none;
}

.password-toggle.visible .eye-closed {
  display: block;
}

.form-options {
  display: flex;
  margin-top: -2px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.checkbox-label {
  display: inline-flex;
  cursor: pointer;
  align-items: center;
  gap: 8px;
  color: #5f6574;
  font-size: 12px;
}

.checkbox-label input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.custom-checkbox {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border: 1px solid #d5d9e3;
  border-radius: 5px;
  background: #fff;
  transition: 0.18s ease;
}

.custom-checkbox svg {
  width: 11px;
  height: 11px;
  color: white;
  opacity: 0;
  stroke-width: 2.5;
}

.checkbox-label input:checked + .custom-checkbox {
  border-color: var(--purple);
  background: var(--purple);
}

.checkbox-label input:checked + .custom-checkbox svg {
  opacity: 1;
}

.checkbox-label input:focus-visible + .custom-checkbox {
  outline: 3px solid rgba(121, 103, 255, 0.2);
  outline-offset: 2px;
}

.text-button {
  padding: 0;
  cursor: pointer;
  color: var(--purple-dark);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}

.text-button:hover {
  text-decoration: underline;
}

.login-error {
  min-height: 0;
  margin: -5px 0 -6px;
  color: var(--danger);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.login-error:not(:empty) {
  min-height: 18px;
}

.login-form.shake {
  animation: shake 0.38s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-7px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-3px); }
}

.primary-button {
  display: flex;
  height: 55px;
  padding: 0 19px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border-radius: var(--radius-md);
  color: white;
  background: linear-gradient(135deg, #806dff, #634feb);
  box-shadow: 0 11px 25px rgba(103, 79, 235, 0.25);
  font-size: 14px;
  font-weight: 800;
  transition: 0.2s ease;
}

.primary-button:hover {
  background: linear-gradient(135deg, #8a78ff, #6a55f2);
  box-shadow: 0 14px 29px rgba(103, 79, 235, 0.32);
  transform: translateY(-1px);
}

.primary-button:active {
  transform: translateY(0);
}

.primary-button > svg {
  width: 18px;
  height: 18px;
  transition: 0.2s ease;
}

.primary-button:hover > svg {
  transform: translateX(3px);
}

.primary-button.loading {
  cursor: wait;
  pointer-events: none;
}

.primary-button.loading .button-label,
.primary-button.loading > svg {
  display: none;
}

.button-loader {
  display: none;
  width: 19px;
  height: 19px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.primary-button.loading .button-loader {
  display: block;
}

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

.demo-hint {
  display: flex;
  margin-top: 30px;
  padding: 14px 15px;
  align-items: flex-start;
  gap: 11px;
  border: 1px solid #e7e4fc;
  border-radius: 11px;
  background: #faf9ff;
}

.demo-hint > svg {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  flex: 0 0 auto;
  color: var(--purple);
}

.demo-hint div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.demo-hint strong {
  color: #494260;
  font-size: 11px;
}

.demo-hint span {
  color: #7a728e;
  font-size: 11px;
}

.demo-hint code {
  color: var(--purple-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 800;
}

/* Dashboard */
.app-view {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
}

.sidebar {
  position: fixed;
  z-index: 50;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--sidebar-width);
  padding: 25px 17px 18px;
  flex-direction: column;
  color: #fff;
  background:
    radial-gradient(circle at 15% 3%, rgba(116, 91, 255, 0.14), transparent 25%),
    var(--sidebar);
  box-shadow: 10px 0 35px rgba(14, 17, 29, 0.06);
}

.sidebar-header {
  display: flex;
  min-height: 51px;
  padding: 0 8px;
  align-items: center;
  justify-content: space-between;
}

.sidebar .brand-mark {
  width: 39px;
  height: 39px;
  border-radius: 11px;
  font-size: 13px;
}

.sidebar .brand-copy strong {
  font-size: 16px;
}

.sidebar-close {
  display: none !important;
}

.sidebar-nav {
  margin-top: 27px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #242938 transparent;
}

.nav-caption {
  margin: 22px 11px 8px;
  color: #515767;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.7px;
}

.nav-caption:first-child {
  margin-top: 0;
}

.nav-item {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 45px;
  margin: 3px 0;
  padding: 0 12px;
  cursor: pointer;
  align-items: center;
  gap: 12px;
  border-radius: 10px;
  color: #858b9b;
  background: transparent;
  font-size: 13px;
  text-align: left;
  transition: 0.18s ease;
}

.nav-item > svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

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

.nav-item.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(119, 96, 255, 0.21), rgba(114, 90, 248, 0.08));
}

.nav-item.active::before {
  position: absolute;
  width: 3px;
  height: 21px;
  left: 0;
  content: "";
  border-radius: 0 3px 3px 0;
  background: #836fff;
  box-shadow: 0 0 12px rgba(131, 111, 255, 0.7);
}

.nav-item.active > svg {
  color: #917fff;
}

.nav-item > span:nth-child(2) {
  flex: 1;
}

.nav-badge {
  padding: 3px 6px;
  border-radius: 5px;
  color: #8f80f2;
  background: rgba(120, 99, 238, 0.12);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.nav-count {
  display: grid;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  place-items: center;
  border-radius: 6px;
  color: #747b8c;
  background: rgba(255, 255, 255, 0.055);
  font-size: 10px;
  font-weight: 800;
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: 14px;
}

.sidebar-status {
  display: flex;
  margin-bottom: 11px;
  padding: 12px;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.status-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  background: rgba(44, 191, 130, 0.1);
}

.status-icon span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3ed294;
  box-shadow: 0 0 10px rgba(62, 210, 148, 0.75);
}

.sidebar-status div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sidebar-status strong {
  color: #c9cdd7;
  font-size: 10px;
}

.sidebar-status small {
  color: #4dbe8c;
  font-size: 9px;
}

.logout-button {
  display: flex;
  width: 100%;
  height: 43px;
  padding: 0 12px;
  cursor: pointer;
  align-items: center;
  gap: 12px;
  border-radius: 10px;
  color: #747b8b;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
}

.logout-button svg {
  width: 18px;
  height: 18px;
}

.logout-button:hover {
  color: #ff8190;
  background: rgba(228, 83, 102, 0.07);
}

.app-shell {
  display: flex;
  width: calc(100% - var(--sidebar-width));
  min-height: 100vh;
  margin-left: var(--sidebar-width);
  flex-direction: column;
}

.topbar {
  position: sticky;
  z-index: 35;
  top: 0;
  display: flex;
  height: 76px;
  padding: 0 clamp(23px, 3.2vw, 50px);
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(225, 228, 237, 0.9);
  background: rgba(255, 255, 255, 0.91);
  backdrop-filter: blur(18px);
}

.topbar-left,
.topbar-actions {
  display: flex;
  align-items: center;
}

.icon-button {
  display: grid;
  width: 39px;
  height: 39px;
  padding: 0;
  cursor: pointer;
  place-items: center;
  border-radius: 10px;
  color: #72798a;
  background: transparent;
}

.icon-button:hover {
  color: var(--purple);
  background: var(--purple-soft);
}

.icon-button svg {
  width: 20px;
  height: 20px;
}

.menu-button {
  display: none;
  margin-right: 8px;
}

.search-box {
  display: flex;
  width: clamp(220px, 25vw, 355px);
  height: 41px;
  padding: 0 11px;
  align-items: center;
  gap: 9px;
  border: 1px solid #e2e5ec;
  border-radius: 10px;
  background: #f8f9fc;
}

.search-box:focus-within {
  border-color: rgba(121, 103, 255, 0.48);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(121, 103, 255, 0.07);
}

.search-box > svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: #959baa;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #3c4150;
  background: transparent;
  font-size: 12px;
}

.search-box input::placeholder {
  color: #9da2af;
}

.search-box kbd {
  padding: 3px 5px;
  border: 1px solid #e1e4eb;
  border-radius: 5px;
  color: #9ca1ad;
  background: #fff;
  font-family: inherit;
  font-size: 9px;
  white-space: nowrap;
}

.notification-button {
  position: relative;
}

.notification-button > span {
  position: absolute;
  width: 7px;
  height: 7px;
  top: 7px;
  right: 8px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--purple);
}

.topbar-divider {
  width: 1px;
  height: 28px;
  margin: 0 15px;
  background: #e6e8ee;
}

.profile-button {
  display: flex;
  padding: 3px;
  cursor: pointer;
  align-items: center;
  gap: 10px;
  border-radius: 11px;
  background: transparent;
}

.profile-button:hover {
  background: #f4f5f9;
}

.avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #dcd7ff;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(145deg, #9587ff, #6954e9);
  box-shadow: 0 7px 16px rgba(104, 82, 232, 0.18);
  font-size: 13px;
  font-weight: 800;
}

.profile-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.profile-copy strong {
  color: #323643;
  font-size: 11px;
}

.profile-copy small {
  color: #969ba8;
  font-size: 9px;
}

.profile-button > svg {
  width: 15px;
  height: 15px;
  margin: 0 4px 0 3px;
  color: #a2a7b2;
}

.page-content {
  width: 100%;
  max-width: 1550px;
  margin: 0 auto;
  padding: 36px clamp(23px, 3.2vw, 50px) 28px;
  flex: 1;
}

.page-heading {
  display: flex;
  margin-bottom: 26px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
}

.breadcrumb {
  margin: 0 0 8px;
  color: #9a9fad;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.25px;
}

.page-heading h2 {
  margin: 0 0 7px;
  color: #20232e;
  font-size: 27px;
  letter-spacing: -0.7px;
}

.page-heading > div > p:last-child {
  margin: 0;
  color: #858b99;
  font-size: 12px;
}

.dashboard-action {
  display: flex;
  height: 40px;
  padding: 0 15px;
  cursor: pointer;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  color: white;
  background: var(--purple);
  box-shadow: 0 8px 18px rgba(104, 82, 232, 0.18);
  font-size: 11px;
  font-weight: 800;
}

.dashboard-action:hover {
  background: var(--purple-dark);
  transform: translateY(-1px);
}

.dashboard-action svg {
  width: 16px;
  height: 16px;
}

.welcome-banner {
  position: relative;
  display: flex;
  min-height: 238px;
  padding: 41px 46px;
  overflow: hidden;
  align-items: center;
  justify-content: space-between;
  border-radius: var(--radius-xl);
  color: #fff;
  background:
    radial-gradient(circle at 78% 55%, rgba(133, 110, 255, 0.28), transparent 25%),
    linear-gradient(115deg, #101424, #111423 60%, #15152b);
  box-shadow: 0 17px 37px rgba(20, 22, 40, 0.12);
}

.welcome-banner::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 34px 34px;
}

.welcome-copy {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.welcome-copy h3 {
  margin: 16px 0 10px;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -1.2px;
}

.welcome-copy > p {
  max-width: 540px;
  margin: 0;
  color: rgba(231, 234, 246, 0.63);
  font-size: 12px;
  line-height: 1.65;
}

.welcome-button {
  display: flex;
  height: 39px;
  margin-top: 23px;
  padding: 0 15px;
  cursor: pointer;
  align-items: center;
  gap: 9px;
  border-radius: 9px;
  color: #fff;
  background: rgba(123, 103, 255, 0.94);
  font-size: 10px;
  font-weight: 800;
}

.welcome-button:hover {
  background: #8978ff;
}

.welcome-button svg {
  width: 15px;
  height: 15px;
}

.welcome-visual {
  position: relative;
  width: 260px;
  height: 190px;
  margin-right: 4%;
  flex: 0 0 auto;
}

.visual-core {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 96px;
  height: 96px;
  top: 47px;
  left: 82px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(149, 129, 255, 0.86), rgba(87, 67, 212, 0.8));
  box-shadow: 0 0 55px rgba(119, 91, 255, 0.38), 0 15px 30px rgba(0, 0, 0, 0.2);
  transform: rotate(-7deg);
}

.visual-core span {
  font-size: 27px;
  font-weight: 900;
  letter-spacing: -2.5px;
  transform: rotate(7deg);
}

.orbit {
  position: absolute;
  border: 1px solid rgba(146, 128, 255, 0.18);
  border-radius: 50%;
}

.orbit-one {
  width: 210px;
  height: 118px;
  top: 34px;
  left: 25px;
  transform: rotate(-20deg);
}

.orbit-two {
  width: 170px;
  height: 170px;
  top: 10px;
  left: 47px;
  border-style: dashed;
  animation: rotate 28s linear infinite;
}

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

.floating-dot {
  position: absolute;
  z-index: 4;
  border-radius: 50%;
  background: #9c8cff;
  box-shadow: 0 0 17px #7964ff;
}

.dot-one { width: 7px; height: 7px; top: 29px; left: 58px; }
.dot-two { width: 5px; height: 5px; right: 20px; bottom: 54px; }
.dot-three { width: 4px; height: 4px; left: 23px; bottom: 35px; }

.stats-grid {
  display: grid;
  margin-top: 21px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
}

.stat-card,
.panel {
  border: 1px solid rgba(225, 228, 237, 0.9);
  background: var(--surface);
  box-shadow: 0 6px 22px rgba(28, 35, 56, 0.025);
}

.stat-card {
  min-height: 167px;
  padding: 19px 20px;
  border-radius: var(--radius-lg);
  transition: 0.2s ease;
}

.stat-card:hover {
  border-color: #dcd8f9;
  box-shadow: 0 13px 30px rgba(31, 37, 60, 0.07);
  transform: translateY(-2px);
}

.stat-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-icon,
.quick-icon {
  display: grid;
  place-items: center;
}

.stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.stat-icon svg {
  width: 18px;
  height: 18px;
}

.purple { color: #795fff; background: #eeeaff; }
.blue { color: #3987f6; background: #e9f3ff; }
.green { color: #21a971; background: #e9f8f2; }
.orange { color: #e9892c; background: #fff1e4; }

.trend {
  display: grid;
  min-width: 27px;
  height: 21px;
  place-items: center;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
}

.trend.neutral {
  color: #9da2ae;
  background: #f3f4f7;
}

.stat-card > p {
  margin: 16px 0 4px;
  color: #7a808e;
  font-size: 10px;
  font-weight: 700;
}

.stat-card > strong {
  display: block;
  margin-bottom: 6px;
  color: #252935;
  font-size: 24px;
  letter-spacing: -0.6px;
}

.stat-card > small {
  color: #a0a5b1;
  font-size: 9px;
}

.dashboard-grid {
  display: grid;
  margin-top: 21px;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
  gap: 20px;
}

.panel {
  min-height: 330px;
  padding: 22px;
  border-radius: var(--radius-lg);
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.panel-header h3 {
  margin: 0 0 5px;
  color: #292d39;
  font-size: 13px;
}

.panel-header p {
  margin: 0;
  color: #9a9fac;
  font-size: 9px;
}

.panel-header > button {
  padding: 5px;
  cursor: pointer;
  color: var(--purple);
  background: transparent;
  font-size: 9px;
  font-weight: 700;
}

.panel-header > button:hover {
  text-decoration: underline;
}

.empty-state {
  display: flex;
  min-height: 230px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.empty-icon {
  display: grid;
  width: 53px;
  height: 53px;
  margin-bottom: 13px;
  place-items: center;
  border-radius: 16px;
  color: #9a8cff;
  background: #f0edff;
}

.empty-icon svg {
  width: 23px;
  height: 23px;
}

.empty-state h4 {
  margin: 0 0 7px;
  color: #4a4f5d;
  font-size: 11px;
}

.empty-state p {
  margin: 0;
  color: #a3a8b3;
  font-size: 9px;
}

.quick-links {
  display: flex;
  margin-top: 15px;
  flex-direction: column;
}

.quick-links > button {
  display: flex;
  min-height: 73px;
  padding: 12px 6px;
  cursor: pointer;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #eef0f5;
  background: transparent;
  text-align: left;
}

.quick-links > button:last-child {
  border-bottom: 0;
}

.quick-links > button:hover {
  padding-left: 10px;
  border-radius: 10px;
  background: #fafafe;
}

.quick-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 11px;
}

.quick-icon svg {
  width: 17px;
  height: 17px;
}

.quick-links > button > span:nth-child(2) {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}

.quick-links strong {
  color: #484c59;
  font-size: 10px;
}

.quick-links small {
  color: #a2a7b2;
  font-size: 8px;
}

.quick-links .chevron {
  width: 15px;
  height: 15px;
  color: #b4b8c2;
}

.placeholder-page {
  display: flex;
  min-height: 520px;
  padding: 60px 30px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: 0 10px 35px rgba(26, 34, 56, 0.04);
  text-align: center;
}

.placeholder-illustration {
  position: relative;
  display: grid;
  width: 110px;
  height: 110px;
  margin-bottom: 28px;
  place-items: center;
  border: 1px solid #e1dcff;
  border-radius: 31px;
  color: var(--purple);
  background: linear-gradient(145deg, #faf9ff, #eeeaff);
  transform: rotate(-4deg);
}

.placeholder-illustration > svg {
  position: relative;
  z-index: 2;
  width: 43px;
  height: 43px;
  transform: rotate(4deg);
}

.placeholder-glow {
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(121, 103, 255, 0.12);
  filter: blur(28px);
}

.placeholder-page > span {
  color: var(--purple);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 2px;
}

.placeholder-page h3 {
  margin: 13px 0 10px;
  color: #282c38;
  font-size: 24px;
}

.placeholder-page p {
  max-width: 520px;
  margin: 0;
  color: #8b91a0;
  font-size: 12px;
  line-height: 1.7;
}

.placeholder-page > button {
  display: flex;
  height: 41px;
  margin-top: 25px;
  padding: 0 15px;
  cursor: pointer;
  align-items: center;
  gap: 7px;
  border-radius: 10px;
  color: #fff;
  background: var(--purple);
  font-size: 10px;
  font-weight: 800;
}

.placeholder-page > button:hover {
  background: var(--purple-dark);
}

.placeholder-page > button svg {
  width: 15px;
  height: 15px;
}

.app-footer {
  display: flex;
  min-height: 57px;
  padding: 0 clamp(23px, 3.2vw, 50px);
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #e5e8ef;
  color: #a2a7b2;
  background: rgba(255, 255, 255, 0.45);
  font-size: 9px;
}

.sidebar-overlay {
  position: fixed;
  z-index: 45;
  inset: 0;
  display: none;
  background: rgba(5, 7, 12, 0.55);
  opacity: 0;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(3px);
}

.toast {
  position: fixed;
  z-index: 200;
  display: flex;
  min-width: 260px;
  min-height: 55px;
  right: 25px;
  bottom: 25px;
  padding: 10px 16px;
  pointer-events: none;
  align-items: center;
  gap: 11px;
  border: 1px solid #e3e6ee;
  border-radius: 13px;
  color: #464b58;
  background: #fff;
  box-shadow: var(--shadow);
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(20px);
  transition: 0.3s ease;
}

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

.toast-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: var(--green);
}

.toast-icon svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.3;
}

@media (max-width: 1120px) {
  .login-view {
    grid-template-columns: minmax(390px, 0.9fr) minmax(440px, 1.1fr);
  }

  .login-showcase {
    padding-inline: 45px;
  }

  .showcase-preview {
    height: 225px;
  }

  .welcome-visual {
    margin-right: 0;
    transform: scale(0.85);
  }

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

@media (max-width: 900px) {
  .login-view {
    grid-template-columns: 1fr;
  }

  .login-showcase {
    display: none;
  }

  .login-panel {
    padding: 42px 28px;
    background:
      radial-gradient(circle at 0 0, rgba(126, 105, 255, 0.1), transparent 31%),
      #fff;
  }

  .mobile-brand {
    display: flex;
  }

  .sidebar {
    width: min(290px, 86vw);
    box-shadow: 16px 0 50px rgba(0, 0, 0, 0.25);
    transform: translateX(-105%);
    transition: transform 0.28s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-close {
    display: grid !important;
    color: #747b8b;
  }

  .sidebar-overlay.visible {
    display: block;
  }

  .sidebar-overlay.active {
    opacity: 1;
  }

  .app-shell {
    width: 100%;
    margin-left: 0;
  }

  .menu-button {
    display: grid;
  }

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

  .welcome-banner {
    padding: 37px;
  }

  .welcome-visual {
    display: none;
  }
}

@media (max-width: 620px) {
  .login-panel {
    min-height: 100svh;
    padding: 32px 21px;
    align-items: start;
  }

  .login-card {
    margin: auto 0;
  }

  .mobile-brand {
    margin-bottom: 38px;
  }

  .form-options {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar {
    height: 68px;
    padding: 0 15px;
  }

  .search-box {
    width: 42px;
    padding: 0;
    cursor: pointer;
    justify-content: center;
    border-color: transparent;
    background: transparent;
  }

  .search-box input,
  .search-box kbd {
    display: none;
  }

  .topbar-divider,
  .profile-copy,
  .profile-button > svg {
    display: none;
  }

  .notification-button {
    margin-right: 5px;
  }

  .profile-button {
    padding: 0;
  }

  .page-content {
    padding: 27px 16px 22px;
  }

  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-action {
    width: 100%;
    justify-content: center;
  }

  .welcome-banner {
    min-height: 265px;
    padding: 31px 25px;
    border-radius: 19px;
  }

  .welcome-copy h3 {
    font-size: 28px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stat-card {
    min-height: 153px;
  }

  .panel {
    padding: 19px;
  }

  .placeholder-page {
    min-height: 475px;
    padding-inline: 20px;
  }

  .placeholder-page h3 {
    font-size: 21px;
  }

  .app-footer {
    padding: 14px 16px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
  }

  .toast {
    min-width: 0;
    right: 15px;
    bottom: 15px;
    left: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
