:root {
  --bg: #08151f;
  --surface: #102433;
  --surface-soft: #153044;
  --text: #ecf3f7;
  --muted: #a3bac8;
  --primary: #00b3a4;
  --accent: #f7b955;
  --danger: #ff7272;
  --ok: #58d68d;
  --border: #2a4558;
  --font-body: "Sora", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Cascadia Code", monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 15% 15%, #17354a 0%, transparent 35%),
    radial-gradient(circle at 90% 10%, #24415c 0%, transparent 40%),
    linear-gradient(140deg, #07131c 0%, #0b1e2a 40%, #0f2534 100%);
  color: var(--text);
  position: relative;
  overflow-x: hidden;
}

.bg-shape {
  position: fixed;
  border-radius: 999px;
  filter: blur(30px);
  z-index: 0;
  opacity: 0.42;
  pointer-events: none;
  animation: float 11s ease-in-out infinite;
}

.shape-one {
  width: 240px;
  height: 240px;
  top: -70px;
  right: -40px;
  background: #26d0b8;
}

.shape-two {
  width: 280px;
  height: 280px;
  bottom: -90px;
  left: -100px;
  background: #ffb65c;
  animation-delay: 1.5s;
}

.dashboard {
  position: relative;
  z-index: 1;
  width: min(1200px, 92vw);
  margin: 2rem auto 2.5rem;
}

.hero {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(19, 43, 61, 0.95), rgba(12, 28, 40, 0.9));
  box-shadow: 0 20px 45px rgba(1, 8, 14, 0.45);
  animation: rise 600ms ease-out;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

h1 {
  margin: 0.6rem 0 0;
  font-size: clamp(1.7rem, 3vw, 2.8rem);
}

.subtitle {
  margin: 0.8rem 0 0;
  color: var(--muted);
  max-width: 70ch;
  line-height: 1.55;
}

.status-pills {
  margin-top: 1rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.pill {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.42rem 0.8rem;
  font-size: 0.82rem;
  color: #d0e4ef;
  background: rgba(7, 17, 24, 0.55);
  font-family: var(--font-mono);
}

.grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.card {
  grid-column: span 6;
  border: 1px solid var(--border);
  background: linear-gradient(170deg, rgba(18, 40, 57, 0.92), rgba(12, 29, 42, 0.95));
  border-radius: 16px;
  padding: 1rem 1.1rem 1.2rem;
  backdrop-filter: blur(5px);
  animation: rise 700ms ease-out;
}

.card.full {
  grid-column: 1 / -1;
}

.card h2 {
  margin: 0.1rem 0 0.55rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.actions {
  margin-top: 0.9rem;
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

label {
  display: block;
  margin-top: 0.9rem;
  margin-bottom: 0.35rem;
  font-size: 0.87rem;
  color: #cae2ef;
}

input,
select,
button {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0a1d2b;
  color: var(--text);
  padding: 0.72rem 0.78rem;
  font-size: 0.92rem;
  font-family: var(--font-body);
}

input:focus,
select:focus,
button:focus {
  outline: 2px solid rgba(0, 179, 164, 0.35);
  outline-offset: 1px;
}

button {
  width: auto;
  border: 1px solid #0dc2b1;
  background: linear-gradient(160deg, #0fbaab, #099384);
  color: #062225;
  font-weight: 700;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(2, 27, 31, 0.5);
}

button.ghost {
  border-color: #375668;
  background: #0f2433;
  color: #c9deeb;
}

.hint {
  margin-top: 0.55rem;
  font-size: 0.83rem;
  color: #91b0bf;
}

.metrics .metric-row {
  margin: 0.9rem 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.metric-label {
  margin: 0;
  font-size: 0.76rem;
  color: #9db7c6;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-value {
  margin: 0.15rem 0 0;
  font-size: 1.3rem;
  color: #f2f8fc;
  font-family: var(--font-mono);
}

.table-wrap {
  margin-top: 0.8rem;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

thead {
  background: rgba(16, 38, 53, 0.9);
}

th,
td {
  text-align: left;
  padding: 0.65rem;
  border-bottom: 1px solid #214256;
  vertical-align: top;
}

td code {
  font-family: var(--font-mono);
  color: #d5ecfa;
}

.status {
  display: inline-block;
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.status.new {
  background: rgba(247, 185, 85, 0.22);
  color: #ffd594;
}

.status.contacted {
  background: rgba(0, 179, 164, 0.22);
  color: #80f0e4;
}

.status.booked {
  background: rgba(88, 214, 141, 0.22);
  color: #99f1be;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 0.8rem;
  align-items: end;
}

.form-grid button {
  height: 44px;
}

pre {
  margin: 0.8rem 0 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #08131c;
  color: #bee5f9;
  padding: 0.95rem;
  min-height: 180px;
  max-height: 360px;
  overflow: auto;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.45;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(16px);
  }
}

@media (max-width: 900px) {
  .card {
    grid-column: 1 / -1;
  }

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