/* admin.css - Admin Dashboard Styling for Renegade Tools */

:root {
  --bg: #0a0b0d;
  --bg-card: rgba(25, 26, 30, 0.75);
  --bg-input: rgba(40, 42, 48, 0.60);
  --border: rgba(255, 255, 255, 0.08);
  --border-hi: rgba(255, 255, 255, 0.16);
  --text: #ffffff;
  --text-mid: #9a9ca3;
  --text-dim: #5c5e66;
  --orange: #FF6100;
  --orange-hi: #ff7f33;
  --orange-glow: rgba(255, 97, 0, 0.20);
  --purple: #a855f7;
  --purple-glow: rgba(168, 85, 247, 0.20);
  --green: #32d74b;
  --red: #ff453a;
  --radius: 12px;
  --radius-lg: 16px;
  --font-title: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  padding: 40px 20px;
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(255, 97, 0, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(147, 51, 234, 0.06) 0%, transparent 40%);
  background-attachment: fixed;
}

/* Container */
.admin-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.admin-section-nav {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -18px 0 24px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(10, 11, 13, 0.74);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.admin-section-btn {
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--text-mid);
  cursor: pointer;
  font: 700 13px var(--font-body);
  padding: 9px 14px;
  transition: all 0.2s ease;
}

.admin-section-btn:hover,
.admin-section-btn.active {
  border-color: rgba(255, 97, 0, 0.26);
  background: rgba(255, 97, 0, 0.13);
  color: var(--text);
}

.admin-editors-live-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.admin-section-hidden {
  display: none !important;
}

.admin-command-search {
  position: sticky;
  top: 84px;
  z-index: 19;
  margin: 0 0 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(12, 13, 16, 0.82);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.admin-command-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
}

.admin-command-icon {
  position: relative;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 97, 0, 0.12);
  color: var(--orange-hi);
}

.admin-command-icon::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 50%;
  transform: translate(-1px, -1px);
}

.admin-command-icon::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(5px, 5px) rotate(45deg);
}

#admin-global-search {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: 700 15px var(--font-body);
  outline: none;
}

#admin-global-search::placeholder {
  color: var(--text-dim);
}

.admin-command-clear {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-mid);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.admin-search-results {
  display: none;
  border-top: 1px solid var(--border);
  padding: 10px;
  max-height: 360px;
  overflow: auto;
}

.admin-search-results.is-open {
  display: grid;
  gap: 8px;
}

