@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --color-primary:        #6B1D22;
  --color-primary-vivid:  #98202A;
  --color-secondary:      #1E4866;
  --color-accent-blue:    #205880;

  --color-silver:         #C3C6C5;
  --color-grey-light:     #ECECEC;
  --color-grey-mid:       #5A5A5A;
  --color-border:         #E2E2E2;

  --color-bg:             #FFFFFF;
  --color-bg-soft:        #F8F8F8;

  --color-text:           #2A2A2A;
  --color-text-heading:   #1A1A1A;
  --color-text-muted:     #5A5A5A;
  --color-text-inverse:   #FFFFFF;

  --color-success: #1E7A4D;
  --color-warning: #C77A12;
  --color-error:   #98202A;
  --color-info:    #205880;

  --font-brand:   'Cinzel', 'Trajan Pro', Georgia, serif;
  --font-heading: 'Montserrat', 'Poppins', system-ui, sans-serif;
  --font-body:    'Inter', 'Poppins', system-ui, sans-serif;

  --text-h1: 3.05rem;
  --text-h2: 2.44rem;
  --text-h3: 1.95rem;
  --text-h4: 1.56rem;
  --text-lg: 1.25rem;
  --text-base: 1rem;
  --text-sm: 0.8rem;
  --text-xs: 0.75rem;

  --space-1: 4px;  --space-2: 8px;  --space-3: 12px;
  --space-4: 16px; --space-5: 24px; --space-6: 32px;
  --space-8: 48px; --space-10: 64px; --space-12: 96px;

  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(26,26,26,.06);
  --shadow-md: 0 4px 12px rgba(26,26,26,.10);
  --shadow-lg: 0 12px 32px rgba(26,26,26,.14);

  --motion-fast: 120ms;
  --motion-base: 220ms;
  --motion-slow: 320ms;
  --motion-page: 450ms;

  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-emphasis: cubic-bezier(0.2, 0.8, 0.2, 1);

  --brand-red: var(--color-primary-vivid);
  --brand-red-hover: #4A1317;
  --brand-blue: var(--color-secondary);
  --brand-blue-hover: #12304A;
  --dark: var(--color-text-heading);
  --secondary-text: var(--color-text-muted);
  --bg-subtle: var(--color-bg-soft);
  --bg-page: var(--color-bg-soft);
  --surface: var(--color-bg);
  --surface-container: var(--color-bg-soft);
  --surface-container-high: var(--color-border);
  --border: var(--color-border);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--motion-fast) var(--ease-standard);
}

a:hover {
  color: var(--color-primary-vivid);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.main-content {
  min-height: 60vh;
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.3;
  color: var(--color-text-heading);
}

h1 { font-size: var(--text-h1); letter-spacing: -0.5px; text-transform: uppercase; }
h2 { font-size: var(--text-h2); margin-bottom: 0.75rem; letter-spacing: -0.25px; text-transform: uppercase; }
h3 { font-size: var(--text-h3); font-weight: 700; margin-bottom: 0.5rem; }
h4 { font-size: var(--text-h4); font-weight: 700; }

p { margin-bottom: 1rem; }

.text-xs { font-size: var(--text-xs); color: var(--color-text-muted); }
.text-sm { font-size: var(--text-sm); }
.text-muted { color: var(--color-text-muted); }
.text-center { text-align: center; }
.text-right { text-align: right; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-body);
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--motion-base) var(--ease-standard);
  text-decoration: none;
  line-height: 1.4;
  white-space: nowrap;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background: #4A1317;
  border-color: #4A1317;
  color: var(--color-text-inverse);
}

.btn-primary-vivid {
  background: var(--color-primary-vivid);
  color: var(--color-text-inverse);
  border-color: var(--color-primary-vivid);
}

.btn-primary-vivid:hover {
  background: #7a1a22;
  border-color: #7a1a22;
  color: var(--color-text-inverse);
}

.btn-accent {
  background: var(--color-secondary);
  color: var(--color-text-inverse);
  border-color: var(--color-secondary);
}

.btn-accent:hover {
  background: #12304A;
  border-color: #12304A;
  color: var(--color-text-inverse);
}

.btn-outline {
  background: transparent;
  color: var(--color-text-heading);
  border-color: var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-secondary {
  background: var(--color-bg-soft);
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-grey-light);
}

.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-sm { padding: 8px 16px; font-size: 0.8rem; }
.btn-ghost { background: transparent; color: var(--color-text); border-color: var(--color-border); }
.btn-ghost:hover { background: var(--color-bg-soft); color: var(--color-primary); border-color: var(--color-primary); }
.btn-danger { background: var(--color-error); color: var(--color-text-inverse); border-color: var(--color-error); }
.btn-danger:hover { background: #7a1a22; }

/* ============================================================
   BROWSE / DISCOVER PAGES
   ============================================================ */

.filter-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 820px) {
  .filter-layout {
    grid-template-columns: 1fr;
  }
}

.filter-sidebar {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  border: 1px solid var(--color-border);
  position: sticky;
  top: calc(64px + 1.5rem);
}

@media (max-width: 820px) {
  .filter-sidebar {
    position: static;
    display: none;
  }
  .filter-sidebar.open {
    display: block;
  }
}

.filter-sidebar h5 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin: 1.25rem 0 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.filter-sidebar h5:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 4px 0;
  transition: color var(--motion-fast) var(--ease-standard);
}

.filter-group label:hover {
  color: var(--color-primary);
}

.filter-group input[type="radio"],
.filter-group input[type="checkbox"] {
  accent-color: var(--color-primary);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.filter-sidebar .input,
.filter-sidebar select {
  font-size: 0.85rem;
  padding: 0.5rem 0.5rem;
}

.filter-sidebar .btn {
  margin-top: 0.75rem;
}

.filter-toggle-mobile {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--color-text);
  width: 100%;
  margin-bottom: 1rem;
  transition: background var(--motion-fast);
}

.filter-toggle-mobile:hover {
  background: var(--color-bg-soft);
}

.filter-toggle-mobile svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

@media (max-width: 820px) {
  .filter-toggle-mobile {
    display: flex;
  }
}

/* Active filter chips */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 1rem;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(107, 29, 34, 0.08);
  color: var(--color-primary);
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: background var(--motion-fast);
}

.filter-chip:hover {
  background: rgba(107, 29, 34, 0.15);
  color: var(--color-primary);
  text-decoration: none;
}

.filter-chip svg {
  width: 12px;
  height: 12px;
}

.filter-chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(107, 29, 34, 0.15);
  cursor: pointer;
  transition: background var(--motion-fast);
}

.filter-chip-remove:hover {
  background: var(--color-primary);
}

.filter-chip-remove svg {
  width: 8px;
  height: 8px;
  color: var(--color-primary);
}

.filter-chip-remove:hover svg {
  color: white;
}

