/* ==========================================================================
   OURTOWN / LETSGROWOURTOWN.COM — GLOBAL CORE STYLE
   Theme: Unified Slate & Gold (Dark Default + Daylight Glare Mode)
   Zero neon-cyan (#00ffcc) anywhere.
   ========================================================================== */

:root {
  /* Primary Dark Theme (Default) */
  --bg-primary: #0f141c;
  --bg-card: #18202c;
  --bg-elevated: #1f2937;
  --bg-glass: rgba(24, 32, 44, 0.92);
  --accent-gold: #e5c158;
  --accent-gold-hover: #f0d06e;
  --accent-gold-subtle: rgba(229, 193, 88, 0.14);
  --trust-green: #10b981;
  --trust-green-subtle: rgba(16, 185, 129, 0.14);
  --danger-red: #ef4444;
  --text-primary: #f8fafc;
  --text-muted: #94a3b8;
  --text-on-gold: #0f141c;
  --border-gold: rgba(229, 193, 88, 0.22);
  --border-subtle: rgba(148, 163, 184, 0.15);
  --shadow-card: 0 10px 28px -6px rgba(0, 0, 0, 0.55);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  --transition-fast: 0.18s ease;
}

body.daylight-theme {
  /* Daylight / High-Glare Theme */
  --bg-primary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-elevated: #e2e8f0;
  --bg-glass: rgba(255, 255, 255, 0.95);
  --accent-gold: #b48608;
  --accent-gold-hover: #9a7106;
  --accent-gold-subtle: rgba(180, 134, 8, 0.12);
  --trust-green: #059669;
  --trust-green-subtle: rgba(5, 150, 105, 0.12);
  --text-primary: #0f172a;
  --text-muted: #475569;
  --text-on-gold: #ffffff;
  --border-gold: rgba(180, 134, 8, 0.3);
  --border-subtle: rgba(15, 23, 42, 0.12);
  --shadow-card: 0 8px 24px -4px rgba(15, 23, 42, 0.08);
}

/* ==========================================================================
   BASE RESET & TYPOGRAPHY
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color var(--transition-fast), color var(--transition-fast);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-gold-hover);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ==========================================================================
   VAULT SHIELD CONTAINER (100% Image Visibility, Anti-Drag/Right-Click)
   ========================================================================== */
.vault-shield-container {
  position: relative;
  display: inline-block;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.vault-shield-container img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* ==========================================================================
   LAYOUT CONTAINERS & VIEW MANAGEMENT
   ========================================================================== */
.app-container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px;
  flex: 1;
}

@media (min-width: 900px) {
  .app-container {
    padding: 2rem 1.5rem 4rem;
  }
}

.app-view {
  display: none;
  width: 100%;
  max-width: 100%;
  animation: fadeIn 0.2s ease-out;
}

.app-view.active-view {
  display: block;
}

#landing-gateway,
#main-hub-menu,
.gateway-card,
.sponsor-giveaway-banner,
.hub-door-card,
.room-shell-card,
.modal-card,
.overlay-container {
  width: 100%;
  max-width: 100%;
}

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

/* ==========================================================================
   MASTER STICKY HEADER
   ========================================================================== */
.master-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-gold);
  width: 100%;
}

.master-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand-identity {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-logo-wrap {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-gold);
  overflow: hidden;
  flex-shrink: 0;
  background-color: var(--bg-elevated);
}

.brand-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-title-group {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.1;
}

.brand-name span {
  color: var(--accent-gold);
}

.brand-tagline {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}

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

.zip-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-gold);
  color: var(--text-primary);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.zip-pill-btn:hover {
  border-color: var(--accent-gold);
  background-color: var(--accent-gold-subtle);
}

.zip-pill-btn .zip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--trust-green);
  display: inline-block;
}

.theme-toggle-btn,
.auth-profile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-gold);
  color: var(--text-primary);
  height: 38px;
  padding: 0 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover,
.auth-profile-btn:hover {
  border-color: var(--accent-gold);
  background-color: var(--accent-gold-subtle);
}

@media (max-width: 640px) {
  .master-header-inner {
    padding: 0.6rem 0.75rem;
    gap: 0.4rem;
  }

  .brand-logo-wrap {
    width: 34px;
    height: 34px;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .brand-tagline {
    display: none;
  }

  .header-controls {
    gap: 0.35rem;
  }

  .zip-pill-btn {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  .theme-toggle-btn {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
    flex-shrink: 0;
  }

  .theme-toggle-btn .theme-label-text,
  .theme-toggle-btn .hide-sm {
    display: none;
  }

  .auth-profile-btn {
    padding: 6px 10px;
    font-size: 0.8rem;
    height: 36px;
    white-space: nowrap;
  }
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */
.btn-gold,
a.btn-gold,
a.gold-btn,
a.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: var(--accent-gold);
  color: #0f141c !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  text-align: center;
}

.btn-gold:hover,
a.btn-gold:hover,
a.gold-btn:hover,
a.btn-primary:hover {
  background-color: var(--accent-gold-hover);
  color: #0f141c !important;
  text-decoration: none !important;
  transform: translateY(-1px);
}

.btn-gold:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--accent-gold-subtle);
  color: var(--accent-gold);
  border: 1px solid var(--border-gold);
  font-weight: 600;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.btn-outline-gold:hover {
  border-color: var(--accent-gold);
  background-color: var(--accent-gold);
  color: var(--text-on-gold);
}

/* ==========================================================================
   VIEW 1: FRONT DOOR ZIP GATEWAY (#landing-gateway)
   ========================================================================== */
.gateway-wrapper {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.gateway-card {
  width: 100%;
  max-width: 500px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.gateway-logo {
  width: 112px;
  height: 112px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  border: 2px solid var(--accent-gold);
  padding: 4px;
  background-color: var(--bg-elevated);
  box-shadow: 0 4px 20px rgba(229, 193, 88, 0.2);
}

.gateway-logo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.gateway-headline {
  font-size: clamp(1.35rem, 5.5vw, 2rem);
  word-break: break-word;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

@media (max-width: 640px) {
  .gateway-card {
    padding: 1.5rem 1.15rem;
  }

  .gateway-headline {
    font-size: clamp(1.35rem, 5.5vw, 2rem);
    word-break: break-word;
  }
}

.gateway-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  line-height: 1.45;
}

.gateway-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.gateway-input-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-gold);
  font-weight: 700;
}

.gateway-zip-input {
  width: 100%;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background-color: var(--bg-elevated);
  border: 1.5px solid var(--border-gold);
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition-fast);
}

.gateway-zip-input:focus {
  border-color: var(--accent-gold);
}

/* ==========================================================================
   VIEW 2: MAIN HOME HUB (#main-hub-menu)
   ========================================================================== */
.sponsor-giveaway-banner {
  background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

@media (min-width: 900px) {
  .sponsor-giveaway-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
  }
}

.sponsor-banner-content {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-width: 700px;
}

.sponsor-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  align-self: flex-start;
  background-color: var(--accent-gold-subtle);
  color: var(--accent-gold);
  border: 1px solid var(--border-gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}

.sponsor-headline {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
}

.sponsor-subtext {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.sponsor-cta-wrap {
  flex-shrink: 0;
}

/* 6 Main Room Doors Grid (1 column on mobile, 2x3 on tablet, balanced 3x2 grid on desktop >= 960px) */
.hub-doors-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

@media (min-width: 680px) and (max-width: 959px) {
  .hub-doors-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
  }
}

@media (min-width: 960px) {
  .hub-doors-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
  }
}

.hub-door-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-card);
}

.hub-door-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-2px);
  background-color: var(--bg-elevated);
}

.hub-door-left {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.hub-door-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background-color: var(--accent-gold-subtle);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  flex-shrink: 0;
}

.hub-door-text h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.hub-door-text p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.hub-door-arrow {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-gold);
  flex-shrink: 0;
  padding-left: 0.4rem;
  transition: transform var(--transition-fast);
}

.hub-door-card:hover .hub-door-arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   CLEAN FOOTER
   ========================================================================== */
.clean-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-gold);
  background-color: var(--bg-card);
  padding: 1.5rem 1rem;
}

.clean-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 900px) {
  .clean-footer-inner {
    flex-direction: row;
    text-align: left;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  font-size: 0.88rem;
}

.footer-link-muted {
  color: var(--text-muted);
  cursor: pointer;
}

.footer-link-muted:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.footer-partner-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--accent-gold-subtle);
  color: var(--accent-gold);
  border: 1px solid var(--border-gold);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.footer-partner-cta:hover {
  background-color: var(--accent-gold);
  color: var(--text-on-gold);
}

/* ==========================================================================
   FULL-SCREEN OVERLAY & MODALS
   ========================================================================== */
