:root {
  --primary: #0a192f; /* Deep Dark Blue for header/brand */
  --primary-hover: #112240;
  --secondary: #e9ecef; /* Slightly dim background */
  --text: #1a1a1a;
  --text-light: #495057;
  --bg: #ffffff; /* Card backgrounds remain white for contrast */
  --bg-offset: #dadddf; /* Dimmed body background */
  --border: #ced4da;
  --success: #198754;
  --warning: #ffc107;
  --danger: #dc3545;
  --info: #0dcaf0;

  /* Rigid structure - no rounded corners */
  --radius: 8px; --radius-pill: 24px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08); --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.15);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
  font-family: var(--font);
  color: var(--text);
  background-color: var(--bg-offset);
  line-height: 1.5;
}

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.navbar {
  background-color: var(--primary);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--primary-hover);
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.navbar-brand {
  font-size: 1.5rem;
  font-weight: bold;
  color: #ffffff;

  letter-spacing: 1px;
}
.nav-links {
  display: flex;
  gap: 16px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-weight: bold;
  text-align: center;

  letter-spacing: 0.5px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
  font-size: 0.9rem;
}
.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  color: #ffffff;
}
.btn-outline {
  border-color: #ffffff;
  color: #ffffff;
  background: transparent;
}
.btn-outline:hover {
  background-color: #ffffff;
  color: var(--primary);
}
.btn-outline-dark {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline-dark:hover {
  background-color: var(--primary);
  color: #ffffff;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: var(--primary);
}
.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-family: var(--font);
  background-color: #ffffff;
  transition: border-color 0.2s;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(10, 25, 47, 0.2);
}