/* Sort bar */
.sort-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--color-bg-soft);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.sort-bar .result-count {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.sort-bar .result-count strong {
  color: var(--color-text);
  font-weight: 700;
}

.sort-bar .sort-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sort-bar select {
  width: auto;
  padding: 6px 32px 6px 10px;
  font-size: 0.8rem;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235A5A5A' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}

.sort-bar select:focus {
  border-color: var(--color-accent-blue);
  box-shadow: 0 0 0 2px rgba(32, 88, 128, 0.2);
}

@media (max-width: 480px) {
  .sort-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .sort-bar .sort-controls {
    justify-content: space-between;
  }
}

/* Grid layouts for listing cards */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
}

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

@media (max-width: 400px) {
  .listing-grid,
  .browse-grid {
    grid-template-columns: 1fr;
  }
}

/* Card improvements for browse pages */
.browse-card {
  cursor: pointer;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  border: 1px solid var(--color-border);
  transition: all var(--motion-base) var(--ease-standard);
  display: flex;
  flex-direction: column;
}

.browse-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--color-primary);
}

.browse-card:active {
  transform: translateY(0);
}

.browse-card .card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.browse-card .card-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-primary-vivid);
  line-height: 1.2;
}

.browse-card .card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0.25rem 0;
  color: var(--color-text-heading);
  line-height: 1.3;
}

.browse-card .card-meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.browse-card .card-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0.25rem 0 0.5rem;
  line-height: 1.5;
  flex: 1;
}

.browse-card .card-footer {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.browse-card .card-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* Pitch cards (entrepreneurs) */
.pitch-card {
  cursor: pointer;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  border: 1px solid var(--color-border);
  transition: all var(--motion-base) var(--ease-standard);
  display: flex;
  flex-direction: column;
}

.pitch-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--color-secondary);
}

.pitch-card .pitch-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.pitch-card .pitch-amount {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-text-heading);
}

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

.pitch-card .pitch-stage {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-secondary);
  padding: 3px 10px;
  background: rgba(30, 72, 102, 0.1);
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.pitch-card .pitch-summary {
  font-size: 0.88rem;
  color: var(--color-text);
  margin: 0.5rem 0;
  line-height: 1.5;
  flex: 1;
}

/* Franchise cards */
.franchise-card {
  cursor: pointer;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  border: 1px solid var(--color-border);
  transition: all var(--motion-base) var(--ease-standard);
  display: flex;
  flex-direction: column;
}

.franchise-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--color-primary);
}

.franchise-card .franchise-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 0.75rem 0;
  padding: 0.75rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.franchise-card .franchise-stat-label {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 600;
}

.franchise-card .franchise-stat-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text-heading);
}

/* Empty state */
.empty-state-browse {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--color-text-muted);
  grid-column: 1 / -1;
}

.empty-state-browse svg {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  opacity: 0.25;
}

.empty-state-browse h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--color-text-heading);
}

.empty-state-browse p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  max-width: 400px;
  margin: 0 auto 1.5rem;
}

/* Premium / Featured ribbon */
.premium-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #1A1A1A;
  border-radius: var(--radius-pill);
}

/* Title bar for browse pages */
.browse-title-bar {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.browse-title-bar h2 {
  margin: 0;
  text-transform: uppercase;
}

.browse-title-bar .result-pill {
  background: var(--color-bg-soft);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

@media (max-width: 480px) {
  .browse-title-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  padding: 1rem 0;
  color: var(--color-text-muted);
}

.breadcrumbs a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--motion-fast);
}

.breadcrumbs a:hover {
  color: var(--color-primary);
}

.breadcrumbs span {
  color: var(--color-text);
  font-weight: 600;
}

/* ============================================================ */

.input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--motion-fast), box-shadow var(--motion-fast);
  outline: none;
}

.input:focus, textarea:focus, select:focus {
  border-color: var(--color-accent-blue);
  box-shadow: 0 0 0 3px rgba(32, 88, 128, 0.25);
}

/* Password show/hide toggle (injected by components.js) */
.pw-wrap {
  position: relative;
  display: block;
}
.pw-wrap .input {
  padding-right: 44px;
}
.pw-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: color var(--motion-fast);
}
.pw-toggle:hover { color: var(--color-text); }
.pw-toggle:focus-visible {
  outline: 2px solid var(--color-accent-blue);
  outline-offset: 1px;
}

.input-group {
  margin-bottom: 1.25rem;
}

.input-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--color-text-heading);
}

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

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235A5A5A' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  border: 1px solid var(--color-border);
  transition: box-shadow var(--motion-base) var(--ease-standard);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-premium {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all var(--motion-base) var(--ease-standard);
}

.card-premium:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-accent-bar {
  border-left: 4px solid var(--color-primary);
}

.card-accent-bar-navy {
  border-left: 4px solid var(--color-secondary);
}

.business-card {
  cursor: pointer;
}

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

.meta-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: var(--radius-pill);
  font-weight: 600;
}

.badge-premium {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.badge-sale {
  background: rgba(30, 122, 77, 0.1);
  color: var(--color-success);
}

.badge-investment {
  background: rgba(30, 72, 102, 0.1);
  color: var(--color-secondary);
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(199, 122, 18, 0.12);
  color: var(--color-warning);
  border-radius: var(--radius-pill);
}

.tx-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.tx-badge-sale {
  background: rgba(30, 122, 77, 0.1);
  color: var(--color-success);
}

.tx-badge-investment {
  background: rgba(30, 72, 102, 0.1);
  color: var(--color-secondary);
}

.tx-badge-partial {
  background: rgba(199, 122, 18, 0.1);
  color: var(--color-warning);
}

.tx-badge-loan {
  background: rgba(32, 88, 128, 0.1);
  color: var(--color-info);
}

.tx-badge-asset {
  background: rgba(90, 90, 90, 0.1);
  color: var(--color-grey-mid);
}

.tx-badge-franchise {
  background: rgba(107, 29, 34, 0.08);
  color: var(--color-primary);
}

.section-premium {
  padding: 4rem 0;
}

.section-premium-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-premium-header h2 {
  margin-bottom: 0.5rem;
}

.section-premium-header p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-header-action {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.hero-premium {
  padding: 5rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.gradient-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-content-left {
  flex: 1;
  max-width: 540px;
}

.hero-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-success);
  background: rgba(30, 122, 77, 0.08);
  border-radius: var(--radius-pill);
  margin-bottom: 1.5rem;
}

.hero-trust-badge svg {
  width: 16px;
  height: 16px;
}

.hero-premium h1 {
  font-size: var(--text-h1);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.hero-premium .highlight {
  color: var(--color-primary-vivid);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.hero-features {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.check-icon svg {
  width: 18px;
  height: 18px;
  color: var(--color-success);
}

.trust-strip {
  padding: 1.5rem 0;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.trust-strip-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.trust-strip-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

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

.feature-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card-premium {
  display: block;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--color-border);
  transition: all var(--motion-base) var(--ease-standard);
  text-decoration: none;
  color: inherit;
}

.feature-card-premium:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  text-decoration: none;
}

.feature-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-card-premium h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.feature-card-premium p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.feature-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
}

.feature-card-link svg {
  width: 16px;
  height: 16px;
}

.divider-subtle {
  border: none;
  height: 1px;
  background: var(--color-border);
  margin: 0;
}

.stats-premium {
  display: flex;
  justify-content: space-around;
  text-align: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat-premium-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-text-heading);
}

.stat-premium-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

.carousel-premium {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
}

.carousel-premium > * {
  scroll-snap-align: start;
}

.dashboard-mock-premium {
  max-width: 580px;
}

.dashboard-mock-inner {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  display: flex;
}

.dashboard-mock-sidebar {
  width: 120px;
  padding: 1rem;
  background: var(--color-text-heading);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dashboard-mock-sidebar-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.6);
  border-radius: 8px;
  cursor: pointer;
}