.fullscreen-overlay,
.modal-backdrop,
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background-color: rgba(15, 20, 28, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  align-items: flex-start;
  justify-content: center;
  padding: 12px;
}

.fullscreen-overlay.active-modal,
.modal-backdrop.active-modal,
.modal-overlay.active-modal {
  display: flex;
}

.overlay-container {
  width: 100%;
  max-width: 920px;
  height: auto;
  max-height: none;
  overflow: visible;
  margin: 24px auto 40px auto;
  padding-bottom: 32px;
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.5rem;
  background-color: var(--bg-elevated);
  border-bottom: 1px solid var(--border-gold);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.overlay-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.overlay-close-btn {
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold);
  color: var(--text-primary);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
}

.overlay-close-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.overlay-body {
  padding: 1.5rem;
}

/* Scoreboard 3-Box Bar */
.scoreboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
  .overlay-header {
    padding: 0.85rem 1rem;
  }

  .overlay-body {
    padding: 0.95rem;
  }

  .scoreboard-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 1rem;
  }

  .scoreboard-grid .scoreboard-box:nth-child(3) {
    grid-column: 1 / -1;
  }

  .scoreboard-box {
    padding: 0.7rem 0.8rem;
  }

  .scoreboard-value {
    font-size: 0.98rem;
  }
}

@media (min-width: 900px) {
  .scoreboard-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.scoreboard-box {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.4rem;
}

.scoreboard-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 700;
}

.scoreboard-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.scoreboard-value.status-entered {
  color: var(--trust-green);
}

.scoreboard-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.scoreboard-link {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-top: 0.2rem;
  display: inline-block;
  cursor: pointer;
}

.scoreboard-link:hover {
  text-decoration: underline;
}

/* Progress Bars */
.progress-track {
  width: 100%;
  height: 10px;
  background-color: var(--bg-primary);
  border-radius: var(--radius-pill);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  margin: 0.35rem 0;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-gold), var(--trust-green));
  border-radius: var(--radius-pill);
  transition: width 0.4s ease;
}

/* 3-Tab Navigation Bar */
.rewards-tabs-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  background-color: var(--bg-primary);
  padding: 0.4rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-gold);
  margin-bottom: 1.5rem;
}

.rewards-tab-btn {
  padding: 0.7rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  transition: all var(--transition-fast);
}

.rewards-tab-btn:hover {
  color: var(--text-primary);
}

.rewards-tab-btn.active-tab {
  background-color: var(--accent-gold);
  color: var(--text-on-gold);
}

.rewards-tab-panel {
  display: none;
  animation: fadeIn 0.2s ease-out;
}

.rewards-tab-panel.active-panel {
  display: block;
}

/* Tab 1: Weekly Giveaway */
.prize-feature-card {
  background-color: var(--bg-elevated);
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.prize-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.countdown-pill {
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold);
  color: var(--accent-gold);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.fair-rules-box {
  background-color: var(--bg-card);
  border-left: 3px solid var(--trust-green);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.15rem;
}

.winners-list-card {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  margin-top: 1.25rem;
}

.winners-list-card h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-gold);
  margin-bottom: 0.65rem;
}

.winner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.88rem;
}

.winner-row:last-child {
  border-bottom: none;
}

/* Tab 2: Charity Vote */
.charity-card {
  background-color: var(--bg-elevated);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  margin-bottom: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.charity-card.selected-charity {
  border-color: var(--accent-gold);
  background-color: var(--accent-gold-subtle);
}

.charity-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.charity-radio-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.05rem;
}

.charity-pts-badge {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-gold);
  white-space: nowrap;
}

/* Tab 3: How It Works */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 900px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--accent-gold);
  color: var(--text-on-gold);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.step-card h4 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.step-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ==========================================================================
   STANDARD MODAL CARD (Auth / Zip Switcher / Legal)
   ========================================================================== */
.modal-card {
  width: 100%;
  max-width: 460px;
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
}

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

.modal-card-header h3 {
  font-size: 1.2rem;
  font-weight: 800;
}

.form-group {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

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

.form-input {
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-gold);
  color: var(--text-primary);
  outline: none;
}

.form-input:focus {
  border-color: var(--accent-gold);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 1rem 0 1.25rem;
  cursor: pointer;
}

.checkbox-row input[type="checkbox"] {
  margin-top: 0.2rem;
  accent-color: var(--accent-gold);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Feature Room Shell Header */
.room-shell-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
}

.room-shell-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.15rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-gold);
}

/* ==========================================================================
   BUILD STEP 2: ZERO-HALLWAY TOWN SQUARE & SMART SPONSOR ROLODEX
   ========================================================================== */
.town-square-header-shell {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.15rem;
  box-shadow: var(--shadow-card);
}

/* 5-6% Opacity Architectural Town Square Motif Watermark */
.town-square-header-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 220'%3E%3Cg fill='none' stroke='%23e5c158' stroke-width='2'%3E%3Cpath d='M50 200 L50 90 L130 45 L210 90 L210 200 Z'/%3E%3Cpath d='M90 200 L90 120 L170 120 L170 200'/%3E%3Ccircle cx='130' cy='80' r='16'/%3E%3Cpath d='M250 200 L250 70 L400 20 L550 70 L550 200 Z'/%3E%3Cpath d='M285 200 L285 95 M325 200 L325 95 M365 200 L365 95 M435 200 L435 95 M475 200 L475 95 M515 200 L515 95'/%3E%3Ccircle cx='400' cy='58' r='18'/%3E%3Cpath d='M590 200 L590 100 L670 60 L750 100 L750 200 Z'/%3E%3Cline x1='0' y1='200' x2='800' y2='200' stroke-width='4'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
}

.ts-top-nav-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.ts-room-title {
  font-size: clamp(1.1rem, 4vw, 1.45rem);
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

/* Uncapped Smart Sponsor Rolodex Banner */
.rolodex-banner-frame {
  position: relative;
  z-index: 1;
  background: linear-gradient(145deg, var(--bg-elevated) 0%, var(--bg-primary) 100%);
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 0.95rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.rolodex-slide-body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  opacity: 1 !important;
  visibility: visible !important;
}

.rolodex-slide-body.rolodex-fade-out {
  opacity: 1 !important;
}

.rolodex-slide-body *,
.rolodex-biz-name,
.rolodex-perk-line,
.rolodex-banner-frame .btn-gold {
  opacity: 1 !important;
  visibility: visible !important;
}

@media (min-width: 768px) {
  .rolodex-slide-body {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.rolodex-info-col {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.rolodex-biz-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
}

.rolodex-perk-line {
  font-size: 0.9rem;
  color: var(--accent-gold);
  font-weight: 600;
}

.rolodex-footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
}

.rolodex-all-link {
  color: var(--accent-gold);
  font-weight: 700;
  cursor: pointer;
  margin-left: auto;
}

.rolodex-all-link:hover {
  text-decoration: underline;
}

/* 4-Tab Switcher Bar (2x2 Grid on Mobile <= 680px, 4-Column Row on Desktop > 680px) */
.ts-tabs-bar,
.room-4tabs-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 0.45rem;
  margin-bottom: 1.25rem;
  overflow: visible;
}

@media (max-width: 680px) {
  .ts-tabs-bar,
  .room-4tabs-bar {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    overflow: visible !important;
    white-space: normal !important;
  }
}

.ts-tab-btn,
.room-tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: normal;
  transition: all var(--transition-fast);
  text-align: center;
}

.ts-tab-btn:hover,
.room-tab-btn:hover {
  color: var(--text-primary);
  background-color: var(--bg-elevated);
}

.ts-tab-btn.active-ts-tab,
.room-tab-btn.active-room-tab {
  background-color: var(--accent-gold);
  color: var(--text-on-gold);
}

.ts-tab-panel,
.room-tab-panel {
  display: none;
  animation: fadeIn 0.2s ease-out;
}

.ts-tab-panel.active-ts-panel,
.room-tab-panel.active-room-panel {
  display: block;
}

/* Compose Bar & Filter Pills */
.ts-compose-bar {
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .ts-compose-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.ts-compose-prompt {
  color: var(--text-muted);
  font-size: 0.92rem;
  cursor: pointer;
  flex: 1;
}

.ts-filter-controls {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

@media (min-width: 768px) {
  .ts-filter-controls {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

.ts-search-input {
  width: 100%;
  max-width: 340px;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-pill);
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold);
  color: var(--text-primary);
  font-size: 0.88rem;
  outline: none;
  flex-shrink: 0;
}

.ts-search-input:focus {
  border-color: var(--accent-gold);
}

/* Wrapping Filter Pill Rows Across Entire App (Zero Horizontal Scrollbars) */
.ts-pills-row,
.filter-pills-row {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center;
  gap: 8px !important;
  overflow: visible !important;
  padding-bottom: 4px;
}

.ts-pill-btn,
.filter-pill-btn {
  padding: 0.42rem 0.85rem;
  border-radius: var(--radius-pill);
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  transition: all var(--transition-fast);
  text-align: center;
}

.ts-pill-btn:hover,
.filter-pill-btn:hover {
  border-color: var(--border-gold);
  color: var(--text-primary);
}

.ts-pill-btn.active-pill,
.filter-pill-btn.active-pill {
  background-color: var(--accent-gold-subtle);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* Forum Thread Cards */
.ts-thread-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  margin-bottom: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.ts-thread-card:hover {
  border-color: var(--accent-gold);
  background-color: var(--bg-elevated);
  transform: translateY(-1px);
}

.ts-thread-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.ts-category-tag {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-gold);
  color: var(--accent-gold);
  padding: 0.18rem 0.6rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.74rem;
}

.ts-thread-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text-primary);
}

