/* ── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f8f9fa;
  --surface: #ffffff;
  --border: #dee2e6;
  --text: #212529;
  --text-muted: #6c757d;
  --primary: #0d6efd;
  --primary-hover: #0b5ed7;
  --success: #198754;
  --warning: #ffc107;
  --danger: #dc3545;
  --info: #0dcaf0;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.08);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

/* ── Layout ──────────────────────────────────────────────────── */
.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: 220px;
  background: #1a1d23;
  color: #adb5bd;
  padding: 1.25rem 0;
  flex-shrink: 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
}

.sidebar-brand {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0 1.25rem 1.25rem;
  border-bottom: 1px solid #2d3139;
  margin-bottom: .75rem;
}

.sidebar-brand small {
  display: block;
  font-size: .7rem;
  font-weight: 400;
  color: #6c757d;
  margin-top: .15rem;
}

.sidebar-nav { list-style: none; }

.sidebar-nav a {
  display: block;
  padding: .6rem 1.25rem;
  color: #adb5bd;
  font-size: .9rem;
  transition: background .15s, color .15s;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: #2d3139;
  color: #fff;
  text-decoration: none;
}

.sidebar-nav a.active { border-left: 3px solid var(--primary); }

.main-content {
  margin-left: 220px;
  flex: 1;
  padding: 2rem;
  max-width: 1200px;
}

/* ── Typography ──────────────────────────────────────────────── */
.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text);
}

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.stat-card {
  text-align: center;
  padding: 1.25rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
}

.stat-label {
  font-size: .8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-top: .25rem;
}

.stat-value.success { color: var(--success); }
.stat-value.danger { color: var(--danger); }
.stat-value.primary { color: var(--primary); }
.stat-value.warning { color: var(--warning); }

/* ── Tables ──────────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
}

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

th, td {
  padding: .6rem .75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  font-weight: 600;
  color: var(--text-muted);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: #f1f3f5;
}

tr:hover td { background: #f8f9fa; }

/* ── Badges ──────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: .2rem .55rem;
  border-radius: 50px;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.badge-success { background: #d1e7dd; color: #0f5132; }
.badge-danger { background: #f8d7da; color: #842029; }
.badge-warning { background: #fff3cd; color: #664d03; }
.badge-info { background: #cff4fc; color: #055160; }
.badge-secondary { background: #e2e3e5; color: #41464b; }

/* ── Forms ───────────────────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }

.form-group label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: .3rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.form-control {
  width: 100%;
  padding: .5rem .75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .875rem;
  font-family: inherit;
  transition: border-color .15s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13,110,253,.15);
}

select.form-control { appearance: auto; }

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

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: .5rem 1rem;
  border: none;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s;
  text-align: center;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); text-decoration: none; color: #fff; }

.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #157347; text-decoration: none; color: #fff; }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #bb2d3b; text-decoration: none; color: #fff; }

.btn-secondary { background: #6c757d; color: #fff; }
.btn-secondary:hover { background: #5c636a; text-decoration: none; color: #fff; }

.btn-info { background: var(--info); color: #000; }
.btn-info:hover { background: #31d2f2; text-decoration: none; color: #000; }

.btn-sm { padding: .3rem .6rem; font-size: .78rem; }

.btn-group { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ── Alerts ──────────────────────────────────────────────────── */
.alert {
  padding: .75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: .875rem;
}