.dashboard-mock-sidebar-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.dashboard-mock-sidebar-item.active {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.dashboard-mock-main {
  flex: 1;
  padding: 1rem;
}

.dashboard-mock-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.dashboard-mock-topbar-title {
  font-size: 0.8rem;
  font-weight: 700;
}

.dashboard-mock-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
}

.dashboard-mock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 1rem;
}

.dashboard-mock-card {
  padding: 0.75rem;
  border-radius: var(--radius-md);
  background: var(--color-bg-soft);
}

.dashboard-mock-card-accent {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-vivid));
  color: var(--color-text-inverse);
}

.dashboard-mock-card-accent .dashboard-mock-card-label,
.dashboard-mock-card-accent .dashboard-mock-card-change {
  color: rgba(255,255,255,0.8);
}

.dashboard-mock-card-accent .dashboard-mock-card-value {
  color: #fff;
}

.dashboard-mock-card-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.dashboard-mock-card-value {
  font-size: 1.2rem;
  font-weight: 800;
}

.dashboard-mock-card-change {
  font-size: 0.6rem;
  color: var(--color-text-muted);
}

.dashboard-mock-list-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.dashboard-mock-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 1rem;
}

.dashboard-mock-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--color-bg-soft);
  font-size: 0.7rem;
}

.dashboard-mock-list-item-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dashboard-mock-list-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.dashboard-mock-list-name {
  font-weight: 600;
}

.dashboard-mock-list-price {
  font-weight: 700;
  color: var(--color-success);
  font-size: 0.65rem;
}

.dashboard-mock-footer {
  display: flex;
  justify-content: space-between;
  padding-top: 0.5rem;
  border-top: 1px solid var(--color-border);
}

.dashboard-mock-footer-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.6rem;
  color: var(--color-text-muted);
}

.dashboard {
  display: flex;
  min-height: calc(100vh - 64px);
}

.dashboard .sidebar {
  width: 260px;
  background: var(--color-bg);
  border-right: 1px solid var(--color-border);
  padding: 1.25rem 0.75rem;
  flex-shrink: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.dashboard .main-content {
  flex: 1;
  padding: 1.5rem 2rem;
  max-width: 100%;
  min-width: 0;
}

.sidebar-user {
  padding: 0 0.5rem 1rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.sidebar-user-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-text-heading);
}

.sidebar-user-role {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.sidebar-section-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  padding: 0.75rem 0.75rem 0.35rem;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: all var(--motion-fast);
  position: relative;
}

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

.sidebar-nav-item:hover {
  background: var(--color-bg-soft);
  color: var(--color-text);
  text-decoration: none;
}

.sidebar-nav-item.active {
  background: rgba(107, 29, 34, 0.08);
  color: var(--color-primary);
  font-weight: 600;
}

.sidebar-nav-item.active::before {
  content: '';
  position: absolute;
  left: -0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: var(--color-primary);
  border-radius: 0 3px 3px 0;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
}

.sidebar-notif-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 0.6rem;
  font-weight: 700;
  background: var(--color-primary-vivid);
  color: white;
  border-radius: var(--radius-pill);
  margin-left: auto;
}

/* Dashboard heading area */
.dashboard-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.dashboard-heading h2 {
  margin: 0;
  text-transform: none;
  font-size: 1.5rem;
}

.dashboard-heading .greeting-sub {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  margin-top: 2px;
}

.dashboard-heading .greeting-sub strong {
  color: var(--color-text);
}

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

.stat-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  border: 1px solid var(--color-border);
  transition: all var(--motion-base) var(--ease-standard);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stat-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-card-icon svg {
  width: 22px;
  height: 22px;
}

.stat-card-content {
  flex: 1;
  min-width: 0;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text-heading);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 2px;
  font-weight: 500;
}

/* Smart matches section */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-header h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

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

.match-card {
  cursor: pointer;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  border: 1px solid var(--color-border);
  transition: all var(--motion-base) var(--ease-standard);
  display: flex;
  flex-direction: column;
}

.match-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--color-primary);
}

.match-card .match-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.match-card .match-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-heading);
  margin: 0.25rem 0;
}

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

.match-card .match-details {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.match-card .match-detail {
  display: flex;
  flex-direction: column;
}

.match-card .match-detail-label {
  font-size: 0.65rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.match-card .match-detail-value {
  font-weight: 700;
  color: var(--color-text);
  font-size: 0.85rem;
}

.match-card .match-footer {
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.match-score-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.match-score-track {
  width: 60px;
  height: 6px;
  background: var(--color-border);
  border-radius: 3px;
  overflow: hidden;
}

.match-score-fill {
  height: 100%;
  border-radius: 3px;
  transition: width var(--motion-base);
}

.match-score-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text-muted);
}

/* Activity feed */
.activity-feed {
  margin-top: 2rem;
}

.activity-feed h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.activity-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.15rem;
  transition: background var(--motion-fast);
}

.activity-item:hover {
  background: var(--color-bg-soft);
}

.activity-item + .activity-item {
  border-top: 1px solid var(--color-border);
}

.activity-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.activity-icon svg {
  width: 18px;
  height: 18px;
}

.activity-content {
  flex: 1;
  min-width: 0;
}

.activity-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-heading);
}

.activity-body {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-time {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.activity-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--color-text-muted);
}

.activity-empty svg {
  width: 40px;
  height: 40px;
  margin-bottom: 0.5rem;
  opacity: 0.2;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-text-inverse);
  background: var(--color-primary);
  flex-shrink: 0;
}

.avatar-sm {
  width: 36px;
  height: 36px;
  font-size: 0.75rem;
}

.auth-container {
  max-width: 460px;
  margin: 4rem auto;
  padding: 2.5rem;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

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

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

th {
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
}

td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  text-decoration: none;
  transition: all var(--motion-fast) var(--ease-standard);
}

.page-link:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  text-decoration: none;
  z-index: 1;
}

.page-link.active {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-primary);
  z-index: 1;
}

.page-link.active:hover {
  background: #4A1317;
  color: var(--color-text-inverse);
}

.page-link-nav {
  font-size: 0;
}

.page-link-nav svg {
  width: 16px;
  height: 16px;
}

.page-link-nav.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.page-link-dots {
  border: none;
  background: none;
  cursor: default;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  letter-spacing: 1px;
}

.flash {
  padding: 12px 20px;
  margin: 0 auto;
  max-width: var(--container-xl);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 0;
  text-align: center;
}

