:root {
  --bg: #0c0d0f;
  --bg-elevated: #121418;
  --bg-panel: rgba(19, 22, 27, 0.86);
  --bg-soft: rgba(255,255,255,0.04);
  --text: #f4efe7;
  --text-strong: #fff8ef;
  --muted: #9f978e;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(217, 109, 68, 0.22);
  --accent: #d96d44;
  --accent-2: #f0b274;
  --good: #36b37e;
  --warn: #f0b274;
  --danger: #ff6b57;
  --info: #61b3ff;
  --shadow: 0 22px 60px rgba(0,0,0,0.35);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(217, 109, 68, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(240, 178, 116, 0.08), transparent 24%),
    linear-gradient(180deg, #0b0c0f 0%, #111419 100%);
}

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

.app-shell {
  display: grid;
  grid-template-columns: 284px 1fr;
  min-height: 100vh;
}

.sidebar {
  position: relative;
  padding: 28px 22px 22px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)),
    rgba(9, 11, 14, 0.88);
  backdrop-filter: blur(12px);
}

.brand-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--accent-2);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.logo {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text-strong);
  margin: 0 0 10px;
}
.logo span { color: var(--accent); }

.sidebar-copy {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 28px;
}

.nav-section-title {
  color: #7f776d;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 16px 0 10px;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: #d6d0c8;
  text-decoration: none;
  transition: 0.18s ease;
}

.nav-link:hover {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.06);
  color: var(--text-strong);
  transform: translateX(2px);
}

