@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #070b14;
  --bg-soft: #0d1321;
  --surface: rgba(18, 26, 43, 0.86);
  --surface-solid: #121a2b;
  --surface-raised: #172238;
  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(148, 163, 184, 0.24);
  --text: #f7f8fc;
  --muted: #98a5ba;
  --accent: #8b7cff;
  --accent-strong: #6e5df5;
  --cyan: #57d4e8;
  --green: #46d69d;
  --amber: #ffbf69;
  --red: #ff718a;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, rgba(139, 124, 255, 0.18), transparent 34rem),
    radial-gradient(circle at 90% 20%, rgba(87, 212, 232, 0.11), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.55;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

img {
  max-width: 100%;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.app {
  min-height: 100vh;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c9c2ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 22px;
  height: 2px;
  border-radius: 99px;
  background: var(--accent);
  content: "";
}

.gradient-text {
  background: linear-gradient(120deg, #ffffff 20%, #b9aeff 60%, #6fdbea);
  background-clip: text;
  color: transparent;
}

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

.text-small {
  font-size: 13px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 13px;
  background: linear-gradient(145deg, var(--accent), #5140dd);
  box-shadow: 0 10px 30px rgba(110, 93, 245, 0.28);
}

.brand-mark i {
  font-size: 16px;
}

.site-header,
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 11, 20, 0.78);
  backdrop-filter: blur(20px);
}

.site-header-inner,
.app-header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-nav,
.app-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav > a:not(.btn),
.app-nav a {
  padding: 10px 13px;
  border-radius: 11px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: 0.2s ease;
}

.site-nav > a:not(.btn):hover,
.app-nav a:hover,
.app-nav a.active {
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
}

.app-nav a.active {
  color: #d9d4ff;
}

.app-nav i {
  margin-right: 7px;
}

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

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 11px 6px 7px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.user-chip:hover,
.user-chip:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(139, 124, 255, 0.46);
  outline: none;
  background: rgba(139, 124, 255, 0.09);
}

.user-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--accent), var(--cyan));
  color: #080b14;
  font-size: 12px;
  font-weight: 800;
}

.user-chip strong {
  display: block;
  max-width: 140px;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-chip span {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 13px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-2px);
}

.btn:disabled {
  cursor: wait;
  opacity: 0.62;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: white;
  box-shadow: 0 13px 34px rgba(110, 93, 245, 0.25);
}

.btn-primary:hover:not(:disabled) {
  box-shadow: 0 18px 42px rgba(110, 93, 245, 0.36);
}

.btn-secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
}

.btn-secondary:hover:not(:disabled) {
  border-color: rgba(139, 124, 255, 0.52);
  background: rgba(139, 124, 255, 0.09);
}

.btn-ghost {
  min-width: 42px;
  padding: 9px;
  border-color: var(--line);
  background: transparent;
  color: var(--muted);
}

.btn-danger {
  border-color: rgba(255, 113, 138, 0.24);
  background: rgba(255, 113, 138, 0.1);
  color: #ff9aad;
}

.btn-success {
  background: var(--green);
  color: #06130e;
}

.btn-block {
  width: 100%;
}

.btn-lg {
  min-height: 52px;
  padding: 13px 23px;
  border-radius: 15px;
  font-size: 15px;
}

.landing-hero {
  display: grid;
  min-height: 700px;
  align-items: center;
  gap: 64px;
  padding: 86px 0 92px;
  grid-template-columns: 1.02fr 0.98fr;
}

.landing-hero h1 {
  max-width: 760px;
  margin: 18px 0 24px;
  font-size: clamp(48px, 6.5vw, 82px);
  line-height: 0.99;
  letter-spacing: -0.065em;
}

.landing-hero p {
  max-width: 600px;
  color: var(--muted);
  font-size: 18px;
}

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

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 40px;
  color: #b7c0cf;
  font-size: 13px;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-proof i {
  color: var(--green);
}

.product-preview {
  position: relative;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(27, 39, 65, 0.92), rgba(11, 17, 29, 0.96));
  box-shadow: var(--shadow);
}

.product-preview::before {
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(139, 124, 255, 0.55), transparent 35%, rgba(87, 212, 232, 0.28));
  content: "";
  filter: blur(16px);
  opacity: 0.4;
}

.preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 4px 20px;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #465169;
}

.preview-grid,
.stats-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
}

.preview-stat,
.stat-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.preview-stat strong,
.stat-value {
  display: block;
  margin-top: 7px;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.preview-stat span,
.stat-label {
  color: var(--muted);
  font-size: 12px;
}

.preview-list {
  margin-top: 14px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(4, 8, 16, 0.42);
}

.preview-row {
  display: grid;
  align-items: center;
  gap: 12px;
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 34px 1fr auto;
}

.preview-row:last-child {
  border-bottom: 0;
}

.preview-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: rgba(139, 124, 255, 0.13);
  color: #bfb7ff;
}