.admin-search-result {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  text-align: left;
  padding: 11px 12px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.admin-search-result:hover,
.admin-search-result.is-active {
  border-color: rgba(255, 97, 0, 0.32);
  background: rgba(255, 97, 0, 0.09);
}

.admin-search-result strong {
  display: block;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-search-result span {
  display: block;
  margin-top: 3px;
  color: var(--text-mid);
  font-size: 11.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-search-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.admin-search-tag {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 3px 7px;
  color: var(--text-mid);
  background: rgba(255, 255, 255, 0.045);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.admin-search-empty {
  padding: 12px;
  color: var(--text-dim);
  font-size: 12.5px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 24px;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  filter: drop-shadow(0 2px 8px rgba(255, 97, 0, 0.4));
}

.brand span.admin-badge {
  font-size: 11px;
  background: linear-gradient(135deg, var(--orange) 0%, var(--purple) 100%);
  padding: 3px 8px;
  border-radius: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: 8px;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  padding: 6px 16px;
  border-radius: 30px;
  border: 1px solid var(--border);
}

.user-profile img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--orange);
}

.user-profile span {
  font-size: 14px;
  font-weight: 600;
}

.back-btn {
  text-decoration: none;
  font-size: 13.5px;
  color: var(--text-mid);
  font-weight: 600;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.back-btn:hover {
  color: var(--text);
}

/* Grids */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.full-width {
  grid-column: 1 / -1;
}

[data-admin-priority="1"] { order: 1; }
[data-admin-priority="2"] { order: 2; }
[data-admin-priority="3"] { order: 3; }
[data-admin-priority="10"] { order: 10; }
[data-admin-priority="11"] { order: 11; }
[data-admin-priority="12"] { order: 12; }
[data-admin-priority="20"] { order: 20; }
[data-admin-priority="21"] { order: 21; }
[data-admin-priority="30"] { order: 30; }
[data-admin-priority="40"] { order: 40; }
[data-admin-priority="60"] { order: 60; }
[data-admin-priority="61"] { order: 61; }
[data-admin-priority="62"] { order: 62; }
[data-admin-priority="70"] { order: 70; }
[data-admin-priority="90"] { order: 90; }
[data-admin-priority="91"] { order: 91; }

/* Cards */
.admin-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-card.orange-glow-card {
  box-shadow: 0 10px 40px var(--orange-glow);
  border-color: rgba(255, 97, 0, 0.2);
}

.admin-card.purple-glow-card {
  box-shadow: 0 10px 40px var(--purple-glow);
  border-color: rgba(168, 85, 247, 0.2);
}

.admin-card.admin-card-focus {
  border-color: rgba(255, 97, 0, 0.55);
  box-shadow: 0 0 0 1px rgba(255, 97, 0, 0.28), 0 16px 48px rgba(255, 97, 0, 0.16);
}

.admin-card h2 {
  font-size: 20px;
  font-family: var(--font-title);
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-title-action {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 12.5px;
}

.section-note {
  margin: -6px 0 18px;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.5;
}

.admin-inline-note {
  margin: -6px 0 14px;
  border: 1px solid rgba(255, 97, 0, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 97, 0, 0.06);
  color: var(--text-mid);
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
}

.admin-alert-note {
  border-color: rgba(255, 69, 58, 0.25);
  background: rgba(255, 69, 58, 0.09);
  color: rgba(255, 255, 255, 0.78);
}

.sales-overview-card {
  gap: 18px;
}

.sales-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.sales-metric {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  padding: 16px;
}

.sales-metric-primary {
  border-color: rgba(255, 97, 0, 0.26);
  background: rgba(255, 97, 0, 0.08);
}

.sales-metric span {
  display: block;
  margin-bottom: 8px;
  color: var(--text-mid);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sales-metric strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--text);
  font: 800 27px var(--font-title);
  line-height: 1.05;
}

.sales-metric small {
  display: block;
  margin-top: 8px;
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.35;
}

.sales-breakdown-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
}

.sales-breakdown-grid h3 {
  margin: 0 0 10px;
  color: var(--text-mid);
  font: 700 13px var(--font-body);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 rgba(50, 215, 75, 0.55);
  animation: livePulse 1.6s ease-out infinite;
  flex: 0 0 auto;
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(50, 215, 75, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(50, 215, 75, 0); }
  100% { box-shadow: 0 0 0 0 rgba(50, 215, 75, 0); }
}

.editors-live-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.editors-live-heading h2 {
  margin-bottom: 0;
}

.editors-live-counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(50, 215, 75, 0.24);
  border-radius: 999px;
  background: rgba(50, 215, 75, 0.08);
  padding: 9px 13px;
  white-space: nowrap;
}

.editors-live-counter strong {
  color: var(--text);
  font: 800 22px var(--font-title);
  line-height: 1;
}

.editors-live-counter small {
  color: var(--text-mid);
  font-size: 12px;
  font-weight: 700;
}

.editor-geo-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 20px;
}

.editor-geo-stat {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 12px 14px;
  min-width: 0;
}

