:root {
  --bg: #06111b;
  --bg-soft: #0c1a27;
  --panel: rgba(10, 20, 33, 0.82);
  --panel-strong: rgba(7, 14, 24, 0.94);
  --panel-soft: rgba(19, 33, 49, 0.88);
  --line: rgba(179, 223, 214, 0.12);
  --line-strong: rgba(179, 223, 214, 0.24);
  --text: #edf4ef;
  --muted: #9fb2bb;
  --mint: #4ed492;
  --mint-soft: rgba(78, 212, 146, 0.18);
  --blue: #58b5ff;
  --blue-soft: rgba(88, 181, 255, 0.18);
  --amber: #f4b05d;
  --amber-soft: rgba(244, 176, 93, 0.18);
  --rose: #ff6b7c;
  --rose-soft: rgba(255, 107, 124, 0.18);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --font-ui: "Avenir Next", "Helvetica Neue", sans-serif;
  --font-display: "DIN Condensed", "Avenir Next Condensed", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 15% 20%, rgba(33, 90, 72, 0.35), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(24, 83, 117, 0.28), transparent 26%),
    linear-gradient(180deg, #091420 0%, #06111b 48%, #08131f 100%);
  color: var(--text);
  font-family: var(--font-ui);
}

body {
  overflow-x: hidden;
}

.page-shell {
  position: relative;
  width: min(1480px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 40px 0 80px;
}

.ambient {
  position: fixed;
  inset: auto;
  width: 340px;
  height: 340px;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.36;
  pointer-events: none;
  z-index: 0;
}

.ambient-left {
  top: 80px;
  left: -120px;
  background: rgba(78, 212, 146, 0.28);
}

.ambient-right {
  top: 200px;
  right: -100px;
  background: rgba(88, 181, 255, 0.2);
}

.hero,
.content {
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 28px;
}

.hero-copy,
.hero-aside,
.panel-block {
  background: linear-gradient(180deg, rgba(11, 24, 36, 0.88), rgba(7, 15, 24, 0.92));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
}

.hero-copy {
  padding: 42px;
}

.eyebrow,
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9dd2bf;
}

.hero h1,
.section-head h2,
.topbar-title h3,
.stack-head h4 {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(3rem, 5vw, 5.1rem);
  line-height: 0.95;
}

.hero h1 span {
  display: block;
  color: #9ef0bc;
}

.hero p,
.section-head p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.meta-card,
.brand-totem,
.stack-card,
.mobile-card,
.mobile-map-card,
.admin-panel {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.meta-card {
  padding: 18px 20px;
  border-radius: var(--radius-md);
}

.meta-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.meta-card strong {
  font-size: 1rem;
}

.hero-aside {
  padding: 28px;
  display: flex;
  align-items: stretch;
}

.brand-totem {
  width: 100%;
  border-radius: calc(var(--radius-xl) - 8px);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at top left, rgba(78, 212, 146, 0.22), transparent 30%),
    linear-gradient(180deg, rgba(16, 34, 31, 0.88), rgba(8, 16, 23, 0.9));
}

.brand-mark {
  width: 84px;
  height: 84px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(78, 212, 146, 0.3), rgba(88, 181, 255, 0.16));
  color: white;
  font-family: var(--font-display);
  font-size: 2rem;
}

.totem-lines {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}

.totem-lines span {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, rgba(78, 212, 146, 0.58), transparent 78%);
}

.panel-block {
  padding: 28px;
  margin-bottom: 24px;
}

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

.section-head.compact {
  align-items: center;
}

.section-head.left {
  align-items: start;
}

.section-head h2 {
  margin: 10px 0 0;
  font-size: clamp(2rem, 3.1vw, 3.1rem);
}

.desktop-frame {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(7, 14, 24, 0.94), rgba(9, 18, 29, 0.98));
}

.sidebar {
  padding: 24px 18px;
  background: linear-gradient(180deg, rgba(11, 23, 38, 0.88), rgba(8, 15, 24, 0.96));
  border-right: 1px solid var(--line);
}

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

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(78, 212, 146, 0.5), rgba(88, 181, 255, 0.22));
}

.sidebar-brand span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}

.sidebar-nav {
  display: grid;
  gap: 10px;
}

.sidebar-nav a {
  color: #b6c4ca;
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 14px;
  transition: 180ms ease;
}

.sidebar-nav a.active,
.sidebar-nav a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.06);
}