.ts-thread-preview {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.ts-thread-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.45rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* In-Feed 10th Item Sponsor Card */
.ts-infeed-sponsor-card {
  background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
  border: 1.5px dashed var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

/* Tab 2: Casual Scroll Cards */
.casual-feed-grid {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.casual-post-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.casual-post-header {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.casual-author-wrap {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.casual-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--accent-gold-subtle);
  border: 1.5px solid var(--accent-gold);
  color: var(--accent-gold);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.casual-caption {
  padding: 0 1.25rem 0.9rem;
  font-size: 0.94rem;
  color: var(--text-primary);
}

.casual-media-wrap {
  width: 100%;
  max-height: 420px;
  background-color: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  display: block;
}

.casual-media-wrap img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.casual-actions-bar {
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.casual-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.casual-action-btn:hover,
.casual-action-btn.liked {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background-color: var(--accent-gold-subtle);
}

.casual-comments-drawer {
  padding: 0.85rem 1.25rem 1.1rem;
  background-color: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
  display: none;
  flex-direction: column;
  gap: 0.6rem;
}

.casual-comments-drawer.open-comments {
  display: flex;
}

/* Tab 3: Groups Grid */
.groups-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .groups-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.group-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
  box-shadow: var(--shadow-card);
}

.group-scope-badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.group-scope-badge.local {
  background-color: var(--trust-green-subtle);
  color: var(--trust-green);
  border: 1px solid var(--trust-green);
}

.group-scope-badge.national {
  background-color: var(--accent-gold-subtle);
  color: var(--accent-gold);
  border: 1px solid var(--border-gold);
}

/* Tab 4: Town Voice */
.voice-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.voice-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: var(--shadow-card);
}

.drafting-item {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.75rem;
}

/* ==========================================================================
   BUILD STEP 3: THE LABOR EXCHANGE BULLETIN BOARD & ACADEMY
   ========================================================================== */
.labor-header-shell {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-card);
}

/* 5.5% Opacity Craftsman / Blueprint Motif Watermark */
.labor-header-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 220'%3E%3Cg fill='none' stroke='%23e5c158' stroke-width='2'%3E%3Cpath d='M0 40 H800 M0 90 H800 M0 140 H800 M0 190 H800' stroke-dasharray='6 6' opacity='0.5'/%3E%3Cpath d='M120 0 V220 M280 0 V220 M440 0 V220 M600 0 V220' stroke-dasharray='6 6' opacity='0.5'/%3E%3Cpolygon points='220,180 320,75 420,180'/%3E%3Crect x='250' y='130' width='140' height='50'/%3E%3Ccircle cx='560' cy='115' r='48'/%3E%3Ccircle cx='560' cy='115' r='20'/%3E%3Cpath d='M560 55 V70 M560 160 V175 M500 115 H515 M605 115 H620' stroke-width='4'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

/* Compact 2-Button Action Bar */
.labor-action-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 1rem;
}

.labor-action-btn {
  min-height: 48px;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-align: center;
  transition: all var(--transition-fast);
}

/* Primary 2-Tab Switcher (Licensed Pros First) */
.labor-2tabs-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 0.45rem;
  margin-bottom: 1.15rem;
}

.labor-tab-btn {
  min-height: 46px;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-align: center;
  transition: all var(--transition-fast);
}

.labor-tab-btn:hover {
  color: var(--text-primary);
  background-color: var(--bg-elevated);
}

.labor-tab-btn.active-labor-tab {
  background-color: var(--accent-gold);
  color: var(--text-on-gold);
}

/* Provider / Worker Listing Cards */
.labor-providers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 900px) {
  .labor-providers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.labor-provider-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.labor-provider-card:hover {
  border-color: var(--accent-gold);
  background-color: var(--bg-elevated);
  transform: translateY(-2px);
}

.provider-badges-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
}

.badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.22rem 0.6rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-chip.pro {
  background-color: var(--accent-gold-subtle);
  color: var(--accent-gold);
  border: 1px solid var(--border-gold);
}

.badge-chip.insured {
  background-color: var(--trust-green-subtle);
  color: var(--trust-green);
  border: 1px solid var(--trust-green);
}

.availability-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.24rem 0.65rem;
  border-radius: var(--radius-pill);
}

.availability-pill.active-now {
  background-color: var(--trust-green-subtle);
  color: var(--trust-green);
  border: 1px solid var(--trust-green);
}

.availability-pill.standard {
  background-color: var(--accent-gold-subtle);
  color: var(--accent-gold);
  border: 1px solid var(--border-gold);
}

.specialty-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.specialty-chip {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.22rem 0.6rem;
  border-radius: var(--radius-pill);
}

.provider-card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
}

/* Portfolio 3-Card SVG Gallery */
.portfolio-gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 0.75rem 0 1.25rem;
}