.preview-row strong {
  display: block;
  font-size: 12px;
}

.preview-row small {
  color: var(--muted);
  font-size: 10px;
}

.section {
  padding: 92px 0;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 38px;
}

.section-heading h2 {
  margin: 12px 0 13px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.section-heading p {
  color: var(--muted);
  font-size: 16px;
}

.feature-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}

.feature-card,
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(14px);
}

.feature-card {
  min-height: 260px;
  padding: 28px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 124, 255, 0.38);
  background: rgba(23, 34, 56, 0.94);
}

.feature-icon,
.stat-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  background: rgba(139, 124, 255, 0.12);
  color: #bdb5ff;
}

.feature-card h3 {
  margin: 48px 0 10px;
  font-size: 20px;
}

.feature-card p {
  color: var(--muted);
  font-size: 14px;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 50px;
  border: 1px solid rgba(139, 124, 255, 0.28);
  border-radius: 30px;
  background:
    radial-gradient(circle at 85% 20%, rgba(87, 212, 232, 0.18), transparent 25rem),
    linear-gradient(135deg, rgba(139, 124, 255, 0.18), rgba(18, 26, 43, 0.88));
}

.cta-panel h2 {
  max-width: 640px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.site-footer {
  margin-top: 48px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.auth-layout {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(360px, 0.85fr) minmax(520px, 1.15fr);
}

.auth-aside {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 42px;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(circle at 15% 25%, rgba(139, 124, 255, 0.27), transparent 28rem),
    #0b101d;
}

.auth-quote {
  max-width: 580px;
}

.auth-quote h2 {
  margin-bottom: 20px;
  font-size: clamp(38px, 4.2vw, 64px);
  line-height: 1.03;
  letter-spacing: -0.055em;
}

.auth-quote p {
  max-width: 500px;
  color: var(--muted);
  font-size: 16px;
}

.auth-aside-footer {
  color: #6f7c91;
  font-size: 12px;
}

.auth-main {
  display: grid;
  padding: 42px;
  place-items: center;
}

.auth-card {
  width: min(460px, 100%);
}

.auth-card h1 {
  margin: 16px 0 9px;
  font-size: 38px;
  letter-spacing: -0.045em;
}

.auth-card > p {
  margin-bottom: 30px;
  color: var(--muted);
}

.auth-switch {
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.auth-switch a {
  color: #c4bcff;
  font-weight: 700;
}

.demo-box {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.025);
}

.demo-box p {
  color: var(--muted);
  font-size: 11px;
}

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

.demo-actions button {
  flex: 1;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  color: #cfd5e1;
  font-size: 11px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: #dce1ea;
  font-size: 13px;
  font-weight: 700;
}

.form-control {
  width: 100%;
  min-height: 48px;
  padding: 12px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  outline: none;
  background: rgba(8, 13, 23, 0.72);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-control:focus {
  border-color: rgba(139, 124, 255, 0.68);
  background: rgba(12, 18, 31, 0.92);
  box-shadow: 0 0 0 4px rgba(139, 124, 255, 0.1);
}

.form-control::placeholder {
  color: #5f6c80;
}

select.form-control {
  cursor: pointer;
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.checkbox-row input {
  margin-top: 3px;
  accent-color: var(--accent);
}

.page-main {
  padding: 42px 0 80px;
}

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

.page-heading h1 {
  margin-top: 8px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.page-heading p {
  max-width: 660px;
  margin-top: 8px;
  color: var(--muted);
}

.stats-grid {
  margin-bottom: 24px;
  grid-template-columns: repeat(4, 1fr);
}

.stat-card {
  position: relative;
  min-height: 154px;
  overflow: hidden;
  padding: 20px;
}

.stat-card::after {
  position: absolute;
  right: -28px;
  bottom: -42px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--stat-color, var(--accent));
  content: "";
  filter: blur(40px);
  opacity: 0.18;
}

.stat-card .stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--stat-color, var(--accent)) 14%, transparent);
  color: var(--stat-color, var(--accent));
}

.stat-value {
  margin-top: 20px;
  font-size: 32px;
}

.card {
  padding: 24px;
}

.card + .card {
  margin-top: 18px;
}

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

.card-header h2,
.card-header h3 {
  font-size: 18px;
  letter-spacing: -0.02em;
}

.quick-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
  grid-template-columns: repeat(3, 1fr);
}

