/* ── Nav ────────────────────────────────────────────────────────────────────── */
.otw-nav {
  position: sticky; top: 0; z-index: 100;
  height: 60px; display: flex; align-items: center;
  padding: 0 32px; gap: 24px;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.otw-nav-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* ── Sidebar (Dashboard) ────────────────────────────────────────────────────── */
.otw-sidebar {
  width: 240px; flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  height: 100vh; position: sticky; top: 0;
  overflow-y: auto;
  padding: 0 0 24px;
}
.otw-sidebar-logo {
  height: 64px; display: flex; align-items: center;
  padding: 0 20px; border-bottom: 1px solid var(--border);
}
.otw-sidebar-nav { padding: 12px 0; flex: 1; }
.otw-sidebar-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px; cursor: pointer;
  font-size: 13px; font-weight: 500; color: var(--text-dim);
  transition: all 100ms; border-radius: 0; text-decoration: none;
}
.otw-sidebar-item:hover { color: var(--text); background: var(--surface-2); }
.otw-sidebar-item.active {
  color: var(--text); background: var(--surface-3);
  border-left: 2px solid var(--red);
  padding-left: 18px;
}
.otw-sidebar-item svg { opacity: 0.6; }
.otw-sidebar-item.active svg { opacity: 1; color: var(--red); }
.otw-sidebar-user {
  padding: 16px 20px; border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.otw-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface-4); display: flex; align-items: center;
  justify-content: center; font-size: 12px; font-weight: 600; color: var(--text-dim);
  flex-shrink: 0;
}

/* ── Stat Strip ─────────────────────────────────────────────────────────────── */
.stat-strip {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; margin-bottom: 28px;
}
.stat-cell {
  padding: 20px 24px; border-right: 1px solid var(--border);
  background: var(--surface);
}
.stat-cell:last-child { border-right: none; }
.stat-cell.highlight { background: rgba(232,54,42,0.08); }
.stat-value { font-family: var(--font-display); font-size: 36px; line-height: 1; color: var(--text); }
.stat-label { font-size: 11.5px; color: var(--text-dim); margin-top: 4px; }

/* ── Table ──────────────────────────────────────────────────────────────────── */
.otw-table { width: 100%; border-collapse: collapse; }
.otw-table th {
  text-align: left; padding: 10px 16px;
  font-family: var(--font-mono); font-size: 10px;
  font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted); border-bottom: 1px solid var(--border);
}
.otw-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.show-row { transition: background 100ms; cursor: default; }
.show-row:hover { background: var(--surface-2); }
.show-row.live { background: rgba(232,54,42,0.04); }

/* ── Slide-Over ─────────────────────────────────────────────────────────────── */
.slide-over-scrim {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  z-index: 200; opacity: 0; pointer-events: none; transition: opacity 300ms;
}
.slide-over-scrim.open { opacity: 1; pointer-events: all; }
.slide-over {
  position: fixed; top: 0; right: 0; height: 100vh; width: 480px;
  background: var(--surface); border-left: 1px solid var(--border);
  z-index: 201; transform: translateX(100%);
  transition: transform 300ms cubic-bezier(.2,.7,.3,1);
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.slide-over.open { transform: translateX(0); }
.slide-over-header {
  padding: 24px 28px 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.slide-over-body { padding: 28px; flex: 1; }
.slide-over-footer {
  padding: 20px 28px; border-top: 1px solid var(--border);
  display: flex; gap: 10px; justify-content: flex-end;
}

/* ── Format Grid ─────────────────────────────────────────────────────────────── */
.format-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.format-btn {
  padding: 10px 8px; border-radius: 8px; text-align: center;
  border: 1px solid var(--border); background: var(--surface-2);
  cursor: pointer; font-size: 12.5px; font-weight: 500;
  color: var(--text-dim); transition: all 120ms;
}
.format-btn:hover { border-color: var(--border-strong); color: var(--text); }
.format-btn.selected {
  border-color: var(--red); background: rgba(232,54,42,0.1); color: var(--text);
}

/* ── Form Field ─────────────────────────────────────────────────────────────── */
.field { margin-bottom: 20px; }
.field-label { font-size: 12px; font-weight: 500; color: var(--text-dim); margin-bottom: 8px; display: block; }

/* ── Preview Card ────────────────────────────────────────────────────────────── */
.preview-card {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 16px; margin-top: 8px;
}
.preview-card .show-name { font-family: var(--font-display); font-size: 22px; color: var(--text); line-height: 1.1; }

/* ── Premise Card ────────────────────────────────────────────────────────────── */
.premise-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px 28px;
  animation: otwSlideIn 360ms ease both;
  position: relative; overflow: hidden;
}
.premise-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
}
.premise-card.Grounded::before { background: #7DD3A0; }
.premise-card.Heightened::before { background: #E8B96B; }
.premise-card.Absurd::before { background: var(--red); }
.premise-tone {
  font-family: var(--font-mono); font-size: 9px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 10px;
}
.premise-card.Grounded .premise-tone { color: #7DD3A0; }
.premise-card.Heightened .premise-tone { color: #E8B96B; }
.premise-card.Absurd .premise-tone { color: var(--red-2); }
.premise-text {
  font-family: var(--font-display); font-size: 26px; line-height: 1.1;
  color: var(--text);
}

/* ── Suggestion Feed ─────────────────────────────────────────────────────────── */
.suggestion-item {
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  animation: otwSlideIn 260ms ease both;
}
.suggestion-item .sug-text { font-size: 14px; color: var(--text); }
.suggestion-item .sug-meta { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

/* ── QR / Ticker ─────────────────────────────────────────────────────────────── */
.ticker-count {
  font-family: var(--font-display); font-size: 64px; line-height: 1;
  color: var(--text); display: block;
}
.ticker-pop { animation: otwTickerPop 300ms ease; }

/* ── Listing Card ─────────────────────────────────────────────────────────────── */
.listing-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden; transition: all 150ms ease;
  display: flex; flex-direction: column;
}
.listing-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.listing-thumb {
  aspect-ratio: 16/9; background: var(--surface-3);
  overflow: hidden; transition: filter 150ms;
  display: flex; align-items: center; justify-content: center;
}
.listing-card:hover .listing-thumb { filter: brightness(1.08); }
.listing-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.listing-price { font-size: 15px; font-weight: 600; transition: color 150ms; }
.listing-card:hover .listing-price { color: var(--red-2); }

/* ── Creator Badge ────────────────────────────────────────────────────────────── */
.creator-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(201,168,76,0.12); border: 1px solid rgba(201,168,76,0.3);
  border-radius: 100px; padding: 3px 10px;
  font-size: 10.5px; font-weight: 500; color: var(--gold);
  font-family: var(--font-mono); letter-spacing: 0.05em;
}

/* ── Hero ──────────────────────────────────────────────────────────────────────── */
.hero-stats {
  display: flex; align-items: center; gap: 0;
}
.hero-stat {
  padding: 0 24px; border-right: 1px solid var(--border-strong);
}
.hero-stat:first-child { padding-left: 0; }
.hero-stat:last-child { border-right: none; }
.hero-stat-value { font-family: var(--font-display); font-size: 28px; color: var(--text); line-height: 1; }
.hero-stat-label { font-size: 11px; color: var(--text-dim); margin-top: 4px; }

/* ── Performer Card ────────────────────────────────────────────────────────────── */
.performer-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px;
  transition: all 150ms ease; display: flex; flex-direction: column; gap: 12px;
}
.performer-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.performer-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--surface-3); display: flex; align-items: center;
  justify-content: center; font-family: var(--font-display); font-size: 22px;
  color: var(--text-dim);
}
.performer-avatar.lg {
  width: 160px; height: 160px; font-size: 56px; border-radius: 12px;
}

