:root {
  --bg: #050b16;
  --bg-soft: #0d1627;
  --panel: rgba(13, 22, 39, 0.9);
  --panel-strong: #101b2d;
  --panel-alt: rgba(17, 27, 46, 0.92);
  --border: rgba(180, 170, 255, 0.2);
  --border-strong: rgba(255, 128, 204, 0.32);
  --text: #ebf3ff;
  --text-soft: #aab8d0;
  --muted: #7d8faa;
  --pink: #ff4db8;
  --pink-strong: #ff2ca8;
  --purple: #9b5cff;
  --cyan: #47d4ff;
  --green: #32d299;
  --amber: #ffb84d;
  --red: #ff6b7b;
  --shadow: 0 18px 42px rgba(7, 12, 24, 0.6);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --sidebar-width: 260px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(155, 92, 255, 0.18), transparent 30%),
    radial-gradient(circle at bottom right, rgba(255, 77, 184, 0.14), transparent 28%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

button, input, select, textarea {
  font: inherit;
}

.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(5, 11, 22, 0.78);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 0 24px rgba(255, 77, 184, 0.45);
}

.brand-mark span { font-size: 1.3rem; }

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy small {
  color: var(--text-soft);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--text-soft);
}

.nav-links a:hover { color: var(--text); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.8rem 1.4rem;
  font-weight: 700;
  transition: 0.2s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 0 24px rgba(255, 77, 184, 0.3);
  color: #fff;
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255,255,255,0.02);
  color: var(--text);
}

.btn-ghost {
  border-color: rgba(71, 212, 255, 0.35);
  background: rgba(71, 212, 255, 0.06);
  color: var(--text);
}

.hero {
  padding: 72px 0 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  padding: 0.45rem 0.75rem;
  background: rgba(255, 77, 184, 0.12);
  border: 1px solid rgba(255, 77, 184, 0.2);
  color: #f9b3df;
  border-radius: 999px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 700;
}

h1, h2, h3, h4 {
  margin: 0 0 0.8rem;
  line-height: 1.12;
}

h1 {
  font-size: clamp(2.7rem, 5vw, 5rem);
  letter-spacing: -0.05em;
}

.hero p {
  color: var(--text-soft);
  font-size: 1.08rem;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.metric {
  min-width: 130px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  background: rgba(18, 27, 42, 0.72);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.metric strong {
  display: block;
  font-size: 1.5rem;
}

.metric span {
  color: var(--text-soft);
  font-size: 0.87rem;
}

.hero-panel {
  background: linear-gradient(180deg, rgba(17,27,46,0.9), rgba(10,16,26,0.9));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 22px;
}

.simple-panel {
  background: linear-gradient(180deg, rgba(19, 29, 45, 0.92), rgba(11, 18, 30, 0.94));
}

.simple-panel-inner {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 18px;
  background: rgba(7, 14, 24, 0.82);
  border: 1px solid rgba(255,255,255,0.06);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
  color: var(--text-soft);
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-list li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(50, 210, 153, 0.12);
  color: var(--green);
  font-weight: 700;
}

.eyebrow.soft {
  background: rgba(71, 212, 255, 0.1);
  border-color: rgba(71, 212, 255, 0.25);
  color: #c3ebff;
}

.full-width {
  width: 100%;
}

.panel-window-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  color: var(--text-soft);
}

.dots {
  display: flex;
  gap: 7px;
}

.dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dots span:nth-child(1) { background: #ff6b7b; }
.dots span:nth-child(2) { background: #ffb84d; }
.dots span:nth-child(3) { background: var(--green); }

.explore-card {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(18, 31, 52, 0.9);
}

.explore-card + .explore-card { margin-top: 14px; }

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.76rem;
  border: 1px solid transparent;
}

.status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.status-active { color: var(--green); background: rgba(50, 210, 153, 0.12); border-color: rgba(50, 210, 153, 0.3); }
.status-pending { color: var(--amber); background: rgba(255,184,77,0.12); border-color: rgba(255,184,77,0.3); }
.status-urgent { color: var(--red); background: rgba(255,107,123,0.12); border-color: rgba(255,107,123,0.3); }
.status-info { color: var(--cyan); background: rgba(71,212,255,0.12); border-color: rgba(71,212,255,0.3); }

.section {
  padding: 34px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 22px;
}

.section-header p {
  color: var(--text-soft);
  margin: 0;
}

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }

.service-card, .card, .table-card, .ticket-card, .invoice-card, .mini-card {
  background: linear-gradient(180deg, rgba(17,27,46,0.86), rgba(12,18,30,0.82));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.service-card {
  padding: 22px;
}

.service-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(255,77,184,0.2), rgba(155,92,255,0.24));
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 1.5rem;
}

