/* ── DMC — Degen Media Corp Brand Theme ────────────────────────── */
:root {
  --bg-base: #0a0a0e;
  --bg-surface: #141418;
  --bg-elevated: #1c1c22;
  --bg-hover: #26262e;
  --border: #2e2e38;
  --text: #e8e8ea;
  --text-muted: #8b8b92;
  --text-dim: #5c5c64;
  --accent: #ff2a75;
  --accent-hover: #ff4d91;
  --accent-cyan: #00e5ff;
  --accent-cyan-hover: #33eaff;
  --green: #22c55e;
  --yellow: #eab308;
  --red: #ef4444;
  --blue: #3b82f6;
  --orange: #f97316;
  --radius: 8px;
  --radius-sm: 4px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-base);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* ── Navigation ───────────────────────────────────────────────── */
.nav {
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 2px;
}
.logo-degen { color: var(--accent); }
.logo-corp { color: var(--accent-cyan); }
.logo:hover { opacity: 0.85; }
.nav-links { display: flex; gap: 4px; flex: 1; }
.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.15s;
}
.nav-link:hover { color: var(--text); background: var(--bg-hover); }
.nav-link.active { color: var(--text); background: var(--bg-elevated); }
.nav-cta {
  background: var(--accent);
  color: white !important;
}
.nav-cta:hover { background: var(--accent-hover); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-user { font-size: 13px; color: var(--text-muted); }

/* ── Layout ───────────────────────────────────────────────────── */
.main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px;
}

/* ── Cards ─────────────────────────────────────────────────────── */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

/* ── Stats Grid ───────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.stat-label { font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }
.stat-value { font-size: 28px; font-weight: 700; letter-spacing: -1px; }
.stat-sub { font-size: 13px; color: var(--text-dim); margin-top: 2px; }

/* ── Pipeline Columns ──────────────────────────────────────────── */
.pipeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 16px;
}
.pipeline-col {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-height: 400px;
}
.pipeline-col-header {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.pipeline-card {
  margin: 8px;
  padding: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
}
.pipeline-card:hover {
  border-color: var(--accent);
  background: var(--bg-hover);
}
.pipeline-card-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}
.pipeline-card-meta {
  font-size: 12px;
  color: var(--text-dim);
}

/* ── Tables ────────────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
td {
  padding: 12px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
tr:hover td { background: var(--bg-hover); }

/* ── Badges ────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.badge-inbox { background: #3b82f620; color: #60a5fa; }
.badge-negotiating { background: #f9731620; color: #fb923c; }
.badge-contract_sent { background: #eab30820; color: #facc15; }
.badge-contract_signed { background: #ff2a7520; color: #ff4d91; }
.badge-content_creation { background: #00e5ff20; color: #33eaff; }
.badge-content_review { background: #ff2a7520; color: #ff4d91; }
.badge-posted { background: #22c55e20; color: #4ade80; }
.badge-paid { background: #10b98120; color: #34d399; }

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--bg-hover); }
.btn-green { background: var(--green); color: black; }
.btn-green:hover { opacity: 0.85; }
.btn-red { background: var(--red); color: white; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-icon { padding: 6px; background: none; color: var(--text-muted); border: none; cursor: pointer; }

/* ── Forms ─────────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s;
}
.form-input select,
select.form-input {
  color-scheme: dark;
  cursor: pointer;
}
.form-input:focus {
  outline: none;
  border-color: var(--accent);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ── Detail page ───────────────────────────────────────────────── */
.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}
.detail-title { font-size: 24px; font-weight: 700; }
.detail-meta { margin-top: 4px; color: var(--text-muted); font-size: 14px; }
.detail-actions { display: flex; gap: 8px; }

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}
.info-item { }
.info-label { font-size: 12px; color: var(--text-dim); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.info-value { font-size: 16px; font-weight: 600; margin-top: 2px; }

/* ── Progress bar ──────────────────────────────────────────────── */
.stage-progress {
  display: flex;
  gap: 0;
  margin-bottom: 32px;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 4px;
}
.stage-step {
  flex: 1;
  padding: 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  transition: all 0.2s;
}
.stage-step.active {
  background: var(--accent);
  color: white;
}
.stage-step.done {
  color: var(--accent-cyan);
}

/* ── Login ─────────────────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  width: 100%;
  max-width: 400px;
}
.login-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}
.error-msg {
  background: var(--red);
  color: white;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 16px;
}

/* ── Misc ──────────────────────────────────────────────────────── */
.page-title { font-size: 24px; font-weight: 700; margin-bottom: 24px; }
.flex { display: flex; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.text-muted { color: var(--text-muted); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.font-bold { font-weight: 700; }
