/* ========================================
   Vibexit - Modern M&A Platform Styles
   ======================================== */

:root {
  /* Colors - keeping the original palette */
  --bg: #ffffff;
  --ink: #1a1a1a;
  --muted: #60646c;
  --line: #ececf2;
  --hot: #d22630;
  --warm: #ff7a18;
  --soft: #fff2ea;

  /* Enhanced shadows */
  --shadow: 0 24px 64px rgba(17, 24, 39, 0.10);
  --shadow2: 0 12px 32px rgba(17, 24, 39, 0.08);
  --shadow-sm: 0 4px 12px rgba(17, 24, 39, 0.06);

  /* Radius - larger for modern feel */
  --r: 24px;
  --r-sm: 16px;
  --r-xs: 12px;

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;
}

/* ========================================
   Base & Reset
   ======================================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* ========================================
   Typography - Big, Powerful, Simple
   ======================================== */
h1, h2, h3, h4 {
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0;
}

.hero-title {
  font-size: clamp(48px, 8vw, 80px);
  line-height: 1.0;
  letter-spacing: -0.04em;
}

.page-title {
  font-size: clamp(36px, 6vw, 56px);
  letter-spacing: -0.03em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--hot), var(--warm));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead, .page-lead {
  font-size: clamp(18px, 2.5vw, 22px);
  line-height: 1.5;
  color: var(--muted);
  max-width: 600px;
  margin: var(--space-md) 0;
}

/* ========================================
   Layout
   ======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container.narrow {
  max-width: 800px;
}

.content-narrow {
  max-width: 560px;
  margin: 0 auto;
}

.main-content {
  min-height: calc(100vh - 200px);
  padding: var(--space-lg) 0;
}

/* Page wrapper to fix footer positioning */
.page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-wrap .main-content {
  flex: 1;
}

.page-wrap .footer-simple {
  margin-top: auto;
}

/* ========================================
   Topbar & Navigation
   ======================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  max-width: 1200px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand:hover { text-decoration: none; }

.logo {
  width: 42px;
  height: 42px;
  border-radius: var(--r-xs);
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
  font-size: 14px;
  background: linear-gradient(135deg, var(--hot), var(--warm));
  box-shadow: var(--shadow-sm);
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
}

.logo.small {
  width: 36px;
  height: 36px;
  font-size: 12px;
}

.brand-name {
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.brand-tag {
  font-size: 12px;
  color: var(--muted);
}

.topbar-nav {
  display: flex;
  gap: 8px;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 8px 16px;
  border-radius: 999px;
  transition: all 0.15s;
}

.nav-link:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--ink);
  text-decoration: none;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 768px) {
  .topbar-nav { display: none; }
  .topbar-actions .btn { display: none; }
  .mobile-menu-btn { display: block; }

  .topbar.mobile-open .topbar-nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: white;
    border-bottom: 1px solid var(--line);
    padding: var(--space-sm);
  }
}

/* ========================================
   Dropdown Menu
   ======================================== */
.dropdown {
  position: relative;
}

.dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px 6px 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.dropdown-trigger:hover {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.15);
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--hot), var(--warm));
  color: white;
  font-weight: 700;
  font-size: 12px;
  display: grid;
  place-items: center;
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
}

.dropdown-caret {
  color: var(--muted);
  transition: transform 0.15s;
}

.dropdown.open .dropdown-caret {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.15s;
  z-index: 200;
}

.dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-item {
  display: block;
  padding: 12px 16px;
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
  transition: background 0.1s;
}

.dropdown-item:hover {
  background: rgba(0, 0, 0, 0.04);
  text-decoration: none;
}

.dropdown-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 4px 0;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  background: linear-gradient(135deg, var(--hot), var(--warm));
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow2);
  text-decoration: none;
}

.btn:active {
  transform: translateY(0);
}

.btn.ghost {
  background: transparent;
  border: 2px solid rgba(210, 38, 48, 0.2);
  color: var(--ink);
  box-shadow: none;
}

.btn.ghost:hover {
  background: rgba(210, 38, 48, 0.05);
  border-color: rgba(210, 38, 48, 0.35);
}

.btn.big {
  padding: 16px 28px;
  font-size: 17px;
  border-radius: var(--r);
}

.btn.small {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: var(--r-xs);
}

.btn.full {
  width: 100%;
}

.btn.primary { /* Default already primary */ }