.flash-success { background: rgba(30, 122, 77, 0.08); color: var(--color-success); }
.flash-error { background: rgba(152, 32, 42, 0.08); color: var(--color-error); }
.flash-info { background: rgba(32, 88, 128, 0.08); color: var(--color-info); }
.flash-warning { background: rgba(199, 122, 18, 0.08); color: var(--color-warning); }

.admin-tab {
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  border: none;
  background: transparent;
  font-family: inherit;
  transition: all var(--motion-fast);
}

.admin-tab:hover {
  background: var(--color-bg-soft);
}

.admin-tab.active {
  background: var(--color-primary);
  color: white;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,26,26,0.55);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-content {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

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

.notification-bell {
  position: relative;
  cursor: pointer;
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--color-primary-vivid);
  color: var(--color-text-inverse);
  font-size: 0.6rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.diamond-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  transform: rotate(45deg);
  border-radius: 8px;
  position: relative;
}

.diamond-step span {
  transform: rotate(-45deg);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--color-text-inverse);
}

.diamond-step-burgundy {
  background: var(--color-primary);
}

.diamond-step-navy {
  background: var(--color-secondary);
}

.wave-divider {
  display: block;
  width: 100%;
  height: 60px;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  width: 100%;
  height: 100%;
}

.wave-divider-top {
  margin-bottom: -1px;
}

.wave-divider-bottom {
  margin-top: -1px;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--motion-page) var(--ease-out),
              transform var(--motion-page) var(--ease-out);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .dashboard .sidebar { width: 200px; }
  .dashboard-mock-premium { max-width: 420px; }
  .hero-premium h1 { font-size: 2.4rem; }
}