.alert-success { background: #d1e7dd; color: #0f5132; border: 1px solid #badbcc; }
.alert-danger { background: #f8d7da; color: #842029; border: 1px solid #f5c2c7; }
.alert-warning { background: #fff3cd; color: #664d03; border: 1px solid #ffecb5; }
.alert-info { background: #cff4fc; color: #055160; border: 1px solid #b6effb; }

/* ── Detail blocks ───────────────────────────────────────────── */
.response-block {
  background: #f1f3f5;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: .82rem;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 400px;
  overflow-y: auto;
  line-height: 1.5;
}

.mention-list { list-style: none; }

.mention-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem 0;
  border-bottom: 1px solid #f1f3f5;
}

.mention-item:last-child { border-bottom: none; }

.mention-score {
  font-size: 1.1rem;
  font-weight: 700;
  min-width: 50px;
  text-align: center;
}

.mention-details { flex: 1; }

.mention-details .brand { font-weight: 600; }
.mention-details .context { font-size: .8rem; color: var(--text-muted); margin-top: .15rem; }

/* ── Empty state ─────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.empty-state p { font-size: 1rem; margin-bottom: .5rem; }
.empty-state small { font-size: .8rem; }

/* ── Utilities ───────────────────────────────────────────────── */
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-sm { font-size: .8rem; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }

/* ── Loading spinner ─────────────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .6s linear infinite;
  vertical-align: middle;
  margin-right: .4rem;
}

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

/* ── Audit ───────────────────────────────────────────────────── */
.audit-recs { display: flex; flex-direction: column; gap: .75rem; }

.audit-rec-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

.audit-rec-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .5rem;
}

.audit-rec-priority {
  display: inline-block;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
}

.audit-rec-reason { font-weight: 500; margin-bottom: .35rem; }
.audit-rec-action { font-size: .875rem; }
.audit-rec-impact { margin-top: .25rem; }

code {
  background: #f1f3f5;
  padding: .15rem .4rem;
  border-radius: 4px;
  font-size: .82rem;
}

/* ── Project Bar ─────────────────────────────────────────────── */
.project-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .75rem 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.project-selector {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.project-label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .03em;
}

.project-dropdown { position: relative; }

.project-dropdown-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .4rem .75rem;
  font-size: .9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  color: var(--text);
}

.project-dropdown-toggle:hover { border-color: var(--primary); }

.project-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: .25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
  min-width: 220px;
  z-index: 100;
}

.project-dropdown-menu.show { display: block; }

.project-dropdown-item {
  display: block;
  padding: .5rem .75rem;
  font-size: .875rem;
  color: var(--text);
  border-bottom: 1px solid #f1f3f5;
}

.project-dropdown-item:last-child { border-bottom: none; }
.project-dropdown-item:hover { background: #f8f9fa; text-decoration: none; }
.project-dropdown-item.active { background: #e7f1ff; color: var(--primary); font-weight: 600; }

.project-actions { display: flex; gap: .5rem; }

/* ── Modals ──────────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-overlay.show { display: flex; }

.modal-content {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(0,0,0,.2);
  padding: 1.5rem;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
}

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

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
}

.modal-close:hover { color: var(--text); }

/* ── Insight Messages ────────────────────────────────────────── */
.insight-card {
  background: #e7f1ff;
  border-color: #b6d4fe;
}

.insight-message {
  font-size: .9rem;
  color: #084298;
  margin: 0;
  line-height: 1.5;
}

/* ── Project Tabs ────────────────────────────────────────────── */
.project-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.5rem;
}

.project-tab {
  padding: .5rem 1.25rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  text-decoration: none;
  transition: color .15s, border-color .15s;
}

.project-tab:hover {
  color: var(--text);
  text-decoration: none;
}

.project-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

/* ── Inline Micro-Guidance ──────────────────────────────────── */
.inline-hint {
  font-size: .8rem;
  color: #6c757d;
  font-style: italic;
  display: inline-block;
  margin-left: 0.5rem;
}

/* ── Disabled Button ────────────────────────────────────────── */
.btn-disabled {
  background: #e2e3e5;
  color: #6c757d;
  cursor: not-allowed;
  opacity: 0.65;
  pointer-events: auto;
}

/* ── Entity Tags (Competitors / Publishers) ──────────────────── */
.entity-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  font-size: 0.8rem;
  line-height: 1.4;
  font-weight: 500;
}
.entity-competitor {
  background: #e8f0fe;
  color: #1a56db;
  border: 1px solid #c6d9f7;
}
.entity-publisher {
  background: #fef3e2;
  color: #b45309;
  border: 1px solid #fcd9a0;
}
.entity-actions {
  display: inline-flex;
  gap: 0.15rem;
  margin-left: 0.1rem;
}
.entity-action-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.7rem;
  padding: 0 0.2rem;
  opacity: 0.5;
  color: inherit;
  line-height: 1;
}
.entity-action-btn:hover {
  opacity: 1;
}
.entity-remove:hover {
  color: var(--danger);
}
.entity-source {
  font-size: 0.65rem;
  opacity: 0.5;
  font-style: italic;
}
.entity-tracked {
  background: #e8f0fe;
  color: #1a56db;
  border: 1px solid #c6d9f7;
}
.entity-detected {
  background: #fff8e1;
  color: #b45309;
  border: 1px solid #fcd9a0;
}
.entity-ignored {
  background: #f1f1f1;
  color: var(--text-muted);
  border: 1px solid #ddd;
  opacity: 0.6;
}