/* ========================================
   Cards
   ======================================== */
.card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: var(--space-lg);
  backdrop-filter: blur(12px);
}

.card h2, .card h3 {
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  margin: 0 0 var(--space-sm);
  letter-spacing: -0.02em;
}

/* ========================================
   Hero Section (Home Page)
   ======================================== */
.home-page .hero {
  min-height: 75vh;
  display: flex;
  align-items: center;
  padding: var(--space-xl) 0;
  background:
    radial-gradient(900px 400px at 15% -10%, rgba(210,38,48,0.08), transparent 65%),
    radial-gradient(900px 420px at 85% 0%, rgba(255,122,24,0.10), transparent 60%),
    radial-gradient(600px 360px at 50% 110%, rgba(255,122,24,0.06), transparent 60%);
}

.hero-content {
  max-width: 800px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: var(--space-lg);
}

/* ========================================
   Features Section
   ======================================== */
.features {
  padding: var(--space-xl) 0;
  background: #fafafa;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

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

.feature-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--space-lg);
}

.feature-num {
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-size: 48px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--hot), var(--warm));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.feature-card h3 {
  font-size: 24px;
  margin-bottom: var(--space-xs);
}

.feature-card p {
  color: var(--muted);
  margin: 0;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
  padding: var(--space-xl) 0;
}

.cta-card {
  background: linear-gradient(135deg, var(--hot), var(--warm));
  border-radius: var(--r);
  padding: var(--space-xl);
  text-align: center;
  color: white;
}

.cta-card h2 {
  color: white;
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: var(--space-sm);
}

.cta-card p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: var(--space-lg);
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-card .btn {
  background: white;
  color: var(--hot);
}

.cta-card .btn.ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: white;
}

/* ========================================
   Page Headers (Redesigned)
   ======================================== */
.page-header {
  text-align: center;
  padding: var(--space-xl) var(--space-md) var(--space-lg);
  background:
    radial-gradient(ellipse 80% 50% at 50% -30%, rgba(210, 38, 48, 0.06), transparent),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(255, 122, 24, 0.04), transparent);
}

.page-header h1,
.page-header .page-title {
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}

.page-header .page-lead {
  font-size: 16px;
  color: var(--muted);
  margin: 0;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.page-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
}

.page-header-flex h1,
.page-header-flex .page-title {
  margin-left: 0;
  margin-right: 0;
}

.page-header-flex .page-lead {
  margin-left: 0;
  margin-right: 0;
}

@media (max-width: 600px) {
  .page-header-flex {
    flex-direction: column;
    text-align: center;
  }
  .page-header-flex .page-lead {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ========================================
   Listings
   ======================================== */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-md);
}

.listing-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  transition: all 0.15s;
}

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

.listing-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: var(--space-sm);
}

.listing-name {
  font-size: 20px;
  margin: 0;
}

.listing-category {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 122, 24, 0.1);
  color: var(--warm);
  white-space: nowrap;
}

.listing-summary {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 var(--space-sm);
  flex-grow: 1;
}

.listing-metrics {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}

.metric {
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.metric-value {
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.metric.highlight .metric-value {
  color: var(--hot);
}

.listing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--line);
}

.listing-link {
  font-size: 13px;
  font-weight: 600;
}

/* ========================================
   Forms
   ======================================== */
.form-container {
  max-width: 700px;
  margin: 0 auto;
}

.form-section {
  margin-bottom: var(--space-lg);
}

.form-section-title {
  font-size: 18px;
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--line);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.form-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 600px) {
  .form-grid, .form-grid.three {
    grid-template-columns: 1fr;
  }
}

.form-group {
  margin-bottom: var(--space-sm);
}

.form-group.full {
  grid-column: 1 / -1;
}

label {
  display: block;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 6px;
}

input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--r-xs);
  border: 1px solid var(--line);
  background: white;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: all 0.15s;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--hot);
  box-shadow: 0 0 0 4px rgba(210, 38, 48, 0.08);
}

input[readonly] {
  background: #f5f5f5;
  color: var(--muted);
}

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

.form-actions {
  text-align: center;
  padding-top: var(--space-md);
}

.form-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: var(--space-sm);
}