.nav-link.active {
  color: var(--text-strong);
  border-color: var(--line-strong);
  background: linear-gradient(180deg, rgba(217,109,68,0.16), rgba(217,109,68,0.06));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.nav-link small {
  color: #7f776d;
  font-size: 11px;
}

.sidebar-footer {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.signout {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
}
.signout:hover { color: var(--accent-2); }

.main {
  padding: 34px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.page-kicker {
  color: var(--accent-2);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.page-title {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: var(--text-strong);
}

.page-subtitle {
  margin-top: 10px;
  max-width: 760px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.topbar-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  color: #d7d0c8;
  font-size: 13px;
}

.pill strong { color: var(--text-strong); font-weight: 600; }
.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(217,109,68,0.18);
}

.grid {
  display: grid;
  gap: 18px;
}
.grid.two { grid-template-columns: 1.2fr 0.8fr; }
.grid.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card, .panel {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.card { padding: 22px; overflow: hidden; }
.panel { padding: 24px; }

.card:before, .panel:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent 20%);
  pointer-events: none;
}

.stat-card {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stat-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.stat-value {
  margin-top: 8px;
  font-size: 44px;
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 800;
  color: var(--text-strong);
}
.stat-value.good { color: #8df0bb; }
.stat-value.warn { color: #ffd39a; }
.stat-value.info { color: #9cd0ff; }
.stat-value.danger { color: #ff9b8c; }

.stat-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.05);
  color: var(--accent-2);
  font-weight: 800;
}

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

.section-title {
  margin: 0;
  font-size: 20px;
  color: var(--text-strong);
}
.section-copy {
  color: var(--muted);
  font-size: 14px;
}

.table-wrap {
  overflow: auto;
}

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

th {
  text-align: left;
  padding: 0 0 12px;
  font-size: 11px;
  color: #7f776d;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  border-bottom: 1px solid var(--line);
}

td {
  padding: 14px 0;
  font-size: 14px;
  color: #ddd5cb;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  vertical-align: top;
}

tbody tr:last-child td { border-bottom: none; }

.row-title { color: var(--text-strong); font-weight: 600; }
.row-sub { color: var(--muted); font-size: 12px; margin-top: 4px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  font-weight: 700;
  text-transform: capitalize;
}
.badge:before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.9;
}
.badge-urgent, .badge-cancelled, .badge-danger { color: var(--danger); background: rgba(255,107,87,0.08); }
.badge-high, .badge-pending, .badge-warn { color: var(--warn); background: rgba(240,178,116,0.08); }
.badge-normal, .badge-confirmed, .badge-responded, .badge-good { color: var(--good); background: rgba(54,179,126,0.08); }
.badge-received, .badge-info, .badge-ready { color: var(--info); background: rgba(97,179,255,0.08); }

.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  border: 1px solid transparent;
  background: rgba(255,255,255,0.06);
  color: var(--text-strong);
  padding: 11px 15px;
  border-radius: 14px;
  cursor: pointer;
  transition: 0.18s ease;
  font-size: 13px;
  font-weight: 700;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(180deg, #e07d56, #c75a36); box-shadow: 0 16px 28px rgba(199,90,54,0.28); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-secondary { border-color: rgba(255,255,255,0.08); }
.btn-secondary:hover { background: rgba(255,255,255,0.10); }
.btn-good { background: linear-gradient(180deg, #3bc58b, #249c68); }
.btn-danger { background: linear-gradient(180deg, #ff7b68, #dd5543); }
.btn-small { padding: 9px 12px; font-size: 12px; border-radius: 12px; }

.metric-stack { display: grid; gap: 14px; }
.metric-item {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
}
.metric-item strong { color: var(--text-strong); }
.metric-item span { color: var(--muted); font-size: 13px; }

.review-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: 22px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}
.review-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}
.review-stars { color: var(--accent-2); letter-spacing: 0.08em; }
.review-copy { color: #ddd5cb; line-height: 1.65; }
.response-box {
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(217,109,68,0.10), rgba(217,109,68,0.03));
  border: 1px solid rgba(217,109,68,0.18);
}
.response-label {
  color: var(--accent-2);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.filters, .form-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}
.filters .field, .form-row .field { grid-column: span 4; }
.filters .field.wide, .form-row .field.wide { grid-column: span 6; }
.filters .field.full, .form-row .field.full { grid-column: 1 / -1; }

label {
  display: block;
  color: #cabfb1;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.input, input, textarea, select {
  width: 100%;
  padding: 13px 14px;
  background: rgba(255,255,255,0.04);
  color: var(--text-strong);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 14px;
  outline: none;
}
input::placeholder, textarea::placeholder { color: #7f776d; }
input:focus, textarea:focus, select:focus {
  border-color: rgba(217,109,68,0.4);
  box-shadow: 0 0 0 4px rgba(217,109,68,0.12);
}
textarea { min-height: 104px; resize: vertical; }

.empty-state {
  padding: 36px;
  border-radius: 22px;
  border: 1px dashed rgba(255,255,255,0.10);
  text-align: center;
  color: var(--muted);
  background: rgba(255,255,255,0.02);
}

.helper {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.success-note {
  color: #98f0c1;
  font-size: 13px;
  display: none;
}

.menu-grid {
  display: grid;
  gap: 12px;
}
.menu-group {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
}
.menu-group h3 {
  margin: 0 0 12px;
  text-transform: capitalize;
  font-size: 18px;
  color: var(--text-strong);
}
.menu-item {
  display: grid;
  grid-template-columns: 2fr 120px 1.2fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
.menu-item:last-child { margin-bottom: 0; }

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}
.auth-card {
  width: min(520px, 100%);
  padding: 34px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(14,17,21,0.86);
  box-shadow: var(--shadow);
}
.auth-title {
  margin: 0 0 10px;
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 44px;
  line-height: 0.95;
  letter-spacing: -0.05em;
}
.auth-copy {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 28px;
}
.error-text { color: #ff9b8c; font-size: 13px; display: none; margin-bottom: 14px; }

@media (max-width: 1180px) {
  .grid.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.two { grid-template-columns: 1fr; }
}

@media (max-width: 920px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar-footer { position: static; margin-top: 20px; }
  .main { padding: 22px; }
  .topbar { flex-direction: column; }
}

@media (max-width: 720px) {
  .grid.stats { grid-template-columns: 1fr; }
  .filters, .form-row { grid-template-columns: 1fr; }
  .filters .field, .form-row .field, .filters .field.wide, .form-row .field.wide, .filters .field.full, .form-row .field.full { grid-column: auto; }
  .menu-item { grid-template-columns: 1fr; }
  .page-title { font-size: 34px; }
}

/* Las Palmas demo skin */
:root {
  --bg: #120f0b;
  --bg-elevated: #1b1711;
  --bg-panel: rgba(27, 23, 17, 0.9);
  --text: #fff7ea;
  --text-strong: #fffaf2;
  --muted: #c8b8a2;
  --line: rgba(255, 222, 173, 0.14);
  --line-strong: rgba(191, 42, 32, 0.34);
  --accent: #bf2a20;
  --accent-2: #f2b75b;
  --warn: #f2b75b;
  --shadow: 0 24px 70px rgba(0,0,0,0.42);
}
body {
  background:
    linear-gradient(180deg, rgba(18, 15, 11, 0.88), rgba(18, 15, 11, 0.96)),
    url('/dashboard/assets/las-palmas-pattern.png') center/cover fixed,
    #120f0b;
}
.sidebar, .auth-card, .panel, .card {
  background: linear-gradient(180deg, rgba(38, 29, 19, 0.92), rgba(18, 15, 11, 0.9));
  border-color: rgba(242, 183, 91, 0.16);
}
.sidebar::before, .auth-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at top left, rgba(191,42,32,0.22), transparent 36%), radial-gradient(circle at bottom right, rgba(242,183,91,0.12), transparent 36%);
}
.logo-image { margin-bottom: 14px; }
.logo-image img { max-width: 190px; width: 100%; height: auto; display: block; filter: drop-shadow(0 8px 24px rgba(0,0,0,0.45)); }
.auth-logo { width: min(280px, 86%); height: auto; display: block; margin: 0 auto 18px; filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5)); }
.auth-title { color: var(--text-strong); }
.brand-kicker { color: var(--accent-2); border-color: rgba(242,183,91,0.28); background: rgba(191,42,32,0.12); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #160f09; }
.nav-link.active, .nav-link:hover { border-color: rgba(242,183,91,0.22); background: rgba(191,42,32,0.14); }
.page-kicker, .section-copy, .sidebar-copy { color: var(--muted); }

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.brand-kicker,
.page-kicker {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent, #f2b75b);
}

/* Owner demo workflow board — warm ops command-board, intentionally not generic SaaS */
.demo-board-page {
  background:
    radial-gradient(circle at 14% 8%, rgba(217, 109, 68, 0.22), transparent 30%),
    radial-gradient(circle at 86% 4%, rgba(240, 178, 116, 0.14), transparent 28%),
    linear-gradient(135deg, #08090b 0%, #11100e 48%, #17120e 100%);
}
.demo-board-shell { padding: 34px; min-height: 100vh; }
.demo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 22px;
}
.demo-title {
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: clamp(40px, 5vw, 78px);
  line-height: 0.92;
  letter-spacing: -0.06em;
  max-width: 1100px;
  margin: 8px 0 18px;
  color: var(--text-strong);
}
.demo-subtitle { max-width: 800px; color: #c7baaa; font-size: 18px; line-height: 1.6; margin: 0; }
.demo-proof-card {
  border: 1px solid rgba(240,178,116,0.22);
  border-radius: 28px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(217,109,68,0.16), rgba(255,255,255,0.035));
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
}
.proof-label { color: var(--accent-2); font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; font-weight: 800; }
.demo-proof-card strong { font-family: "Iowan Old Style", Georgia, serif; font-size: 32px; line-height: 1; color: var(--text-strong); letter-spacing: -0.04em; }
.demo-proof-card small { color: var(--muted); font-weight: 700; letter-spacing: 0.04em; }
.demo-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.demo-stats article {
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.075);
}
.demo-stats span { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 800; }
.demo-stats strong { display: block; color: var(--text-strong); font-size: 38px; margin-top: 6px; letter-spacing: -0.05em; }
.workflow-board { display: grid; grid-template-columns: repeat(4, minmax(260px, 1fr)); gap: 16px; align-items: start; }
.workflow-column {
  min-height: 560px;
  border: 1px solid rgba(255,255,255,0.075);
  border-radius: 26px;
  background: rgba(10, 12, 15, 0.68);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  padding: 16px;
}
.workflow-column-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 4px 4px 14px; }
.workflow-column-head h2 { margin: 0 0 6px; color: var(--text-strong); font-size: 20px; }
.workflow-column-head p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.workflow-column-head strong {
  min-width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center;
  color: var(--accent-2); background: rgba(217,109,68,0.12); border: 1px solid rgba(217,109,68,0.18);
}
.workflow-card-stack { display: grid; gap: 12px; }
.workflow-card {
  border-radius: 22px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025));
  box-shadow: 0 18px 42px rgba(0,0,0,0.18);
}
.workflow-card.priority-high, .workflow-card.priority-urgent { border-color: rgba(255,107,87,0.24); }
.workflow-card-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.workflow-type { color: var(--accent-2); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 900; }
.workflow-card h3 { margin: 14px 0 8px; color: var(--text-strong); font-size: 18px; line-height: 1.15; }
.workflow-card p { margin: 0 0 14px; color: #cfc5b9; font-size: 13px; line-height: 1.55; }
.workflow-meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.workflow-meta-grid div, .next-step {
  padding: 11px 12px; border-radius: 15px; background: rgba(0,0,0,0.20); border: 1px solid rgba(255,255,255,0.055);
}
.workflow-meta-grid span, .next-step span { display: block; color: #877d72; font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 800; margin-bottom: 5px; }
.workflow-meta-grid strong { color: var(--text-strong); font-size: 12px; }
.next-step { color: #eadfce; font-size: 13px; line-height: 1.45; }
.empty-state.compact { padding: 20px; font-size: 13px; }
.demo-footer { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 13px; padding: 18px 4px 0; }
@media (max-width: 1240px) { .workflow-board { grid-template-columns: repeat(2, minmax(260px, 1fr)); } .demo-hero { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .demo-board-shell { padding: 18px; } .workflow-board, .demo-stats { grid-template-columns: 1fr; } .demo-footer { flex-direction: column; } }