.quick-action {
  display: flex;
  min-height: 108px;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.028);
  transition: 0.2s ease;
}

.quick-action:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 124, 255, 0.42);
  background: rgba(139, 124, 255, 0.07);
}

.quick-action i {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  background: rgba(139, 124, 255, 0.12);
  color: #bbb2ff;
}

.quick-action strong {
  display: block;
  font-size: 14px;
}

.quick-action span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

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

.toolbar-group {
  display: flex;
  gap: 10px;
}

.toolbar .form-control {
  min-height: 42px;
  font-size: 13px;
}

.search-control {
  min-width: 280px;
}

.request-list {
  display: grid;
  gap: 13px;
}

.request-card {
  display: grid;
  align-items: center;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.026);
  grid-template-columns: 1fr auto;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.request-card:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 124, 255, 0.36);
  background: rgba(255, 255, 255, 0.04);
}

.request-card h3 {
  margin: 8px 0 6px;
  font-size: 17px;
}

.request-card p {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.request-meta,
.badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.request-meta {
  margin-top: 12px;
  color: #7e8ba0;
  font-size: 11px;
}

.request-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.badge-primary {
  border-color: rgba(139, 124, 255, 0.22);
  background: rgba(139, 124, 255, 0.1);
  color: #c2baff;
}

.badge-info {
  border-color: rgba(87, 212, 232, 0.22);
  background: rgba(87, 212, 232, 0.1);
  color: #8ae5f1;
}

.badge-success {
  border-color: rgba(70, 214, 157, 0.22);
  background: rgba(70, 214, 157, 0.1);
  color: #77e5b9;
}

.badge-warning {
  border-color: rgba(255, 191, 105, 0.22);
  background: rgba(255, 191, 105, 0.1);
  color: #ffd094;
}

.badge-danger {
  border-color: rgba(255, 113, 138, 0.22);
  background: rgba(255, 113, 138, 0.1);
  color: #ff9baf;
}

.badge-neutral {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.table-responsive {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: #718097;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

td {
  color: #d8dde7;
  font-size: 12px;
}

tbody tr {
  transition: background 0.2s ease;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

.table-title {
  max-width: 300px;
  font-weight: 700;
}

.form-card {
  max-width: 820px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
}

.form-grid .span-2 {
  grid-column: span 2;
}

.priority-options {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, 1fr);
}

.priority-option input {
  position: absolute;
  opacity: 0;
}

.priority-option span {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  transition: 0.2s ease;
}

.priority-option input:checked + span {
  border-color: rgba(139, 124, 255, 0.56);
  background: rgba(139, 124, 255, 0.1);
  color: #d6d1ff;
  box-shadow: 0 0 0 3px rgba(139, 124, 255, 0.08);
}

.detail-layout {
  display: grid;
  align-items: start;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 300px;
}

.detail-title {
  margin: 18px 0 12px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.detail-description {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.detail-description h3 {
  margin-bottom: 10px;
  font-size: 14px;
}

.detail-description p {
  color: #bac3d1;
  white-space: pre-wrap;
}

.side-list {
  display: grid;
  gap: 14px;
}

.side-item {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.side-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.side-item span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.side-item strong {
  font-size: 13px;
}

.timeline {
  display: grid;
  gap: 0;
  margin-top: 24px;
  grid-template-columns: repeat(3, 1fr);
}

.timeline-step {
  position: relative;
  color: #5e6b7f;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.timeline-step::before {
  display: block;
  position: relative;
  z-index: 2;
  width: 16px;
  height: 16px;
  margin: 0 auto 8px;
  border: 4px solid var(--surface-solid);
  border-radius: 50%;
  background: #3a4558;
  content: "";
}

.timeline-step::after {
  position: absolute;
  top: 7px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #303b4e;
  content: "";
}

.timeline-step:first-child::after {
  left: 50%;
  width: 50%;
}

.timeline-step:last-child::after {
  width: 50%;
}

.timeline-step.done,
.timeline-step.active {
  color: #dfe3eb;
}

.timeline-step.done::before {
  background: var(--green);
}

.timeline-step.active::before {
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(139, 124, 255, 0.12);
}

.profile-grid {
  display: grid;
  align-items: start;
  gap: 18px;
  grid-template-columns: 310px 1fr;
}

.profile-summary {
  text-align: center;
}

.profile-avatar {
  display: grid;
  width: 92px;
  height: 92px;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: 27px;
  background: linear-gradient(145deg, var(--accent), var(--cyan));
  color: #071019;
  font-size: 25px;
  font-weight: 800;
  box-shadow: 0 18px 42px rgba(87, 212, 232, 0.14);
}

.profile-summary h2 {
  font-size: 21px;
}

.profile-summary p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.profile-stat-row {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  grid-template-columns: repeat(3, 1fr);
}

.profile-stat {
  padding: 12px 6px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
}

.profile-stat strong {
  display: block;
  font-size: 18px;
}

.profile-stat span {
  color: var(--muted);
  font-size: 9px;
}

.empty-state,
.loading-state,
.error-state {
  display: grid;
  min-height: 260px;
  padding: 34px;
  place-items: center;
  text-align: center;
}

.empty-icon,
.error-icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  place-items: center;
  border-radius: 20px;
  background: rgba(139, 124, 255, 0.09);
  color: #aaa1ff;
  font-size: 23px;
}

.error-icon {
  background: rgba(255, 113, 138, 0.09);
  color: #ff8da2;
}

.empty-state p,
.error-state p {
  max-width: 440px;
  margin: 8px auto 18px;
  color: var(--muted);
  font-size: 13px;
}

.spinner {
  width: 38px;
  height: 38px;
  margin: 0 auto 14px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

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

.toast {
  display: flex;
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1000;
  max-width: min(390px, calc(100% - 44px));
  align-items: flex-start;
  gap: 11px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background: #151e30;
  box-shadow: var(--shadow);
  font-size: 12px;
  animation: toast-in 0.25s ease;
}

.toast-success {
  border-left: 3px solid var(--green);
}

.toast-error {
  border-left: 3px solid var(--red);
}

.toast-info {
  border-left: 3px solid var(--cyan);
}

@keyframes toast-in {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  padding: 20px;
  align-items: center;
  justify-content: center;
  background: rgba(3, 6, 12, 0.78);
  backdrop-filter: blur(12px);
}

.modal.active {
  display: flex;
}

.modal-content {
  width: min(480px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: var(--surface-solid);
  box-shadow: var(--shadow);
}

.modal-content h2,
.modal-content h3 {
  margin-bottom: 20px;
}

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

[hidden] {
  display: none !important;
}

@media (max-width: 1050px) {
  .landing-hero {
    min-height: auto;
    gap: 45px;
    padding-top: 64px;
    grid-template-columns: 1fr;
  }

  .product-preview {
    width: min(720px, 100%);
  }

  .app-header-inner {
    min-height: auto;
    padding: 14px 0;
    flex-wrap: wrap;
  }

  .app-nav {
    width: 100%;
    order: 3;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .app-nav a {
    flex: 0 0 auto;
  }

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

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

  .profile-summary {
    text-align: left;
  }

  .profile-avatar {
    margin-left: 0;
  }
}

@media (max-width: 820px) {
  .site-header-inner {
    min-height: auto;
    padding: 15px 0;
    flex-wrap: wrap;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    order: 3;
    overflow-x: auto;
  }

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

  .feature-card {
    min-height: 220px;
  }

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

  .auth-aside {
    min-height: 330px;
    padding: 28px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .auth-aside-footer {
    display: none;
  }

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

  .page-heading,
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar-group {
    width: 100%;
  }

  .toolbar-group .form-control,
  .search-control {
    min-width: 0;
    flex: 1;
  }

  .cta-panel {
    align-items: flex-start;
    padding: 34px;
    flex-direction: column;
  }
}

@media (max-width: 580px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .site-nav > a:not(.btn) {
    display: none;
  }

  .landing-hero {
    padding: 48px 0 68px;
  }

  .landing-hero h1 {
    font-size: 48px;
  }

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

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

  .preview-stat strong {
    margin-top: 0;
  }

  .section {
    padding: 68px 0;
  }

  .site-footer .container {
    flex-direction: column;
  }

  .auth-aside {
    min-height: 270px;
  }

  .auth-main {
    padding: 32px 20px 50px;
  }

  .auth-quote h2 {
    font-size: 38px;
  }

  .app-header-inner {
    gap: 12px;
  }

  .user-chip {
    display: none;
  }

  .page-main {
    padding-top: 28px;
  }

  .page-heading h1 {
    font-size: 34px;
  }

  .card {
    padding: 18px;
    border-radius: 17px;
  }

  .toolbar-group {
    flex-direction: column;
  }

  .request-card {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .request-card > .btn {
    width: 100%;
  }

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

  .form-grid .span-2 {
    grid-column: span 1;
  }

  .priority-options {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline {
    gap: 10px;
    grid-template-columns: 1fr;
  }

  .timeline-step {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
  }

  .timeline-step::before {
    margin: 0;
  }

  .timeline-step::after {
    display: none;
  }

  .modal-actions {
    flex-direction: column;
  }
}