/* ========================================
   Auth Pages
   ======================================== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  background:
    radial-gradient(600px 400px at 30% 20%, rgba(210,38,48,0.06), transparent 65%),
    radial-gradient(600px 400px at 70% 80%, rgba(255,122,24,0.06), transparent 65%);
}

.auth-container {
  width: 100%;
  max-width: 400px;
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  text-decoration: none;
}

.auth-logo .logo-img {
  height: 56px;
}

.auth-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--space-lg);
  box-shadow: var(--shadow);
}

.auth-title {
  font-size: 28px;
  text-align: center;
  margin-bottom: var(--space-xs);
}

.auth-subtitle {
  text-align: center;
  color: var(--muted);
  margin-bottom: var(--space-md);
}

.auth-form {
  margin-top: var(--space-md);
}

.auth-form .form-group {
  margin-bottom: var(--space-md);
}

.code-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  font-size: 24px;
  text-align: center;
  letter-spacing: 8px;
  padding: 16px;
}

.auth-footer {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: var(--space-md);
}

.auth-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: var(--space-md);
  font-size: 14px;
}

.auth-link {
  color: var(--hot);
}

.auth-sep {
  color: var(--line);
}

.auth-back {
  display: block;
  text-align: center;
  margin-top: var(--space-md);
  color: var(--muted);
  font-size: 14px;
}

/* ========================================
   Flash Messages
   ======================================== */
.flash {
  padding: 14px 18px;
  border-radius: var(--r-sm);
  margin-bottom: var(--space-md);
  font-size: 14px;
  font-weight: 500;
}

.flash.success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #166534;
}

.flash.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #991b1b;
}

.flash.info {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #1e40af;
}

/* ========================================
   Empty States
   ======================================== */
.empty-state {
  text-align: center;
  padding: var(--space-xl);
  background: #fafafa;
  border-radius: var(--r);
}

.empty-state h3 {
  font-size: 24px;
  margin-bottom: var(--space-xs);
}

.empty-state p {
  color: var(--muted);
  margin-bottom: var(--space-md);
}

.empty-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* ========================================
   Success Card
   ======================================== */
.success-card {
  text-align: center;
  padding: var(--space-xl);
  background: rgba(34, 197, 94, 0.05);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--r);
}

.success-card h3 {
  color: #166534;
  margin-bottom: var(--space-sm);
}

.success-card p {
  color: var(--muted);
  margin-bottom: var(--space-md);
}

/* ========================================
   Deals List (Profile)
   ======================================== */
.deals-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.deal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md);
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: all 0.15s;
}

.deal-row:hover {
  box-shadow: var(--shadow-sm);
}

.deal-name {
  font-size: 18px;
  margin: 0 0 8px;
}

.deal-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.deal-role {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.deal-role.seller {
  background: rgba(210, 38, 48, 0.1);
  color: var(--hot);
}

.deal-role.buyer {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
}

.deal-status {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.05);
}

.deal-price {
  font-weight: 700;
  color: var(--ink);
}

.deal-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.deal-date {
  font-size: 13px;
  color: var(--muted);
}

/* ========================================
   Listings Table (Profile)
   ======================================== */
.listings-table {
  overflow-x: auto;
}

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

.listings-table th,
.listings-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.listings-table th {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: #fafafa;
}

.listings-table tr:hover td {
  background: rgba(255, 122, 24, 0.03);
}

.status-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.status-badge.status-published {
  background: rgba(34, 197, 94, 0.1);
  color: #166534;
}

.status-badge.status-draft {
  background: rgba(0, 0, 0, 0.05);
  color: var(--muted);
}

.status-badge.status-archived {
  background: rgba(239, 68, 68, 0.1);
  color: #991b1b;
}

/* ========================================
   Legal Pages (Terms, Privacy)
   ======================================== */
.legal-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.legal-page .main-content {
  flex: 1;
}

.legal-header {
  text-align: center;
  padding: var(--space-xl) var(--space-md) var(--space-lg);
  background:
    radial-gradient(ellipse 80% 50% at 50% -30%, rgba(210, 38, 48, 0.06), transparent),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(255, 122, 24, 0.04), transparent);
}

.legal-header h1 {
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-size: clamp(36px, 6vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}

.legal-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.legal-meta::before {
  content: "";
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line));
}

.legal-meta::after {
  content: "";
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

.legal-content {
  max-width: 700px;
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md) var(--space-xl);
}

.legal-content h2 {
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: var(--space-lg) 0 var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--line);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin: var(--space-md) 0 var(--space-xs);
  color: var(--ink);
}

.legal-content p {
  margin: 0 0 var(--space-sm);
  color: var(--muted);
  line-height: 1.7;
}

