:root {
  --bg: #0b0f1a;
  --bg2: #0a0d16;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.10);
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eaf0ff;
  --text-secondary: rgba(234, 240, 255, 0.78);
  --text-muted: rgba(234, 240, 255, 0.62);
  --accent: #7c5cff;
  --danger: #ff5c7a;
  --ok: #2fe6a3;
  --warn: #ffcc66;

  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow-md: 0 14px 40px rgba(0,0,0,0.42);
  --shadow-sm: 0 6px 16px rgba(0,0,0,0.35);

  --maxw: 920px;
}

:root[data-theme="light"] {
  --bg: #f7f8fc;
  --bg2: #ffffff;
  --surface: rgba(11, 15, 58, 0.04);
  --surface-strong: rgba(11, 15, 58, 0.06);
  --border: rgba(11, 15, 58, 0.10);
  --border-strong: rgba(11, 15, 58, 0.16);
  --text: #0b0f1a;
  --text-secondary: rgba(11, 15, 26, 0.78);
  --text-muted: rgba(11, 15, 26, 0.62);
  --shadow-md: 0 14px 40px rgba(11, 15, 58, 0.14);
  --shadow-sm: 0 6px 16px rgba(11, 15, 58, 0.10);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 700px at 20% 10%, rgba(124, 92, 255, 0.25), transparent 65%),
              radial-gradient(900px 600px at 85% 25%, rgba(47, 230, 163, 0.18), transparent 60%),
              linear-gradient(180deg, var(--bg), var(--bg2));
}

.bg {
  position: fixed;
  inset: -20% -20% -20% -20%;
  background: radial-gradient(circle at 30% 10%, rgba(124, 92, 255, 0.20), transparent 55%),
              radial-gradient(circle at 85% 25%, rgba(47, 230, 163, 0.12), transparent 55%);
  filter: blur(30px);
  opacity: 0.65;
  pointer-events: none;
  z-index: -1;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px 16px 44px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Simple view tabs */
.segmented {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--border);
}

:root[data-theme="light"] .segmented {
  background: rgba(11, 15, 58, 0.04);
}

.segmented-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.segmented-btn[aria-selected="true"] {
  background: var(--surface-strong);
  border: 1px solid var(--border-strong);
  color: var(--text);
}

.view { margin-top: 16px; }

[hidden] { display: none !important; }

h2 {
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.card {
  margin-top: 16px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0;
}

label {
  min-width: 110px;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 13px;
}

.input {
  flex: 1;
  min-width: 220px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
  outline: none;
}

:root[data-theme="light"] .input {
  background: rgba(11, 15, 58, 0.03);
}

.input:focus {
  border-color: rgba(124, 92, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.18);
}

.btn {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  cursor: pointer;
  font-weight: 800;
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

.btn:hover {
  background: rgba(255,255,255,0.10);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  border-color: rgba(124, 92, 255, 0.55);
  background: rgba(124, 92, 255, 0.22);
}

.btn-primary:hover {
  background: rgba(124, 92, 255, 0.30);
}

.btn-secondary {
  border-color: rgba(47, 230, 163, 0.40);
  background: rgba(47, 230, 163, 0.14);
}

.btn-secondary:hover {
  background: rgba(47, 230, 163, 0.20);
}

.btn-ghost {
  border-color: transparent;
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  font-size: 12px;
  font-weight: 800;
  color: var(--text-secondary);
  white-space: nowrap;
}

:root[data-theme="light"] .badge {
  background: rgba(11, 15, 58, 0.04);
}

.hidden { display: none; }

.muted { color: var(--text-secondary); }
.tiny { font-size: 12px; }

pre.status {
  margin: 12px 0 0;
  padding: 12px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.14);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 260px;
  overflow: auto;
}

:root[data-theme="light"] pre.status {
  background: rgba(11, 15, 58, 0.03);
}

.alert {
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 92, 122, 0.45);
}

.alert-danger {
  background: rgba(255, 92, 122, 0.12);
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 14px 0;
}

.price-breakdown {
  margin: 10px 0 14px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.14);
}

:root[data-theme="light"] .price-breakdown {
  background: rgba(11, 15, 58, 0.03);
}

.breakdown {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: baseline;
}

.breakdown .k {
  color: var(--text-secondary);
  font-weight: 800;
}

.breakdown .v {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.breakdown .sub {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 12px;
}

/* Events list */
.event {
  padding: 12px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.10);
  margin: 10px 0;
}

:root[data-theme="light"] .event {
  background: rgba(11, 15, 58, 0.03);
}

.event-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-weight: 900;
}