/* ── Entity Landscape Page ───────────────────────────────────── */
.entity-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.5rem;
}
.entity-group-checkbox {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.15s;
}
.entity-group-checkbox:hover {
  background: #f0f7ff;
}
.entity-group-checkbox input[type="checkbox"]:checked + .entity-group-label {
  font-weight: 600;
  color: var(--primary);
}
.entity-group-section {
  margin-bottom: 1rem;
}
.entity-group-heading {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid #eee;
}
.entity-review-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.entity-review-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0;
}
.entity-review-check {
  flex-shrink: 0;
}
.entity-review-details {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
}
.form-control-sm {
  padding: 0.25rem 0.4rem;
  font-size: 0.82rem;
}

/* ── Brand Story Monitor ─────────────────────────────────────── */
.brand-story-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.brand-story-header-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.visibility-pill {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}

.pill-good { background: var(--success); }
.pill-moderate { background: #e6a817; }
.pill-poor { background: var(--danger); }

.score-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.score-component {
  text-align: center;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.score-component-value {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.2;
}

.score-component-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.2rem;
}

.score-component-explain {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  line-height: 1.3;
}

.brand-story-summary-block {
  border-left: 3px solid var(--primary);
  padding: 0.75rem 1rem;
  background: #f8faff;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 1rem;
}

.brand-story-summary-block p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.brand-story-lists {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.brand-story-list-section ul,
.brand-story-list-section ol {
  padding-left: 1.2rem;
  font-size: 0.875rem;
  line-height: 1.6;
}

.brand-story-list-section li {
  margin-bottom: 0.3rem;
}

.brand-story-list-heading {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.neg-cat-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.expand-row td {
  padding: 0;
}

.expand-row .response-block {
  margin: 0.5rem;
  max-height: 300px;
}

.text-warning { color: #e6a817; }

/* ── Admin QA Bar ────────────────────────────────────────────── */
.admin-bar {
  background: #1e1e2e;
  color: #cdd6f4;
  font-size: .8rem;
  position: sticky;
  top: 0;
  z-index: 999;
}

.admin-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .4rem 1rem;
  gap: 1rem;
}

.admin-bar-left,
.admin-bar-right {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.admin-badge {
  background: #f38ba8;
  color: #1e1e2e;
  font-size: .65rem;
  font-weight: 700;
  padding: .15rem .5rem;
  border-radius: 4px;
  letter-spacing: .04em;
}

.admin-label {
  font-size: .75rem;
  color: #a6adc8;
}

.admin-select {
  background: #313244;
  color: #cdd6f4;
  border: 1px solid #45475a;
  border-radius: 4px;
  padding: .2rem .4rem;
  font-size: .78rem;
  font-family: inherit;
}

.admin-tenant-form {
  display: flex;
  align-items: center;
  gap: .4rem;
}

.admin-plan-badge {
  font-size: .65rem;
  font-weight: 700;
  padding: .15rem .5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.admin-plan-free { background: #585b70; color: #cdd6f4; }
.admin-plan-starter { background: #89b4fa; color: #1e1e2e; }
.admin-plan-pro { background: #a6e3a1; color: #1e1e2e; }
.admin-plan-enterprise { background: #f9e2af; color: #1e1e2e; }

.admin-toggle-btn {
  background: #313244;
  color: #cdd6f4;
  border: 1px solid #45475a;
  border-radius: 4px;
  padding: .15rem .5rem;
  font-size: .72rem;
  cursor: pointer;
  font-family: inherit;
}

.admin-toggle-btn:hover {
  background: #45475a;
}

/* ── Admin Limits Panel ──────────────────────────────────────── */
.admin-limits-panel {
  display: none;
  background: #181825;
  border-top: 1px solid #313244;
  padding: .6rem 1rem;
}

.admin-limits-panel.show {
  display: block;
}

.admin-limits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: .5rem;
}

.admin-limit-meter {
  background: #1e1e2e;
  border: 1px solid #313244;
  border-radius: 4px;
  padding: .4rem .5rem;
}

.admin-limit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .25rem;
}

.admin-limit-label {
  font-size: .7rem;
  font-weight: 600;
  color: #a6adc8;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.admin-limit-values {
  font-size: .75rem;
  font-weight: 600;
  color: #cdd6f4;
}

.admin-progress-bar {
  height: 4px;
  background: #313244;
  border-radius: 2px;
  overflow: hidden;
}

.admin-progress-fill {
  height: 100%;
  background: #89b4fa;
  border-radius: 2px;
  transition: width .3s;
}

.admin-progress-warn { background: #fab387; }
.admin-progress-full { background: #f38ba8; }
.admin-progress-unlimited { background: #a6e3a1; opacity: .5; }

/* ── Grey-Lock UX ────────────────────────────────────────────── */
.limit-status {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .78rem;
  color: var(--text-muted);
  margin-left: .5rem;
}

.limit-status-ok { color: var(--success); }
.limit-status-warn { color: #e6a817; }
.limit-status-locked { color: var(--danger); }

.limit-lock-msg {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .75rem;
  background: #fff3f3;
  border: 1px solid #f5c2c7;
  border-radius: var(--radius);
  font-size: .82rem;
  color: #842029;
  margin-top: .5rem;
}

.limit-lock-msg a {
  font-weight: 600;
}

.btn-locked {
  background: #e2e3e5 !important;
  color: #6c757d !important;
  cursor: not-allowed !important;
  opacity: 0.65;
  pointer-events: none;
}

.synthesis-indicator {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .78rem;
  padding: .2rem .5rem;
  border-radius: 4px;
  font-weight: 500;
}

.synthesis-allowed {
  background: #d1e7dd;
  color: #0f5132;
}

.synthesis-blocked {
  background: #f8d7da;
  color: #842029;
}

/* ── Auth Pages ──────────────────────────────────────────────── */
.auth-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--bg);
  padding: 2rem;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  padding: 2rem;
  width: 100%;
  max-width: 400px;
}

.auth-brand {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: .25rem;
  color: var(--text);
}

.auth-tagline {
  text-align: center;
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.auth-card .form-group input {
  width: 100%;
  padding: .5rem .75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .875rem;
  font-family: inherit;
  transition: border-color .15s;
}

.auth-card .form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13,110,253,.15);
}

.btn-block {
  display: block;
  width: 100%;
  margin-top: .5rem;
}

.auth-switch {
  text-align: center;
  font-size: .85rem;
  margin-top: 1rem;
  color: var(--text-muted);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .main-content { margin-left: 0; padding: 1rem; }
  .card-grid { grid-template-columns: 1fr 1fr; }
}