.legal-content ul, .legal-content ol {
  margin: 0 0 var(--space-sm);
  padding-left: var(--space-md);
  color: var(--muted);
}

.legal-content li {
  margin-bottom: var(--space-xs);
  line-height: 1.7;
}

.legal-content a {
  color: var(--hot);
  text-decoration: none;
  border-bottom: 1px solid rgba(210, 38, 48, 0.2);
  transition: border-color 0.15s;
}

.legal-content a:hover {
  border-color: var(--hot);
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: #fafafa;
  border-top: 1px solid var(--line);
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-name {
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-weight: 800;
  font-size: 16px;
}

.footer-tag {
  font-size: 12px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-bottom {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer-disclaimer {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 var(--space-xs);
}

.footer-copy {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

/* ========================================
   Notice & Code
   ======================================== */
.notice {
  padding: 14px 18px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255, 122, 24, 0.25);
  background: rgba(255, 122, 24, 0.07);
  color: #3a2a1d;
  font-size: 14px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--line);
}

/* ========================================
   Deal Room (Legacy Support)
   ======================================== */
.pipeline { display:flex; gap:12px; flex-wrap:wrap; margin-top:12px; }
.stage { display:flex; align-items:center; gap:8px; padding:8px 10px; border:1px solid rgba(255,90,0,.18); border-radius:999px; background:rgba(255,90,0,.04); }
.stage .dot { width:10px; height:10px; border-radius:999px; background:rgba(255,90,0,.25); }
.stage.on { border-color: rgba(220,30,30,.35); background: linear-gradient(180deg, rgba(255,90,0,.10), rgba(220,30,30,.06)); }
.stage.on .dot { background: linear-gradient(135deg, #ff6a00, #d81f1f); }

.pipeline-actions { margin-top:14px; display:flex; flex-direction:column; gap:8px; }
.pipeline-actions select { padding:10px 12px; border-radius:12px; border:1px solid rgba(0,0,0,.14); background:#fff; }

.table { width:100%; border-collapse:separate; border-spacing:0; }
.table th, .table td { text-align:left; padding:12px 10px; border-bottom:1px solid rgba(0,0,0,.08); vertical-align:top; }
.table th { font-size:12px; text-transform:uppercase; letter-spacing:.08em; color:rgba(0,0,0,.55); }
.table tr:hover td { background:rgba(255,90,0,.03); }

.chk { width:44px; height:38px; border-radius:12px; border:1px solid rgba(0,0,0,.14); background:#fff; cursor:pointer; font-weight:800; }
.chk.on { border-color: rgba(220,30,30,.35); background: linear-gradient(135deg, rgba(255,106,0,.16), rgba(216,31,31,.12)); }
.chk:disabled { opacity:.45; cursor:not-allowed; }

.chat { max-height:280px; overflow:auto; padding-right:8px; }
.msg { padding:10px 12px; border:1px solid rgba(0,0,0,.08); border-radius:14px; margin-bottom:10px; background:#fff; }
.msg .meta { margin-bottom:6px; font-size:12px; }

.doc-actions { display:flex; gap:10px; flex-wrap:wrap; margin-top:10px; }
.doc-list { margin-top:14px; display:flex; flex-direction:column; gap:10px; }
.doc-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 12px; border:1px solid rgba(0,0,0,.08); border-radius:14px; background:#fff; }
.doc-title { font-weight:800; }

.codebox { margin-top:14px; padding:14px; border-radius:16px; border:1px dashed rgba(220,30,30,.35); background:rgba(255,90,0,.05); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }

/* Legacy classes for backward compatibility */
.h1 { font-family:"Space Grotesk", Inter, system-ui, sans-serif; font-size:48px; line-height:1.04; margin:0 0 12px; letter-spacing:-0.04em; }
.lede { font-size:16px; color:var(--muted); max-width:62ch; margin:0 0 18px; }
.sectionTitle { font-family:"Space Grotesk", Inter, system-ui, sans-serif; font-size:26px; letter-spacing:-0.03em; margin:0 0 10px; }
.grid2 { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin:18px 0; }
@media (max-width:920px) { .grid2 { grid-template-columns:1fr; } }
.formGrid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
@media (max-width:720px) { .formGrid { grid-template-columns:1fr; } }
.btnGhost { background:transparent; border:1px solid rgba(210,38,48,0.25); color:var(--ink); box-shadow:none; }
.btnGhost:hover { background:rgba(210,38,48,0.05); }

/* ========================================
   Minimal Home Page
   ======================================== */
.topbar.minimal {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom: none;
  backdrop-filter: none;
}

.topbar.minimal .topbar-inner {
  padding: 24px;
}

.menu-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--ink);
}

.menu-trigger:hover {
  background: #fafafa;
  box-shadow: var(--shadow-sm);
}

.menu-trigger .avatar {
  width: 36px;
  height: 36px;
}

.hero-full {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(210,38,48,0.08), transparent),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(255,122,24,0.06), transparent);
}

.hero-full h1 {
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-size: clamp(56px, 12vw, 120px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0 0 24px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--hot) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-full p {
  font-size: clamp(18px, 3vw, 24px);
  color: var(--muted);
  margin: 0 0 48px;
  letter-spacing: -0.01em;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-mini {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.footer-mini a {
  color: var(--muted);
  text-decoration: none;
}

.footer-mini a:hover {
  color: var(--ink);
}

.footer-mini .sep {
  margin: 0 8px;
  opacity: 0.4;
}

/* ========================================
   Simple Footer (for inner pages)
   ======================================== */
.footer-simple {
  background: #fafafa;
  border-top: 1px solid var(--line);
  padding: 24px 0;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--ink);
}

/* ========================================
   LOGO IMAGE
   ======================================== */
.logo-img {
  height: 48px;
  width: auto;
  display: block;
}

.logo-img.small {
  height: 36px;
}

.logo-img.big {
  height: 64px;
}

@media (max-width: 600px) {
  .logo-img {
    height: 40px;
  }
  .logo-img.small {
    height: 32px;
  }
  .logo-img.big {
    height: 48px;
  }
}

/* ========================================
   FLOATING NAVIGATION
   ======================================== */
.nav-float {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 48px);
  max-width: 1200px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px 12px 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.nav-logo .logo-img {
  height: 44px;
}

@media (max-width: 600px) {
  .nav-logo .logo-img {
    height: 36px;
  }
}

/* ========================================
   HERO SECTION (Modern Consultant Style)
   ======================================== */
.home-page {
  background: #fafafa;
}

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 160px 24px 120px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 80% at 20% -20%, rgba(210, 38, 48, 0.12), transparent 60%),
    radial-gradient(ellipse 80% 60% at 80% 120%, rgba(255, 122, 24, 0.10), transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 1) 0%, rgba(250, 250, 250, 1) 100%);
  z-index: 0;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 900px;
}

.hero-eyebrow {
  display: inline-block;
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--hot);
  background: rgba(210, 38, 48, 0.1);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero-heading {
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-size: clamp(44px, 9vw, 88px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin: 0 0 32px;
}

.hero-line {
  display: block;
}

.hero-line.gradient {
  background: linear-gradient(135deg, var(--hot) 0%, var(--warm) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: clamp(18px, 2.5vw, 24px);
  line-height: 1.5;
  color: var(--muted);
  max-width: 600px;
  margin: 0 0 48px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 36px;
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 14px;
  transition: all 0.2s;
}

.btn-hero.primary {
  background: linear-gradient(135deg, var(--hot) 0%, var(--warm) 100%);
  color: white;
  box-shadow: 0 8px 32px rgba(210, 38, 48, 0.3);
}

.btn-hero.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(210, 38, 48, 0.4);
}

.btn-hero.secondary {
  background: white;
  color: var(--ink);
  border: 2px solid var(--line);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.btn-hero.secondary:hover {
  border-color: var(--hot);
  color: var(--hot);
}

/* ========================================
   PROCESS SECTION
   ======================================== */
.process-section {
  padding: 120px 24px;
  background: white;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 80px;
}

.section-label {
  display: inline-block;
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--hot);
  margin-bottom: 16px;
}

.section-heading {
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}

.section-desc {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .process-grid { grid-template-columns: 1fr; }
}

.process-card {
  padding: 40px;
  background: #fafafa;
  border-radius: 20px;
  border: 1px solid var(--line);
  transition: all 0.2s;
}

.process-card:hover {
  background: white;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.process-number {
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-size: 56px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--hot) 0%, var(--warm) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 20px;
}

.process-card h3 {
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 12px;
}

.process-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* ========================================
   VIBERS SECTION (Why Vibe Coders)
   ======================================== */
.vibers-section {
  padding: 120px 24px;
  background: white;
}

.vibers-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

@media (max-width: 900px) {
  .vibers-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.vibers-text .section-heading {
  font-size: clamp(32px, 5vw, 44px);
  margin-bottom: 24px;
}

.vibers-text p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 16px;
}

.vibers-text p:last-of-type {
  margin-bottom: 0;
}

.vibers-text strong {
  color: var(--ink);
}

.vibers-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vibe-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: #fafafa;
  border-radius: 16px;
  border: 1px solid var(--line);
  transition: all 0.2s;
}

.vibe-item:hover {
  background: white;
  border-color: rgba(210, 38, 48, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.vibe-check {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--hot), var(--warm));
  border-radius: 8px;
  flex-shrink: 0;
}

.vibe-check svg {
  stroke: white;
}

.vibe-item span {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

/* ========================================
   FEATURES SECTION
   ======================================== */
.features-section {
  padding: 120px 24px;
  background: #fafafa;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
}

.feature-block {
  padding: 32px;
  background: white;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(210, 38, 48, 0.1), rgba(255, 122, 24, 0.1));
  border-radius: 12px;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--hot);
}

.feature-block h3 {
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
}

.feature-block p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
  padding: 120px 24px;
  background: linear-gradient(135deg, var(--hot) 0%, var(--warm) 100%);
}

.cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  color: white;
  margin: 0 0 16px;
}

.cta-content p {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 40px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-actions .btn-hero.primary {
  background: white;
  color: var(--hot);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.cta-actions .btn-hero.secondary {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.4);
}

.cta-actions .btn-hero.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  color: white;
}

/* ========================================
   SITE FOOTER
   ======================================== */
.site-footer {
  padding: 80px 24px 40px;
  background: white;
  border-top: 1px solid var(--line);
}

.footer-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.footer-nav {
  display: flex;
  gap: 32px;
}

.footer-nav a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--ink);
}

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.footer-legal {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 8px;
}

.footer-copy {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* ========================================
   WIZARD PAGES (Member Agreement)
   ======================================== */
.wizard-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background:
    radial-gradient(ellipse 60% 40% at 30% 20%, rgba(210, 38, 48, 0.06), transparent),
    radial-gradient(ellipse 60% 40% at 70% 80%, rgba(255, 122, 24, 0.06), transparent),
    #fafafa;
}

.wizard-container {
  width: 100%;
  max-width: 600px;
}

.wizard-header {
  text-align: center;
  margin-bottom: 40px;
}

.wizard-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.wizard-logo .logo-img {
  height: 64px;
}

.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
}

.wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.4;
}

.wizard-step.active,
.wizard-step.completed {
  opacity: 1;
}