@media (min-width: 680px) {
  .portfolio-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.portfolio-svg-card {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.portfolio-svg-card img {
  width: 100%;
  height: 145px;
  object-fit: cover;
  display: block;
}

.portfolio-svg-caption {
  padding: 0.45rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
}

/* Gig-to-Contractor Academy Accordion */
.academy-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1rem;
}

.academy-item {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.academy-header-btn {
  width: 100%;
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
  background-color: var(--bg-elevated);
}

.academy-header-btn:hover {
  color: var(--accent-gold);
}

.academy-body {
  display: none;
  padding: 0 1.1rem 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.85rem;
}

.academy-item.open-guide .academy-body {
  display: block;
}

/* ==========================================================================
   BUILD STEP 4: THE LOCAL OUTPOST (DINING, FOOD TRUCKS, COMPASS, KITCHEN)
   ========================================================================== */
.outpost-header-shell {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.1rem;
  box-shadow: var(--shadow-card);
}

/* 5.5% Opacity Warm Bistro / Culinary Motif Watermark */
.outpost-header-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 220'%3E%3Cg fill='none' stroke='%23e5c158' stroke-width='2'%3E%3Ccircle cx='180' cy='110' r='68'/%3E%3Ccircle cx='180' cy='110' r='44' stroke-dasharray='6 6'/%3E%3Cpath d='M90 60 V160 M82 60 V95 M98 60 V95'/%3E%3Cpath d='M270 60 V160 M270 60 C285 75 285 105 270 115'/%3E%3Cpath d='M450 165 H650 L635 95 H465 Z'/%3E%3Cpath d='M515 75 Q525 50 515 35 M550 75 Q560 50 550 35 M585 75 Q595 50 585 35'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

/* Next-Day Follow-Up Check-In Banner */
.followup-checkin-card {
  background: linear-gradient(145deg, var(--bg-elevated) 0%, var(--bg-card) 100%);
  border: 1.5px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .followup-checkin-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* 3-Spin Decision Wheel Engine Box */
.spinner-engine-card {
  background: linear-gradient(155deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  margin-bottom: 1.35rem;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.spinner-slot-stage {
  background-color: var(--bg-primary);
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  margin: 1rem auto;
  max-width: 640px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

/* Visual Restaurant & Venue Bulletin Cards */
.outpost-spots-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 860px) {
  .outpost-spots-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.outpost-spot-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.outpost-spot-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

.outpost-spot-banner {
  width: 100%;
  height: 155px;
  background-color: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
}

.outpost-spot-banner img {
  width: 100%;
  height: 155px;
  object-fit: cover;
  display: block;
}

.outpost-spot-body {
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

/* Food Truck Live Verified Cards */
.truck-card {
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.3rem;
  margin-bottom: 0.95rem;
  box-shadow: var(--shadow-card);
}

.truck-card.verified-live {
  border-color: var(--trust-green);
}

.truck-card.unverified-off {
  opacity: 0.72;
  border-style: dashed;
}

/* Community Kitchen: 7-Day Meal Calendar & Smart Grocery List */
.meal-calendar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .meal-calendar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.meal-day-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.65rem;
}

.meal-day-card.tonight-highlight {
  border: 2px solid var(--accent-gold);
  background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
}

.aisle-group-card {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  margin-bottom: 0.85rem;
}

.grocery-thumb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  margin-top: 0.45rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  user-select: none;
  transition: all var(--transition-fast);
}

.grocery-thumb-row:hover {
  border-color: var(--accent-gold);
}

.grocery-thumb-row.checked-off {
  opacity: 0.55;
  text-decoration: line-through;
}

/* ==========================================================================
   BUILD STEP 5: LOCAL CLASSIFIEDS, DEALER SHOWROOMS, MINI-BOOTHS & YARD SALES
   ========================================================================== */
.classifieds-header-shell {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.1rem;
  box-shadow: var(--shadow-card);
}

/* 5.5% Opacity Classic Garage / Highway / Marketplace Motif Watermark */
.classifieds-header-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 220'%3E%3Cg fill='none' stroke='%23e5c158' stroke-width='2'%3E%3Cpath d='M70 175 L110 115 H230 L270 175 Z'/%3E%3Ccircle cx='125' cy='175' r='22'/%3E%3Ccircle cx='215' cy='175' r='22'/%3E%3Cpath d='M360 180 V95 L455 35 L550 95 V180 Z'/%3E%3Crect x='430' y='125' width='50' height='55'/%3E%3Cpath d='M620 65 H730 L750 110 L690 175 L620 110 Z'/%3E%3Ccircle cx='675' cy='95' r='12'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

/* Gold-Bordered Verified Local Dealer Spotlight Card */
.dealer-spotlight-card {
  border: 2px solid #e5c158 !important;
  background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: var(--shadow-card);
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

@media (min-width: 860px) {
  .dealer-spotlight-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Instant Dealer Lot Filter Bar */
.dealer-lot-filter-bar {
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  margin-bottom: 1.15rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (max-width: 680px) {
  .dealer-lot-filter-bar {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    padding: 10px !important;
  }

  .dealer-lot-filter-bar .form-group label {
    font-size: 0.75rem !important;
    margin-bottom: 2px !important;
  }

  .dealer-lot-filter-bar .form-group select.form-input {
    padding: 6px 8px !important;
    font-size: 0.82rem !important;
  }
}

@media (min-width: 681px) {
  .dealer-lot-filter-bar {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Neighbor Mini-Booth Pill */
.mini-booth-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: var(--accent-gold-subtle);
  border: 1px solid var(--border-gold);
  color: var(--accent-gold);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mini-booth-pill:hover {
  background-color: var(--accent-gold);
  color: #0f141c;
}

/* ==========================================================================
   BUILD STEP 6: UNIFIED 3-STEP PARTNER & ADVERTISER GATEWAY (LIVE AD BUILDER)
   ========================================================================== */
.wizard-header-shell {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.35rem;
  margin-bottom: 1.15rem;
  box-shadow: var(--shadow-card);
}

/* 5.5% Opacity Hometown Business & Growth Motif Watermark */
.wizard-header-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 220'%3E%3Cg fill='none' stroke='%23e5c158' stroke-width='2'%3E%3Crect x='70' y='80' width='140' height='120'/%3E%3Cpath d='M55 80 L140 30 L225 80 Z'/%3E%3Crect x='120' y='135' width='40' height='65'/%3E%3Cpath d='M320 185 L410 120 L480 145 L590 55 L690 35' stroke-width='3.5'/%3E%3Ccircle cx='590' cy='55' r='8'/%3E%3Ccircle cx='690' cy='35' r='10'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

/* Concierge Escape Hatch Banner */
.concierge-escape-banner {
  position: relative;
  z-index: 1;
  background: linear-gradient(145deg, var(--bg-elevated) 0%, var(--bg-primary) 100%);
  border: 1.5px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 0.95rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .concierge-escape-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* 3-Step Wizard Progress Bar */
.wizard-steps-bar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 720px) {
  .wizard-steps-bar {
    grid-template-columns: repeat(3, 1fr);
  }
}

.wizard-step-pill {
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-muted);
  background-color: var(--bg-elevated);
  border: 1px solid transparent;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.wizard-step-pill.active-wstep {
  background-color: var(--accent-gold);
  color: #0f141c !important;
}

.wizard-step-pill.completed-wstep {
  border-color: var(--trust-green);
  color: var(--trust-green);
}

.wizard-step-panel {
  display: none;
  animation: fadeIn 0.2s ease-out;
}

.wizard-step-panel.active-wpanel {
  display: block;
}

/* Step 1: 6 Unified Industry Partner Cards Grid */
.partner-tiers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .partner-tiers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1040px) {
  .partner-tiers-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.partner-tier-card {
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.9rem;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}

.partner-tier-card:hover,
.partner-tier-card.selected-tier {
  border-color: var(--accent-gold);
  background-color: var(--bg-elevated);
  transform: translateY(-3px);
}

.anchor-pricing-box {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.9rem;
}

.standard-price-strike {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.founding-price-highlight {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent-gold);
}

/* Step 2: Desktop Split-Screen Live Ad Builder */
.wizard-split-builder {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
  align-items: start;
}

@media (min-width: 900px) {
  .wizard-split-builder {
    grid-template-columns: 1.08fr 0.92fr;
  }

  .wizard-live-preview-sticky {
    position: sticky;
    top: 84px;
  }
}

.standalone-web-upsell-box {
  background: linear-gradient(145deg, var(--bg-elevated) 0%, var(--bg-primary) 100%);
  border: 1.5px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  margin-top: 1.1rem;
}

/* ==========================================================================
   CLASSIFIEDS UX UPGRADE: 3-WAY VIEW SWITCHER & 2-COLUMN THUMBNAIL GRID
   ========================================================================== */
.classifieds-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.view-mode-switcher {
  display: inline-flex;
  align-items: center;
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 3px;
}

.view-mode-btn {
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.view-mode-btn.active-vmode {
  background-color: var(--accent-gold);
  color: #0f141c !important;
}

/* Mobile Compact Category Collapse Toggle */
.mobile-cat-toggle-btn {
  display: none;
  align-items: center;
  gap: 0.35rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold);
  color: var(--accent-gold);
  padding: 0.42rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 800;
}

@media (max-width: 680px) {
  .mobile-cat-toggle-btn {
    display: inline-flex;
  }

  .collapsible-mobile-pills.collapsed-on-mobile {
    display: none !important;
  }
}

/* 1. Default 2-Column Thumbnail Grid View (⊞ Grid) */
.classifieds-thumb-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 1.5rem;
}

@media (min-width: 681px) {
  .classifieds-thumb-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
  }
}

.classified-thumb-tile {
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-card);
}

.classified-thumb-tile:hover {
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

.classified-thumb-tile.dealer-gold-tile {
  border: 2px solid #e5c158 !important;
  background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
}

.thumb-image-box {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: var(--bg-elevated);
  border-radius: 10px 10px 0 0;
  overflow: hidden;
}

.thumb-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-corner-pill {
  position: absolute;
  top: 6px;
  left: 6px;
  background-color: rgba(15, 20, 28, 0.85);
  border: 1px solid var(--border-gold);
  color: var(--accent-gold);
  font-size: 0.66rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  pointer-events: none;
}

.thumb-info-block {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.thumb-price-line {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1.2;
}

.thumb-title-line {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thumb-meta-line {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 2. Compact Horizontal List View (≡ List) */
.classifieds-compact-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.classified-list-row {
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.classified-list-row:hover {
  border-color: var(--accent-gold);
  background-color: var(--bg-elevated);
}

.list-row-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
}

.list-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   BUILD STEP 7: TWO-HAT USER/BUSINESS COMMAND CENTER (#user-dashboard)
   & MASTER/REGIONAL ADMIN OPERATIONS CENTER (#master-admin)
   ========================================================================== */

/* 1. Compact Top Identity, Ticket & Admin Access Bar */
.dash-identity-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-card);
}

.dash-identity-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border-subtle);
}

.dash-avatar-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  border: 2px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  flex-shrink: 0;
}

.dash-quick-stats-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

@media (min-width: 720px) {
  .dash-quick-stats-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

.dash-stat-pill {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.dash-stat-pill:hover {
  border-color: var(--accent-gold);
  background-color: var(--accent-gold-subtle);
}

/* 2. Two-Hat Primary Mode Switcher Bar */
.two-hat-switcher-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 1.15rem;
}

.two-hat-btn {
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-muted);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.two-hat-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent-gold);
}

.two-hat-btn.active-hat {
  background-color: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #0f141c !important;
  box-shadow: 0 4px 16px rgba(229, 193, 88, 0.25);
}

.hat-view-panel {
  display: none;
  animation: fadeIn 0.2s ease-out;
}

.hat-view-panel.active-hat-panel {
  display: block;
}

/* 3. Hat 1 Responsive Layout (2x2 Channel Grid on Mobile < 860px; 2-Column Sidebar + Workspace on Desktop >= 860px) */
.hat1-layout-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  align-items: start;
}

.hat1-channels-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

@media (min-width: 860px) {
  .hat1-layout-shell {
    grid-template-columns: 270px 1fr;
  }

  .hat1-channels-nav {
    grid-template-columns: 1fr;
    position: sticky;
    top: 84px;
  }
}

.hat1-channel-btn {
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.9rem;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--text-muted);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.hat1-channel-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent-gold);
}

.hat1-channel-btn.active-channel {
  background-color: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #0f141c !important;
}

/* 4. Hat 2 Business Role Switcher & 4-Sub-Tab Bar */
.biz-role-demo-bar {
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

/* Part B: Master & Regional Admin Operations Center (#master-admin) */
.admin-top-bar {
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.15rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.admin-top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.admin-geo-filters-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border-subtle);
}

@media (min-width: 680px) {
  .admin-geo-filters-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.admin-layout-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  align-items: start;
}

.admin-sidebar-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

@media (min-width: 920px) {
  .admin-layout-shell {
    grid-template-columns: 280px 1fr;
  }

  .admin-sidebar-nav {
    grid-template-columns: 1fr;
    position: sticky;
    top: 84px;
  }
}

.admin-tab-btn {
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.9rem;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--text-muted);
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.admin-tab-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent-gold);
}

.admin-tab-btn.active-atab {
  background-color: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #0f141c !important;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

@media (min-width: 768px) {
  .admin-kpi-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.admin-kpi-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
}

.admin-kpi-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 800;
}

.admin-kpi-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-gold);
  margin-top: 0.2rem;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
}

