/* ==========================================================================
   Idaho Women Business Network (IWBN) - Modern Stylesheet
   Palette: Lighter Blues, Ocean Teal, Fresh Sage Greens, Soft Clouds (No Magenta/Purple)
   ========================================================================== */

:root {
  /* Primary Color Palette (Lighter Blues & Greens) */
  --primary: #1d70b8;           /* Clean Vibrant Ocean Blue */
  --primary-dark: #12538a;      /* Deep Classic Blue */
  --primary-light: #e8f4fc;     /* Soft Sky Blue Tint */
  --primary-glow: rgba(29, 112, 184, 0.15);

  --accent-green: #2e8b57;      /* SeaGreen / Forest Sage */
  --accent-green-light: #eaf7f0;/* Fresh Mint Tint */
  --accent-teal: #028090;       /* Bright Teal */
  --accent-cyan: #00a896;       /* Clean Aqua Cyan */
  --accent-mint: #02c39a;       /* Lively Mint */
  --accent-gold: #f4a261;       /* Warm Accent Highlight */

  /* Neutral Shades */
  --bg-main: #f5f9fc;           /* Crisp Ice Blue / Soft White Canvas */
  --bg-card: #ffffff;
  --bg-subtle: #ebf3f7;
  --border-color: #d2e3ee;
  --border-light: #e5f0f6;
  
  --text-dark: #182d38;         /* Deep Navy-Slate for ultra-readable text */
  --text-muted: #536d7a;
  --text-light: #8fa5b0;
  --text-white: #ffffff;

  /* Elevation Shadows */
  --shadow-sm: 0 2px 6px rgba(24, 45, 56, 0.05);
  --shadow-md: 0 6px 18px rgba(24, 45, 56, 0.08);
  --shadow-lg: 0 14px 34px rgba(24, 45, 56, 0.12);
  --shadow-hover: 0 12px 28px rgba(29, 112, 184, 0.16);

  /* Radius & Transitions */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.25;
}

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

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

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

/* ==========================================================================
   Utility & Buttons
   ========================================================================== */
.text-primary { color: var(--primary) !important; }
.text-accent { color: var(--accent-cyan) !important; }
.text-danger { color: #d90429 !important; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-teal) 100%);
  color: var(--text-white);
  box-shadow: 0 4px 14px rgba(29, 112, 184, 0.28);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(29, 112, 184, 0.36);
  color: var(--text-white);
}

.btn-secondary {
  background: var(--bg-subtle);
  color: var(--text-dark);
  border-color: var(--border-color);
}
.btn-secondary:hover {
  background: #d8e8f2;
  color: var(--primary-dark);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-green) 100%);
  color: var(--text-white);
  box-shadow: 0 4px 14px rgba(0, 168, 150, 0.28);
}
.btn-accent:hover {
  background: linear-gradient(135deg, var(--accent-teal) 0%, var(--accent-cyan) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 168, 150, 0.36);
  color: var(--text-white);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.btn-white {
  background: #ffffff;
  color: var(--primary-dark);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}
.btn-white:hover {
  background: #f0f7fb;
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255,255,255,0.75);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: #ffffff;
}

.btn-danger {
  background: #d90429;
  color: #fff;
}
.btn-danger:hover {
  background: #b70020;
}

.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--accent-green-light);
  color: var(--accent-green);
  border: 1px solid rgba(46, 139, 87, 0.2);
  margin-bottom: 0.5rem;
}

.section-badge.badge-white {
  background: rgba(255,255,255,0.2);
  color: #ffffff;
  border-color: rgba(255,255,255,0.4);
}

.section-title {
  font-size: 2.1rem;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
}

/* ==========================================================================
   1. TOP NOTIFICATION BAR
   ========================================================================== */