.tiers {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.tier {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
}

.tier button {
  white-space: nowrap;
}

.tier-name {
  font-weight: 800;
}

.tier-meta {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Tier state badges */
.tier-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  margin-left: 10px;
  white-space: nowrap;
}

:root[data-theme="light"] .tier-badge {
  background: rgba(11, 15, 58, 0.06);
}

.tier-badge-ok {
  border-color: rgba(47, 230, 163, 0.35);
  background: rgba(47, 230, 163, 0.10);
}

.tier-badge-warn {
  border-color: rgba(255, 204, 102, 0.38);
  background: rgba(255, 204, 102, 0.10);
}

.tier-badge-danger {
  border-color: rgba(255, 92, 122, 0.55);
  background: rgba(255, 92, 122, 0.12);
}

/* Stripe */
.stripe-box {
  padding: 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.10);
}

/* Tickets list */
.tickets {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.ticket {
  padding: 12px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
}

.footer {
  margin-top: 16px;
  text-align: center;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
}

/* Banners / callouts */
.banner {
  margin-top: 10px;
  padding: 12px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.16);
}

:root[data-theme="light"] .banner {
  background: rgba(11, 15, 58, 0.03);
}

.banner-success {
  border-color: rgba(47, 230, 163, 0.35);
  background: rgba(47, 230, 163, 0.10);
}

.banner-warn {
  border-color: rgba(255, 204, 102, 0.38);
  background: rgba(255, 204, 102, 0.10);
}

.banner-danger {
  border-color: rgba(255, 92, 122, 0.55);
  background: rgba(255, 92, 122, 0.12);
}

.callout {
  padding: 12px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.14);
}

:root[data-theme="light"] .callout {
  background: rgba(11, 15, 58, 0.03);
}

/* Deterministic state indicators */
.state-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.state-pill {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.12);
}

:root[data-theme="light"] .state-pill {
  background: rgba(11, 15, 58, 0.03);
}

.state-value {
  margin-top: 4px;
  font-weight: 900;
  letter-spacing: -0.015em;
}

/* Wallet ticket cards */
.ticket-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ticket-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px;
  background: rgba(0, 0, 0, 0.12);
}

:root[data-theme="light"] .ticket-card {
  background: rgba(11, 15, 58, 0.03);
}

.ticket-card h3 {
  margin: 0;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.ticket-meta {
  margin-top: 6px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}

.ticket-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

.panel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qr {
  margin-top: 10px;
  width: 100%;
  max-width: 240px;
  aspect-ratio: 1;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.10);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.qr canvas, .qr svg {
  width: 100% !important;
  height: 100% !important;
}

/* Modal + loading */
.modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.55);
  z-index: 999;
}

.modal {
  width: min(720px, 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface-strong);
  box-shadow: var(--shadow-md);
  padding: 16px;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1000;
}

.loading-card {
  width: min(520px, 100%);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface-strong);
  box-shadow: var(--shadow-md);
}

.spinner {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.22);
  border-top-color: rgba(255,255,255,0.78);
  animation: spin 0.9s linear infinite;
}

:root[data-theme="light"] .spinner {
  border: 2px solid rgba(11, 15, 58, 0.16);
  border-top-color: rgba(11, 15, 58, 0.72);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.toast {
  position: sticky;
  top: 12px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
  box-shadow: var(--shadow-sm);
  z-index: 20;
}

:root[data-theme="light"] .toast {
  background: rgba(11, 15, 58, 0.03);
}

@media (max-width: 760px) {
  .state-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ticket-grid {
    grid-template-columns: 1fr;
  }
  label {
    min-width: 92px;
  }
  .input {
    min-width: 160px;
  }
}

@media (max-width: 520px) {
  .row {
    align-items: stretch;
  }
  label {
    width: 100%;
  }
  .input {
    width: 100%;
    min-width: unset;
  }
  .btn {
    width: 100%;
  }
  .nav {
    align-items: flex-start;
  }
  .nav-actions {
    justify-content: flex-start;
  }
}

/* =============================== */
/* Stripe Enterprise Surface */
/* =============================== */

.stripe-integrity-card {
    border: 1px solid #2ecc71;
    padding: 16px;
    margin-bottom: 24px;
}

.status-ok { border-color: #2ecc71; }
.status-partial { border-color: #f1c40f; }
.status-delta { border-color: #e74c3c; }

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

.transfer-table th,
.transfer-table td {
    padding: 8px;
    border-bottom: 1px solid #ddd;
}

.modal.hidden { display: none; }



/* =============================== */
/* Artist Pages */
/* =============================== */

.artist-page-shell {
  max-width: 1100px;
}

.artist-page-title {
  margin: 8px 0 6px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.artist-page-subtitle {
  margin: 0 0 10px;
}

.artist-page-copy {
  margin: 0;
  line-height: 1.6;
}

.artist-hero-card {
  overflow: hidden;
}

.artist-hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 18px;
  align-items: center;
}

.artist-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.artist-hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.artist-image-frame,
.artist-image-fallback {
  width: min(320px, 100%);
  min-height: 240px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface-strong);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.artist-image {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  display: block;
}

.artist-image-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.artist-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.artist-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.artist-pill {
  background: var(--surface-strong);
}

.stack-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.artist-related-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.artist-related-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-strong);
}

.artist-related-title {
  font-weight: 800;
  margin-bottom: 4px;
}

.artist-event-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.artist-event-card h3 {
  margin: 0 0 8px;
}

.artist-event-main {
  min-width: 0;
}

.artist-event-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-width: 320px;
}

.artist-event-meta div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border);
}