.admin-ledger-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  min-width: 680px;
}

.admin-ledger-table th {
  background-color: var(--bg-elevated);
  color: var(--accent-gold);
  text-align: left;
  padding: 0.75rem 0.85rem;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border-gold);
}

.admin-ledger-table td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
  vertical-align: middle;
}

.admin-ledger-table tr:hover td {
  background-color: var(--bg-elevated);
}

/* ==========================================================================
   BETA TESTER GATEWAY & PERSISTENT TOP BETA RIBBON
   ========================================================================== */
.beta-top-ribbon {
  width: 100%;
  background: linear-gradient(90deg, #18202c 0%, #1f2937 100%);
  border-bottom: 1.5px solid var(--accent-gold);
  padding: 0.42rem 1rem;
  z-index: 1001;
}

body.daylight-theme .beta-top-ribbon {
  background: linear-gradient(90deg, #fef3c7 0%, #fde68a 100%);
  border-bottom: 1.5px solid #b45309;
}

.beta-top-ribbon-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.beta-ribbon-text {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
}

.beta-feedback-trigger-btn {
  background-color: var(--accent-gold);
  color: #0f141c !important;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.beta-feedback-trigger-btn:hover {
  background-color: var(--accent-gold-hover);
  transform: translateY(-1px);
}

/* VIP Beta Access Gate inside #landing-gateway */
.beta-gate-box {
  background-color: var(--bg-elevated);
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  text-align: left;
}

.beta-passcode-field {
  width: 100%;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-md);
  background-color: var(--bg-primary);
  border: 1.5px solid var(--border-gold);
  color: var(--accent-gold);
  margin-top: 0.45rem;
}

.beta-passcode-field:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(229, 193, 88, 0.2);
}

.beta-helper-link {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.beta-helper-link button {
  color: var(--accent-gold);
  font-weight: 800;
  text-decoration: underline;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: 0.82rem;
}

/* ==========================================================================
   MASTER QA PASS #1 (ITEMS #1–#19):
   - Content Guardrail Red Error States (Item #12)
   - How This Works & Where Your Ad Appears Accordion (Item #18)
   - Mobile Ad Builder Declutter & Desktop Tip (Item #1)
   - 6 Collapsible Accordion Dropdown Bars & Sticky Kitchen Bar (Items #13–#17)
   ========================================================================== */

/* 1. Real-Time Profanity & Contact-Info Guardrail Styling (Item #12) */
.input-guard-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 2.5px rgba(239, 68, 68, 0.28) !important;
}

.guard-inline-warning {
  color: #ef4444;
  background-color: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.45);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.4;
  margin-top: 0.35rem;
}

/* 2. Expandable "How This Works & Where Your Ad Appears" Guide (Item #18) */
.how-it-works-accordion {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  margin: 0.35rem 0;
  overflow: hidden;
}

.how-it-works-trigger {
  width: 100%;
  background: rgba(229, 193, 88, 0.1);
  border: none;
  color: var(--accent-gold);
  padding: 0.55rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.how-it-works-trigger:hover {
  background: rgba(229, 193, 88, 0.18);
}

.how-it-works-body {
  padding: 0.75rem 0.9rem;
  border-top: 1px solid var(--border-subtle);
  background-color: var(--bg-elevated);
}

.how-it-works-list {
  margin: 0;
  padding-left: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-primary);
  line-height: 1.45;
}

/* 3. Mobile Ad Builder Declutter & Desktop Tip Banner (Item #1) */
.mobile-builder-desktop-tip {
  display: none;
  background: linear-gradient(145deg, var(--bg-elevated) 0%, var(--bg-card) 100%);
  border: 1.5px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.9rem;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.wizard-form-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 820px) {
  .mobile-builder-desktop-tip {
    display: block;
  }

  .wizard-steps-bar {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 5px !important;
    padding: 0.35rem !important;
    margin-bottom: 0.85rem !important;
  }

  .wizard-step-pill {
    padding: 0.45rem 0.35rem !important;
    font-size: 0.72rem !important;
    line-height: 1.25 !important;
  }

  .concierge-escape-banner {
    padding: 0.65rem 0.85rem !important;
    gap: 0.5rem !important;
  }

  .wizard-founding-banner {
    padding: 0.65rem 0.85rem !important;
    font-size: 0.82rem !important;
    margin-bottom: 0.85rem !important;
  }
}

/* 4. Collapsible Dropdown Profile Control Center (#user-dashboard — Items #13, #15, #16, #17) */
#user-dashboard {
  overflow: visible !important;
  padding-bottom: 90px !important;
}

.dashboard-dropdowns-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.profile-dropdown-card {
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: visible;
  transition: border-color var(--transition-fast);
}

.profile-dropdown-card.open-dropdown {
  border-color: var(--accent-gold);
}

.profile-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1.15rem;
  cursor: pointer;
  user-select: none;
  background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
  border-radius: var(--radius-lg);
  transition: background var(--transition-fast);
}

.profile-dropdown-card.open-dropdown .profile-dropdown-header {
  border-bottom: 1px solid var(--border-gold);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.profile-dropdown-header:hover {
  background-color: var(--bg-elevated);
}

.profile-dropdown-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  min-width: 0;
}

.profile-dropdown-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.profile-dropdown-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text-primary);
}

.profile-dropdown-badge {
  display: inline-flex;
  align-items: center;
  background-color: var(--accent-gold-subtle);
  border: 1px solid var(--border-gold);
  color: var(--accent-gold);
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.18rem 0.6rem;
  border-radius: var(--radius-pill);
}

.profile-dropdown-chevron {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--accent-gold);
  flex-shrink: 0;
}

.profile-dropdown-body {
  padding: 1.15rem;
  overflow: visible !important;
}

/* 5. Global Sticky Bottom Kitchen Bar (#global-sticky-kitchen-bar — Item #16) */
.global-sticky-kitchen-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 995;
  background: linear-gradient(90deg, #18202c 0%, #0f141c 100%);
  border-top: 2px solid var(--accent-gold);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.45);
  padding: 0.55rem 1rem;
}

body.daylight-theme .global-sticky-kitchen-bar {
  background: linear-gradient(90deg, #ffffff 0%, #fef3c7 100%);
  border-top: 2px solid #b45309;
}

.global-sticky-kitchen-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.sticky-kitchen-meal-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-primary);
}

.sticky-kitchen-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.sticky-kitchen-close-btn {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #ef4444;
  border-radius: 6px;
  padding: 0.25rem 0.55rem;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

/* 6. Mobile Single-Column Input Stacking & Anti-Cutoff Fix (Item #13) */
@media (max-width: 768px) {
  .wizard-form-2col,
  #user-dashboard .wizard-form-2col,
  #advertiser-wizard .wizard-form-2col {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  #user-dashboard input.form-input,
  #user-dashboard select.form-input,
  #user-dashboard textarea.form-input,
  #advertiser-wizard input.form-input,
  #advertiser-wizard select.form-input,
  #advertiser-wizard textarea.form-input {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .profile-dropdown-header {
    padding: 0.8rem 0.9rem;
  }

  .profile-dropdown-body {
    padding: 0.9rem;
  }
}