.step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--line);
}

.wizard-step.completed .step-dot {
  background: var(--hot);
}

.wizard-step.active .step-dot {
  background: linear-gradient(135deg, var(--hot), var(--warm));
  box-shadow: 0 0 0 4px rgba(210, 38, 48, 0.2);
}

.wizard-step span {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.wizard-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.08);
}

.wizard-title {
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 8px;
}

.wizard-subtitle {
  text-align: center;
  color: var(--muted);
  margin: 0 0 32px;
}

.wizard-form {
  margin-top: 24px;
}

.agreement-box {
  margin-bottom: 24px;
}

.agreement-text {
  width: 100%;
  height: 300px;
  padding: 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  font-size: 12px;
  line-height: 1.6;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafafa;
  resize: none;
}

.agreement-checkbox {
  margin-bottom: 24px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
}

.wizard-footer {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin-top: 24px;
}

.wizard-footer a {
  color: var(--hot);
}

/* ========================================
   Contact Page
   ======================================== */
.contact-header {
  text-align: center;
  padding: var(--space-xl) var(--space-md) var(--space-lg);
  background:
    radial-gradient(ellipse 80% 50% at 50% -30%, rgba(210, 38, 48, 0.06), transparent),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(255, 122, 24, 0.04), transparent);
}

.contact-header h1 {
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-size: clamp(36px, 6vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}

.contact-lead {
  font-size: 18px;
  color: var(--muted);
  margin: 0;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.contact-section {
  padding: var(--space-lg) var(--space-md) var(--space-xl);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

.contact-form-wrap .card {
  padding: var(--space-lg);
}

.contact-form-wrap .card h2 {
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-size: 24px;
  margin: 0 0 8px;
}

.form-intro {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 var(--space-md);
}

.contact-form .form-group {
  margin-bottom: var(--space-md);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.info-section h3 {
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--ink);
}

.info-section p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 12px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(210, 38, 48, 0.1), rgba(255, 122, 24, 0.1));
  border-radius: 10px;
  flex-shrink: 0;
}

.contact-icon svg {
  stroke: var(--hot);
}

.contact-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 2px;
}

