/* ═══════════════════════════════════════════
   KAELFIRE APP — Dashboard Styles
   Matches landing page design language
   ═══════════════════════════════════════════ */

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

:root {
  /* Earthy Color Palette */
  --accent: #2D6A4F;
  --forest: #2D6A4F;
  --forest-dark: #1B4332;
  --accent-hover: #1F4D37;
  --secondary: #52796F;
  --sage: #52796F;
  --text-primary: #33211D;
  --text-secondary: #6B5147;
  --text-muted: #9C8578;
  --bg-warm: #F5F1EB;
  --bg-cream: #FDFBF7;
  --bg-hover: #EFE9E1;
  --danger: #C85A54;
  --success: #6B8E7F;
  --warning: #A0826D;
  --border: rgba(45, 106, 79, 0.08);
  --white: #33211D;
  --brown: #33211D;
  --brown-mid: #6B5147;
  --brown-light: #9C8578;
  --parchment: #F5F1EB;
  --cream: #FDFBF7;
  --card-bg: #FDFBF7;
  --card-bg-hover: #F5F1EB;
  --sidebar-width: 240px;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-warm);
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
}

.space-grotesk { font-family: 'Space Grotesk', sans-serif; }

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.01'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ── Layout ─────────────────────────────────── */
.app-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.sidebar {
  width: var(--sidebar-width);
  background: linear-gradient(180deg, #F5F1EB 0%, #F9F7F4 100%);
  border-right: 1px solid var(--border);
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 10;
}

.sidebar-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  padding: 0 1.5rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-brand .fire {
  color: var(--accent);
}

.sidebar-nav {
  padding: 1rem 0;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  font-size: 0.9rem;
  border-left: 3px solid transparent;
}

.nav-item:hover {
  color: var(--text-secondary);
  background: rgba(45, 106, 79, 0.05);
}

.nav-item.active {
  color: var(--accent);
  background: rgba(45, 106, 79, 0.08);
  border-left-color: var(--accent);
}

.nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.sidebar-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
}

.sidebar-footer a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.15s;
}

.sidebar-footer a:hover {
  color: var(--accent);
}

.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  padding: 2rem 2.5rem;
  min-height: 100vh;
}

/* ── Page Header ────────────────────────────── */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.page-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
}

.page-header h1 .subtle {
  color: var(--text-muted);
  font-weight: 400;
}

/* ── Buttons ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.15s;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-hover), #3D5F5C);
  transform: translateY(-1px);
}

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

.btn-secondary {
  background: rgba(45, 106, 79, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(45, 106, 79, 0.12);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 0.4rem 0.8rem;
}

.btn-ghost:hover {
  color: var(--accent);
  background: rgba(45, 106, 79, 0.05);
}

.btn-danger {
  background: rgba(200, 90, 84, 0.1);
  color: var(--danger);
  border: 1px solid rgba(200, 90, 84, 0.2);
}

.btn-danger:hover {
  background: rgba(200, 90, 84, 0.2);
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
}

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

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.stat-card .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.stat-card .value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

/* ── Cards / Panels ─────────────────────────── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
}

.card-body {
  padding: 1.5rem;
}

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

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

th {
  text-align: left;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}

td {
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255,255,255,0.02);
}

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

/* ── Status Badges ──────────────────────────── */
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.badge-draft { background: rgba(45, 106, 79, 0.08); color: var(--text-secondary); }
.badge-active, .badge-completed, .badge-approved { background: rgba(45, 106, 79, 0.12); color: var(--success); }
.badge-pending { background: rgba(160, 130, 109, 0.12); color: var(--warning); }
.badge-researching { background: rgba(45, 106, 79, 0.12); color: var(--accent); }
.badge-failed { background: rgba(200, 90, 84, 0.12); color: var(--danger); }
.badge-sent { background: rgba(45, 106, 79, 0.12); color: var(--secondary); }
.badge-paused { background: rgba(45, 106, 79, 0.06); color: var(--text-muted); }

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

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem 1rem;
  background: rgba(45, 106, 79, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}

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

.form-group .hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

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

