/* ============================================================
   ONYX Admin — Shared Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&family=Manrope:wght@300..800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Onyx brand tokens */
  --onyx-void: #050505;
  --onyx-pitch: #0a0a0a;
  --onyx-coal: #111111;
  --onyx-charcoal: #1a1a1a;
  --onyx-ash: #2a2a2a;
  --onyx-smoke: #3a3a3a;
  --onyx-fog: #6b6b6b;
  --onyx-mist: #9a9a9a;
  --onyx-bone: #e8e4dc;
  --onyx-ivory: #f5f0e6;
  --onyx-pearl: #fffdf7;

  --gold: #c89b5b;
  --gold-light: #e0b97a;
  --gold-deep: #8a6a3a;
  --gold-glow: rgba(200, 155, 91, 0.15);

  /* Status colors */
  --success: #4ade80;
  --success-bg: rgba(74, 222, 128, 0.1);
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.1);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.1);
  --info: #60a5fa;
  --info-bg: rgba(96, 165, 250, 0.1);

  /* Typography */
  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --sidebar-width: 260px;
}

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

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  background: var(--onyx-void);
  color: var(--onyx-ivory);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  min-height: 100vh;
}

/* Grain texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.025;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' /%3E%3C/svg%3E");
}

/* ============================================================
   Auth Layout (Login)
   ============================================================ */
.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}

@media (max-width: 900px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-art { display: none !important; }
}

.auth-art {
  background:
    radial-gradient(ellipse 80% 60% at 30% 40%, rgba(200, 155, 91, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(184, 92, 59, 0.1), transparent 60%),
    linear-gradient(135deg, var(--onyx-pitch), var(--onyx-void));
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.auth-art::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232, 228, 220, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 228, 220, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 30% 40%, black 30%, transparent 70%);
}

.auth-art h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 2;
}

.auth-art h1 em { font-style: italic; color: var(--gold-light); }

.auth-art p {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 2rem;
  position: relative;
  z-index: 2;
}

.auth-art .auth-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--onyx-fog);
  letter-spacing: 0.15em;
  position: relative;
  z-index: 2;
}

.auth-form-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 3rem;
  background: var(--onyx-pitch);
}

.auth-form {
  max-width: 380px;
  width: 100%;
  margin: 0 auto;
}

.auth-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.3em;
  color: var(--onyx-ivory);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 3rem;
  text-decoration: none;
}

.auth-logo::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--gold-glow);
}

.auth-form h2 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin-bottom: 0.5rem;
}

.auth-form > p {
  color: var(--onyx-mist);
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
}

.auth-demo {
  background: rgba(200, 155, 91, 0.06);
  border-left: 2px solid var(--gold);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.85rem;
  color: var(--onyx-bone);
}

.auth-demo strong {
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 0.95rem;
  display: block;
  margin-bottom: 0.5rem;
}

.auth-demo code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: var(--onyx-charcoal);
  padding: 0.15rem 0.4rem;
  border-radius: 2px;
  color: var(--gold-light);
}

/* ============================================================
   Forms
   ============================================================ */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.field label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--onyx-fog);
}

.field input,
.field select,
.field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(232, 228, 220, 0.15);
  color: var(--onyx-ivory);
  padding: 0.65rem 0;
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s var(--ease-out);
}

.field input:focus,
.field select:focus,
.field textarea:focus { border-bottom-color: var(--gold); }

.field input::placeholder,
.field textarea::placeholder { color: var(--onyx-smoke); }

.field select option { background: var(--onyx-charcoal); color: var(--onyx-ivory); }

.field textarea { resize: vertical; min-height: 80px; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; }
}

.field-error {
  color: var(--danger);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  margin-top: 0.5rem;
  display: none;
}

.field-error.show { display: block; }

/* Checkbox styling */
.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--onyx-bone);
  user-select: none;
}

.checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
  cursor: pointer;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--onyx-void);
}

.btn-primary:hover:not(:disabled) {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(200, 155, 91, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--onyx-ivory);
  border: 1px solid rgba(232, 228, 220, 0.15);
}

.btn-ghost:hover:not(:disabled) {
  border-color: var(--gold);
  color: var(--gold-light);
}

.btn-danger {
  background: transparent;
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover:not(:disabled) {
  background: var(--danger);
  color: white;
  border-color: var(--danger);
}

.btn-block { width: 100%; }
.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.8rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ============================================================
   Admin Layout (Sidebar + Main)
   ============================================================ */
.admin-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  min-height: 100vh;
}

@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
}

.sidebar {
  background: var(--onyx-pitch);
  border-right: 1px solid rgba(232, 228, 220, 0.06);
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

@media (max-width: 900px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    z-index: 100;
    transform: translateX(-100%);
    transition: transform 0.3s var(--ease-out);
  }
  .sidebar.open { transform: translateX(0); }
}

