/* Eurotainment POS — self-contained production CSS (no CDN) */
:root {
  --canvas: #070a12;
  --panel: #0d1220;
  --panel2: #121a2b;
  --line: #1e2a3f;
  --muted: #8b9bb8;
  --text: #e8eefc;
  --accent: #5b8cff;
  --accent-soft: #7aa2ff;
  --accent-deep: #3d6ef5;
  --good: #3dd68c;
  --warn: #f5b942;
  --bad: #ff6b8a;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: #24324a transparent;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: var(--font);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(91, 140, 255, 0.18), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(61, 214, 140, 0.08), transparent 50%),
    radial-gradient(800px 400px at 50% 100%, rgba(245, 185, 66, 0.06), transparent 45%),
    var(--canvas);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  min-height: 100%;
}

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(30, 42, 63, 0.8);
  background: rgba(7, 10, 18, 0.75);
  backdrop-filter: blur(14px);
}

.header-inner,
.main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 0 0 1px rgba(91, 140, 255, 0.18), 0 18px 50px rgba(0, 0, 0, 0.45);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
}

.logo-dot {
  position: absolute;
  right: -2px;
  top: -2px;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: var(--good);
  box-shadow: 0 0 0 2px var(--canvas);
}

.brand-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge {
  display: none;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  color: var(--muted);
}

@media (min-width: 640px) {
  .badge { display: flex; }
  .header-inner, .main { padding-left: 1.5rem; padding-right: 1.5rem; }
}

.badge .dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--muted);
}

.badge .dot.good {
  background: var(--good);
  animation: pulse 1.6s ease-in-out infinite;
}

.badge .dot.bad { background: var(--bad); }
.badge.online { color: var(--good); }
.badge.offline { color: var(--bad); }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.version {
  display: none;
  font-size: 0.75rem;
  color: var(--muted);
}

@media (min-width: 768px) {
  .version { display: block; }
}

.main {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.surface {
  background: linear-gradient(180deg, rgba(18, 26, 43, 0.92), rgba(13, 18, 32, 0.96));
  border: 1px solid rgba(30, 42, 63, 0.95);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 12px 40px rgba(0, 0, 0, 0.35);
  border-radius: 1.5rem;
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
}

@media (min-width: 640px) {
  .surface { padding: 1.5rem; }
}

.hero-glow-a,
.hero-glow-b {
  pointer-events: none;
  position: absolute;
  border-radius: 999px;
  filter: blur(48px);
}

.hero-glow-a {
  right: -2.5rem;
  top: -4rem;
  width: 12rem;
  height: 12rem;
  background: rgba(91, 140, 255, 0.2);
}

.hero-glow-b {
  bottom: 0;
  left: 33%;
  width: 8rem;
  height: 8rem;
  background: rgba(61, 214, 140, 0.1);
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-inner {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(13, 18, 32, 0.8);
  padding: 0.25rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.live-pill .dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--good);
}

h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  h2 { font-size: 1.9rem; }
}

.muted {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0.35rem 0 0;
  max-width: 36rem;
  line-height: 1.45;
}

.hero-actions,
.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .kpi-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
  .kpi-row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.kpi {
  border-radius: 1rem;
  padding: 1rem;
  transition: border-color 0.15s;
}

.kpi:hover {
  border-color: rgba(91, 140, 255, 0.3);
}

.kpi-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.kpi-value {
  margin-top: 0.25rem;
  font-family: var(--display);
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.kpi-value.good { color: var(--good); }
.kpi-value.warn { color: var(--warn); }
.kpi-value.accent { color: var(--accent-soft); }
.kpi-value.muted { color: var(--muted); }
.kpi-value.bad { color: var(--bad); }

.layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 1280px) {
  .layout {
    grid-template-columns: 1fr 2fr;
  }
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.card-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.step {
  width: 2rem;
  height: 2rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.step.accent { background: rgba(91, 140, 255, 0.15); color: var(--accent); }
.step.good { background: rgba(61, 214, 140, 0.15); color: var(--good); }
.step.warn { background: rgba(245, 185, 66, 0.15); color: var(--warn); }

.card-head h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
}

.card-head p {
  margin: 0.1rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
}

.label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0a0f1a;
  color: var(--text);
  padding: 0.65rem 0.85rem;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
}