.sidebar-card {
  margin-top: 26px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.sidebar-card span,
.sidebar-card small {
  display: block;
  color: var(--muted);
}

.sidebar-card strong {
  display: block;
  margin: 10px 0 4px;
}

.desktop-main {
  padding: 22px;
}

.topbar,
.metric-row,
.work-grid,
.filter-row,
.pool-columns,
.phone-grid,
.admin-grid,
.finance-cards,
.hero-meta,
.action-grid {
  display: grid;
  gap: 16px;
}

.topbar {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  margin-bottom: 18px;
}

.topbar-title h3 {
  margin: 0;
  font-size: 2rem;
}

.topbar-title span {
  color: var(--muted);
}

.topbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

button,
.action-btn,
.status-tab,
.chip,
.filter,
.mobile-nav span {
  border: none;
  border-radius: 999px;
  font-family: inherit;
}

.topbar-actions button,
.action-btn {
  padding: 12px 16px;
  color: white;
  background: rgba(255, 255, 255, 0.06);
}

.topbar-actions .primary,
.action-btn.primary {
  background: linear-gradient(135deg, #2bc47d, #3bb7a9);
  color: #08131d;
  font-weight: 700;
}

.metric-row {
  grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.metric-card {
  min-height: 130px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.metric-card span,
.finance-card span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}

.metric-card strong,
.finance-card strong {
  display: block;
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 2rem;
}

.metric-card small {
  display: block;
  margin-top: 10px;
  color: #96a7af;
}

.metric-card.large {
  display: flex;
  justify-content: space-between;
  align-items: end;
}

.metric-card.warning strong {
  color: #ffd7a3;
}

.metric-graph {
  width: 38%;
  min-width: 120px;
  height: 90px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    linear-gradient(90deg, transparent 0 10%, rgba(255, 255, 255, 0.05) 10% 11%, transparent 11% 25%, rgba(255, 255, 255, 0.05) 25% 26%, transparent 26% 55%, rgba(255, 255, 255, 0.05) 55% 56%, transparent 56% 100%);
  position: relative;
  overflow: hidden;
}

.metric-graph::after {
  content: "";
  position: absolute;
  inset: auto 8px 18px 8px;
  height: 48px;
  border-radius: 999px;
  border: 2px solid transparent;
  border-top-color: rgba(78, 212, 146, 0.6);
  border-right-color: rgba(78, 212, 146, 0.6);
  transform: skewX(-18deg);
}

.metric-graph-green::before {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 20px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--mint);
  box-shadow: 0 0 0 8px rgba(78, 212, 146, 0.14);
}

.work-grid {
  grid-template-columns: 1.4fr 1fr;
  grid-template-areas:
    "reservations live"
    "reservations pool";
}

.reservations-card {
  grid-area: reservations;
}

.live-card {
  grid-area: live;
}

.pool-card {
  grid-area: pool;
}

.stack-card,
.admin-panel {
  border-radius: 22px;
  padding: 18px;
}

.stack-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.stack-head h4 {
  margin: 0;
  font-size: 1.45rem;
}

.chips,
.filter-row,
.status-tabs,
.job-stack,
.mini-steps {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip,
.filter,
.status-tab,
.pill,
.job-chip,
.step,
.mobile-nav span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  font-size: 0.84rem;
  color: #c5d4d8;
  background: rgba(255, 255, 255, 0.05);
}

.chip.active,
.status-tab.active {
  color: #08131d;
  background: linear-gradient(135deg, #87f0c1, #57d3ff);
  font-weight: 700;
}

.reservation-table,
.queue-list,
.approval-list {
  display: grid;
}

.table-head,
.table-row {
  display: grid;
  grid-template-columns: 1.2fr 0.5fr 0.8fr 0.55fr;
  gap: 14px;
  align-items: center;
}

.table-head {
  padding: 0 12px 10px;
  color: #90a4af;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.table-row {
  padding: 15px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.table-row.active {
  background: rgba(88, 181, 255, 0.08);
  border-radius: 16px;
}

.table-row small,
.queue-item small,
.approval-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.pill {
  border-radius: 999px;
  font-weight: 700;
}

.pill.mint {
  color: #dffff2;
  background: var(--mint-soft);
}

.pill.blue {
  color: #e3f5ff;
  background: var(--blue-soft);
}

.pill.amber {
  color: #fff0dc;
  background: var(--amber-soft);
}

.pill.rose {
  color: #ffe4e7;
  background: var(--rose-soft);
}

.pill.ghost {
  color: #d7e0e3;
}

.live-indicator,
.pool-status {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(78, 212, 146, 0.12);
  color: #baf5d5;
  font-size: 0.82rem;
}

.map-stage {
  position: relative;
  min-height: 220px;
  border-radius: 22px;
  background:
    linear-gradient(0deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.02)),
    linear-gradient(90deg, transparent 0 12%, rgba(255, 255, 255, 0.05) 12% 13%, transparent 13% 32%, rgba(255, 255, 255, 0.05) 32% 33%, transparent 33% 49%, rgba(255, 255, 255, 0.05) 49% 50%, transparent 50% 100%),
    linear-gradient(180deg, transparent 0 18%, rgba(255, 255, 255, 0.05) 18% 19%, transparent 19% 56%, rgba(255, 255, 255, 0.05) 56% 57%, transparent 57% 100%);
  overflow: hidden;
}

.map-route {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, rgba(78, 212, 146, 0.2), rgba(78, 212, 146, 0.95));
  transform-origin: left center;
}

.route-one {
  width: 190px;
  left: 36px;
  top: 64px;
  transform: rotate(14deg);
}

.route-two {
  width: 160px;
  right: 48px;
  bottom: 56px;
  transform: rotate(-18deg);
}

.map-point,
.micro-point {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--mint);
  box-shadow: 0 0 0 8px rgba(78, 212, 146, 0.14);
}

.point-a {
  top: 52px;
  left: 28px;
}

.point-b {
  top: 92px;
  left: 224px;
}

.point-c {
  right: 54px;
  bottom: 48px;
}

.point-d {
  right: 180px;
  bottom: 112px;
  background: var(--amber);
  box-shadow: 0 0 0 8px rgba(244, 176, 93, 0.14);
}

.map-label {
  position: absolute;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  color: white;
  background: rgba(5, 12, 20, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.label-a {
  top: 22px;
  left: 18px;
}

.label-b {
  top: 112px;
  left: 176px;
}

.label-c {
  right: 22px;
  bottom: 18px;
}

.dispatch-rail,
.approval-actions {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.rail-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.rail-step {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #09131d;
  font-weight: 800;
  background: linear-gradient(135deg, #a0efc4, #63bfff);
}

.rail-item small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

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

.phone-grid {
  grid-template-columns: repeat(2, minmax(280px, 360px));
  justify-content: center;
}

.pool-column {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.column-head {
  display: block;
  margin-bottom: 12px;
  color: #b7c9cf;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.task-card {
  padding: 14px;
  border-radius: 16px;
  margin-bottom: 10px;
}

.task-card.green {
  background: rgba(78, 212, 146, 0.12);
}

.task-card.blue {
  background: rgba(88, 181, 255, 0.12);
}

.task-card.amber {
  background: rgba(244, 176, 93, 0.12);
}

.task-card small,
.accent-copy small,
.focus-top + p,
.list-head small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.dual-section {
  background:
    radial-gradient(circle at top right, rgba(88, 181, 255, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(11, 24, 36, 0.88), rgba(7, 15, 24, 0.92));
}

.phone-frame,
.captain-phone {
  width: 100%;
  border-radius: 34px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(20, 31, 45, 0.95), rgba(9, 16, 26, 0.98));
  padding: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.32);
}

.phone-header {
  border-radius: 22px;
  padding: 18px 18px 16px;
  margin-bottom: 14px;
}

.phone-header span,
.phone-header small {
  display: block;
}

.phone-header span,
.phone-header small {
  color: rgba(255, 255, 255, 0.74);
}

.phone-header strong {
  display: block;
  margin: 6px 0 4px;
  font-size: 1.35rem;
}

.phone-header.emerald {
  background: linear-gradient(135deg, rgba(38, 112, 67, 0.96), rgba(22, 61, 48, 0.96));
}

.phone-header.midnight {
  background: linear-gradient(135deg, rgba(22, 36, 62, 0.96), rgba(15, 22, 35, 0.96));
}

.phone-header.silver {
  background: linear-gradient(135deg, rgba(74, 87, 101, 0.95), rgba(27, 34, 43, 0.95));
}

.phone-body {
  display: grid;
  gap: 12px;
}

.mobile-card,
.mobile-map-card {
  border-radius: 22px;
  padding: 16px;
}

.mobile-card.light {
  background: linear-gradient(180deg, rgba(234, 242, 245, 0.92), rgba(216, 227, 232, 0.9));
  color: #14212b;
}

.mobile-card.light .detail-list dt,
.mobile-card.light .detail-list dd,
.mobile-card.light .mobile-meta span,
.mobile-card.light .list-head small {
  color: rgba(20, 33, 43, 0.75);
}

.mobile-card.dark,
.mobile-map-card,
.admin-panel {
  background: rgba(255, 255, 255, 0.04);
}

.detail-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
}

.detail-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.94rem;
}

.detail-list dt {
  color: var(--muted);
}

.detail-list dd {
  margin: 0;
  font-weight: 600;
}

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

.action-btn {
  border-radius: 18px;
  min-height: 72px;
  font-weight: 700;
}

.action-btn.ghost {
  background: rgba(255, 255, 255, 0.04);
}

.micro-map {
  position: relative;
  min-height: 120px;
  border-radius: 18px;
  background:
    linear-gradient(90deg, transparent 0 20%, rgba(255, 255, 255, 0.08) 20% 21%, transparent 21% 48%, rgba(255, 255, 255, 0.08) 48% 49%, transparent 49% 100%),
    linear-gradient(180deg, transparent 0 30%, rgba(255, 255, 255, 0.08) 30% 31%, transparent 31% 62%, rgba(255, 255, 255, 0.08) 62% 63%, transparent 63% 100%);
}

.micro-line {
  position: absolute;
  left: 34px;
  right: 38px;
  top: 62px;
  height: 2px;
  background: linear-gradient(90deg, rgba(78, 212, 146, 0.35), rgba(88, 181, 255, 0.9));
  transform: rotate(-8deg);
}

.micro-point.one {
  left: 28px;
  top: 70px;
}

.micro-point.two {
  right: 34px;
  top: 42px;
  background: var(--blue);
  box-shadow: 0 0 0 8px rgba(88, 181, 255, 0.12);
}

.nearby-sheet {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}

.queue-item,
.approval-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.queue-item:first-child,
.approval-row:first-child {
  border-top: none;
}

.accent-card {
  background: linear-gradient(135deg, rgba(78, 212, 146, 0.14), rgba(88, 181, 255, 0.08));
}

.mobile-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.mobile-nav span {
  border-radius: 14px;
  padding: 10px 8px;
}

.mobile-nav span.active {
  background: rgba(78, 212, 146, 0.14);
  color: #d3ffea;
}

.captain-layout {
  display: grid;
  grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
  gap: 22px;
}

.captain-body {
  gap: 14px;
}

.task-focus {
  background: linear-gradient(180deg, rgba(13, 28, 39, 0.92), rgba(8, 16, 26, 0.96));
}

.focus-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.mini-steps .step {
  border-radius: 999px;
}

.mini-steps .step.active {
  background: rgba(78, 212, 146, 0.16);
  color: #d7ffee;
}

.job-chip {
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
}

.fake-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.fake-form span {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(20, 33, 43, 0.08);
}

.fake-form .submit-line {
  background: linear-gradient(135deg, rgba(78, 212, 146, 0.18), rgba(88, 181, 255, 0.1));
  color: #102029;
  font-weight: 700;
}

.admin-panel {
  padding: 0;
  border-radius: 28px;
}

.admin-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 22px 22px;
}

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

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

.finance-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.finance-card.good strong {
  color: #8ef0bb;
}

.fade-in {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 700ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

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

@media (max-width: 1180px) {
  .hero,
  .captain-layout,
  .desktop-frame,
  .section-head {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: start;
  }

  .metric-row,
  .work-grid,
  .pool-columns,
  .admin-grid,
  .finance-cards {
    grid-template-columns: 1fr;
    grid-template-areas: none;
  }

  .phone-grid {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }

  .desktop-frame {
    overflow: visible;
  }
}

@media (max-width: 820px) {
  .page-shell {
    width: min(100vw - 18px, 100%);
    padding-top: 18px;
  }

  .hero-copy,
  .panel-block {
    padding: 20px;
  }

  .hero-meta,
  .phone-grid,
  .action-grid,
  .mobile-nav,
  .admin-grid,
  .finance-cards {
    grid-template-columns: 1fr;
  }

  .topbar,
  .table-head,
  .table-row {
    grid-template-columns: 1fr;
  }

  .topbar-actions {
    justify-content: stretch;
  }

  .topbar-actions button {
    width: 100%;
  }

  .table-head {
    display: none;
  }

  .table-row {
    padding: 14px 0;
  }
}