/* ── Modal ──────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 100;
  align-items: center;
  justify-content: center;
}

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

.modal {
  background: var(--bg-cream);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
}

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

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

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

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

.empty-state svg {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  opacity: 0.3;
}

.empty-state h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

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

/* ── Research Brief ─────────────────────────── */
.research-brief {
  background: rgba(45, 106, 79, 0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
  white-space: pre-wrap;
}

.research-brief strong {
  color: var(--text-primary);
}

/* ── Email Preview ──────────────────────────── */
.email-preview {
  background: rgba(45, 106, 79, 0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.email-preview-subject {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.95rem;
}

.email-preview-body {
  padding: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
  white-space: pre-wrap;
}

/* ── Prospect Card ──────────────────────────── */
.prospect-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.15s;
}

.prospect-card:hover {
  background: var(--card-bg-hover);
  border-color: rgba(45, 106, 79, 0.15);
}

.prospect-card .name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.prospect-card .meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

/* ── Inline actions ─────────────────────────── */
.action-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

/* ── Loading spinner ────────────────────────── */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(45, 106, 79, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

/* ── Toast ──────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-size: 0.85rem;
  animation: slideIn 0.3s ease;
  max-width: 400px;
}

.toast-success { background: rgba(107, 142, 127, 0.15); color: var(--success); border: 1px solid rgba(107, 142, 127, 0.3); }
.toast-error { background: rgba(200, 90, 84, 0.15); color: var(--danger); border: 1px solid rgba(200, 90, 84, 0.3); }
.toast-info { background: rgba(45, 106, 79, 0.15); color: var(--accent); border: 1px solid rgba(45, 106, 79, 0.3); }

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

/* ── Back link ──────────────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  margin-bottom: 1rem;
  transition: color 0.15s;
}

.back-link:hover {
  color: var(--accent);
}

/* ── Detail header ──────────────────────────── */
.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.detail-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.detail-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    position: relative;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .sidebar-nav {
    display: flex;
    padding: 0.5rem;
    overflow-x: auto;
  }
  .nav-item {
    border-left: none;
    border-bottom: 2px solid transparent;
    padding: 0.5rem 1rem;
    white-space: nowrap;
  }
  .nav-item.active {
    border-left-color: transparent;
    border-bottom-color: var(--accent);
  }
  .app-layout {
    flex-direction: column;
  }
  .main-content {
    margin-left: 0;
    padding: 1.5rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Upgrade wall: stack on mobile */
  .upgrade-wall {
    padding: 2rem 1rem;
    align-items: flex-start;
  }
  .upgrade-wall-layout {
    flex-direction: column;
    gap: 2rem;
  }
  .upgrade-content-col {
    flex: none;
    width: 100%;
  }
  .upgrade-preview-col {
    width: 100%;
  }
  .dashboard-mockup {
    max-width: 320px;
    min-height: 220px;
    margin: 0 auto;
    transform: none;
  }
  .dmock-sidebar {
    width: 70px;
  }
  .dmock-chrome-dots span {
    width: 6px;
    height: 6px;
  }
}

/* ── Sidebar Account Section ─────────────────── */
.sidebar-footer {
  padding: 1rem 1rem 0.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.back-to-site {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.78rem;
  padding: 0.25rem 0.5rem;
  transition: color 0.15s;
}

.back-to-site:hover { color: var(--accent); }

.account-card {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.6rem 0.625rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  border: 1px solid transparent;
}

.account-card:hover {
  background: rgba(45, 106, 79, 0.06);
  border-color: var(--border);
}

.account-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #52796F);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

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

.account-email {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Subscription status badges in sidebar */
.sub-status {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.2rem;
}

.sub-active {
  background: rgba(45, 106, 79, 0.12);
  color: var(--accent);
}

.sub-trial {
  background: rgba(160, 130, 109, 0.12);
  color: #7A5C45;
}

.sub-expired {
  background: rgba(200, 90, 84, 0.1);
  color: var(--danger);
}

.upgrade-cta-btn {
  display: block;
  background: linear-gradient(135deg, var(--accent), #52796F);
  color: white;
  text-align: center;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.1s;
  letter-spacing: 0.02em;
}

.upgrade-cta-btn:hover { opacity: 0.9; transform: translateY(-1px); }

/* ── Upgrade / Paywall Wall ──────────────────── */
.upgrade-wall {
  min-height: 100vh;
  padding: 3rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #F5F1EB 0%, #FDFBF7 40%, #F5F1EB 100%);
  position: relative;
}

.upgrade-wall::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(45, 106, 79, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(82, 121, 111, 0.05) 0%, transparent 35%);
  pointer-events: none;
}

/* Two-column layout */
.upgrade-wall-layout {
  display: flex;
  gap: 3.5rem;
  align-items: center;
  max-width: 960px;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* Left: dashboard preview column */
.upgrade-preview-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.upgrade-preview-caption {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
  margin: 0;
}

/* Right: content/pricing column */
.upgrade-content-col {
  flex: 0 0 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--text-primary);
}

/* ── Dashboard Mockup ──────────────────────── */
.dashboard-mockup {
  width: 100%;
  max-width: 440px;
  min-height: 340px;
  background: #ffffff;
  border-radius: 14px;
  border: 2px solid rgba(45, 106, 79, 0.35);
  box-shadow:
    0 4px 8px rgba(51, 33, 29, 0.1),
    0 16px 48px rgba(45, 106, 79, 0.2),
    0 0 0 4px rgba(45, 106, 79, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-size: 0.72rem;
  line-height: 1.4;
  user-select: none;
  pointer-events: none;
  transform: perspective(800px) rotateY(-2deg);
  transition: transform 0.3s ease;
}

/* Browser chrome header bar */
.dmock-chrome {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  background: #E8E4DE;
  border-bottom: 1px solid rgba(45, 106, 79, 0.12);
  flex-shrink: 0;
}

.dmock-chrome-dots {
  display: flex;
  gap: 5px;
}

.dmock-chrome-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: block;
}

.dmock-chrome-url {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.8);
  border-radius: 5px;
  padding: 3px 8px;
  font-size: 0.6rem;
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
}

/* Mockup body (sidebar + main side by side) */
.dmock-body {
  display: flex;
  flex: 1;
  min-height: 0;
}

.dmock-sidebar {
  width: 100px;
  background: #F5F1EB;
  border-right: 1px solid rgba(45, 106, 79, 0.15);
  padding: 0.85rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex-shrink: 0;
}

.dmock-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.6rem;
  padding: 0 0.2rem;
}

.dmock-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.45rem;
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 0.68rem;
  transition: background 0.1s;
}

.dmock-active {
  background: rgba(45, 106, 79, 0.08);
  color: var(--accent);
  font-weight: 600;
  border-left: 2px solid var(--accent);
}

.dmock-main {
  flex: 1;
  padding: 0.85rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  overflow: hidden;
}

.dmock-page-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.dmock-stats-row {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}

.dmock-stat-card {
  flex: 1;
  background: #F9F7F4;
  border: 1px solid rgba(45, 106, 79, 0.15);
  border-radius: 7px;
  padding: 0.4rem 0.35rem;
  text-align: center;
}

.dmock-stat-val {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
  line-height: 1.1;
}

.dmock-stat-lbl {
  font-size: 0.58rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.dmock-section-hd {
  font-weight: 700;
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 0.35rem;
  margin-bottom: 0.2rem;
}

.dmock-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(45, 106, 79, 0.06);
}

.dmock-row:last-child { border-bottom: none; }

.dmock-dot-green {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #40916C;
  flex-shrink: 0;
}

.dmock-dot-gray {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c4b5a5;
  flex-shrink: 0;
}

.dmock-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #52796F);
  color: white;
  font-size: 0.55rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dmock-row-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.dmock-row-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.7rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dmock-row-meta {
  font-size: 0.58rem;
  color: var(--text-muted);
}

.dmock-chip-active {
  font-size: 0.58rem;
  background: rgba(64, 145, 108, 0.12);
  color: #2D6A4F;
  border-radius: 10px;
  padding: 0.15rem 0.4rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.dmock-chip-draft {
  font-size: 0.58rem;
  background: rgba(156, 133, 120, 0.12);
  color: var(--text-muted);
  border-radius: 10px;
  padding: 0.15rem 0.4rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.dmock-ready {
  font-size: 0.58rem;
  color: #40916C;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Upgrade wall right column styles ── */
.upgrade-icon {
  width: 72px;
  height: 72px;
  background: rgba(45, 106, 79, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.upgrade-icon svg { width: 36px; height: 36px; }

.upgrade-content-col h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.upgrade-content-col > p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 340px;
}

.upgrade-pricing {
  width: 100%;
  max-width: 340px;
  margin-bottom: 2rem;
}

.upgrade-price-card {
  background: var(--cream);
  border-radius: 16px;
  border: 2px solid rgba(45, 106, 79, 0.2);
  padding: 2rem 1.75rem;
  box-shadow: 0 8px 32px rgba(45, 106, 79, 0.1);
  position: relative;
}

.upgrade-price-card.featured {
  border-color: var(--accent);
}

.price-label {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), #52796F);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.price-amount {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.price-period {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.price-then {
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin-bottom: 1.5rem;
}

.price-features {
  list-style: none;
  margin-bottom: 1.75rem;
  text-align: left;
}

.price-features li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(45, 106, 79, 0.06);
}

.price-features li:last-child { border-bottom: none; }

.price-features svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--accent);
}

.upgrade-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--accent), #52796F);
  color: white;
  padding: 0.9rem 1.75rem;
  border-radius: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  width: 100%;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 16px rgba(45, 106, 79, 0.25);
}

.upgrade-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45, 106, 79, 0.3);
}

.upgrade-footer {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.upgrade-footer a {
  color: var(--accent);
  text-decoration: none;
}

.upgrade-footer a:hover { text-decoration: underline; }