@media (max-width: 960px) {
  .hero-premium > .container > div { flex-direction: column; align-items: center !important; }
  .hero-content-left { max-width: 100%; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-features { align-items: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .dashboard-mock-premium { display: none; }
  .stats-premium { gap: 1.5rem; }
  .stats-premium > * { flex: 1 1 45%; }
  .section-header-action { flex-direction: column; align-items: flex-start !important; }
  .section-header-action .btn { align-self: flex-start; }
}

@media (max-width: 768px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.15rem; }
  .container { padding: 0 1rem; }
  .section-premium { padding: 2.5rem 0; }
  .feature-cards-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .auth-container { margin: 2rem 1rem; padding: 1.5rem; }
  .dashboard { flex-direction: column; }
  .dashboard .sidebar { display: none; }
  .dashboard .main-content { padding: 1rem; width: 100%; }
  .dashboard-stats { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card { padding: 1rem; }
  .stat-value { font-size: 1.35rem; }
  .dashboard-heading h2 { font-size: 1.3rem; }
  .dashboard-heading .greeting-sub { font-size: 0.82rem; }
  .match-grid { grid-template-columns: 1fr; }
  .match-card .match-footer { flex-wrap: wrap; gap: 0.5rem; }
  .hero-premium { padding: 3rem 0 2rem; }
  .hero-premium h1 { font-size: 1.8rem; }
  .hero-trust-badge { font-size: 0.7rem; }
  .testimonial-premium { grid-column: 1 !important; }
  .section-premium-header p { font-size: 0.95rem; }
  .stat-premium-value { font-size: 1.6rem; }
  .admin-tab { font-size: 0.8rem; padding: 8px 14px; }
  .modal-content { margin: 0 1rem; padding: 1.5rem; }
  .carousel-premium { scroll-snap-type: none; }
  .header-inner { padding: 0 1rem; }
  .table-wrap { overflow-x: auto; }
  table { font-size: 0.8rem; }
  td, th { padding: 8px 10px; }
  .stats-premium > * { flex: 1 1 100%; }
  .feature-card-premium { padding: 1.5rem; }
  .wave-divider { height: 30px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .trust-strip-inner { flex-direction: column; gap: 0.75rem; align-items: flex-start; }
  .stat-premium-value { font-size: 1.4rem; }
  .stats-premium { gap: 1rem; }
  .stats-premium > * { flex: 1 1 100%; }
  .btn-lg { padding: 12px 20px; font-size: 0.9rem; }
  .auth-container { padding: 1.25rem; }
  .hero-premium h1 { font-size: 1.5rem; }
  .hero-subtitle { font-size: 0.95rem; }
  .dashboard-stats { grid-template-columns: repeat(2, 1fr); gap: 0.65rem; }
  .stat-card { padding: 0.85rem; gap: 0.6rem; }
  .stat-card-icon { width: 38px; height: 38px; border-radius: 10px; }
  .stat-card-icon svg { width: 19px; height: 19px; }
  .stat-value { font-size: 1.25rem; }
  .stat-label { font-size: 0.72rem; }
  .dashboard-heading h2 { font-size: 1.2rem; }
  .dashboard-heading .btn { width: 100%; }
  .dashboard-heading .btn, .dashboard .section-header .btn { min-height: 40px; }
  .activity-item { padding: 0.75rem 0.85rem; gap: 0.7rem; }
  .activity-icon { width: 32px; height: 32px; font-size: 0.9rem; }
  .dashboard .main-content { padding: 0.75rem; }
  .admin-tab { font-size: 0.75rem; padding: 6px 12px; }
  .admin-tabs-wrap { overflow-x: auto; white-space: nowrap; display: flex; padding-bottom: 4px; }
  .wave-divider { height: 24px; }
}

@media (max-width: 360px) {
  .dashboard-stats { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
}

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

.animate-fade-up {
  animation: fadeUp 0.6s var(--ease-out);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr !important; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer-bottom-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr !important; }
  .footer-bottom-grid { grid-template-columns: 1fr !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .scroll-reveal { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   DASHBOARD REDESIGN — Phase 1 (premium B2B SaaS shell + UI kit)
   Scoped to .dash-* classes; legacy .dashboard/.stat-card untouched.
   ============================================================ */
:root {
  --dash-sidebar-w: 280px;
  --dash-topbar-h: 64px;
  --dash-bg: #F8FAFC;
  --dash-card: #FFFFFF;
  --dash-border: #E5E7EB;
  --dash-ink: #111827;
  --dash-ink-soft: #6B7280;
  --dash-radius-card: 16px;
  --dash-radius-ctl: 12px;
  --dash-shadow: 0 2px 10px rgba(0,0,0,.04);
  --dash-shadow-hover: 0 10px 30px rgba(0,0,0,.08);
  --dash-success: #10B981;
  --dash-warning: #F59E0B;
  --dash-info: #3B82F6;
  --dash-primary: var(--color-primary-vivid);
  --dash-primary-soft: rgba(152,32,42,.08);
}

/* ---- Shell layout ---- */
body:has(.dash-shell) { background: var(--dash-bg); }
.dash-shell { min-height: 100vh; }

.dash-main {
  margin-left: var(--dash-sidebar-w);
  margin-top: var(--dash-topbar-h);
  padding: var(--space-6) var(--space-6) var(--space-10);
  max-width: 1180px;
  font-family: var(--font-body);
  color: var(--dash-ink);
  animation: dashFade .35s var(--ease-out) both;
}
@keyframes dashFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---- Sidebar ---- */
.dash-sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--dash-sidebar-w);
  background: var(--dash-card);
  border-right: 1px solid var(--dash-border);
  display: flex; flex-direction: column;
  z-index: 60;
}
.dash-sidebar-brand {
  height: var(--dash-topbar-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--space-5);
  border-bottom: 1px solid var(--dash-border);
}
.dash-brand-link { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.dash-brand-logo { height: 38px; width: auto; display: block; flex-shrink: 0; }
.dash-brand-word { font-family: var(--font-heading); font-weight: 800; font-size: 1.18rem; letter-spacing: -.01em; line-height: 1; color: var(--color-secondary); white-space: nowrap; }
.dash-brand-word span { color: var(--color-primary-vivid); }
.dash-sidebar-close { display: none; background: none; border: none; color: var(--dash-ink-soft); cursor: pointer; padding: 6px; }
.dash-sidebar-close svg { width: 22px; height: 22px; }

.dash-sidebar-user {
  display: flex; align-items: center; gap: 12px;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--dash-border);
}
.dash-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--dash-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .95rem; flex-shrink: 0;
}
.dash-avatar-sm { width: 32px; height: 32px; font-size: .8rem; }
.dash-sidebar-user-meta { min-width: 0; }
.dash-sidebar-user-name { font-weight: 600; font-size: .9rem; color: var(--dash-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-sidebar-user-role { font-size: .78rem; color: var(--dash-ink-soft); }

.dash-nav { flex: 1; overflow-y: auto; padding: var(--space-3) var(--space-3); display: flex; flex-direction: column; gap: 2px; }
.dash-nav-item {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: var(--dash-radius-ctl);
  color: var(--dash-ink-soft); font-size: .9rem; font-weight: 500;
  text-decoration: none; transition: background var(--motion-fast), color var(--motion-fast);
}
.dash-nav-item:hover { background: #F3F4F6; color: var(--dash-ink); }
.dash-nav-ico { display: inline-flex; flex-shrink: 0; }
.dash-nav-ico svg { width: 20px; height: 20px; }
.dash-nav-label { flex: 1; }
.dash-nav-item.active {
  background: var(--dash-primary-soft); color: var(--dash-primary); font-weight: 600;
}
.dash-nav-item.active::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 3px; border-radius: 0 3px 3px 0; background: var(--dash-primary);
}
.dash-nav-badge {
  margin-left: auto; background: var(--dash-primary); color: #fff;
  font-size: .68rem; font-weight: 700; min-width: 18px; height: 18px;
  border-radius: 9px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center;
}
.dash-sidebar-footer { padding: var(--space-3); border-top: 1px solid var(--dash-border); }
.dash-nav-logout:hover { background: #FEF2F2; color: var(--color-error); }
.dash-sidebar-backdrop { display: none; }

/* ---- Topbar ---- */
.dash-topbar {
  position: fixed; top: 0; right: 0; left: var(--dash-sidebar-w);
  height: var(--dash-topbar-h);
  background: rgba(255,255,255,.85); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--dash-border);
  display: flex; align-items: center; gap: var(--space-4);
  padding: 0 var(--space-6); z-index: 55;
}
.dash-menu-toggle { display: none; background: none; border: none; color: var(--dash-ink); cursor: pointer; padding: 6px; }
.dash-menu-toggle svg { width: 24px; height: 24px; }
.dash-topbar-search {
  flex: 1; max-width: 460px; position: relative;
  display: flex; align-items: center;
}
.dash-search-ico { position: absolute; left: 12px; color: var(--dash-ink-soft); pointer-events: none; display: inline-flex; }
.dash-search-ico svg { width: 18px; height: 18px; }
.dash-topbar-search input {
  width: 100%; height: 40px; padding: 0 14px 0 38px;
  border: 1px solid var(--dash-border); border-radius: var(--dash-radius-ctl);
  background: var(--dash-bg); font-size: .88rem; color: var(--dash-ink);
  font-family: inherit; transition: border-color var(--motion-fast), background var(--motion-fast);
}
.dash-topbar-search input:focus { outline: none; border-color: var(--dash-primary); background: #fff; }
.dash-topbar-actions { display: flex; align-items: center; gap: var(--space-3); margin-left: auto; }
.dash-iconbtn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--dash-radius-ctl);
  color: var(--dash-ink-soft); transition: background var(--motion-fast), color var(--motion-fast);
}
.dash-iconbtn:hover { background: #F3F4F6; color: var(--dash-ink); }
.dash-iconbtn svg { width: 22px; height: 22px; }
.dash-iconbtn-badge {
  position: absolute; top: 4px; right: 4px;
  background: var(--color-error); color: #fff; font-size: .62rem; font-weight: 700;
  min-width: 16px; height: 16px; border-radius: 8px; padding: 0 4px;
  display: inline-flex; align-items: center; justify-content: center;
}
.dash-topbar-user { display: flex; align-items: center; gap: 8px; color: var(--dash-ink); text-decoration: none; padding: 4px 8px 4px 4px; border-radius: var(--dash-radius-ctl); transition: background var(--motion-fast); }
.dash-topbar-user:hover { background: #F3F4F6; }
.dash-topbar-username { font-size: .88rem; font-weight: 600; }

/* ---- Page header ---- */
.dash-pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-6); flex-wrap: wrap; }
.dash-pagehead-title { font-size: 2rem; font-weight: 700; line-height: 1.15; color: var(--dash-ink); font-family: var(--font-heading); }
.dash-pagehead-sub { margin-top: 6px; font-size: .95rem; color: var(--dash-ink-soft); }
.dash-pagehead-sub strong { color: var(--dash-ink); }
.dash-pagehead-actions { display: flex; gap: var(--space-3); }

/* ---- Section header ---- */
.dash-section-head { display: flex; align-items: center; justify-content: space-between; margin: var(--space-8) 0 var(--space-4); }
.dash-section-head:first-child { margin-top: 0; }
.dash-section-title { font-size: 1.25rem; font-weight: 600; color: var(--dash-ink); font-family: var(--font-heading); }
.dash-section-link { display: inline-flex; align-items: center; gap: 4px; font-size: .85rem; font-weight: 600; color: var(--dash-primary); text-decoration: none; }
.dash-section-link svg { width: 15px; height: 15px; transition: transform var(--motion-fast); }
.dash-section-link:hover svg { transform: translateX(3px); }

/* ---- Stat cards ---- */
.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.dash-stat {
  background: var(--dash-card); border: 1px solid var(--dash-border);
  border-radius: var(--dash-radius-card); padding: var(--space-5);
  box-shadow: var(--dash-shadow); transition: box-shadow var(--motion-base), transform var(--motion-base);
}
.dash-stat:hover { box-shadow: var(--dash-shadow-hover); transform: translateY(-2px); }
.dash-stat-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-4); }
.dash-stat-ico { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--dash-primary-soft); color: var(--dash-primary); }
.dash-stat-ico svg { width: 22px; height: 22px; }
.dash-stat.tone-success .dash-stat-ico { background: rgba(16,185,129,.1); color: var(--dash-success); }
.dash-stat.tone-info .dash-stat-ico { background: rgba(59,130,246,.1); color: var(--dash-info); }
.dash-stat.tone-warning .dash-stat-ico { background: rgba(245,158,11,.12); color: var(--dash-warning); }
.dash-stat-delta { font-size: .76rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.dash-stat-delta.up { background: rgba(16,185,129,.1); color: var(--dash-success); }
.dash-stat-delta.down { background: rgba(239,68,68,.1); color: var(--color-error); }
.dash-stat-value { font-size: 2rem; font-weight: 700; line-height: 1; color: var(--dash-ink); }
.dash-stat-label { margin-top: 6px; font-size: .85rem; color: var(--dash-ink-soft); }
.dash-stat-spark { margin-top: var(--space-3); height: 36px; }
.dash-spark { width: 100%; height: 100%; display: block; }

/* ---- Quick actions ---- */
.dash-qa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-4); }
.dash-qa {
  display: flex; align-items: center; gap: var(--space-3);
  background: var(--dash-card); border: 1px solid var(--dash-border);
  border-radius: var(--dash-radius-card); padding: var(--space-4) var(--space-5);
  box-shadow: var(--dash-shadow); text-decoration: none; color: var(--dash-ink);
  transition: box-shadow var(--motion-base), transform var(--motion-base), border-color var(--motion-base);
}
.dash-qa:hover { box-shadow: var(--dash-shadow-hover); transform: translateY(-2px); border-color: var(--dash-primary); }
.dash-qa-ico { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: var(--dash-primary-soft); color: var(--dash-primary); flex-shrink: 0; }
.dash-qa-ico svg { width: 21px; height: 21px; }
.dash-qa.tone-success .dash-qa-ico { background: rgba(16,185,129,.1); color: var(--dash-success); }
.dash-qa.tone-info .dash-qa-ico { background: rgba(59,130,246,.1); color: var(--dash-info); }
.dash-qa.tone-warning .dash-qa-ico { background: rgba(245,158,11,.12); color: var(--dash-warning); }
.dash-qa-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dash-qa-title { font-weight: 600; font-size: .92rem; }
.dash-qa-desc { font-size: .8rem; color: var(--dash-ink-soft); margin-top: 2px; }
.dash-qa-arrow { color: var(--dash-ink-soft); display: inline-flex; }
.dash-qa-arrow svg { width: 18px; height: 18px; transition: transform var(--motion-fast); }
.dash-qa:hover .dash-qa-arrow { color: var(--dash-primary); }
.dash-qa:hover .dash-qa-arrow svg { transform: translateX(3px); }