.service-card p, .card p, .mini-card p {
  color: var(--text-soft);
  margin: 0;
}

.service-card strong {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.price-tag {
  display: inline-flex;
  margin-top: 14px;
  color: #ffd1f1;
  font-weight: 800;
}

.card {
  padding: 22px;
}

.mini-card {
  padding: 18px;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0,1fr);
  min-height: 100vh;
}

.sidebar {
  background: rgba(9,16,27,0.96);
  border-right: 1px solid var(--border);
  padding: 24px 16px;
}

.sidebar .brand {
  margin: 0 10px 26px;
}

.sidebar-nav {
  display: grid;
  gap: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0.88rem 0.95rem;
  border-radius: 12px;
  color: var(--text-soft);
  border: 1px solid transparent;
}

.nav-item:hover, .nav-item.active {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border-color: rgba(255,255,255,0.04);
}

.nav-item strong { font-size: 0.96rem; }

.content-area {
  padding: 24px;
}

.top-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.page-title {
  font-size: clamp(2rem, 3vw, 2.8rem);
  letter-spacing: -0.05em;
}

.profile-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  font-weight: 800;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.stat-card {
  padding: 20px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(17,27,46,0.92), rgba(11,17,26,0.92));
  border: 1px solid var(--border);
}

.stat-card .label {
  color: var(--text-soft);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-card strong {
  display: block;
  margin: 10px 0 6px;
  font-size: 2rem;
  letter-spacing: -0.05em;
}

.trend-up { color: var(--green); }
.trend-down { color: var(--red); }

.split-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.table-card {
  padding: 18px;
  overflow: hidden;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 0.9rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--text-soft);
}

th {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #bfd0ec;
}

tbody tr:hover { background: rgba(255,255,255,0.02); }

.list-stack {
  display: grid;
  gap: 12px;
}

.activity-item {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.activity-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.04);
}

.activity-meta {
  color: var(--text-soft);
  font-size: 0.82rem;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  margin-top: 12px;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  color: var(--text);
  font-weight: 700;
}

.action-btn:hover { border-color: rgba(255,77,184,0.4); }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: var(--text-soft);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(6, 12, 21, 0.7);
  color: var(--text);
  border-radius: 12px;
  padding: 0.9rem 1rem;
}

.field textarea { min-height: 120px; resize: vertical; }

.page-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
}

.timeline {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 18px minmax(0,1fr);
  gap: 12px;
  align-items: start;
}

.timeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  margin-top: 5px;
  box-shadow: 0 0 18px rgba(255,77,184,0.5);
}

.timeline-item.done .timeline-dot { background: var(--green); box-shadow: 0 0 18px rgba(50,210,153,0.4); }
.timeline-item.pending .timeline-dot { background: rgba(255,255,255,0.35); }

.ticket-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.chat {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.bubble {
  max-width: min(80%, 550px);
  padding: 14px 16px;
  border-radius: 18px;
}

.bubble.client {
  background: rgba(155,92,255,0.12);
  border: 1px solid rgba(155,92,255,0.18);
  justify-self: end;
}

.bubble.staff {
  background: rgba(71,212,255,0.08);
  border: 1px solid rgba(71,212,255,0.18);
}

.bubble small { display: block; color: var(--text-soft); margin-bottom: 4px; }

.mobile-toggle {
  display: none;
}

@media (max-width: 960px) {
  .hero-grid, .split-layout, .grid-3, .grid-4, .stats-grid, .grid-2 {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-wrap {
    position: relative;
    flex-wrap: wrap;
    row-gap: 12px;
    padding: 12px 0;
  }

  .nav-wrap .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(9, 16, 27, 0.96);
    border-radius: 14px;
    box-shadow: 0 24px 52px rgba(0,0,0,0.3);
    z-index: 30;
  }

  .nav-wrap .nav-links.is-open {
    display: flex;
  }

  .nav-actions {
    margin-left: auto;
  }

  .mobile-toggle {
    display: inline-flex;
  }
}

@media (max-width: 720px) {
  .hero-grid, .split-layout, .grid-3, .grid-4, .stats-grid, .grid-2, .form-grid {
    grid-template-columns: 1fr;
  }

  .nav-wrap {
    min-height: 72px;
    align-items: center;
  }

  .nav-actions {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
  }

  .nav-actions .btn {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
  }

  .top-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .content-area {
    padding: 18px 14px 32px;
  }

  .hero {
    padding-top: 40px;
  }

  .hero-actions, .page-actions {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn,
  .page-actions .btn {
    width: 100%;
  }

  .section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-copy small {
    display: none;
  }

  .metrics {
    display: grid;
    grid-template-columns: 1fr;
  }

  .metric {
    width: 100%;
  }
}