.editor-geo-stat span,
.editor-geo-stat small {
  display: block;
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.editor-geo-stat strong {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
  color: var(--text);
  font: 800 18px var(--font-title);
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.geo-flag {
  width: 22px;
  height: 16px;
  border-radius: 3px;
  object-fit: cover;
  flex: 0 0 auto;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 4px 10px rgba(0, 0, 0, 0.22);
  vertical-align: -2px;
}

.editor-geo-stat small {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

.editor-profile-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.editor-profile-cell img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-hi);
  background: rgba(255, 255, 255, 0.08);
  object-fit: cover;
}

.editor-profile-cell strong,
.editor-stacked-cell strong {
  display: block;
  color: var(--text);
}

.editor-profile-cell span,
.editor-stacked-cell span {
  display: block;
  margin-top: 3px;
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.35;
}

.editor-location-main {
  display: flex;
  align-items: center;
  gap: 13px;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.geo-location-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-hidden {
  display: none !important;
}

.editors-live-list {
  display: grid;
  gap: 10px;
}

.editors-live-empty {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  padding: 18px;
  color: var(--text-dim);
  text-align: center;
}

.editor-live-row {
  display: grid;
  grid-template-columns: minmax(210px, 1.2fr) minmax(260px, 1.5fr) minmax(240px, 1.3fr);
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  padding: 14px 16px;
}

.editor-live-person {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.editor-live-person img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-hi);
  background: rgba(255, 255, 255, 0.08);
  object-fit: cover;
  flex: 0 0 auto;
}

.editor-live-person strong,
.editor-live-main strong,
.editor-live-location strong {
  display: block;
  color: var(--text);
}

.editor-live-person span,
.editor-live-main span,
.editor-live-location span,
.editor-live-subscription {
  display: block;
  margin-top: 3px;
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.35;
}

.editor-live-person div,
.editor-live-main,
.editor-live-location {
  min-width: 0;
}

.editor-live-body {
  display: grid;
  grid-template-columns: minmax(90px, 0.85fr) minmax(150px, 1.15fr);
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.editor-live-badges {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}

.editor-live-subscription {
  grid-column: 3;
  justify-self: end;
  margin-top: -12px;
  max-width: 100%;
  text-align: right;
}

.release-readonly-form input[readonly],
.release-readonly-form textarea[readonly] {
  opacity: 0.82;
  cursor: default;
}

.release-readonly-form input[readonly]:focus,
.release-readonly-form textarea[readonly]:focus {
  border-color: var(--border);
  box-shadow: none;
}

.release-live-meta {
  margin: -4px 0 16px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-mid);
  font-size: 12.5px;
}

.asset-target-box {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  background: rgba(0,0,0,0.22);
}

.asset-target-box span {
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.asset-target-box code {
  overflow: hidden;
  color: var(--text-mid);
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Forms */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
}

input, select, textarea {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 14.5px;
  transition: all 0.2s;
  width: 100%;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: rgba(255, 97, 0, 0.04);
  box-shadow: 0 0 10px rgba(255, 97, 0, 0.15);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 97, 0, 0.3);
}

.btn-primary:hover {
  background: var(--orange-hi);
  transform: translateY(-1.5px);
  box-shadow: 0 6px 18px rgba(255, 97, 0, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--border-hi);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1.5px);
}

.btn-danger {
  background: rgba(255, 69, 58, 0.15);
  color: var(--red);
  border-color: rgba(255, 69, 58, 0.25);
}

.btn-danger:hover {
  background: rgba(255, 69, 58, 0.25);
  transform: translateY(-1.5px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.admin-modal-open {
  overflow: hidden;
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.admin-modal.is-open {
  display: flex;
}

.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.admin-modal-panel {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-lg);
  background: rgba(18, 19, 23, 0.96);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55), 0 0 42px rgba(255, 97, 0, 0.12);
  padding: 24px;
}

.admin-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-mid);
  cursor: pointer;
  font-size: 18px;
}

.admin-modal-heading {
  padding-right: 42px;
  margin-bottom: 20px;
}

.admin-modal-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--orange-hi);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.admin-modal-heading h2 {
  margin-bottom: 8px;
  font: 800 24px var(--font-title);
}