textarea.input {
  resize: vertical;
  font-family: var(--mono);
  font-size: 0.7rem;
  line-height: 1.5;
}

.input:focus {
  border-color: rgba(91, 140, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(91, 140, 255, 0.15);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 12px;
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s, border-color 0.15s, opacity 0.15s, filter 0.15s;
  font-family: inherit;
  color: var(--text);
}

.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(180deg, #6b97ff, #3d6ef5);
  color: white;
  box-shadow: 0 8px 24px rgba(61, 110, 245, 0.28);
}

.btn-primary:hover { filter: brightness(1.06); }

.btn-soft {
  background: var(--panel2);
  border: 1px solid var(--line);
  color: var(--text);
}

.btn-soft:hover {
  border-color: #334666;
  background: #162035;
}

.btn-good {
  background: rgba(61, 214, 140, 0.14);
  color: var(--good);
  border: 1px solid rgba(61, 214, 140, 0.25);
}

.btn-good:hover { background: rgba(61, 214, 140, 0.22); }

.btn-warn {
  background: rgba(245, 185, 66, 0.12);
  color: var(--warn);
  border: 1px solid rgba(245, 185, 66, 0.22);
}

.btn-bad {
  background: rgba(255, 107, 138, 0.1);
  color: var(--bad);
  border: 1px solid rgba(255, 107, 138, 0.2);
}

.btn-sm {
  padding: 0.45rem 0.75rem;
  font-size: 0.75rem;
}

.btn-block { width: 100%; }

.inventory-head {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .inventory-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.inventory-head h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
}

.table-wrap {
  max-height: 28rem;
  overflow: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.table-wrap.short { max-height: 16rem; }

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

th {
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  background: rgba(10, 15, 26, 0.95);
  padding: 0.75rem 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

td {
  padding: 0.85rem 1rem;
  border-top: 1px solid rgba(30, 42, 63, 0.7);
  vertical-align: top;
}

tbody tr {
  cursor: pointer;
  transition: background 0.12s;
}

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

.row-selected {
  background: rgba(91, 140, 255, 0.08) !important;
  box-shadow: inset 3px 0 0 var(--accent);
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 3rem 1rem !important;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.pill.available { background: rgba(61, 214, 140, 0.15); color: var(--good); }
.pill.held { background: rgba(245, 185, 66, 0.15); color: var(--warn); }
.pill.listed { background: rgba(91, 140, 255, 0.15); color: var(--accent-soft); }
.pill.sold { background: rgba(255, 255, 255, 0.1); color: var(--muted); }
.pill.void { background: rgba(255, 107, 138, 0.15); color: var(--bad); }

.mono {
  font-family: var(--mono);
  font-size: 0.75rem;
}

.small { font-size: 0.75rem; }
.truncate {
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audit-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.audit-meta h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
}

#toast {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 50;
  max-width: 24rem;
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 0 0 1px rgba(91, 140, 255, 0.18), 0 18px 50px rgba(0, 0, 0, 0.45);
  transition: opacity 0.2s, transform 0.2s;
}

#toast.hidden { display: none; }
#toast.ok { background: var(--good); color: var(--canvas); }
#toast.err { background: var(--bad); color: white; }

.auth-bar {
  display: none;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(245, 185, 66, 0.25);
  background: rgba(245, 185, 66, 0.08);
}

.auth-bar.show { display: flex; }

.auth-bar input {
  flex: 1;
  min-width: 12rem;
}

.auth-bar .hint {
  width: 100%;
  font-size: 0.75rem;
  color: var(--warn);
  margin: 0;
}

.disabled-link {
  opacity: 0.7;
  pointer-events: none;
}

/* Review queue: the VA's main surface now that the AI does the mapping. */
.review-list { display: flex; flex-direction: column; gap: 0.75rem; }

.review-card {
  border: 1px solid var(--line, #2a3140);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  background: rgba(255, 255, 255, 0.02);
}

.review-head { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }

.review-options { display: flex; flex-direction: column; gap: 0.35rem; margin: 0.5rem 0; }

.review-option {
  display: grid;
  grid-template-columns: auto 3.2rem 1fr;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  cursor: pointer;
}

.review-option:hover { background: rgba(255, 255, 255, 0.04); }

.review-option .score {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  text-align: right;
}

.review-option .small { grid-column: 3; }