/* ---- Recommendation / match cards ---- */
.dash-rec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-4); }
.dash-rec {
  background: var(--dash-card); border: 1px solid var(--dash-border);
  border-radius: var(--dash-radius-card); padding: var(--space-5);
  box-shadow: var(--dash-shadow); cursor: pointer; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: var(--space-3);
  transition: box-shadow var(--motion-base), transform var(--motion-base), border-color var(--motion-base);
}
.dash-rec:hover { box-shadow: var(--dash-shadow-hover); transform: translateY(-3px); border-color: var(--dash-primary); }
.dash-rec-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dash-rec-badge { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 4px 10px; border-radius: 999px; }
.dash-rec-badge.sale { background: rgba(245,158,11,.12); color: var(--dash-warning); }
.dash-rec-badge.investment { background: rgba(59,130,246,.1); color: var(--dash-info); }
.dash-rec-loc { font-size: .76rem; color: var(--dash-ink-soft); display: inline-flex; align-items: center; gap: 3px; }
.dash-rec-loc svg { width: 13px; height: 13px; }
.dash-rec-title { font-size: 1.05rem; font-weight: 700; color: var(--dash-ink); }
.dash-rec-meta { font-size: .82rem; color: var(--dash-ink-soft); }
.dash-rec-details { display: flex; gap: var(--space-5); padding: var(--space-3) 0; border-top: 1px solid var(--dash-border); border-bottom: 1px solid var(--dash-border); }
.dash-rec-detail-label { font-size: .72rem; color: var(--dash-ink-soft); text-transform: uppercase; letter-spacing: .03em; }
.dash-rec-detail-value { font-size: .92rem; font-weight: 700; color: var(--dash-ink); margin-top: 2px; }
.dash-rec-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.dash-rec-score { flex: 1; }
.dash-rec-score-top { display: flex; justify-content: space-between; font-size: .72rem; color: var(--dash-ink-soft); margin-bottom: 4px; }
.dash-rec-score-num { font-weight: 700; color: var(--dash-ink); }
.dash-rec-score-track { height: 6px; border-radius: 999px; background: #F1F5F9; overflow: hidden; }
.dash-rec-score-fill { height: 100%; border-radius: 999px; }
.dash-rec-cta { font-size: .82rem; font-weight: 700; color: var(--dash-primary); display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.dash-rec-cta svg { width: 15px; height: 15px; }

/* ---- Two-column content layout ---- */
.dash-cols { display: grid; grid-template-columns: 1fr 360px; gap: var(--space-6); align-items: start; }

/* ---- Activity timeline ---- */
.dash-panel { background: var(--dash-card); border: 1px solid var(--dash-border); border-radius: var(--dash-radius-card); box-shadow: var(--dash-shadow); }
.dash-panel-head { display: flex; align-items: center; justify-content: space-between; padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--dash-border); }
.dash-panel-title { font-size: 1rem; font-weight: 600; color: var(--dash-ink); }
.dash-timeline { padding: var(--space-2) var(--space-5) var(--space-4); }
.dash-tl-item { display: flex; gap: var(--space-3); padding: var(--space-3) 0; position: relative; }
.dash-tl-item:not(:last-child)::before { content: ""; position: absolute; left: 17px; top: 40px; bottom: -6px; width: 2px; background: var(--dash-border); }
.dash-tl-ico { width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--dash-primary-soft); color: var(--dash-primary); z-index: 1; }
.dash-tl-ico svg { width: 18px; height: 18px; }
.dash-tl-ico.tone-success { background: rgba(16,185,129,.1); color: var(--dash-success); }
.dash-tl-ico.tone-info { background: rgba(59,130,246,.1); color: var(--dash-info); }
.dash-tl-ico.tone-warning { background: rgba(245,158,11,.12); color: var(--dash-warning); }
.dash-tl-body { flex: 1; min-width: 0; }
.dash-tl-title { font-size: .88rem; font-weight: 600; color: var(--dash-ink); }
.dash-tl-text { font-size: .82rem; color: var(--dash-ink-soft); margin-top: 2px; }
.dash-tl-time { font-size: .74rem; color: var(--dash-ink-soft); white-space: nowrap; }

/* ---- Pro tip ---- */
.dash-protip { display: flex; gap: var(--space-3); padding: var(--space-5); border-radius: var(--dash-radius-card); background: rgba(59,130,246,.06); border: 1px solid rgba(59,130,246,.18); }
.dash-protip.tone-success { background: rgba(16,185,129,.06); border-color: rgba(16,185,129,.18); }
.dash-protip.tone-warning { background: rgba(245,158,11,.07); border-color: rgba(245,158,11,.2); }
.dash-protip-ico { flex-shrink: 0; color: var(--dash-info); }
.dash-protip.tone-success .dash-protip-ico { color: var(--dash-success); }
.dash-protip.tone-warning .dash-protip-ico { color: var(--dash-warning); }
.dash-protip-ico svg { width: 24px; height: 24px; }
.dash-protip-title { font-weight: 700; font-size: .9rem; color: var(--dash-ink); margin-bottom: 3px; }
.dash-protip-text { font-size: .83rem; color: var(--dash-ink-soft); line-height: 1.55; }

