/* Roosevelt Avenue Business Hub – Core Styles */
:root {
  --primary: #1a56db;
  --primary-dark: #1e40af;
  --primary-light: #3b82f6;
  --accent: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --radius: 10px;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.06);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.08);
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--gray-900);
  background: #fff;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--gray-900);
  text-decoration: none;
}
.logo-icon { font-size: 1.4rem; }
.logo strong { color: var(--primary); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.main-nav a {
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
}
.main-nav a:hover, .main-nav a.active { color: var(--primary); }
.main-nav a.hidden { display: none; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.15rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  line-height: 1.2;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
  text-decoration: none;
  color: #fff;
}
.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #059669; color: #fff; text-decoration: none; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; color: #fff; text-decoration: none; }
.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.875rem; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Hero */
.hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #1a56db 50%, #3b82f6 100%);
  color: #fff;
  padding: 4.5rem 0 5rem;
  text-align: center;
}
.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.hero-sub {
  font-size: 1.15rem;
  opacity: 0.92;
  max-width: 580px;
  margin: 0 auto 1.75rem;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.hero-cta .btn-outline {
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}
.hero-cta .btn-outline:hover {
  background: #fff;
  color: var(--primary);
}
.hero-note {
  font-size: 0.875rem;
  opacity: 0.8;
}

/* Stats */
.stats {
  margin-top: -2.5rem;
  position: relative;
  z-index: 2;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.stat-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.stat-number {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--primary);
}
.stat-label {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-top: 0.25rem;
}

/* Sections */
.section {
  padding: 3.5rem 0;
}
.section-alt {
  background: var(--gray-50);
}
.section-title {
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 1.75rem;
  letter-spacing: -0.01em;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.section-header .section-title { margin-bottom: 0; }
.link-more {
  font-weight: 600;
  font-size: 0.95rem;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.step {
  text-align: center;
  padding: 1.25rem;
}
.step-num {
  width: 42px;
  height: 42px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 1rem;
}
.step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.step p {
  font-size: 0.9rem;
  color: var(--gray-500);
}

/* Categories */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}
.category-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: all 0.15s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.category-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  text-decoration: none;
  transform: translateY(-2px);
}
.category-icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}
.category-name {
  font-weight: 600;
  font-size: 0.95rem;
}
.category-count {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 0.2rem;
}

/* Business cards */
.business-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.business-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.15s;
  display: flex;
  flex-direction: column;
}
.business-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--gray-300);
}
.business-card-img {
  height: 140px;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}
.business-card-body {
  padding: 1.15rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.business-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}
.business-card h3 a {
  color: inherit;
  text-decoration: none;
}
.business-card h3 a:hover { color: var(--primary); }
.business-meta {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 0.75rem;
}
.business-desc {
  font-size: 0.9rem;
  color: var(--gray-700);
  flex: 1;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.business-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}
.tag {
  font-size: 0.75rem;
  background: var(--gray-100);
  color: var(--gray-700);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-weight: 500;
}
.tag-deal {
  background: #fef3c7;
  color: #b45309;
}
.tag-coupon {
  background: #d1fae5;
  color: #047857;
}
.tag-sale {
  background: #fee2e2;
  color: #b91c1c;
}
.tag-realty {
  background: #e0e7ff;
  color: #3730a3;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, #1e40af, #1a56db);
  color: #fff;
  padding: 3.5rem 0;
  text-align: center;
}
.cta-banner h2 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}
.cta-banner p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

/* Footer */
.site-footer {
  background: var(--gray-900);
  color: #d1d5db;
  padding: 3rem 0 0;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}
.footer-brand .logo {
  color: #fff;
  margin-bottom: 0.75rem;
}
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 280px;
}
.footer-links h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}
.footer-links a {
  display: block;
  color: #9ca3af;
  font-size: 0.9rem;
  margin-bottom: 0.45rem;
  text-decoration: none;
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #374151;
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: #9ca3af;
}

/* Forms */
.auth-page {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: var(--gray-50);
}
.auth-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  width: 100%;
  max-width: 420px;
}
.auth-card h1 {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}
.auth-card .subtitle {
  color: var(--gray-500);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.form-group {
  margin-bottom: 1.1rem;
}
.form-group label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.15);
}
.form-group textarea { min-height: 100px; resize: vertical; }
.form-hint {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 0.25rem;
}
.form-error {
  background: #fef2f2;
  color: #b91c1c;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: none;
}
.form-error.show { display: block; }
.form-success {
  background: #ecfdf5;
  color: #047857;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: none;
}
.form-success.show { display: block; }
.auth-links {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--gray-500);
}
.auth-links a { font-weight: 500; }