.top-announcement-bar {
  background: linear-gradient(90deg, #12538a 0%, #028090 100%);
  color: #ffffff;
  font-size: 0.82rem;
  padding: 0.45rem 0;
}

.top-bar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.top-bar-links a {
  color: #e5f6ff;
  font-weight: 500;
  font-size: 0.82rem;
}
.top-bar-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.top-btn-submit {
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.top-btn-submit:hover {
  background: #ffffff;
  color: var(--primary-dark);
}

/* ==========================================================================
   2. MAIN HEADER & NAVIGATION
   ========================================================================== */
.main-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-cyan) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  position: relative;
  box-shadow: 0 4px 12px rgba(29, 112, 184, 0.25);
}

.logo-icon {
  font-size: 1.35rem;
}

.logo-gem {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #2e8b57;
  color: #ffffff;
  font-size: 0.65rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-teal);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.state-tag {
  background: var(--accent-green-light);
  color: var(--accent-green);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.65rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.2rem;
  align-items: center;
}

.nav-link {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  letter-spacing: 0.01em;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.admin-staff-nav-btn {
  background: #ffffff;
  border: 1.5px solid var(--primary);
  color: var(--primary-dark);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 100;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(29, 112, 184, 0.12);
}
.admin-staff-nav-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary-dark);
  color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(29, 112, 184, 0.2);
}

.admin-lock-btn {
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.85rem;
  font-weight: 600;
}
.admin-lock-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.mobile-nav-toggle span {
  width: 24px;
  height: 2.5px;
  background-color: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-drawer {
  display: none;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 1rem 1.25rem;
}
.mobile-drawer.open {
  display: block;
}
.mobile-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.mobile-links a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
  border-radius: var(--radius-sm);
}
.mobile-links a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* ==========================================================================
   3. ROTATING ANNOUNCEMENT BANNER CAROUSEL (Requirement 4: Sleek, compact height, full width)
   ========================================================================== */
.banner-carousel-section {
  width: 100%;
  background: #0f2c3d;
  position: relative;
  overflow: hidden;
}

.carousel-container {
  position: relative;
  width: 100%;
  min-height: 230px;
  max-height: 260px;
  display: flex;
  align-items: center;
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 230px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  padding: 1.5rem 0;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 44, 61, 0.95) 0%, rgba(18, 83, 138, 0.85) 55%, rgba(0, 168, 150, 0.65) 100%);
  z-index: 1;
}

.slide-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.slide-content-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.slide-text-side {
  max-width: 780px;
}

.slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(2, 195, 154, 0.25);
  border: 1px solid #02c39a;
  color: #80ffd7;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.4rem;
}

.slide-title {
  font-size: 1.65rem;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.3rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.slide-subtitle {
  font-size: 0.95rem;
  color: #d1ecf7;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.slide-action-side {
  flex-shrink: 0;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.carousel-control:hover {
  background: #ffffff;
  color: var(--text-dark);
}
.carousel-control.prev-slide { left: 1rem; }
.carousel-control.next-slide { right: 1rem; }

.carousel-indicators {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 6px;
}

.carousel-dot {
  width: 24px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: var(--transition);
}
.carousel-dot.active {
  background: #02c39a;
  width: 36px;
}

/* ==========================================================================
   4. STATEWIDE STATS RIBBON
   ========================================================================== */
.statewide-ribbon {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 0;
  box-shadow: var(--shadow-sm);
}

.ribbon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.ribbon-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ribbon-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.ribbon-number {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.1;
}

.ribbon-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.ribbon-share-strip {
  background: #f4fafd;
  border-bottom: 1px solid #d8e9f3;
  padding: 0.75rem 0;
}

.ribbon-share-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ribbon-share-prompt {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-dark);
}

.ribbon-share-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.share-mini-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.share-mini-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  color: #ffffff;
}
.share-mini-btn.facebook { background: #1877f2; }
.share-mini-btn.linkedin { background: #0a66c2; }
.share-mini-btn.twitter { background: #0f1419; }
.share-mini-btn.copy { background: var(--primary); }

.btn-share-main {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-teal) 100%);
  color: #ffffff !important;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 2px 8px rgba(29, 112, 184, 0.2);
}
.btn-share-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(29, 112, 184, 0.3);
}