/* ---- Empty state ---- */
.dash-empty { text-align: center; padding: var(--space-8) var(--space-5); }
.dash-empty-ico { display: inline-flex; color: var(--dash-ink-soft); opacity: .5; }
.dash-empty-ico svg { width: 40px; height: 40px; }
.dash-empty-title { margin-top: var(--space-3); font-weight: 600; color: var(--dash-ink); }
.dash-empty-text { margin-top: 6px; font-size: .85rem; color: var(--dash-ink-soft); }
.dash-empty .btn { margin-top: var(--space-4); }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .dash-cols { grid-template-columns: 1fr; }
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .dash-sidebar { transform: translateX(-100%); transition: transform var(--motion-base) var(--ease-out); }
  .dash-sidebar.open { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.2); }
  .dash-sidebar-close { display: inline-flex; }
  .dash-sidebar-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 59; opacity: 0; visibility: hidden; transition: opacity var(--motion-base); }
  .dash-sidebar-backdrop.open { display: block; opacity: 1; visibility: visible; }
  .dash-topbar { left: 0; }
  .dash-main { margin-left: 0; }
  .dash-menu-toggle { display: inline-flex; }
  body.dash-sidebar-open { overflow: hidden; }
}
@media (max-width: 600px) {
  .dash-main { padding: var(--space-4) var(--space-4) var(--space-8); }
  .dash-stats { grid-template-columns: 1fr 1fr; gap: var(--space-3); }
  .dash-pagehead-title { font-size: 1.5rem; }
  .dash-topbar-username { display: none; }
  .dash-stat-value { font-size: 1.6rem; }
}

/* ---- Data tables (role dashboards) ---- */
.dash-panel-pad { padding: var(--space-5); }
.dash-table-wrap { overflow-x: auto; }
.dash-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.dash-table th {
  text-align: left; padding: 12px 18px; font-size: .74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; color: var(--dash-ink-soft);
  background: var(--dash-bg); border-bottom: 1px solid var(--dash-border); white-space: nowrap;
}
.dash-table td { padding: 14px 18px; border-bottom: 1px solid var(--dash-border); color: var(--dash-ink); vertical-align: middle; }
.dash-table tr:last-child td { border-bottom: none; }
.dash-table tbody tr { transition: background var(--motion-fast); }
.dash-table tbody tr:hover { background: var(--dash-bg); }
.dash-table .ta-center { text-align: center; }
.dash-table .ta-right { text-align: right; }
.dash-table .t-strong { font-weight: 600; color: var(--dash-ink); }
.dash-table .t-muted { color: var(--dash-ink-soft); font-size: .82rem; }
.dash-table-actions { display: inline-flex; gap: 6px; justify-content: flex-end; }

/* ---- Status pills ---- */
.dash-pill { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.dash-pill.published { background: rgba(16,185,129,.1); color: var(--dash-success); }
.dash-pill.draft { background: rgba(107,114,128,.12); color: var(--dash-ink-soft); }
.dash-pill.featured { background: rgba(245,158,11,.12); color: var(--dash-warning); }
.dash-pill.open { background: rgba(59,130,246,.1); color: var(--dash-info); }

/* ---- Definition list / detail grid ---- */
.dash-deflist { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-4) var(--space-5); }
.dash-def-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--dash-ink-soft); font-weight: 600; }
.dash-def-value { font-size: .95rem; color: var(--dash-ink); margin-top: 3px; font-weight: 500; }
.dash-prose { font-size: .9rem; color: var(--dash-ink); line-height: 1.65; }

/* small responsive: stack table action buttons */
@media (max-width: 600px) {
  .dash-table th, .dash-table td { padding: 10px 12px; }
}

/* ---- List rows (connections, saved, notifications) ---- */
.dash-list { display: flex; flex-direction: column; }
.dash-listrow { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--dash-border); }
.dash-listrow:last-child { border-bottom: none; }
.dash-listrow-main { flex: 1; min-width: 0; }
.dash-listrow-title { font-weight: 600; font-size: .95rem; color: var(--dash-ink); }
.dash-listrow-sub { font-size: .82rem; color: var(--dash-ink-soft); margin-top: 2px; }
.dash-listrow-actions { display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0; }
.dash-listrow-quote { margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px dashed var(--dash-border); font-size: .85rem; color: var(--dash-ink-soft); font-style: italic; }

/* unread notification accent */
.dash-listrow.unread { background: var(--dash-primary-soft); }
.dash-listrow.unread .dash-listrow-title::after { content: "New"; margin-left: 8px; font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; vertical-align: middle; background: var(--dash-primary); color: #fff; padding: 2px 7px; border-radius: 999px; }

/* ---- Filter bar (admin list pages) ---- */
.dash-filterbar { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: flex-end; background: var(--dash-card); border: 1px solid var(--dash-border); border-radius: var(--dash-radius-card); box-shadow: var(--dash-shadow); padding: var(--space-4) var(--space-5); margin-bottom: var(--space-5); }
.dash-filterbar .input-group { margin-bottom: 0; }
.dash-filterbar .input-group.grow { flex: 1; min-width: 200px; }

/* ---- Form sections (profile / settings forms) ---- */
.dash-form { max-width: 760px; }
.dash-form-section + .dash-form-section { margin-top: var(--space-6); padding-top: var(--space-6); border-top: 1px solid var(--dash-border); }
.dash-form-section-title { font-size: 1rem; font-weight: 700; color: var(--dash-ink); margin-bottom: var(--space-4); font-family: var(--font-heading); }
.dash-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.dash-form-grid .span-2 { grid-column: 1 / -1; }
.dash-form-actions { display: flex; gap: var(--space-3); margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--dash-border); }
@media (max-width: 600px) { .dash-form-grid { grid-template-columns: 1fr; } }

/* ============================================================
   PUBLIC DESIGN KIT — aligns marketing/public pages with the
   dashboard system. Built on the --dash-* tokens. Reuse these
   classes on public pages instead of ad-hoc inline styles.
   ============================================================ */
.pub-page { background: var(--dash-bg); color: var(--dash-ink); font-family: var(--font-body); }
.pub-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.pub-wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

.pub-section { padding: 64px 0; }
.pub-section.tint { background: var(--dash-bg); }
.pub-section.surface { background: var(--dash-card); }
.pub-section.tight { padding: 40px 0; }