/* Dashboard layout */
.dashboard {
  display: flex;
  min-height: calc(100vh - 64px);
}
.sidebar {
  width: 240px;
  background: var(--gray-900);
  color: #fff;
  padding: 1.5rem 0;
  flex-shrink: 0;
}
.sidebar-title {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
}
.sidebar a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.25rem;
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.sidebar a:hover, .sidebar a.active {
  background: #1f2937;
  color: #fff;
}
.sidebar a.active {
  border-left: 3px solid var(--primary-light);
}
.dashboard-main {
  flex: 1;
  padding: 1.75rem;
  background: var(--gray-50);
  overflow-x: auto;
}
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.dashboard-header h1 {
  font-size: 1.5rem;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
th, td {
  text-align: left;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--gray-200);
}
th {
  font-weight: 600;
  color: var(--gray-500);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.status-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.status-active { background: #d1fae5; color: #047857; }
.status-pending { background: #fef3c7; color: #b45309; }
.status-expired { background: #fee2e2; color: #b91c1c; }
.status-inactive { background: var(--gray-200); color: var(--gray-700); }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 420px;
  margin: 0 auto;
}
.pricing-card {
  background: #fff;
  border: 2px solid var(--primary);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.pricing-card .price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.pricing-card .price span {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--gray-500);
}
.pricing-features {
  list-style: none;
  margin: 1.5rem 0;
  text-align: left;
}
.pricing-features li {
  padding: 0.5rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.95rem;
}
.pricing-features li::before {
  content: "✓";
  color: var(--success);
  font-weight: 700;
}

/* Business public page */
.biz-hero {
  background: linear-gradient(135deg, #1e3a8a, #1a56db);
  color: #fff;
  padding: 2.5rem 0;
}
.biz-hero-content {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.biz-avatar {
  width: 90px;
  height: 90px;
  background: rgba(255,255,255,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  flex-shrink: 0;
}
.biz-info h1 { font-size: 1.75rem; margin-bottom: 0.35rem; }
.biz-info .meta { opacity: 0.9; font-size: 0.95rem; }
.deals-list {
  display: grid;
  gap: 1rem;
}
.deal-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.deal-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
}
.deal-body h3 { margin-bottom: 0.35rem; }
.deal-body p { font-size: 0.9rem; color: var(--gray-700); margin-bottom: 0.5rem; }
.deal-meta { font-size: 0.8rem; color: var(--gray-500); }

/* Admin */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.admin-stat {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid var(--gray-200);
}
.admin-stat .label { font-size: 0.8rem; color: var(--gray-500); }
.admin-stat .value { font-size: 1.75rem; font-weight: 700; color: var(--primary); }

/* Filters / Search */
.filters-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  align-items: center;
}
.filters-bar input,
.filters-bar select {
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
}
.filters-bar input { min-width: 220px; }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--gray-500);
}
.empty-state .icon { font-size: 2.5rem; margin-bottom: 0.75rem; }

/* Alerts */
.alert {
  padding: 0.85rem 1.1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.alert-info { background: #eff6ff; color: #1e40af; }
.alert-warning { background: #fffbeb; color: #b45309; }
.alert-success { background: #ecfdf5; color: #047857; }

/* PayPal button container */
#paypal-button-container {
  margin-top: 1rem;
  min-height: 45px;
}

/* Responsive */
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dashboard { flex-direction: column; }
  .sidebar { width: 100%; padding: 0.75rem 0; }
  .sidebar a { display: inline-flex; padding: 0.5rem 1rem; }
  .sidebar-title { display: none; }
}

@media (max-width: 640px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .menu-toggle { display: block; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .biz-hero-content { flex-direction: column; text-align: center; }
  .hero-cta { flex-direction: column; align-items: center; }
}

/* Dashboard grid (simple two-column) */
.dashboard {
  display: block;
  min-height: calc(100vh - 64px);
  padding: 1.75rem 0 3rem;
  background: var(--gray-50);
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .dashboard-grid { grid-template-columns: 1fr; }
}

/* Tags */
.tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--gray-100);
  color: var(--gray-700);
  margin-right: 0.25rem;
}
.tag-coupon { background: #fce7f3; color: #9d174d; }
.tag-sale { background: #d1fae5; color: #047857; }
.tag-deal { background: #ffedd5; color: #c2410c; }
.tag-realty { background: #e0e7ff; color: #3730a3; }
.tag-active { background: #d1fae5; color: #047857; }
.tag-pending { background: #fef3c7; color: #b45309; }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}
.modal-overlay.hidden { display: none; }
.modal {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.modal h2 { margin-bottom: 1rem; font-size: 1.25rem; }

/* Admin table extras */
.admin-table th, .admin-table td { vertical-align: top; }
.hidden { display: none !important; }

/* Deal cards in dashboard */
.deals-list { display: flex; flex-direction: column; gap: 0.75rem; }
.deal-card {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}
.deal-icon { font-size: 1.75rem; flex-shrink: 0; }
.deal-body { flex: 1; min-width: 0; }
.deal-body h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.deal-meta { font-size: 0.8rem; color: var(--gray-500); }