/* ==========================================================================
   5. SEARCH & FILTER SECTION
   ========================================================================== */
.search-filter-section {
  padding: 2rem 0 1rem;
}

.search-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

.search-form-row {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
}
.flex-1 { flex: 1 1 200px; }
.flex-2 { flex: 2 1 300px; }

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.95rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #fdfefe;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text-dark);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background: #ffffff;
}

.quick-city-tags {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.quick-tag-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

.tag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pill-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.pill-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* Category Filter Buttons Grid */
.quick-category-tags {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--border-light);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.cat-pill-btn {
  background: #f4f9fc;
  border: 1px solid #cfe2ee;
  color: var(--text-dark);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
}
.cat-pill-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-dark);
  transform: translateY(-1px);
}
.cat-pill-btn.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-teal) 100%);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(29, 112, 184, 0.25);
}

.cat-pill-btn i {
  font-size: 0.8rem;
}

.fb-community-btn {
  background: #1877f2;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(24, 119, 242, 0.25);
  transition: var(--transition);
}
.fb-community-btn:hover {
  background: #145dbf;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.35);
}

/* ==========================================================================
   6. IDAHO INTERACTIVE MAP SECTION (Requirement 2)
   ========================================================================== */
.map-section-wrapper {
  padding: 2.5rem 0 1.5rem;
}

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