/* ==========================================================================
   MASTER QA PASS #2 (ITEMS #20–#37):
   - 256x256 Square Avatar Center-Crop Edge-to-Edge Fill (Item #20)
   - Single-Line Expand/Collapse Pill on Mobile (Item #21)
   - Full-Page Kitchen Overlay Header Spacing (Item #23)
   - Desktop Split-Builder Right Column Overflow Fix (Item #24)
   - Clean Rotating Banner Preview Layout (Item #26)
   - Compact Mobile Business Editor 2x2 Sub-Tabs & Expandable Notices (Item #27)
   - 5-Photo Lineup & Logo Framing Studio + Full-Screen Ad Overlay (Items #28, #34, #34B)
   - Town Square Custom & Hobby Community Groups Popover (Item #31)
   ========================================================================== */

/* ITEM #20: Square 256x256 Avatar Edge-to-Edge Circle Fill */
.dash-avatar-circle,
.profile-avatar-circle {
  overflow: hidden;
  padding: 0;
}

.dash-avatar-circle img,
.profile-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* ITEM #21: Single-Line Dropdown Expand/Collapse Pill on Mobile */
.profile-dropdown-arrow,
.profile-dropdown-chevron {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-gold);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent-gold);
}

body.daylight-theme .profile-dropdown-arrow,
body.daylight-theme .profile-dropdown-chevron {
  background: rgba(180, 83, 9, 0.08);
}

/* ITEM #23: Full-Page Recipe Overlay Header Spacing */
#modal-dashboard-kitchen-overlay .overlay-header,
#modal-full-ad-showcase .overlay-header,
.overlay-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

#modal-dashboard-kitchen-overlay .overlay-title,
#modal-full-ad-showcase .overlay-title,
.overlay-header .overlay-title {
  flex: 1;
  padding-right: 8px;
}

.overlay-close-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

/* ITEM #24: Fix Desktop Right-Hand Preview Column Overflow */
@media (min-width: 901px) {
  .wizard-split-builder {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr) !important;
    gap: 20px !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .wizard-split-builder > * {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* ITEM #26: Clean Rotating Sponsor / Directory Banner Preview Layout */
.preview-rolodex-clean {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.9rem 1rem !important;
}

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

.preview-rolodex-mid-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-width: 0;
}

.preview-rolodex-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  border: 1.5px solid var(--accent-gold);
  flex-shrink: 0;
  background-color: #0f172a;
}

.preview-rolodex-thumb-icon {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  border: 1.5px solid var(--border-gold);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.preview-rolodex-text-col {
  flex: 1;
  min-width: 0;
}

.preview-rolodex-text-col .rolodex-biz-name {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
  word-break: break-word;
}

.preview-rolodex-text-col .rolodex-perk-line {
  font-size: 0.86rem;
  color: var(--accent-gold);
  font-weight: 700;
  line-height: 1.35;
  margin-top: 0.15rem;
  word-break: break-word;
}

.preview-rolodex-action-row {
  width: 100%;
}

/* ITEM #27: Compact Mobile Business Editor Height (2x2 Sub-Tabs & Expandable Notices) */
.compact-mobile-notice {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  color: var(--text-primary);
}

.compact-mobile-notice summary {
  font-weight: 800;
  color: var(--accent-gold);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.compact-mobile-notice summary::-webkit-details-marker {
  display: none;
}

.compact-mobile-notice summary::after {
  content: "▾";
  font-size: 0.8rem;
  margin-left: 0.4rem;
}

.compact-mobile-notice[open] summary::after {
  content: "▴";
}

.compact-notice-body {
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.42;
}

@media (max-width: 680px) {
  .dash-biz-subtabs-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    padding: 0.4rem !important;
  }

  .dash-biz-subtabs-grid .ts-tab-btn {
    padding: 0.5rem 0.4rem !important;
    font-size: 0.76rem !important;
    min-height: 40px !important;
    text-align: center;
  }
}

/* ITEMS #28, #34, #37: 5-Photo Lineup & Logo Framing Studio */
.photo-framing-studio-card {
  background-color: var(--bg-elevated);
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 0.85rem 0.95rem;
  margin-bottom: 0.95rem;
}

.photo-lineup-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 0.75rem;
}

@media (max-width: 560px) {
  .photo-lineup-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.photo-lineup-slot {
  background-color: var(--bg-card);
  border: 1px dashed var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  transition: all var(--transition-fast);
}

.photo-lineup-slot.empty-slot {
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  opacity: 0.82;
}

.photo-lineup-slot.empty-slot:hover {
  opacity: 1;
  border-color: var(--accent-gold);
  background-color: var(--accent-gold-subtle);
}

.photo-lineup-slot.filled-slot {
  border-style: solid;
}

.photo-lineup-slot.cover-slot {
  border: 2px solid var(--accent-gold);
  box-shadow: 0 0 0 2px rgba(229, 193, 88, 0.18);
}

.photo-slot-thumb {
  position: relative;
  width: 100%;
  height: 54px;
  border-radius: 6px;
  overflow: hidden;
  background-color: #0f172a;
}

.photo-slot-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-slot-badge {
  position: absolute;
  top: 3px;
  left: 3px;
  background: rgba(15, 20, 28, 0.88);
  color: var(--accent-gold);
  font-size: 0.6rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 999px;
}

.photo-slot-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
  width: 100%;
  margin-top: 4px;
}

.photo-mini-btn {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.64rem;
  font-weight: 800;
  padding: 2px 4px;
  border-radius: 4px;
  cursor: pointer;
  line-height: 1.1;
}

.photo-mini-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.photo-mini-btn.gold-mini {
  border-color: var(--border-gold);
  color: var(--accent-gold);
}

.photo-mini-btn.danger-mini {
  border-color: rgba(239, 68, 68, 0.45);
  color: #f87171;
}

.framing-controls-bar {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.75rem;
}

.framing-sliders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 560px) {
  .framing-sliders-grid {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }
}

.framing-slider-item input[type="range"] {
  width: 100%;
  accent-color: var(--accent-gold);
  cursor: pointer;
  margin-top: 3px;
}

.photo-count-pill {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(15, 20, 28, 0.88);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  cursor: pointer;
}

/* ITEM #34B: Premium Full-Screen Advertisement Overlay (#modal-full-ad-showcase) */
.full-ad-hero-viewer {
  width: 100%;
  height: 280px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-gold);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 640px) {
  .full-ad-hero-viewer {
    height: 215px;
  }
}

.full-ad-thumbs-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  margin-top: 0.55rem;
}

.full-ad-thumbs-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.full-ad-thumb-btn {
  position: relative;
  width: 54px;
  height: 42px;
  border-radius: 6px;
  overflow: hidden;
  border: 1.5px solid var(--border-subtle);
  padding: 0;
  cursor: pointer;
  background: #0f172a;
}

.full-ad-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.full-ad-thumb-btn.active-ad-thumb {
  border: 2px solid var(--accent-gold);
  box-shadow: 0 0 0 2px rgba(229, 193, 88, 0.28);
}

.thumb-cover-star {
  position: absolute;
  top: 1px;
  right: 2px;
  font-size: 0.58rem;
}

.verified-handshake-box {
  background-color: var(--bg-elevated);
  border: 1px solid var(--trust-green);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
}

.phone-revealed-active {
  background-color: var(--trust-green-subtle) !important;
  border-color: var(--trust-green) !important;
  color: var(--trust-green) !important;
}

/* ITEM #31: Town Square Custom & Hobby Community Groups Dropdown & Popover */
.custom-groups-dropdown-wrap {
  position: relative;
  display: inline-block;
}

.custom-groups-popover {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 285px;
  max-width: 92vw;
  background-color: var(--bg-card);
  border: 1.5px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 0.65rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
  z-index: 250;
}

@media (max-width: 640px) {
  .custom-groups-popover {
    left: 0;
    right: auto;
  }
}

.custom-groups-popover.open-custom-popover {
  display: block;
}

.custom-popover-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  max-height: 230px;
  overflow-y: auto;
}