/* Section heading block */
.pub-section-head { max-width: 680px; margin: 0 auto var(--space-8); text-align: center; }
.pub-section-head.left { margin-left: 0; text-align: left; }
.pub-eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--dash-primary); margin-bottom: 10px; }
.pub-h1 { font-family: var(--font-heading); font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.12; letter-spacing: -.02em; color: var(--dash-ink); }
.pub-h2 { font-family: var(--font-heading); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.18; letter-spacing: -.01em; color: var(--dash-ink); }
.pub-h3 { font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem; color: var(--dash-ink); }
.pub-lead { font-size: 1.05rem; line-height: 1.7; color: var(--dash-ink-soft); margin-top: 12px; }
.pub-text { font-size: .95rem; line-height: 1.7; color: var(--dash-ink-soft); }

/* Grids */
.pub-grid { display: grid; gap: var(--space-5); }
.pub-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.pub-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.pub-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .pub-grid.cols-3, .pub-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .pub-grid.cols-2, .pub-grid.cols-3, .pub-grid.cols-4 { grid-template-columns: 1fr; } }

/* Card */
.pub-card { background: var(--dash-card); border: 1px solid var(--dash-border); border-radius: var(--dash-radius-card); box-shadow: var(--dash-shadow); padding: var(--space-5); transition: box-shadow var(--motion-base), transform var(--motion-base), border-color var(--motion-base); }
.pub-card.hover:hover, a.pub-card:hover { box-shadow: var(--dash-shadow-hover); transform: translateY(-3px); border-color: var(--dash-primary); }
a.pub-card { display: block; text-decoration: none; color: inherit; cursor: pointer; }
.pub-card-title { font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; color: var(--dash-ink); }
.pub-card-text { font-size: .9rem; line-height: 1.6; color: var(--dash-ink-soft); margin-top: 8px; }

/* Feature (icon + title + text, centered) */
.pub-feature { text-align: center; padding: var(--space-4); }
.pub-feature-ico { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 16px; background: var(--dash-primary-soft); color: var(--dash-primary); margin-bottom: var(--space-3); }
.pub-feature-ico svg { width: 26px; height: 26px; }
.pub-feature-ico .material-symbols-outlined { font-size: 28px; }
.pub-feature-title { font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; color: var(--dash-ink); margin-bottom: 6px; }
.pub-feature-text { font-size: .9rem; line-height: 1.6; color: var(--dash-ink-soft); }

/* Badges / pills (reuse dash-pill too) */
.pub-badge { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 4px 10px; border-radius: 999px; background: var(--dash-primary-soft); color: var(--dash-primary); }
.pub-badge.success { background: rgba(16,185,129,.1); color: var(--dash-success); }
.pub-badge.info { background: rgba(59,130,246,.1); color: var(--dash-info); }
.pub-badge.warning { background: rgba(245,158,11,.12); color: var(--dash-warning); }
.pub-badge.neutral { background: #F3F4F6; color: var(--dash-ink-soft); }

/* Listing card (browse + featured listings) */
.pub-listing { background: var(--dash-card); border: 1px solid var(--dash-border); border-radius: var(--dash-radius-card); box-shadow: var(--dash-shadow); padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); text-decoration: none; color: inherit; transition: box-shadow var(--motion-base), transform var(--motion-base), border-color var(--motion-base); }
.pub-listing:hover { box-shadow: var(--dash-shadow-hover); transform: translateY(-3px); border-color: var(--dash-primary); }
.pub-listing-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pub-listing-title { font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; color: var(--dash-ink); }
.pub-listing-meta { font-size: .82rem; color: var(--dash-ink-soft); }
.pub-listing-stats { display: flex; gap: var(--space-5); padding: var(--space-3) 0; border-top: 1px solid var(--dash-border); margin-top: auto; }
.pub-stat-label { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--dash-ink-soft); }
.pub-stat-value { font-size: .95rem; font-weight: 700; color: var(--dash-ink); margin-top: 2px; }

/* Stat strip (counts) */
.pub-statstrip { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-8); }
.pub-statstrip-item { text-align: center; }
.pub-statstrip-num { font-family: var(--font-heading); font-weight: 800; font-size: 2rem; color: var(--dash-primary); line-height: 1; }
.pub-statstrip-label { font-size: .85rem; color: var(--dash-ink-soft); margin-top: 6px; }

/* CTA band */
.pub-cta { border-radius: 20px; padding: 56px 32px; text-align: center; background: linear-gradient(135deg, var(--color-primary) 0%, #4A1317 100%); color: #fff; }
.pub-cta h2 { font-family: var(--font-heading); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 12px; color: #fff; }
.pub-cta p { font-size: 1rem; opacity: .85; margin-bottom: var(--space-5); }
.pub-cta-actions { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; }

/* Auth card */
.pub-auth { max-width: 460px; margin: 64px auto; padding: 0 24px; }
.pub-auth-card { background: var(--dash-card); border: 1px solid var(--dash-border); border-radius: var(--dash-radius-card); box-shadow: var(--dash-shadow-hover); padding: var(--space-8); }
.pub-auth-head { margin-bottom: var(--space-6); }
.pub-auth-head h1 { font-family: var(--font-heading); font-weight: 700; font-size: 1.6rem; color: var(--dash-ink); margin-bottom: 6px; }
.pub-auth-head p { font-size: .92rem; color: var(--dash-ink-soft); }
.pub-auth-alt { margin-top: var(--space-5); text-align: center; font-size: .9rem; color: var(--dash-ink-soft); }
.pub-auth-alt a { color: var(--dash-primary); font-weight: 600; }

/* Prose (legal, blog body, info) */
.pub-prose { max-width: 760px; font-size: 1rem; line-height: 1.8; color: var(--dash-ink); }
.pub-prose h2 { font-family: var(--font-heading); font-weight: 700; font-size: 1.4rem; color: var(--dash-ink); margin: var(--space-6) 0 var(--space-3); }
.pub-prose h3 { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; color: var(--dash-ink); margin: var(--space-5) 0 var(--space-2); }
.pub-prose p { margin-bottom: var(--space-4); color: var(--dash-ink-soft); }
.pub-prose ul, .pub-prose ol { margin: 0 0 var(--space-4) var(--space-5); color: var(--dash-ink-soft); }
.pub-prose li { margin-bottom: 6px; }
.pub-prose a { color: var(--dash-primary); font-weight: 500; }

/* FAQ / accordion */
.pub-faq { background: var(--dash-card); border: 1px solid var(--dash-border); border-radius: var(--dash-radius-ctl); margin-bottom: var(--space-3); overflow: hidden; }
.pub-faq-q { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-5); cursor: pointer; font-weight: 600; font-size: 1rem; color: var(--dash-ink); }
.pub-faq-icon { color: var(--dash-ink-soft); font-size: 1.25rem; transition: transform var(--motion-fast); flex-shrink: 0; }
.pub-faq.open .pub-faq-icon { transform: rotate(45deg); }
.pub-faq-a { padding: 0 var(--space-5) var(--space-4); font-size: .92rem; line-height: 1.7; color: var(--dash-ink-soft); }

/* Page hero band (info/listing pages, not the home video hero) */
.pub-hero { background: linear-gradient(180deg, var(--dash-card) 0%, var(--dash-bg) 100%); border-bottom: 1px solid var(--dash-border); padding: 56px 0; }
.pub-hero .pub-h1 { margin-bottom: 10px; }