/* Cards */
.card {
  background: var(--bg);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Marketplace Grid */
.old-marketplace-grid {
  display: grid;
  gap: 20px;
  padding: 32px 0;
  /* 4 columns on desktop */
  grid-template-columns: repeat(4, 1fr);
}

/* 2 columns on mobile */
@media (max-width: 768px) {
  .old-marketplace-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* Business Card Specific */
.business-card {
  border: 1px solid var(--border);
}
.business-card .cover {
  height: 120px;
  background-color: #ddd;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--border);
}
.business-card .content {
  padding: 16px;
  position: relative;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.business-card .logo {
  width: 50px;
  height: 50px;
  border-radius: 0; /* Rigid square logo */
  border: 2px solid white;
  position: absolute;
  top: -25px;
  background-color: white;
  background-size: cover;
}
.business-card .title {
  margin-top: 24px;
  font-size: 1.1rem;
  font-weight: bold;
}
.business-card .category {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 12px;
  flex-grow: 1;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: var(--radius-pill); /* Rigid badge */
  font-size: 0.75rem;
  font-weight: bold;

}
.badge-verified {
  background-color: var(--success);
  color: white;
}

/* Dashboard Layout */
.dashboard-layout {
  display: flex;
  min-height: calc(100vh - 65px);
  margin-top: 24px;
  gap: 24px;
}
.sidebar {
  width: 250px;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 16px;
  height: fit-content;
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-link {
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  color: var(--text);
  font-weight: bold;
  border-left: 4px solid transparent;
  transition: all 0.2s;
}
.sidebar-link:hover, .sidebar-link.active {
  background: var(--bg-offset);
  color: var(--primary);
  border-left-color: var(--primary);
}
.dashboard-content {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 24px;
}

@media (max-width: 768px) {
  .dashboard-layout {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
  }
  .sidebar-nav {
    flex-direction: row;
    overflow-x: auto;
  }
  .sidebar-link {
    border-left: none;
    border-bottom: 4px solid transparent;
  }
  .sidebar-link:hover, .sidebar-link.active {
    border-left-color: transparent;
    border-bottom-color: var(--primary);
  }
}

/* Auth Screens */
.auth-container {
  max-width: 400px;
  margin: 64px auto;
  padding: 32px;
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* Additional adjustments */
.old-hero {
  text-align: center;
  padding: 48px 16px;
  background-color: var(--primary);
  color: white;
  border-bottom: 2px solid var(--primary-hover);
}
.hero h1 {
  color: white;
  margin-bottom: 16px;
}

/* Filter Bar */
.old-filter-bar {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 16px 0;
  scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar {
  display: none;
}
.old-filter-pill {
  padding: 8px 16px;
  border-radius: var(--radius-pill); /* Rigid */
  background: var(--bg);
  border: 1px solid var(--border);
  white-space: nowrap;
  cursor: pointer;
  font-weight: bold;
}
.filter-pill.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.text-center {
    text-align: center;
}

.mt-16 { margin-top: 16px; }
.mb-24 { margin-bottom: 24px; }
.w-100 { width: 100%; }


/* Dashboard specific classes that were previously inline */
.banner { padding: 16px 24px; border-radius: var(--radius-pill); margin-bottom: 24px; display: flex; flex-direction: column; gap: 12px; }
.banner-header { display: flex; justify-content: space-between; align-items: flex-start; }
.banner-title { font-weight: bold; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.banner-body { font-size: 15px; }
.banner-reason { background: rgba(255,255,255,0.5); padding: 12px; margin-top: 12px; font-style: italic; border-left: 4px solid currentColor; }

.banner.warning { background-color: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.banner.danger { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.banner.info { background-color: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }
.banner.success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; margin-bottom: 32px; }
.stat-card { background: var(--bg); padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-pill); box-shadow: var(--shadow); text-align: center; }
.stat-card h3 { font-size: 32px; color: var(--primary); margin-bottom: 8px; }
.stat-card p { color: var(--text-light); font-size: 14px; font-weight: bold; }

@media (max-width: 768px) {
  .banner-header { flex-direction: column; gap: 16px; }
}

/* Editor specific styles */
.editor-layout { display: flex; height: calc(100vh - 65px); }
.editor-sidebar { width: 300px; background: var(--bg); border-right: 1px solid var(--border); overflow-y: auto; padding: 16px; }
.editor-preview { flex: 1; background: var(--bg-offset); display: flex; justify-content: center; align-items: flex-start; padding: 24px; overflow-y: auto; }
.preview-container { background: white; width: 100%; max-width: 1000px; min-height: 800px; border: 1px solid var(--border); border-radius: var(--radius-pill); box-shadow: var(--shadow); position: relative; }

.section-card { border: 1px solid var(--border); border-radius: var(--radius-pill); margin-bottom: 16px; background: white; overflow: hidden; }
.section-header { padding: 12px 16px; background: #f8f9fa; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: bold; }
.section-body { padding: 16px; display: none; }
.section-body.active { display: block; }

/* Dynamic page styles */
.hero-cover { height: 350px; background-size: cover; background-position: center; position: relative; }
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; color: white; text-align: center; }
.biz-logo { width: 100px; height: 100px; border-radius: var(--radius-pill); border: 4px solid white; margin-bottom: 16px; }
.page-section { padding: 64px 0; border-bottom: 1px solid var(--border); background: white; }
.page-section:nth-child(even) { background: #f8f9fa; }

/* ====== NEW MARKETPLACE STYLES ====== */

/* Featured Section */
.featured-section {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.featured-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.featured-header h2 {
  margin: 0;
  font-size: 1.5rem;
}
.featured-badge {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Business Card Specific - Modern Marketplace Redesign */
.business-card {
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.business-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-hover);
}
/* Subtle glow for featured cards */
.business-card.featured {
  border: 2px solid #FFD700;
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.15);
}
.business-card.featured:hover {
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.25);
}

.business-card .cover {
  height: 160px; /* Taller cover */
  background-color: var(--secondary);
  background-size: cover;
  background-position: center;
  position: relative;
}
.business-card .cover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}
.business-card .content {
  padding: 20px;
  position: relative;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.business-card .logo {
  width: 64px;
  height: 64px;
  border-radius: 50%; /* Changed to circle for avatar feel */
  border: 3px solid white;
  position: absolute;
  top: -32px;
  left: 20px;
  background-color: white;
  background-size: cover;
  background-position: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 1;
}

.card-save-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border: none;
  font-size: 1.1rem;
  color: var(--text-light);
}
.card-save-btn:hover {
  background: white;
  transform: scale(1.1);
  color: var(--danger);
}
.card-save-btn.saved {
  color: var(--danger);
}

.business-card .header-meta {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
  min-height: 24px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--success);
}
.status-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(25, 135, 84, 0.2);
}

.business-card .title {
  margin: 0 0 4px 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.business-card .category-tag {
  display: inline-block;
  background: var(--secondary);
  color: var(--text-light);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.business-card .tagline {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.business-card .engagement-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--secondary);
}
.engagement-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}
.card-actions .btn {
  flex: 1;
  padding: 8px 12px;
  font-size: 0.85rem;
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}
.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}
.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}
.lightbox-close {
  position: absolute;
  top: -40px;
  right: -40px;
  background: transparent;
  color: white;
  border: none;
  font-size: 3rem;
  line-height: 1;
  cursor: pointer;
}
@media (max-width: 768px) {
  .lightbox-close {
    top: -40px;
    right: 0;
  }
}

/* Full Screen Preview Overlay */
.fs-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  overflow-y: auto;
  overflow-x: hidden;
}
.fs-overlay.active {
  opacity: 1;
  visibility: visible;
}
.fs-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  padding: 16px;
  display: flex;
  justify-content: flex-end;
}
.fs-close {
  background: rgba(0, 0, 0, 0.05);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  transition: background 0.2s;
}
.fs-close:hover {
  background: rgba(0, 0, 0, 0.1);
}