.map-card-container {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.idaho-map-canvas {
  width: 100%;
  height: 520px;
  background: #e1edf5;
  z-index: 1;
}

.map-floating-legend {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  z-index: 1000;
  box-shadow: var(--shadow-md);
  max-width: 280px;
}

.legend-header {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.legend-categories {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.legend-cat-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cat-indicator-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

/* Custom Leaflet Pin Popup */
.custom-popup .leaflet-popup-content-wrapper {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border-color);
}
.custom-popup .leaflet-popup-content {
  margin: 0;
  min-width: 250px;
}
.map-popup-card {
  padding: 1rem;
}
.map-popup-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-teal);
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 0.25rem;
}
.map-popup-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.2rem;
}
.map-popup-owner {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.map-popup-contact {
  font-size: 0.8rem;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.map-popup-btn {
  width: 100%;
  padding: 0.4rem;
  font-size: 0.8rem;
}

/* ==========================================================================
   7. BUSINESS DIRECTORY SECTION (Requirement 1)
   ========================================================================== */
.directory-section-wrapper {
  padding: 2.5rem 0;
}

.directory-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.toolbar-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.toolbar-item label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}
.toolbar-item select {
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
}

.view-toggle-group {
  display: flex;
  background: var(--bg-subtle);
  padding: 2px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}
.view-btn {
  background: none;
  border: none;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.view-btn.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.active-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  background: var(--primary-light);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}
.filter-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-dark);
}
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.chip {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.chip-close {
  cursor: pointer;
  color: #999;
}
.chip-close:hover { color: #d90429; }

.clear-all-chips {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}
.clear-all-chips:hover { text-decoration: underline; }

/* Business Grid & Cards */
.business-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.business-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.business-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: #aed1e6;
}

.biz-card-head {
  padding: 1.25rem 1.25rem 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.biz-logo-img {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--border-light);
  background: var(--bg-subtle);
  flex-shrink: 0;
}

.biz-head-meta {
  flex: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}

.badge-category {
  background: var(--accent-green-light);
  color: var(--accent-green);
  border: 1px solid rgba(46, 139, 87, 0.18);
  margin-bottom: 0.35rem;
}

.biz-card-title {
  font-size: 1.2rem;
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.2;
}

.biz-card-owner {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.biz-card-body {
  padding: 0.75rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.biz-desc-snip {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.biz-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  margin-top: auto;
  border-top: 1px solid var(--border-light);
  padding-top: 0.75rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dark);
}
.contact-item i {
  color: var(--primary);
  width: 16px;
  text-align: center;
}

.biz-perk-badge {
  background: #fdf5e6;
  border: 1px dashed #f4a261;
  color: #b35900;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  margin-top: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.biz-card-footer {
  padding: 0.9rem 1.25rem;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.biz-city-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.biz-actions-group {
  display: flex;
  gap: 0.5rem;
}

/* List View Variant */
.business-grid.list-view {
  grid-template-columns: 1fr;
}
.business-grid.list-view .business-card {
  flex-direction: row;
  align-items: center;
  padding: 1rem;
}
.business-grid.list-view .biz-card-head {
  padding: 0;
  flex: 0 0 260px;
}
.business-grid.list-view .biz-card-body {
  padding: 0 1.5rem;
  border-left: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
}
.business-grid.list-view .biz-card-footer {
  background: transparent;
  border: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

/* Empty State */
.empty-state-box {
  background: #ffffff;
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem 1.5rem;
  text-align: center;
  max-width: 550px;
  margin: 2rem auto;
}
.empty-icon {
  font-size: 3rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}
.empty-state-box h3 {
  margin-bottom: 0.5rem;
}
.empty-state-box p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.empty-state-box .btn {
  margin: 0 0.25rem;
}

/* ==========================================================================
   8. EVENTS & CALENDAR SECTION (Requirement 5)
   ========================================================================== */
.events-calendar-section {
  padding: 3rem 0;
  background: #f0f7fb;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.events-layout-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: start;
}

/* Calendar Card */
.calendar-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

.calendar-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.cal-month-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cal-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.cal-nav-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.cal-current-month {
  font-size: 1.3rem;
  font-weight: 700;
  min-width: 170px;
}

.cal-today-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-dark);
  cursor: pointer;
}
.cal-today-btn:hover {
  background: var(--primary-light);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.calendar-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-day-cell {
  min-height: 54px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 4px;
  position: relative;
  background: #ffffff;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.cal-day-cell:hover {
  background: var(--primary-light);
  border-color: #aed1e6;
}

.cal-day-cell.other-month {
  background: #fbfdfe;
  opacity: 0.4;
}

.cal-day-cell.today {
  border: 2px solid var(--primary);
  background: #f0f8ff;
}

.cal-day-cell.selected {
  background: #d8eefc;
  border-color: var(--primary-dark);
}

.cal-day-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dark);
}

.cal-day-events {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: auto;
}

.cal-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.cal-dot.networking { background: #028090; }
.cal-dot.workshop { background: #2e8b57; }
.cal-dot.conference { background: #f4a261; }

.calendar-footer-legend {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 1.25rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.legend-dot-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Upcoming Events Column (Requirement 5) */
.events-column-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  max-height: 520px;
}

.events-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.events-column-header h3 {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.badge-subtle {
  background: var(--bg-subtle);
  color: var(--primary-dark);
  border: 1px solid var(--border-color);
}

.events-filter-bar {
  margin-bottom: 1rem;
}
.events-filter-bar input {
  width: 100%;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
}

.events-list-scrollable {
  overflow-y: auto;
  padding-right: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.event-column-item {
  background: #fdfefe;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  transition: var(--transition);
  display: flex;
  gap: 0.85rem;
}
.event-column-item:hover {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  transform: translateX(3px);
}

.event-date-box {
  width: 52px;
  height: 54px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-teal) 100%);
  color: #ffffff;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-align: center;
}
.date-box-month {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
}
.date-box-day {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
}

.event-info-col {
  flex: 1;
}
.event-col-type {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-teal);
  text-transform: uppercase;
}
.event-col-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0.15rem 0;
  line-height: 1.25;
}
.event-col-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.event-rsvp-btn {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
}

/* ==========================================================================
   9. CALL TO ACTION COMMUNITY STRIP
   ========================================================================== */
.cta-community-section {
  padding: 3.5rem 0;
  background: linear-gradient(135deg, #12538a 0%, #028090 50%, #2e8b57 100%);
  color: #ffffff;
}

.cta-card-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta-content {
  max-width: 680px;
}
.cta-content h2 {
  color: #ffffff;
  font-size: 2.3rem;
  margin: 0.5rem 0 0.8rem;
}
.cta-content p {
  color: #e5f6ff;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.state-badge-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 3px dashed rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #ffffff;
  padding: 1rem;
  animation: floatCircle 4s ease-in-out infinite;
}
.state-badge-circle i {
  font-size: 2rem;
  margin-bottom: 0.4rem;
  color: #80ffd7;
}

@keyframes floatCircle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ==========================================================================
   10. MODAL DIALOGS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 33, 44, 0.7);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}
.modal-overlay.open {
  display: flex !important;
}

.modal-dialog {
  width: 100%;
  max-width: 600px;
  margin: auto;
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-lg { max-width: 760px; }
.modal-xl { max-width: 980px; }

@keyframes modalPop {
  0% { transform: scale(0.94); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-content {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

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

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.modal-icon {
  font-size: 1.5rem;
  color: var(--primary);
}
.modal-title-group h3 {
  font-size: 1.25rem;
  margin: 0;
}
.modal-title-group p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover { color: #d90429; }

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
}

.modal-footer {
  padding: 1rem 1.5rem;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.logo-upload-container {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--bg-subtle);
  padding: 0.85rem;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-color);
}
.upload-options {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.file-upload-btn {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--primary-dark);
}
.file-upload-btn input { display: none; }
.or-divider { font-size: 0.75rem; font-weight: 700; color: var(--text-light); }

.logo-preview-box {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 0.7rem;
  color: var(--text-light);
  text-align: center;
}
.logo-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Business Details Modal Specific */
.biz-profile-head {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.detail-logo-img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--border-color);
}
.detail-title {
  font-size: 1.45rem;
  margin: 0.15rem 0;
}
.detail-founder {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.detail-contact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}
.contact-pill {
  background: var(--primary-light);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.detail-description-box {
  margin-bottom: 1.25rem;
}
.detail-description-box h4 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}
.detail-description-box p {
  color: var(--text-muted);
  line-height: 1.6;
}

.detail-extra-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.detail-perk-box {
  background: #fcf6eb;
  border: 1px dashed #e79c4a;
  border-radius: var(--radius-md);
  padding: 0.85rem;
}
.detail-perk-box h4 {
  font-size: 0.88rem;
  color: #a65800;
  margin-bottom: 0.25rem;
}
.detail-social-links {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.4rem;
}
.detail-social-links a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-social-links a:hover {
  background: var(--primary);
  color: #ffffff;
}

/* ==========================================================================
   11. SECRET ADMIN PORTAL (Requirement 6: Code 042464)
   ========================================================================== */
.admin-auth-body {
  padding: 3rem 1.5rem;
}

.pin-entry-container {
  max-width: 320px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.lock-graphic {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}
.pin-entry-container input {
  font-size: 1.6rem;
  letter-spacing: 0.35em;
  text-align: center;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-color);
  width: 100%;
}
.pin-error-msg {
  color: #d90429;
  font-size: 0.8rem;
  font-weight: 600;
}

.admin-dash-head {
  background: #182d38;
  color: #ffffff;
}
.admin-dash-head h3 { color: #ffffff; }
.admin-dash-head p { color: #a3bac7; }

.admin-tabs {
  display: flex;
  border-bottom: 2px solid var(--border-color);
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
}
.admin-tab {
  padding: 0.65rem 1.25rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}
.admin-tab:hover {
  color: var(--primary);
}
.admin-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.admin-tab-pane {
  display: none;
}
.admin-tab-pane.active {
  display: block;
}

.tab-pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: left;
}
.admin-table th {
  background: var(--bg-subtle);
  padding: 0.75rem 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border-color);
}
.admin-table td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--border-light);
}
.admin-table tr:hover {
  background: #fbfdfe;
}

.admin-action-btns {
  display: flex;
  gap: 0.35rem;
}
.admin-icon-btn {
  background: none;
  border: 1px solid var(--border-color);
  padding: 0.3rem 0.55rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.admin-icon-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
}
.admin-icon-btn.danger:hover {
  background: #ffe5e5;
  color: #d90429;
  border-color: #d90429;
}

.backup-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.backup-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.backup-icon {
  font-size: 2rem;
  color: var(--primary);
}
.backup-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.backup-card.danger-zone {
  border-color: #f7b2b7;
  background: #fffafa;
}

/* ==========================================================================
   12. SITEMAP MODAL (Requirement 9)
   ========================================================================== */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.sitemap-col h4 {
  font-size: 0.95rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.4rem;
  margin-bottom: 0.75rem;
}
.sitemap-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.sitemap-col a {
  font-size: 0.85rem;
  color: var(--text-dark);
}
.sitemap-col a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* ==========================================================================
   13. FOOTER & ATTRIBUTION (Requirement 8)
   ========================================================================== */
.site-footer {
  background: #11232e;
  color: #ffffff;
  padding-top: 4rem;
  border-top: 4px solid var(--primary);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
}
.footer-mission {
  font-size: 0.88rem;
  color: #9cb5c2;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.footer-social-links {
  display: flex;
  gap: 0.6rem;
}
.footer-social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.footer-social-links a:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.footer-heading {
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 1rem;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-links a {
  color: #9cb5c2;
  font-size: 0.88rem;
}
.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-contact-line {
  font-size: 0.85rem;
  color: #9cb5c2;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-cta-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-cta-box span {
  font-size: 0.8rem;
  color: #d1e2ec;
}

/* REQUIREMENT 8: Footer Attribution & Legal Bottom Bar */
.footer-bottom-bar {
  background: #0b1820;
  padding: 1.5rem 0;
  font-size: 0.88rem;
  color: #94a3b8;
  background: #091a24;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.designer-attribution {
  color: #e2e8f0;
  font-weight: 600;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.credit-link {
  color: #38bdf8;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: var(--transition);
}
.credit-link:hover {
  color: #80ffd7;
  text-shadow: 0 0 8px rgba(128, 255, 215, 0.5);
}

.admin-subtle-link {
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.admin-subtle-link:hover {
  color: #ffffff;
}

/* ==========================================================================
   14. TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #182d38;
  color: #ffffff;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  border-left: 4px solid var(--accent-cyan);
  animation: slideToast 0.3s ease-out;
}
.toast.success { border-left-color: #2e8b57; }
.toast.error { border-left-color: #d90429; }

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

/* ==========================================================================
   16. SOCIAL SHARE MODAL & FLOATING SHARE WIDGET
   ========================================================================== */
.social-preview-card-wrap {
  background: #f4f8fa;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.social-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.preview-tag {
  color: var(--primary-dark);
}

.social-card-mockup {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.mockup-img-wrap {
  width: 100%;
  max-height: 220px;
  overflow: hidden;
  background: #0f2c3d;
}
.mockup-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mockup-card-meta {
  padding: 0.9rem 1.1rem;
}
.mockup-domain {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.2rem;
}
.mockup-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}
.mockup-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.social-share-buttons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.social-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff !important;
  text-align: center;
  transition: var(--transition);
}
.social-share-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  filter: brightness(1.08);
}

.btn-facebook { background: #1877f2; }
.btn-linkedin { background: #0077b5; }
.btn-twitter { background: #000000; }
.btn-whatsapp { background: #25d366; }
.btn-pinterest { background: #bd081c; }
.btn-email { background: #2e8b57; }

.copy-link-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
}
.copy-link-box label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dark);
  display: block;
  margin-bottom: 0.4rem;
}
.copy-input-row {
  display: flex;
  gap: 0.5rem;
}
.copy-input-row input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  background: #ffffff;
}

/* Floating Share Widget */
.floating-share-widget {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1500;
}
.floating-share-btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-cyan) 100%);
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  box-shadow: 0 6px 20px rgba(0, 168, 150, 0.35);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}
.floating-share-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 24px rgba(0, 168, 150, 0.45);
}