.custom-popover-item {
  width: 100%;
  text-align: left;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.custom-popover-item:hover,
.custom-popover-item.active-custom-item {
  border-color: var(--accent-gold);
  background-color: var(--accent-gold-subtle);
  color: var(--accent-gold);
}

/* ==========================================================================
   MASTER QA PASS #3 (LEDGER ITEMS #38–#66):
   SUB-TAB BLEED LOCK, TRUE FIXED MODALS, KPI CARDS, INBOX BUBBLES,
   FULL-WIDTH ACTION BUTTONS & MOBILE CLASSIFIEDS / TABLE FIXES
   ========================================================================== */

/* ITEMS #42: Service Area & Standard Operating Hours 2-Col / Mobile 1-Col Grid */
.service-hours-grid-2col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.service-hours-grid-2col select,
.form-group select {
  width: 100%;
  max-width: 100%;
  text-overflow: ellipsis;
  box-sizing: border-box;
}

@media (max-width: 680px) {
  .service-hours-grid-2col {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
}

/* ITEM #64: Header Circular Initials / Photo Badge */
.header-avatar-initials {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(234, 179, 8, 0.2);
  border: 1.5px solid #eab308;
  color: #fde047;
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ITEM #45 & #50: Keep Profile Dropdown Icons Inline on Mobile */
.profile-dropdown-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-dropdown-icon {
  display: inline !important;
  margin-right: 4px;
  font-size: 1.1rem;
}

/* ITEM #46: Bordered Inbox Thread Cards & Chat Transcript Panel */
.inbox-split-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 820px) {
  .inbox-split-layout {
    grid-template-columns: 320px 1fr;
    align-items: start;
  }
}

.inbox-thread-list,
.inbox-threads-list {
  display: flex;
  flex-direction: column;
}

.inbox-thread-item {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.16s ease;
}

body.daylight-theme .inbox-thread-item {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.inbox-thread-item:hover {
  border-color: rgba(234, 179, 8, 0.6);
}

.inbox-thread-item.active-thread {
  border: 1.5px solid #eab308 !important;
  background: rgba(234, 179, 8, 0.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.inbox-active-chat-box,
.inbox-chat-pane {
  background: rgba(15, 23, 42, 0.82);
  border: 1.5px solid rgba(234, 179, 8, 0.38);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.daylight-theme .inbox-active-chat-box,
body.daylight-theme .inbox-chat-pane {
  background: #ffffff;
  border-color: #d97706;
}

.inbox-chat-header {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.inbox-chat-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-bubble {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.45;
  max-width: 92%;
}

.chat-bubble.from-them {
  background: var(--bg-elevated);
  border: 1px solid rgba(148, 163, 184, 0.26);
  align-self: flex-start;
}

.chat-bubble.from-me {
  background: rgba(234, 179, 8, 0.14);
  border: 1px solid rgba(234, 179, 8, 0.45);
  align-self: flex-end;
}

.inbox-chat-reply-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}

/* ITEM #47: Business Ledger & Views KPI Card Grids + Responsive Mobile Tables */
.biz-kpi-grid,
.ledger-summary-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.biz-kpi-card,
.ledger-kpi-card {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.biz-kpi-label,
.ledger-kpi-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 800;
  margin-bottom: 4px;
}

.biz-kpi-val,
.ledger-kpi-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.table-scroll-wrap,
.ledger-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.ledger-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.ledger-table th {
  background-color: rgba(15, 23, 42, 0.9);
  color: var(--accent-gold);
  text-align: left;
  padding: 10px 12px;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border-gold);
}

body.daylight-theme .ledger-table th {
  background-color: #fef3c7;
  color: #92400e;
}

.ledger-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
  vertical-align: middle;
}

/* ITEM #54: Casual Scroll Mobile Image Visibility */
.casual-post-card img,
.casual-scroll-card img,
.casual-media-wrap img,
.casual-scroll-media {
  display: block !important;
  width: 100% !important;
  height: 220px !important;
  object-fit: cover !important;
  border-radius: 10px !important;
}

/* ITEMS #55 & #63: Full-Width Card Action Buttons in Labor Exchange & Local Outpost */
.card-action-btn-full {
  display: inline-flex !important;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(234, 179, 8, 0.14);
  border: 1px solid rgba(234, 179, 8, 0.4);
  color: #fde047 !important;
  font-weight: 700;
  font-size: 0.88rem;
  margin-top: 10px;
  cursor: pointer;
  transition: all 0.16s ease;
  text-align: center;
}

body.daylight-theme .card-action-btn-full {
  background: #fef3c7;
  border-color: #d97706;
  color: #92400e !important;
}

.card-action-btn-full:hover {
  background: rgba(234, 179, 8, 0.25);
  border-color: #eab308;
}

/* ITEM #56: Custom Groups Popover High-Contrast Floating Card */
.custom-groups-popover {
  position: absolute !important;
  top: calc(100% + 6px) !important;
  right: 0;
  min-width: 280px !important;
  background: #0f172a !important;
  border: 1px solid #eab308 !important;
  border-radius: 12px !important;
  padding: 12px !important;
  z-index: 800 !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75) !important;
}

body.daylight-theme .custom-groups-popover {
  background: #ffffff !important;
  border-color: #b45309 !important;
}

.custom-groups-popover.open-custom-popover,
.custom-groups-popover.open-popover {
  display: block !important;
}

.custom-groups-popover input {
  width: 100% !important;
  box-sizing: border-box !important;
}

/* ITEMS #62 & #80: Classifieds 2-Line Titles & Mobile 1-Column Card Layout (<= 520px) */
.thumb-title-line,
.classified-thumb-tile .thumb-title-line,
#classifieds .outpost-spot-card h3 {
  white-space: normal !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  line-height: 1.35 !important;
  min-height: 2.7em;
}

@media (max-width: 520px) {
  #classifieds-marketplace-grid,
  #classifieds-grid,
  #dealer-inventory-grid,
  #realestate-grid,
  #classifieds-property-grid,
  #yardsales-grid,
  .classifieds-thumb-grid,
  .classifieds-view-grid,
  .classifieds-view-cards {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

/* ITEMS #41, #51 & #66: True Fixed Full-Screen Modals */
#modal-full-ad-showcase.active-modal,
#modal-dashboard-kitchen-overlay.active-modal,
#modal-kitchen-full-overlay.active-modal,
#modal-auth-gateway.active-modal,
#modal-auth-signin.active-modal,
#modal-create-group.active-modal,
.fullscreen-overlay.active-modal,
.modal-backdrop.active-modal,
.modal-overlay.active-modal {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(7, 10, 18, 0.88) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999 !important;
  display: flex !important;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto !important;
  padding: 24px 14px 60px !important;
  box-sizing: border-box !important;
}

/* ITEMS #67, #68, #69, #71 & #72: Master Admin Full-Width Horizontal Tab Architecture & Universal Table Fit */
#master-admin {
  width: 100%;
  max-width: 1520px;
  margin: 0 auto;
  box-sizing: border-box;
  overflow-x: hidden;
}

.admin-layout-shell {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

.admin-sidebar-nav,
.admin-horizontal-tabs-bar {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 8px !important;
  width: 100% !important;
  background: var(--bg-card);
  border: 1.5px solid var(--border-gold);
  border-radius: 12px;
  padding: 8px !important;
  box-sizing: border-box !important;
  position: static !important;
}

@media (max-width: 1200px) {
  .admin-sidebar-nav,
  .admin-horizontal-tabs-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 720px) {
  .admin-sidebar-nav,
  .admin-horizontal-tabs-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

.admin-tab-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
  min-height: 44px !important;
  padding: 10px 10px !important;
  border-radius: 8px !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  box-sizing: border-box !important;
  cursor: pointer;
}

#admin-workspace-container,
.admin-tab-panel,
#master-admin .voice-card {
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.admin-kpi-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.admin-charity-split-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.table-scroll-wrap {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box !important;
}

#master-admin .admin-ledger-table {
  width: 100% !important;
  min-width: 0 !important;
  border-collapse: collapse;
}

#master-admin .admin-ledger-table th,
#master-admin .admin-ledger-table td {
  padding: 9px 7px !important;
  font-size: 12px !important;
  vertical-align: middle;
}

@media (max-width: 860px) {
  #master-admin .admin-ledger-table {
    min-width: 580px !important;
  }
}

/* ITEM #72: Tab 4 Concierge .com Sync Single-Line Pills */
.admin-dotcom-pill {
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
}

.admin-dotcom-pill.teal-pill {
  background: rgba(16, 185, 129, 0.16) !important;
  border: 1px solid rgba(16, 185, 129, 0.45) !important;
  color: #34d399 !important;
}

.admin-dotcom-pill.slate-pill {
  background: rgba(148, 163, 184, 0.14) !important;
  border: 1px solid rgba(148, 163, 184, 0.35) !important;
  color: #cbd5e1 !important;
}

body.daylight-theme .admin-dotcom-pill.teal-pill {
  background: #d1fae5 !important;
  border-color: #059669 !important;
  color: #065f46 !important;
}

body.daylight-theme .admin-dotcom-pill.slate-pill {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
  color: #334155 !important;
}

/* ITEM #75: Mobile Inbox Card Containment inside Dropdown #1 */
.inbox-split-layout,
.inbox-thread-list,
.inbox-threads-list,
.inbox-thread-card,
.inbox-thread-item,
.inbox-active-chat-box,
.inbox-chat-pane,
.inbox-chat-reply-bar {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

@media (max-width: 768px) {
  .inbox-split-layout {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  .inbox-chat-reply-bar {
    flex-wrap: wrap !important;
  }
}

/* ITEM #76: Recipe Modal Ingredient Aisle Pills on Mobile */
.recipe-aisle-pill {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 3px 8px !important;
  border-radius: 999px !important;
  background: rgba(15, 23, 42, 0.8) !important;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  font-size: 11px !important;
  color: #cbd5e1 !important;
}

body.daylight-theme .recipe-aisle-pill {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}

/* ITEM #78: Labor Exchange Contractor Card Top Badge Alignment */
.provider-badges-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: nowrap !important;
  margin-bottom: 0.6rem !important;
}

.provider-badges-row .provider-top-pill,
.provider-badges-row .badge-chip,
.provider-badges-row .availability-pill {
  font-size: 11px !important;
  padding: 4px 8px !important;
  white-space: nowrap !important;
}

/* ITEM #82: Full-Width Dropdowns Inside Step 2 Ad Builder & Dashboard Editor Left Column */
.wizard-split-builder .service-hours-grid-2col,
.service-hours-grid-2col {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* ITEM #83: Step 1 Category Card Top Badges Single-Line Fit */
.step1-card-top-badges {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: nowrap !important;
  margin-bottom: 0.55rem !important;
}

.step1-free-pill {
  white-space: nowrap !important;
  font-size: 10.5px !important;
  padding: 4px 8px !important;
}

.step1-founding-pill {
  white-space: nowrap !important;
  font-size: 10.5px !important;
  padding: 4px 8px !important;
  font-weight: 800 !important;
  color: var(--accent-gold) !important;
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.35);
  border-radius: 999px;
}

@media (max-width: 860px) {
  #master-admin,
  .admin-layout-shell {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  .admin-sidebar-nav {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .admin-sidebar-nav .admin-tab-btn:last-child {
    grid-column: 1 / -1;
  }

  .admin-charity-split-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 680px) {
  .admin-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* ==========================================================================
   LIVE LEDGER ITEMS #1, #2 & #5: 5-DOOR MAIN HUB, 5-PHOTO STRIP & MODAL BORDER FIX
   ========================================================================== */
.hub-doors-grid .hub-door-fullwidth {
  grid-column: 1 / -1;
}

@media (max-width: 560px) {
  #modal-post-classified .post-classified-price-cat-row {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  #modal-post-classified #post-classified-category {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
}

/* ITEMS #53, #60 & #69: Highest-Specificity Sub-Tab & Hidden Enforcement */
.ts-tab-panel:not(.active-ts-panel),
.room-tab-panel:not(.active-room-panel),
.wizard-step-panel:not(.active-wpanel),
.admin-tab-panel:not(.active-admin-panel) {
  display: none !important;
}

.hidden,
[hidden],
.subview-hidden,
.tab-panel-hidden {
  display: none !important;
}

/* ==========================================================================
   PHASE 2: 50-STATE LEGAL SUITE, CLICKWRAP LINKS & FULL-VIEWPORT MODAL LOCK
   ========================================================================== */
body.modal-open-lock {
  overflow: hidden !important;
}

.clickwrap-legal-link {
  color: #2dd4bf !important;
  font-weight: 800 !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
  cursor: pointer;
}

.clickwrap-legal-link:hover,
.clickwrap-legal-link:focus-visible {
  color: #5eead4 !important;
}

body.daylight-theme .clickwrap-legal-link {
  color: #0f766e !important;
}

body.daylight-theme .clickwrap-legal-link:hover,
body.daylight-theme .clickwrap-legal-link:focus-visible {
  color: #115e59 !important;
}

#modal-full-ad-showcase.active-modal,
.fullscreen-overlay.active-modal {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  z-index: 9999 !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  background-color: rgba(7, 10, 18, 0.97) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

body.daylight-theme #modal-full-ad-showcase.active-modal,
body.daylight-theme .fullscreen-overlay.active-modal {
  background-color: rgba(15, 23, 42, 0.92) !important;
}

#modal-legal-waiver.active-modal,
#modal-dotcom-addon-info.active-modal,
#modal-hometown-game-room.active-modal {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  z-index: 10050 !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
}

/* ==========================================================================
   PHASE 3: AD-FREE ENTRY LOBBIES, SLIM INLINE SPONSOR BANNERS & CARD POLISH
   ========================================================================== */
.rolodex-top-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  margin-bottom: 0.25rem;
}

.rolodex-banner-frame {
  padding: 0.85rem 1rem !important;
}

.entry-lobby-shell {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.94) 0%, rgba(17, 24, 39, 0.98) 100%);
  border: 1px solid rgba(229, 193, 88, 0.28);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.4rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-card);
}

.entry-lobby-subtitle {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin: 0 0 1.1rem;
}

.entry-lobby-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 720px) {
  .entry-lobby-grid.entry-lobby-4grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .entry-lobby-grid.entry-lobby-3grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.entry-door-card {
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(229, 193, 88, 0.32);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.95rem;
  cursor: pointer;
  min-height: 44px;
  transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.entry-door-card:hover,
.entry-door-card:focus-visible {
  border-color: var(--accent-gold);
  background: rgba(30, 41, 59, 0.95);
  transform: translateY(-2px);
  outline: none;
}

.entry-door-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(229, 193, 88, 0.1);
  border: 1px solid rgba(229, 193, 88, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.entry-door-body {
  flex: 1;
  min-width: 0;
}

.entry-door-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 0.25rem;
}

.entry-door-hook {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.entry-door-arrow {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent-gold);
  flex-shrink: 0;
}

.entry-lobby-crosslink-bar {
  margin-top: 1.1rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(20, 184, 166, 0.08);
  border: 1px solid rgba(20, 184, 166, 0.32);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  cursor: pointer;
  min-height: 44px;
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.entry-lobby-crosslink-bar:hover {
  border-color: var(--accent-gold);
  background: rgba(229, 193, 88, 0.1);
}

/* Softened cohesive dark-slate + subtle teal/gold styling for Marketplace & Dealer cards */
.classified-thumb-tile,
.classified-list-row,
.outpost-spot-card {
  background-color: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.classified-thumb-tile:hover,
.classified-list-row:hover,
.outpost-spot-card:hover {
  border-color: rgba(229, 193, 88, 0.65);
}

.classified-thumb-tile.dealer-gold-tile,
.dealer-spotlight-card {
  border: 1.5px solid rgba(229, 193, 88, 0.52) !important;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.92) 100%);
}

/* ==========================================================================
   MASTER ADMIN ENTERPRISE & JARVIS OVERHAUL (1520PX FULL-WIDTH & UNIVERSAL PAGINATED TABLES)
   ========================================================================== */
@media (min-width: 960px) {
  .app-container:has(#master-admin.active-view) {
    max-width: 1520px !important;
    width: 96vw !important;
    margin: 0 auto !important;
  }

  #master-admin {
    max-width: 1520px !important;
    width: 100% !important;
    margin: 0 auto !important;
  }

  #master-admin .admin-layout-shell {
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
  }

  #master-admin .admin-ledger-table th,
  #master-admin .admin-ledger-table td {
    padding: 11px 12px !important;
    font-size: 0.84rem !important;
  }
}