/* ── Skill Tag ─────────────────────────────────────────────────────────────────── */
.skill-tag {
  display: inline-flex; align-items: center;
  padding: 3px 9px; border-radius: 5px;
  font-size: 11px; font-weight: 500;
  background: var(--surface-3); border: 1px solid var(--border);
  color: var(--text-dim);
}

/* ── Tabs ───────────────────────────────────────────────────────────────────────── */
.otw-tabs {
  display: flex; gap: 0; border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.otw-tab {
  padding: 12px 20px; cursor: pointer; font-size: 13px; font-weight: 500;
  color: var(--text-dim); border-bottom: 2px solid transparent;
  transition: all 120ms; user-select: none;
}
.otw-tab:hover { color: var(--text); }
.otw-tab.active { color: var(--text); border-bottom-color: var(--red); }

/* ── Filter Bar ─────────────────────────────────────────────────────────────────── */
.filter-bar {
  position: sticky; top: 60px; z-index: 50;
  background: rgba(10,10,10,0.9); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 12px 32px; display: flex; align-items: center; gap: 12px;
}
.segment-group { display: flex; gap: 2px; background: var(--surface-2); border-radius: 8px; padding: 3px; }
.segment-btn {
  padding: 6px 14px; border-radius: 6px; cursor: pointer;
  font-size: 12.5px; font-weight: 500; color: var(--text-dim);
  background: none; border: none; transition: all 100ms;
}
.segment-btn:hover { color: var(--text); }
.segment-btn.active { background: var(--surface-4); color: var(--text); }

/* ── Gold CTA Card ─────────────────────────────────────────────────────────────── */
.gold-cta {
  background: linear-gradient(135deg, rgba(201,168,76,0.12), rgba(201,168,76,0.06));
  border: 1px solid rgba(201,168,76,0.25); border-radius: 14px;
  padding: 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
}

/* ── Striped Placeholder (listing thumbnail) ────────────────────────────────────── */
.striped-placeholder {
  width: 100%; height: 100%;
  background: repeating-linear-gradient(
    45deg,
    var(--surface-3) 0px,
    var(--surface-3) 8px,
    var(--surface-4) 8px,
    var(--surface-4) 16px
  );
}

/* ── Search Input ────────────────────────────────────────────────────────────────── */
.otw-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 12px;
}
.otw-search input {
  background: none; border: none; outline: none;
  color: var(--text); font-size: 13px; font-family: var(--font-body);
  width: 200px;
}
.otw-search input::placeholder { color: var(--text-muted); }

/* ── Timer ───────────────────────────────────────────────────────────────────────── */
.scene-timer {
  font-family: var(--font-mono); font-size: 16px; font-weight: 500;
  color: var(--text-dim); letter-spacing: 0.04em;
}
.scene-timer.warning { color: #E8B96B; }
.scene-timer.critical { color: var(--red-2); animation: otwBlink 1s ease infinite; }

/* ── Spinner ──────────────────────────────────────────────────────────────────────── */
.otw-spinner {
  width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.15);
  border-top-color: #fff; border-radius: 50%;
  animation: otwSpin 700ms linear infinite;
  display: inline-block;
}

/* ── Loading Placeholder ──────────────────────────────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}