.sidebar-brand {
  padding: 0 1.75rem 1.5rem;
  border-bottom: 1px solid rgba(232, 228, 220, 0.06);
  margin-bottom: 1rem;
}

.sidebar-brand a {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.25em;
  color: var(--onyx-ivory);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-brand a::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--gold-glow);
}

.sidebar-brand small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  margin-top: 0.5rem;
  margin-left: 16px;
}

.sidebar-nav {
  flex: 1;
  list-style: none;
  padding: 0 0.75rem;
}

.sidebar-nav li { margin-bottom: 0.2rem; }

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--onyx-bone);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s var(--ease-out);
  border-radius: 4px;
}

.sidebar-nav a:hover {
  background: var(--onyx-charcoal);
  color: var(--onyx-pearl);
}

.sidebar-nav a.active {
  background: var(--onyx-charcoal);
  color: var(--gold-light);
  border-left: 2px solid var(--gold);
  padding-left: calc(1rem - 2px);
}

.sidebar-nav .nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.sidebar-section-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--onyx-fog);
  padding: 1.5rem 1.75rem 0.6rem;
}

.sidebar-foot {
  padding: 1rem 1.75rem;
  border-top: 1px solid rgba(232, 228, 220, 0.06);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-deep), var(--gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--onyx-void);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.user-info { flex: 1; min-width: 0; }

.user-name {
  font-size: 0.85rem;
  color: var(--onyx-ivory);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--onyx-fog);
  letter-spacing: 0.1em;
}

/* ============================================================
   Main Content
   ============================================================ */
.main {
  background: var(--onyx-void);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(232, 228, 220, 0.06);
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  gap: 1rem;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(232, 228, 220, 0.15);
  color: var(--onyx-ivory);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-size: 1rem;
}

@media (max-width: 900px) { .menu-toggle { display: inline-block; } }

.page-title h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.page-title .breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--onyx-fog);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topbar-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--onyx-bone);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}

.topbar-link:hover { color: var(--gold-light); }

.content {
  padding: 2.5rem 2rem;
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .content { padding: 1.5rem 1rem; }
  .topbar { padding: 1rem; }
}

/* ============================================================
   Cards & Panels
   ============================================================ */
.card {
  background: var(--onyx-pitch);
  border: 1px solid rgba(232, 228, 220, 0.06);
  padding: 1.75rem;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
}

.card-subtitle {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--onyx-fog);
  text-transform: uppercase;
  margin-top: 0.25rem;
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--onyx-pitch);
  border: 1px solid rgba(232, 228, 220, 0.06);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--ease-out);
}

.stat-card:hover {
  border-color: rgba(200, 155, 91, 0.2);
  transform: translateY(-2px);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, var(--gold-glow), transparent 70%);
  pointer-events: none;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--onyx-fog);
  margin-bottom: 0.75rem;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 400;
  line-height: 1;
  color: var(--onyx-pearl);
  margin-bottom: 0.5rem;
}

.stat-change {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--onyx-mist);
}

.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* ============================================================
   Tables
   ============================================================ */
.table-wrap {
  background: var(--onyx-pitch);
  border: 1px solid rgba(232, 228, 220, 0.06);
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th {
  background: var(--onyx-coal);
  padding: 1rem 1.25rem;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--onyx-fog);
  border-bottom: 1px solid rgba(232, 228, 220, 0.06);
  white-space: nowrap;
}

td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(232, 228, 220, 0.04);
  color: var(--onyx-bone);
  vertical-align: middle;
}

tbody tr { transition: background 0.2s; }
tbody tr:hover { background: var(--onyx-coal); }
tbody tr:last-child td { border-bottom: none; }

.car-row-img {
  width: 64px;
  height: 48px;
  object-fit: cover;
  background: var(--onyx-ash);
  flex-shrink: 0;
}

.car-row-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--onyx-ivory);
  margin-bottom: 0.1rem;
}

.car-row-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--onyx-fog);
  letter-spacing: 0.1em;
}

.car-row-cell {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Status pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 2px;
  font-weight: 500;
}

.pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.pill-success { background: var(--success-bg); color: var(--success); }
.pill-success::before { background: var(--success); box-shadow: 0 0 8px var(--success); }

.pill-warning { background: var(--warning-bg); color: var(--warning); }
.pill-warning::before { background: var(--warning); }

.pill-danger { background: var(--danger-bg); color: var(--danger); }
.pill-danger::before { background: var(--danger); }

.pill-info { background: var(--info-bg); color: var(--info); }
.pill-info::before { background: var(--info); }