@media (max-width: 600px) {
  .social-share-buttons-grid { grid-template-columns: 1fr; }
/* ==========================================================================
   17. MONETIZATION, PLANS & MULTI-STEP REGISTRATION WIZARD
   ========================================================================== */
.directory-scope-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.75rem;
  overflow-x: auto;
}

.scope-tab {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  white-space: nowrap;
}
.scope-tab:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}
.scope-tab.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.scope-tab.active i {
  color: #ffffff !important;
}

.out-of-state-pill {
  background: #eef9f7 !important;
  color: #00a896 !important;
  border-color: #a3e6dc !important;
}

/* Wizard Step Header */
.wizard-progress-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fbfdfe;
  padding: 0.9rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  gap: 1rem;
}
.wizard-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.5;
  transition: var(--transition);
}
.wizard-step.active {
  opacity: 1;
}
.step-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  border: 1px solid var(--border-color);
}
.wizard-step.active .step-circle {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}
.step-text {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
}
.step-connector {
  width: 40px;
  height: 2px;
  background: var(--border-color);
}

.wizard-pane {
  display: none;
}
.wizard-pane.active {
  display: block;
}

/* Tax Write-off Banner */
.tax-writeoff-banner {
  background: #eaf7f0;
  border: 1px solid #a3e6c0;
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  color: #175432;
}
.tax-icon {
  font-size: 1.8rem;
  color: #2e8b57;
  flex-shrink: 0;
}