.admin-subpills-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 14px;
}

.admin-subpill-btn {
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-size: 0.81rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

.admin-subpill-btn:hover {
  border-color: var(--accent-gold);
  color: var(--text-primary);
}

.admin-subpill-btn.active-subpill {
  background: rgba(229, 193, 88, 0.18);
  border: 1.5px solid var(--accent-gold);
  color: var(--accent-gold);
}

.admin-universal-table-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.admin-universal-search-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  flex: 1 1 380px;
}

.admin-universal-search-input {
  flex: 1 1 240px;
  min-width: 190px;
  min-height: 40px;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-gold);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.83rem;
}

.admin-universal-filter-select {
  min-height: 40px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-gold);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.82rem;
}

.admin-pagination-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 8px 12px;
  margin-top: 10px;
  font-size: 0.8rem;
}

.admin-page-size-btn {
  min-height: 34px;
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

.admin-page-size-btn.active-size {
  border-color: var(--accent-gold);
  background: rgba(229, 193, 88, 0.18);
  color: var(--accent-gold);
}

.admin-lifecycle-btn-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.admin-lifecycle-btn {
  min-height: 34px;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-size: 0.73rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.admin-lifecycle-btn:hover {
  border-color: var(--accent-gold);
}

.admin-lifecycle-btn.danger-btn {
  border-color: rgba(239, 68, 68, 0.45);
  color: #fca5a5;
}

.admin-lifecycle-btn.danger-btn:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: #ef4444;
}

@media (max-width: 1024px) {
  #master-admin .admin-ledger-table {
    min-width: 680px !important;
  }
}