.pill-gold {
  background: rgba(200, 155, 91, 0.12);
  color: var(--gold-light);
}
.pill-gold::before { background: var(--gold); box-shadow: 0 0 8px var(--gold); }

/* Action buttons inside table */
.row-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.icon-btn {
  background: transparent;
  border: 1px solid rgba(232, 228, 220, 0.1);
  color: var(--onyx-bone);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.icon-btn:hover { border-color: var(--gold); color: var(--gold-light); }
.icon-btn.danger:hover { border-color: var(--danger); color: var(--danger); }

/* ============================================================
   Image Uploader
   ============================================================ */
.uploader {
  border: 2px dashed rgba(232, 228, 220, 0.15);
  background: var(--onyx-coal);
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  position: relative;
}

.uploader:hover,
.uploader.drag {
  border-color: var(--gold);
  background: rgba(200, 155, 91, 0.04);
}

.uploader-icon {
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 1rem;
  display: inline-block;
}

.uploader-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--onyx-ivory);
  margin-bottom: 0.5rem;
}

.uploader-hint {
  font-size: 0.85rem;
  color: var(--onyx-mist);
}

.uploader-hint code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--onyx-charcoal);
  padding: 0.15rem 0.4rem;
  color: var(--gold-light);
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.image-tile {
  aspect-ratio: 4/3;
  background: var(--onyx-charcoal);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(232, 228, 220, 0.06);
  cursor: grab;
}

.image-tile:active { cursor: grabbing; }

.image-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-tile.cover { border-color: var(--gold); }

.image-tile-cover-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: var(--gold);
  color: var(--onyx-void);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
}

.image-tile-actions {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.8));
  opacity: 0;
  transition: opacity 0.2s;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0.5rem;
  gap: 0.3rem;
}

.image-tile:hover .image-tile-actions { opacity: 1; }

.tile-btn {
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(232, 228, 220, 0.15);
  color: var(--onyx-ivory);
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.2s;
}

.tile-btn:hover { border-color: var(--gold); color: var(--gold-light); }
.tile-btn.danger:hover { border-color: var(--danger); color: var(--danger); }

/* ============================================================
   Toolbar (search, filters)
   ============================================================ */
.toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.search-input {
  background: var(--onyx-pitch);
  border: 1px solid rgba(232, 228, 220, 0.1);
  color: var(--onyx-ivory);
  padding: 0.7rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  flex: 1;
  min-width: 200px;
  max-width: 400px;
  transition: border-color 0.2s;
}

.search-input:focus { border-color: var(--gold); }

.filter-select {
  background: var(--onyx-pitch);
  border: 1px solid rgba(232, 228, 220, 0.1);
  color: var(--onyx-ivory);
  padding: 0.7rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
}

.filter-select option { background: var(--onyx-charcoal); }

.spacer { flex: 1; }

/* ============================================================
   Toasts
   ============================================================ */
.toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: var(--onyx-pitch);
  border: 1px solid var(--gold);
  padding: 0.85rem 1.25rem;
  color: var(--onyx-ivory);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 250px;
  animation: toastIn 0.4s var(--ease-out) both;
  border-left: 3px solid var(--gold);
}

.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }

@keyframes toastIn {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast.out { animation: toastOut 0.3s var(--ease-out) both; }

@keyframes toastOut {
  to { transform: translateX(120%); opacity: 0; }
}

/* ============================================================
   Empty States
   ============================================================ */
.empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--onyx-mist);
}

.empty-icon {
  font-size: 3rem;
  opacity: 0.3;
  margin-bottom: 1rem;
  display: block;
}

.empty h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--onyx-ivory);
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.empty p { margin-bottom: 1.5rem; font-size: 0.95rem; }

/* ============================================================
   Section spacing
   ============================================================ */
.section { margin-bottom: 2.5rem; }
.section-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

/* ============================================================
   Tag input (features)
   ============================================================ */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem 0.4rem 0.8rem;
  background: rgba(200, 155, 91, 0.1);
  color: var(--gold-light);
  font-size: 0.8rem;
  border: 1px solid rgba(200, 155, 91, 0.25);
}

.tag-remove {
  background: transparent;
  border: none;
  color: var(--gold-light);
  cursor: pointer;
  padding: 0;
  font-size: 1rem;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.tag-remove:hover { opacity: 1; }

/* ============================================================
   Modal
   ============================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop.open { display: flex; animation: modalIn 0.3s var(--ease-out) both; }

@keyframes modalIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  background: var(--onyx-pitch);
  border: 1px solid rgba(232, 228, 220, 0.1);
  padding: 2rem;
  max-width: 460px;
  width: 100%;
  animation: modalSlide 0.4s var(--ease-out) both;
}

@keyframes modalSlide {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 400;
}

.modal p {
  color: var(--onyx-mist);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}