.wizard-section-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Plan Cards Grid */
.plan-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.plan-select-card {
  background: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}
.plan-select-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.plan-select-card.active {
  border-color: var(--primary);
  background: #f4faff;
  box-shadow: 0 0 0 2px var(--primary-glow);
}

.plan-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.plan-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  color: var(--text-muted);
}
.badge-popular {
  background: #eaf7f0;
  color: #2e8b57;
}
.badge-best {
  background: #e0f2fe;
  color: #0369a1;
}

.plan-title {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}
.plan-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.price-period {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}
.plan-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-top: auto;
}

/* Payment Method Tabs */
.payment-method-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.pay-tab-btn {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 0.65rem;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: var(--transition);
}
.pay-tab-btn.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
}

.payment-pane {
  display: none;
}
.payment-pane.active {
  display: block;
}

.square-card-container {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
}
.square-secure-badge {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.manual-pay-box {
  background: #f9fcff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}
.manual-pay-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #0074de;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.cashapp-box .manual-pay-icon {
  background: #00d632;
}
.manual-pay-box h4 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}
.manual-pay-box p {
  font-size: 0.88rem;
  color: var(--text-dark);
}
.manual-pay-box .sub-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.payment-success-badge {
  background: #eaf7f0;
  border: 1px solid #a3e6c0;
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: #175432;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Location Scope Radios in Step 2 */
.location-scope-radios {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.scope-radio-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  transition: var(--transition);
}
.scope-radio-card.active {
  border-color: var(--primary);
  background: var(--primary-light);
}

/* Admin Revenue Grid */
.admin-revenue-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.admin-rev-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
}
.rev-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}
.rev-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
}
.rev-sub {
  font-size: 0.72rem;
  color: var(--text-light);
}

@media (max-width: 768px) {
  .plan-cards-grid { grid-template-columns: 1fr; }
  .payment-method-tabs { grid-template-columns: 1fr; }
  .location-scope-radios { grid-template-columns: 1fr; }
  .admin-revenue-grid { grid-template-columns: 1fr; }
}