.contact-item a {
  color: var(--hot);
  font-weight: 500;
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

.contact-item span {
  color: var(--ink);
  font-weight: 500;
}

.trust-section {
  background: #fafafa;
  border-radius: var(--r-sm);
  padding: var(--space-md);
  border: 1px solid var(--line);
}

.trust-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trust-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--ink);
}

.trust-list svg {
  stroke: #22c55e;
  flex-shrink: 0;
}

.success-card {
  text-align: center;
  padding: var(--space-xl);
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

.success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 197, 94, 0.1);
  border-radius: 50%;
}

.success-icon svg {
  stroke: #22c55e;
}

.success-card h3 {
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-size: 24px;
  margin: 0 0 12px;
}

.success-card p {
  color: var(--muted);
  margin: 0 0 24px;
}

/* ========================================
   Buy Page (Buyer Matching)
   ======================================== */
.buy-page {
  padding-bottom: var(--space-xl);
}

.criteria-section {
  max-width: 700px;
  margin: 0 auto;
}

.criteria-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--space-lg);
  box-shadow: var(--shadow);
}

.criteria-header {
  text-align: center;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--line);
}

.criteria-header h2 {
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-size: 24px;
  margin: 0 0 8px;
}

.criteria-header p {
  color: var(--muted);
  margin: 0;
}

.criteria-form .form-section {
  margin-bottom: var(--space-lg);
}

.criteria-form .form-section h3 {
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--ink);
}

.section-hint {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 12px;
}

.field-hint {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 0;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (max-width: 500px) {
  .checkbox-grid {
    grid-template-columns: 1fr;
  }
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  cursor: pointer;
  transition: all 0.15s;
  font-weight: 500;
}

.checkbox-item:hover {
  border-color: var(--hot);
  background: rgba(210, 38, 48, 0.02);
}

.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.checkbox-item input[type="checkbox"]:checked + span {
  color: var(--hot);
}

/* Match Card */
.match-section {
  max-width: 700px;
  margin: 0 auto;
}

.match-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--space-lg);
  box-shadow: var(--shadow);
  position: relative;
}

.match-badge {
  position: absolute;
  top: -12px;
  left: 24px;
  background: linear-gradient(135deg, var(--hot), var(--warm));
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
}

.match-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
  margin-bottom: 16px;
}

.match-header h2 {
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-size: 28px;
  margin: 0;
}

.match-category {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 122, 24, 0.1);
  color: var(--warm);
  white-space: nowrap;
}

.match-summary {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 24px;
}

.match-metrics {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding: 20px;
  background: #fafafa;
  border-radius: var(--r-sm);
  margin-bottom: 20px;
}

.match-metric {
  display: flex;
  flex-direction: column;
}

.match-metric .metric-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 4px;
}

.match-metric .metric-value {
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-size: 24px;
  font-weight: 700;
}

.match-metric.highlight .metric-value {
  color: var(--hot);
}

.match-link {
  margin: 0 0 24px;
}

.match-link a {
  color: var(--hot);
  font-weight: 500;
}

.match-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.match-footer {
  text-align: center;
  margin-top: 24px;
}

.edit-criteria-link {
  font-size: 14px;
  color: var(--muted);
}

/* No Matches State */
.no-matches {
  max-width: 500px;
  margin: 0 auto;
}

.no-matches-card {
  text-align: center;
  padding: var(--space-xl);
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

.no-matches-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  border-radius: 50%;
}

.no-matches-icon svg {
  stroke: var(--muted);
}

.no-matches-card h2 {
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-size: 24px;
  margin: 0 0 12px;
}

.no-matches-card p {
  color: var(--muted);
  margin: 0 0 24px;
  line-height: 1.6;
}

.no-matches-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
  .topbar, .btn, .topbar-actions, .footer, .footer-mini, .footer-simple, .nav-float, .site-footer { display: none !important; }
  body { background: #fff !important; }
  .card { box-shadow: none !important; border: none !important; }
}