.artist-toast-ok {
  border-color: rgba(47, 230, 163, 0.28);
  background: rgba(47, 230, 163, 0.10);
  color: var(--text);
}

@media (max-width: 900px) {
  .artist-hero-grid,
  .artist-section-grid {
    grid-template-columns: 1fr;
  }
  .artist-event-card {
    flex-direction: column;
  }
  .artist-event-meta {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .artist-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .artist-event-meta {
    grid-template-columns: 1fr;
  }
}

/* Phase 40C — Buyer commerce trophy conversion */
.buyer-commerce-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.buyer-commerce-card {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel-2);
}
.buyer-commerce-card .k {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.buyer-commerce-card .v {
  margin-top: 6px;
  font-size: 1.15rem;
  font-weight: 800;
}
.buyer-commerce-card .s {
  margin-top: 6px;
  font-size: .86rem;
  color: var(--text-secondary);
  line-height: 1.55;
}
.buyer-commerce-seat-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.buyer-commerce-seat-section {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel-2);
}
.buyer-commerce-seat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.buyer-seat-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  font-size: .8rem;
  font-weight: 700;
}
.buyer-demand-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.buyer-demand-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  font-size: .78rem;
  font-weight: 700;
}
.buyer-demand-chip[data-tone="warn"] {
  border-color: rgba(245,158,11,0.35);
  background: rgba(245,158,11,0.12);
}
.buyer-demand-chip[data-tone="danger"] {
  border-color: rgba(239,68,68,0.35);
  background: rgba(239,68,68,0.12);
}
.buyer-demand-chip[data-tone="ok"] {
  border-color: rgba(34,197,94,0.30);
  background: rgba(34,197,94,0.10);
}
.event-demand-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  align-items: center;
}

/* Phase 40E — Waitlist + demand controls */
.buyer-waitlist-panel {
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
}
.buyer-waitlist-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.buyer-waitlist-form textarea.input {
  min-height: 92px;
  resize: vertical;
}

/* Phase 40F — Mobile strategy surface */
.mobile-strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.mobile-strategy-card {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
}
.mobile-strategy-card .k { color: var(--muted); font-size: 12px; }
.mobile-strategy-card .v { font-size: 18px; font-weight: 800; margin-top: 6px; }
.mobile-strategy-card .s { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.mobile-strategy-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  font-size: 12px;
  font-weight: 700;
}
.buyer-mobile-action-card {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(13, 18, 33, 0.94);
  box-shadow: 0 18px 40px rgba(0,0,0,0.28);
}
.buyer-mobile-action-card[data-tone="ok"] { border-color: rgba(34,197,94,0.35); }
.buyer-mobile-action-card[data-tone="warn"] { border-color: rgba(245,158,11,0.35); }
@media (min-width: 921px) {
  #buyerMobileActionRail { display: none !important; }
}

/* Phase 41 — Event operations control center */
.ops-center-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.ops-center-card {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
}
.ops-center-card .k { color: var(--muted); font-size: 12px; }
.ops-center-card .v { font-size: 18px; font-weight: 800; margin-top: 6px; }
.ops-center-card .s { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.ops-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  font-size: 12px;
  font-weight: 700;
}
.ops-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.ops-priority-stack {
  display: grid;
  gap: 10px;
}
.ops-priority {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
}
.ops-priority[data-severity="HIGH"] { border-color: rgba(239,68,68,0.45); }
.ops-priority[data-severity="MEDIUM"] { border-color: rgba(245,158,11,0.40); }
.ops-mini-table .row { gap: 8px; flex-wrap: wrap; }