.fs-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg);
  min-height: 100vh;
  padding-bottom: 60px;
}

.mock-hero {
  height: 240px;
  background: #ddd;
  background-size: cover;
  background-position: center;
  position: relative;
}

.mock-logo {
  width: 90px;
  height: 90px;
  background: #fff;
  border: 3px solid #fff;
  border-radius: 14px;
  position: absolute;
  bottom: -45px;
  left: 20px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 10px rgba(0,0,0,.15);
}

.mock-content {
  padding: 65px 20px 30px;
}

#p-name {
  margin-bottom: 8px;
}

#p-tagline {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 24px;
}

.mock-content h4 {
  margin-bottom: 12px;
}

#sec-listings {
  margin-top: 32px;
}

#p-listings {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.listing-card {
  border: 1px solid var(--border);
  padding: 12px;
  background: #fff;
  border-radius: 10px;
}

.listing-header {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  font-size: .95rem;
}

.listing-price {
  color: var(--primary);
}

.listing-desc {
  margin-top: 6px;
  font-size: .85rem;
  color: var(--text-light);
}

.mock-content .card {
  padding: 16px;
  margin-top: 32px;
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: none;
}

.mock-content .card p {
  font-size: .9rem;
  margin-top: 8px;
}

/* Trust Strip */
.trust-strip {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.trust-strip .container {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-light);
  font-weight: 500;
}
.trust-icon {
  width: 32px;
  height: 32px;
  background: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
@media (max-width: 768px) {
  .trust-strip .container { gap: 24px; flex-direction: column; align-items: center; text-align: center; }
  .trust-item { flex-direction: column; gap: 8px; }
}


/* New Hero Adjustments */
.hero {
  text-align: center;
  padding: 80px 16px;
  background: linear-gradient(135deg, var(--primary) 0%, #1a365d 100%);
  color: white;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml;utf8,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="rgba(255,255,255,0.05)"/></svg>') repeat;
}
.hero .container {
  position: relative;
  z-index: 1;
  max-width: 800px;
}
.hero h1 {
  color: white;
  margin-bottom: 20px;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
}
.hero p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}
@media (max-width: 600px) {
  .hero h1 { font-size: 2.2rem; }
  .hero-actions { flex-direction: column; }
}

/* New Filter Bar */
.filter-bar {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 24px 0;
  scrollbar-width: none;
  align-items: center;
}
.filter-bar::-webkit-scrollbar {
  display: none;
}
.filter-pill {
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  background: var(--bg);
  border: 1px solid var(--border);
  white-space: nowrap;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  color: var(--text-light);
}
.filter-pill:hover {
  background: var(--secondary);
}
.filter-pill.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* New Marketplace Grid */
.marketplace-grid {
  display: grid;
  gap: 24px;
  padding: 24px 0 48px;
  /* 4 columns on desktop */
  grid-template-columns: repeat(4, 1fr);
}

/* 2 columns on mobile */
@media (max-width: 768px) {
  .marketplace-grid {
    grid-template-columns: repeat(1, 1fr); /* 1 column on mobile for better detail view */
    gap: 16px;
  }
}