.admin-modal-heading p {
  color: var(--text-mid);
  font-size: 13px;
  line-height: 1.55;
}

.license-generator-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.license-copy-box {
  margin-top: 16px;
  border: 1px solid rgba(50, 215, 75, 0.28);
  border-radius: var(--radius);
  background: rgba(50, 215, 75, 0.08);
  padding: 14px;
}

.license-copy-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.license-copy-header span {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.license-copy-header .btn {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
}

.license-copy-box strong {
  display: block;
  color: var(--orange-hi);
  font-size: 17px;
  letter-spacing: 0.05em;
  text-align: center;
}

.user-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  text-align: right;
}

.user-actions .btn {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  white-space: nowrap;
}

/* Tables */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

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

th {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-mid);
  font-weight: 600;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

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

tr:hover td {
  background: rgba(255, 255, 255, 0.01);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-active { background: rgba(50, 215, 75, 0.15); color: var(--green); }
.badge-canceled { background: rgba(255, 69, 58, 0.15); color: var(--red); }
.badge-beta { background: rgba(168, 85, 247, 0.15); color: var(--purple); }
.badge-stable { background: rgba(255, 97, 0, 0.15); color: var(--orange); }

/* Feedback Overlay */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(25, 26, 30, 0.95);
  border: 1px solid var(--border-hi);
  padding: 14px 24px;
  border-radius: var(--radius);
  color: var(--text);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2000;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-success { border-left: 4px solid var(--green); }
.toast-error { border-left: 4px solid var(--red); }

/* Search/Filter Row */
.filter-row {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
}

.filter-row input {
  max-width: 300px;
}

.admin-simulator-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.2fr) minmax(140px, 0.7fr) minmax(150px, 0.75fr) auto;
  gap: 14px;
  align-items: end;
}

.admin-simulator-grid .btn {
  min-height: 47px;
  white-space: nowrap;
}

.mono {
  font-family: monospace;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

@media (max-width: 980px) {
  .sales-metric-grid,
  .sales-breakdown-grid {
    grid-template-columns: 1fr 1fr;
  }

  .editor-live-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .editor-live-body {
    grid-template-columns: 1fr 1fr;
  }

  .editor-live-badges,
  .editor-live-subscription {
    justify-self: start;
    text-align: left;
    grid-column: auto;
    margin-top: 0;
  }

  .admin-simulator-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .sales-metric-grid,
  .sales-breakdown-grid {
    grid-template-columns: 1fr;
  }

  .editors-live-heading {
    flex-direction: column;
  }

  .editor-geo-stats {
    grid-template-columns: 1fr;
  }

  .editor-live-body {
    grid-template-columns: 1fr;
  }

  .sales-metric strong {
    font-size: 23px;
  }
}

.feedback-report-cell {
  max-width: 520px;
  line-height: 1.35;
}

.feedback-report-cell strong {
  display: block;
  max-height: 44px;
  overflow: hidden;
  color: var(--text);
  font-weight: 700;
}

.feedback-report-cell span {
  display: block;
  max-height: 36px;
  overflow: hidden;
  color: var(--text-dim);
  font-size: 12px;
  margin-top: 3px;
}

.admin-compact-cell {
  max-width: 260px;
  line-height: 1.35;
}

.admin-compact-cell strong {
  display: block;
  margin-bottom: 4px;
}

.admin-compact-cell span,
.admin-compact-cell a {
  display: block;
  max-height: 38px;
  overflow: hidden;
  color: var(--text-dim);
  font-size: 12px;
  text-overflow: ellipsis;
}

.admin-boost-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.admin-boost-actions input {
  max-width: 105px;
  padding: 8px 10px;
  text-align: right;
}

.admin-boost-actions textarea {
  max-width: 210px;
  min-height: 48px;
  padding: 8px 10px;
  font-size: 12px;
}

.admin-action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