/* Phase 42 — Payout engine completion */
.payout-ops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.payout-ops-card {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
}
.payout-ops-card .k { color: var(--muted); font-size: 12px; }
.payout-ops-card .v { font-size: 18px; font-weight: 800; margin-top: 6px; }
.payout-ops-card .s { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.payout-status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  font-size: 12px;
  font-weight: 700;
}
.payout-status-chip[data-state="ON_HOLD"] { border-color: rgba(239,68,68,0.45); }
.payout-status-chip[data-state="APPROVED"] { border-color: rgba(34,197,94,0.45); }
.payout-status-chip[data-state="RELEASED"] { border-color: rgba(59,130,246,0.45); }

/* Phase 43 — Advanced discovery engine */
.discovery-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  font-size: 12px;
  font-weight: 700;
}
.discovery-chip[data-tone="warn"] { border-color: rgba(245,158,11,0.40); }
.discovery-chip[data-tone="ok"] { border-color: rgba(34,197,94,0.40); }
.discovery-chip[data-tone="neutral"] { border-color: rgba(255,255,255,0.10); }

/* Phase 43A — Event intelligence & pricing engine */
.pricing-insight-grid {
  display: grid;
  gap: 10px;
}
.pricing-insight {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
}
.pricing-insight[data-severity="MEDIUM"] { border-color: rgba(245,158,11,0.35); }
.pricing-insight[data-severity="HIGH"] { border-color: rgba(239,68,68,0.40); }


/* Phase 44 — Marketing & growth tools */
.growth-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  font-size: 12px;
  font-weight: 700;
}
.growth-chip[data-tone="warn"] { border-color: rgba(245,158,11,0.40); }
.growth-chip[data-tone="ok"] { border-color: rgba(34,197,94,0.40); }
.growth-chip[data-tone="danger"] { border-color: rgba(239,68,68,0.45); }
.growth-recommendation {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
}
.growth-recommendation[data-severity="HIGH"] { border-color: rgba(239,68,68,0.45); }
.growth-recommendation[data-severity="MEDIUM"] { border-color: rgba(245,158,11,0.40); }

/* Phase 45 — Ticket lifecycle hardening */
.payout-status-chip[data-state="ACTIVE"] { border-color: rgba(34,197,94,0.35); }
.payout-status-chip[data-state="CHECKED_IN"] { border-color: rgba(59,130,246,0.40); }
.payout-status-chip[data-state="TRANSFER_PENDING"] { border-color: rgba(245,158,11,0.40); }
.payout-status-chip[data-state="RESALE_ACTIVE"] { border-color: rgba(168,85,247,0.40); }
.payout-status-chip[data-state="LOCKED"] { border-color: rgba(239,68,68,0.45); }
.payout-status-chip[data-state="REVOKED"] { border-color: rgba(239,68,68,0.45); }
.payout-status-chip[data-state="REPLACED"] { border-color: rgba(14,165,233,0.40); }


/* Buyer journey polish + feature-status panel */
.subtle-details {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(0, 0, 0, 0.10);
  margin-top: 12px;
}

:root[data-theme="light"] .subtle-details {
  background: rgba(11, 15, 58, 0.03);
}

.subtle-details summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  font-weight: 800;
  color: var(--text);
}

.subtle-details summary::-webkit-details-marker {
  display: none;
}

.subtle-details > *:not(summary) {
  padding-left: 14px;
  padding-right: 14px;
  padding-bottom: 14px;
}

.buyer-highlight-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.event-priority {
  border-color: rgba(124, 92, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.10);
}

.event-copy {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}

.event-note {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.55;
}

.event-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.status-log {
  margin-top: 12px;
}

.status-log summary {
  cursor: pointer;
  color: var(--text-secondary);
  font-weight: 800;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.roadmap-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  background: rgba(0, 0, 0, 0.10);
}

:root[data-theme="light"] .roadmap-card {
  background: rgba(11, 15, 58, 0.03);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: 10px;
}

.status-chip[data-kind="live"] {
  border-color: rgba(47, 230, 163, 0.40);
  background: rgba(47, 230, 163, 0.12);
}

.status-chip[data-kind="partial"] {
  border-color: rgba(255, 204, 102, 0.40);
  background: rgba(255, 204, 102, 0.12);
}

.status-chip[data-kind="planned"] {
  border-color: rgba(124, 92, 255, 0.45);
  background: rgba(124, 92, 255, 0.14);
}

.roadmap-card h3 {
  margin: 0;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.roadmap-card ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--text-secondary);
  line-height: 1.55;
}

@media (max-width: 920px) {
  .roadmap-grid {
    grid-template-columns: 1fr;
  }
}
