/* =========================
   Kingdom Connects – layout
   ========================= */

:root{
  --gutter: 16px;
  --container: 1080px;
  --header-height: auto;
  --base-font-size: 16px;
  
  /* Responsive breakpoints */
  --mobile-max: 768px;
  --tablet-min: 769px;
  --tablet-max: 1024px;
  --desktop-min: 1025px;
  
  /* Responsive max-widths for main content */
  --main-width-mobile: 100%;
  --main-width-tablet: 95%;
  --main-width-desktop: 90%;
}

/* Mobile gutter reduction to prevent horizontal scroll */
@media (max-width: 480px) {
  :root {
    --gutter: 12px;
  }
}

html{ font-size: var(--base-font-size); }
*,*::before,*::after{ box-sizing:border-box; }
body{ margin:0; line-height:1.5; -webkit-font-smoothing:antialiased; }
main{ margin:0; }
article{ margin: 1%; }

/* Base page container - flex column for sticky footer */
.page-wrap{
  min-height:100dvh;
  display:flex;
  flex-direction:column;
  background: #0a1b2f;
  color: var(--text);
  margin: 1%;
  max-width: var(--main-width-mobile);
}

/* Tablet responsive */
@media (min-width: 769px) and (max-width: 1024px) {
  .page-wrap {
    max-width: var(--main-width-tablet);
    margin: 0 auto;
  }
}

/* Desktop responsive */
@media (min-width: 1025px) {
  .page-wrap {
    max-width: var(--main-width-desktop);
    margin: 0 auto;
  }
}

/* ---------- Header ---------- */

.site-header{
  background: var(--header-bg);
  color: var(--header-fg);
  border-radius: 16px;
  margin-bottom: var(--gutter);
  position: relative;
  z-index: 10;
  box-shadow: 
    0 4px 12px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.1),
    inset 0 -1px 0 rgba(0,0,0,0.2);
}

.header-inner{
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 12px 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  position: relative;
}

/* brand (logo + title) */
.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  text-decoration:none;
  color: inherit;
  margin-left: 4px;
}
.site-logo{ height: 60px; width: auto; display:block; }
.site-title{
  margin:0;
  font-size: clamp(18px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing:.02em;
}

/* actions (gear over hamburger on mobile) */
.header-actions{
  position: absolute;
  top: 12px;
  right: 18px;
  z-index: 20;
  display:flex;
  flex-direction: column;             /* stack vertically on mobile */
  align-items:flex-end;               /* right align */
  gap: 8px;                           /* space between user/gear/hamburger */
}

.gear-wrap{ 
  position: relative;
  top: 0;
  right: 0;
}

.gear-btn{
  appearance:none; 
  border:0;
  background: rgba(255,255,255,0.08);
  color: var(--header-fg);
  width: 36px; 
  height: 36px;
  display:grid; 
  place-items:center;
  border-radius:10px;
  cursor:pointer;
  transition: all .2s ease;
  box-shadow: 
    0 2px 8px rgba(0,0,0,0.2),
    inset 0 1px 0 rgba(255,255,255,0.1);
}

.gear-btn svg {
  width: 20px;
  height: 20px;
}

.gear-btn:hover{ 
  transform: translateY(-1px) scale(1.05);
  background: rgba(255,255,255,0.12);
  box-shadow: 
    0 4px 12px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.15);
}

/* settings popover (from gear) */
#settingsMenu{
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 280px;
  max-width: calc(100vw - 40px);  /* Prevent overflow on small screens */
  background: var(--menu-bg);
  color: var(--menu-link);
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(0,0,0,.45);
  padding: 12px;
  opacity: 0; 
  transform: translateY(-6px);
  pointer-events:none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 1000;  /* Ensure it overlays everything */
}
#settingsMenu.open{ opacity:1; transform:none; pointer-events:auto; }
#settingsMenu h4{ margin: 0 0 8px; }
.setting-row{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin: 10px 0; }
.font-size-controls button{
  appearance:none; border:1px solid rgba(255,255,255,.18);
  border-radius:999px; padding: 6px 10px; background: rgba(255,255,255,.06);
  color: var(--menu-link); font-weight:700; cursor:pointer;
}
.theme-toggle .toggle-track{
  display:inline-block; width:44px; height:22px; border-radius:999px;
  background: var(--menu-hover); position: relative;
}
.theme-toggle .toggle-thumb{
  position:absolute; top:3px; left:3px; width:16px; height:16px;
  border-radius:50%; background: var(--menu-link); transition: transform .2s;
}
html[data-theme="light"] .theme-toggle .toggle-thumb{ transform: translateX(22px); }

/* hamburger */
.menu-toggle{
  appearance:none;
  border:0;
  background: transparent;
  width: 36px; height: 30px;
  display:flex; flex-direction:column;
  justify-content:center; align-items:center;
  gap: 3px;
  cursor:pointer;
}
.menu-toggle .bar{
  width: 24px; height: 3px;
  background: var(--header-fg);
  border-radius: 2px;
}

/* dropdown nav (mobile) */
.nav-links{
  list-style:none; margin:0; padding: 10px;
  position: absolute;
  right: 0;
  left: auto;
  top: calc(100% + 10px);
  width: min(calc(100vw - 2 * var(--gutter)), 320px);
  max-width: 320px;
  background: var(--menu-bg);
  color: var(--menu-link);
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(0,0,0,.45);
  opacity: 0; transform: translateY(-6px);
  pointer-events:none;
  transition: opacity .18s ease, transform .18s ease;
}
.nav-links.open,
.nav-links.active{ opacity:1; transform:none; pointer-events:auto; }

.nav-links li{ margin: 8px 6px; }
.nav-links a{
  display:block; padding: 10px 12px;
  color: var(--menu-link);
  text-decoration:none; font-weight:600;
  border-radius: 10px;
}
.nav-links a:hover{ background: var(--menu-hover); }

/* Mobile login link - show only on mobile, hide on desktop */
#navAuthLink {
  display: block;
}
@media (min-width: 980px) {
  #navAuthLink {
    display: none;
  }
}

/* ---------- Main content ---------- */

/* Main content stretches to fill page-wrap width */
.main-content{ 
  width: 100%;
  max-width: 100%;
  margin: 0; 
  padding: 1% 0;
  align-self: stretch;
  position: relative;
}

.page-content{
  background: #5a6b7d;
  border-radius: 18px;
  padding: clamp(18px, 3.2vw, 28px);
  box-shadow: 0 10px 26px rgba(0,0,0,.25);
  width: 100%;
  max-width: 100%;
  margin: 0;
}

/*CTA button – rounded rectangle (not pill) */
.action-button{
  --btn-radius: 16px;
  appearance:none;
  display:inline-block;
  border:0;
  border-radius: var(--btn-radius);
  padding: 16px 26px;
  font-weight:800;
  font-size: clamp(16px, 1.1rem, 20px);
  color: var(--btn-fg);
  background: linear-gradient(90deg, #ff6a00 0%, #ffb000 100%);
  box-shadow: 0 10px 24px rgba(0,0,0,.35), inset 0 0 0 2px rgba(255,255,255,.08);
  cursor:pointer;
  transition: transform .1s ease, box-shadow .1s ease, filter .15s;
}
.action-button:hover{ transform: translateY(-1px); filter: brightness(1.02); }

/* ---------- Footer ---------- */

.site-footer{ 
  color: var(--footer-fg); 
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-inner{
  max-width: var(--container);
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: 12px var(--gutter) 28px;
  position: relative;
}

.footer-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

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

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

.footer-section h4{
  color: var(--gold);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 12px;
  font-weight: 700;
}

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

.footer-links a{
  color: var(--footer-link);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s ease;
}

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

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-nav a {
  color: var(--footer-link);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s ease;
}

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

.footer-bottom{
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.back-to-top{
  display: block;
  margin: 0 0 12px;
  color: var(--footer-link);
  text-decoration: none;
  transition: color 0.15s ease;
}

.back-to-top:hover{
  color: var(--gold);
}

.socials{ 
  display: flex; 
  gap: 16px; 
  justify-content: center; 
  margin-bottom: 12px; 
}

.social-btn{
  width: 56px; 
  height: 56px; 
  border-radius: 50%;
  display: grid; 
  place-items: center;
  background: var(--social-bg); 
  color: var(--social-fg);
  font-weight: 800; 
  text-decoration: none;
  box-shadow: 0 10px 18px rgba(0,0,0,.25);
}

/* ========== CARDS & CONTAINERS ========== */
.card {
  background: var(--panel-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: var(--card-padding);
  margin-bottom: var(--card-gap);
  box-shadow: 0 4px 12px var(--card-shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: 0 6px 16px var(--card-hover-shadow);
}

.card-compact {
  padding: 1rem;
}

.card-spacious {
  padding: 2rem;
}

/* Info cards with special styling */
.info-card {
  background: var(--info-card-bg);
  border: 2px solid var(--info-card-border);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.05);
}

.warning-card {
  background: var(--warning-card-bg);
  border: 2px solid var(--warning-card-border);
}

.error-card {
  background: rgba(239,68,68,0.1);
  border: 2px solid #ef4444;
}

.success-card {
  background: rgba(16,185,129,0.1);
  border: 2px solid #10b981;
}

/* Card content layouts */
.card-content-grid {
  display: grid;
  gap: 12px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.card-footer {
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid rgba(255,215,0,0.2);
}

/* Grid layouts */
.grid-2 {
  display: grid;
  gap: 1rem;
}

.grid-2 > * {
  min-width: 0;
}

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

.grid-3 {
  display: grid;
  gap: 1rem;
}

.grid-3 > * {
  min-width: 0;
}

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

/* Dashboard Cards */
.dashboard-card {
  display: block;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.dashboard-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.dashboard-card .card-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.dashboard-card h4 {
  color: var(--gold);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.dashboard-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* Completion / Last Updated Badge */
.completion-badge {
  padding: 0.5rem 1rem;
  background: rgba(76, 175, 80, 0.2);
  border: 2px solid #4caf50;
  border-radius: 8px;
  color: #4caf50;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.completion-badge.warning {
  background: rgba(255, 152, 0, 0.2);
  border-color: #ff9800;
  color: #ff9800;
}

.grid-4 {
  display: grid;
  gap: 1rem;
}

.grid-4 > * {
  min-width: 0;
}

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

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

/* Flex utilities */
.flex {
  display: flex;
}

.flex > * {
  min-width: 0;
}

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

.flex-col > * {
  min-width: 0;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-sm { gap: 0.5rem; }
.gap-md { gap: 1rem; }
.gap-lg { gap: 1.5rem; }
.gap-xl { gap: 2rem; }

.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* Spacing utilities */
.mt-xs { margin-top: 0.25rem; }
.mt-sm { margin-top: 0.5rem; }
.mt-md { margin-top: 1rem; }
.mt-lg { margin-top: 1.5rem; }
.mt-xl { margin-top: 2rem; }

.mb-xs { margin-bottom: 0.25rem; }
.mb-sm { margin-bottom: 0.5rem; }
.mb-md { margin-bottom: 1rem; }
.mb-lg { margin-bottom: 1.5rem; }
.mb-xl { margin-bottom: 2rem; }

.p-sm { padding: 0.5rem; }
.p-md { padding: 1rem; }
.p-lg { padding: 1.5rem; }
.p-xl { padding: 2rem; }

/* Text utilities */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-underline { text-decoration: underline; }
.text-error { color: #ff6b6b; }
.text-success { color: #50c878; }
.text-muted { color: var(--text-muted); }

.opacity-90 { opacity: 0.9; }
.opacity-80 { opacity: 0.8; }
.opacity-70 { opacity: 0.7; }

/* Display utilities */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

/* Width utilities */
.w-full { width: 100%; }
.max-w-xs { max-width: 200px; }
.max-w-sm { max-width: 400px; }
.max-w-md { max-width: 600px; }
.max-w-lg { max-width: 800px; }
.max-w-xl { max-width: 1000px; }

/* Flexbox utilities */
.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Responsive tweaks ---------- */

@media (min-width: 740px){
  .site-logo{ height: 88px; }
  .header-actions{ gap: 12px; }
}

@media (min-width: 980px){
  .site-header{
    border-radius: 20px;
  }
  
  .header-inner{
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 8px 32px;
    gap: 40px;
  }
  
  .brand{
    flex-shrink: 0;
  }
  
  .site-logo{ height: 42px; }
  
  .site-title{
    font-size: 22px;
  }
  
  .header-actions{
    position: static;              /* Remove absolute positioning on desktop */
    grid-column: 3;
    justify-self: end;
    align-items: center;
    display: flex;
    flex-direction: row;           /* Side by side on desktop */
    gap: 12px;
  }

  .menu-toggle{ display:none; }

  .nav-links{
    grid-column: 2;
    position: static !important;
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    gap: 6px;
    width: 100%;
    padding: 0;
    background: transparent !important;
    box-shadow: none !important;
    opacity: 1 !important; 
    transform: none !important; 
    pointer-events: auto;
    margin: 0;
    border-radius: 0 !important;
  }
  
  .nav-links li{ 
    margin: 0;
    list-style: none;
    background: transparent !important;
  }
  
  .has-dropdown{
    background: transparent !important;
  }
  
  .nav-links a,
  .nav-links .dropdown-toggle{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent !important;
    border: 1px solid transparent;
    box-shadow: none;
    position: relative;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    white-space: nowrap;
  }
  
  .nav-links a:hover,
  .nav-links .dropdown-toggle:hover{ 
    background: rgba(255,215,0,0.12);
    border-color: rgba(255,215,0,0.3);
    color: var(--gold-bright);
    transform: translateY(-1px);
  }
  
  .nav-links a:active,
  .nav-links .dropdown-toggle:active{
    transform: translateY(0);
    background: rgba(255,215,0,0.18);
  }
}

/* ---------- Navigation Dropdowns ---------- */
.has-dropdown{ position: relative; }
.dropdown-toggle{
  display: flex;
  align-items: center;
  gap: 4px;
}
.dropdown-arrow{
  font-size: 0.75em;
  transition: transform 0.2s ease;
}
.has-dropdown.active .dropdown-arrow{
  transform: rotate(180deg);
}

.dropdown-menu{
  list-style: none;
  padding: 0;
  margin: 0;
  display: none;
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.has-dropdown.active .dropdown-menu{
  display: block;
}

.dropdown-menu li{
  margin: 0;
}

.dropdown-menu a{
  display: block;
  padding: 10px 16px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s ease;
}

.dropdown-menu a:hover{
  background: var(--menu-hover);
}

/* Mobile: Stack dropdowns vertically */
@media (max-width: 768px) {
  .dropdown-menu{
    position: static;
    margin-top: 8px;
    margin-left: 16px;
  }
}

/* Desktop: Position dropdowns absolutely */
@media (min-width: 769px) {
  .dropdown-menu{
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    margin-top: 0;
    z-index: 100;
    background: var(--menu-bg) !important;
    border: 1px solid rgba(255,255,255,0.15);
  }
  
  .dropdown-menu a{
    color: var(--menu-link);
  }
  
  .dropdown-menu a:hover{
    background: var(--menu-hover);
    color: var(--gold-bright);
  }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 12px 0;
  margin: 0;
  flex-wrap: wrap;
}

.breadcrumbs a{
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

.breadcrumbs .separator{
  color: var(--text-muted);
  user-select: none;
  opacity: 0.5;
}

.breadcrumbs .current{
  color: var(--gold);
  font-weight: 500;
}

/* =========================
   Global heading rhythm
   ========================= */

/* Reset UA margins so we control rhythm precisely */
h1, h2, h3, h4, h5, p { margin: 0; }

/* Headings */
h1{ font-size: clamp(1.75rem, 2.8vw, 2.5rem); line-height: 1.2; font-weight: 700; margin: 0 0 1rem; }
h2{ font-size: clamp(1.375rem, 2.2vw, 2rem); line-height: 1.2; font-weight: 700; margin: 1rem 0; }
h3{ font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.25; font-weight: 700; margin: .75rem 0; }
h4{ font-size: 1.125rem; line-height: 1.3; font-weight: 700; margin: .5rem 0; }
h5{ font-size: 1rem; line-height: 1.35; font-weight: 700; margin: .5rem 0; }

/* Paragraphs */
p{ font-size: 1rem; line-height: 1.5; margin: 1rem 0 2rem; }

/* Prevent margin collapse inside cards */
.card p{ margin: 1rem 0 1rem !important; }

/* Add gap between paragraphs and following buttons */
.card p + .action-button{ margin-top: 1rem; }

/* =========================
   Cards and lists
   ========================= */
.card{ margin: 1rem 0; border-radius: 12px; overflow: hidden; }

.business-card{
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 12px 0;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.05);
}
.business-card p{ margin: .4rem 0 .8rem; }

.business-card{ transition: transform .12s ease, box-shadow .12s ease; }
@media (hover:hover){
  .business-card:hover{ transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.06); }
}
.business-card a{ color:#8AD7FF; text-decoration:none; font-weight:700; }
.business-card a:hover{ color:#FFD700; }

.card-list{ display: grid; gap: 14px; }
@media (min-width: 720px){ .card-list{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1080px){ .card-list{ grid-template-columns: repeat(3, minmax(0,1fr)); } }

/* =========================
   Stat Cards Grid (2x2 on mobile and desktop)
   ========================= */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .stat-grid {
    gap: 1.5rem;
  }
}

/* 4-Stat Widget: Always 2x2 grid (2 across, 2 underneath) - Reusable anywhere */
.stat-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .stat-grid-4 {
    gap: 1.5rem;
  }
}

/* =========================
   BUTTON LAYOUT & SPACING
   ========================= */

/* Gap utilities */
.gap-sm { gap: 0.5rem; }
.gap-md { gap: 1rem; }
.gap-lg { gap: 1.5rem; }

/* Flex gap utility */
.flex-gap {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

/* Grid 2-column layout */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

/* Grid auto-fit layout */
.grid-auto {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Button row layout - stacks on mobile */
.button-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

/* Mobile: Stack button rows vertically, keep grid-2 for stats */
@media (max-width: 720px) {
  .button-row {
    flex-direction: column;
    width: 100%;
  }
  
  .button-row > * {
    width: 100%;
  }
  
  /* Buttons should be full-width on mobile */
  .button-row .action-button,
  .button-row .btn {
    width: 100%;
    margin: 0;
  }
  
  /* Grid-2 stays 2-column but adjusts to 1 column on very small screens */
  @media (max-width: 480px) {
    .grid-2 {
      grid-template-columns: 1fr;
    }
  }
}

.stat-card {
  background: rgba(255,255,255,0.05);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.1);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
}

.stat-value.stat-placeholder {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: 0.25rem;
}

/* Additional Layout Utilities */
.hero-title {
  font-size: clamp(1.8rem, 5vw, 3rem);
}

.search-container {
  max-width: 600px;
  margin: 24px auto;
}

.search-input-full {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  border-radius: 6px;
  border: 2px solid #666;
  background: #2a2a2a;
  color: #fff;
  margin-bottom: 12px;
}

.search-button-full {
  width: 100%;
  padding: 14px 24px;
  background: #ff6b35;
  border-color: #ff6b35;
  font-weight: 700;
  font-size: 1.1rem;
}

.search-hint {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.flex-gap-center {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 16px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  text-align: center;
}

.stat-display {
  font-size: 2.5rem;
  font-weight: 800;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.loading-placeholder {
  grid-column: 1 / -1;
  padding: 40px 20px;
}

.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  text-align: left;
}

.newsletter-form {
  max-width: 500px;
  margin: 24px auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.newsletter-input {
  flex: 1;
  min-width: 250px;
  padding: 14px 16px;
}

.newsletter-button {
  padding: 14px 24px;
}

.modal-large {
  max-width: 800px;
}

.empty-state {
  display: none;
  padding: 2rem;
  opacity: 0.6;
}

.hidden {
  display: none;
}

.flex-row-gap {
  display: flex;
  gap: 0.5rem;
}

.secondary-category-container {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 1rem;
  background: rgba(0,0,0,0.3);
}

.section-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-header-flex h2 {
  margin: 0;
}

.section-link {
  font-size: 0.9rem;
}

.mt-0 {
  margin-top: 0;
}

.mb-24 {
  margin-bottom: 24px;
}

.mt-24 {
  margin-top: 24px;
}

.stat-box {
  background: rgba(255,255,255,0.05);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.1);
}

.list-spaced {
  margin: 0;
  padding-left: 1.2em;
  line-height: 1.6;
}

.list-spaced-lg {
  margin: 0;
  padding-left: 1.2em;
  line-height: 1.8;
}

.text-sm {
  font-size: 0.85rem;
}

.text-xs {
  font-size: 0.9rem;
}

.commission-input {
  width: 100px;
  font-size: 2rem;
  text-align: center;
  background: transparent;
  border: none;
  color: var(--gold);
}

.warning-yellow-card {
  margin-top: 2rem;
  background: rgba(255,193,7,0.1);
  border: 2px solid #ffc107;
}

.warning-yellow-card h3 {
  color: #ffc107;
}

.info-card-gold {
  background: linear-gradient(135deg, rgba(255,215,0,0.15), rgba(255,165,0,0.08));
  border: 2px solid rgba(255,215,0,0.4);
}

.mt-1rem {
  margin-top: 1rem;
}

/* Screen reader only (accessibility) */
.sr-only {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Overflow utilities */
.overflow-x-auto {
  overflow-x: auto;
}

/* Empty state for tables/lists */
.empty-state-table {
  text-align: center;
  padding: 2rem;
  color: #aaa;
}

.hero-subtitle {
  font-size: clamp(1.5rem, 4vw, 2rem);
}

/* ===========================
   BUSINESS ADMIN STYLES
   =========================== */

/* Business grid layout */
.business-grid {
  display: grid;
  gap: 1rem;
}

.business-item {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

/* Analytics metric rows */
.metric-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

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

/* Featured businesses styling */
.business-list {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.business-item.featured {
  border-color: #FFD700;
  background: linear-gradient(135deg, rgba(255,215,0,0.1), rgba(255,165,0,0.05));
}

.featured-badge {
  display: inline-block;
  background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
  color: #000;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-left: 0.5rem;
}

/* Activities page styling */
.activities-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.activity-card {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.2s ease;
}

.activity-card:hover {
  border-color: var(--gold);
}

.activity-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 1rem;
  gap: 1rem;
}

.activity-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.activity-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.activity-description {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.activity-image {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.badge-recurring {
  background: rgba(33, 150, 243, 0.2);
  color: #2196f3;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* Modal styling (reusable across church-admin) */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 1000;
  overflow-y: auto;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-content {
  background: var(--card-bg);
  border: 2px solid var(--gold);
  border-radius: 8px;
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

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

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

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

.image-preview {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 4px;
  margin-top: 0.5rem;
}

.recurring-options {
  display: none;
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(255,255,255,0.03);
  border-radius: 4px;
}

.recurring-options.active {
  display: block;
}

/* Tithe earnings page styling */
.earnings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.earnings-card {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
  border: 2px solid var(--border-color);
  text-align: center;
}

.earnings-card:hover {
  border-color: var(--gold);
}

.earnings-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.earnings-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tithe-table {
  width: 100%;
  background: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
}

.tithe-table th {
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold);
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

.tithe-table td {
  padding: 1rem;
  border-top: 1px solid #333;
}

.tithe-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.status-paid {
  background: rgba(76, 175, 80, 0.2);
  color: #4caf50;
}

.status-pending {
  background: rgba(255, 152, 0, 0.2);
  color: #ff9800;
}

/* Monthly Message page styling */
.current-message {
  background: var(--card-bg);
  border: 2px solid var(--gold);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.message-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
}

.message-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

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

.message-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
  white-space: pre-wrap;
}

.message-history {
  margin-top: 3rem;
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.history-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.2s ease;
}

.history-card:hover {
  border-color: var(--gold);
}

.history-card-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 1rem;
}

.history-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
}

.history-excerpt {
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Questionnaire page styling */
.progress-bar {
  background: var(--card-bg);
  height: 8px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.progress-fill {
  background: linear-gradient(90deg, var(--gold), #ffdf80);
  height: 100%;
  width: 0%;
  transition: width 0.3s ease;
}

.progress-text {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.question-item {
  margin-bottom: 1.5rem;
}

/* Commission explainer card */
.commission-explainer {
  background: rgba(76, 175, 80, 0.1);
  border: 2px solid #4caf50;
}

/* Badges */
.pro-badge {
  display: inline-block;
  background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
  color: #000;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
}

.free-badge {
  display: inline-block;
  background: #555;
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-pending { background: #FFA500; color: #000; }
.badge-approved { background: #4CAF50; color: #fff; }
.badge-denied { background: #f44336; color: #fff; }

.completion-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(76, 175, 80, 0.2);
  border: 2px solid #4caf50;
  border-radius: 8px;
  color: #4caf50;
  font-weight: 700;
}

/* Pro/upgrade cards */
.upgrade-promo {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border: 2px solid var(--gold);
}

.pro-status-card {
  background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
  color: #000;
}

.pro-status-card h3,
.pro-status-card strong {
  color: #000;
}

/* Photo grid */
.photo-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.photo-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--card-bg);
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-remove {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: #f44336;
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-weight: bold;
}

/* Hours grid */
.hours-grid {
  display: grid;
  grid-template-columns: 120px 1fr 1fr;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

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

/* Stats trends */
.trend-up {
  color: #4caf50;
  font-size: 0.85rem;
}

.trend-down {
  color: #f44336;
  font-size: 0.85rem;
}

/* Reviews */
.review-card {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.stars {
  color: var(--gold);
  font-size: 1.2rem;
}

.review-date {
  color: #aaa;
  font-size: 0.85rem;
}

.response-box {
  background: rgba(212, 175, 55, 0.1);
  border-left: 3px solid var(--gold);
  padding: 1rem;
  margin-top: 1rem;
  border-radius: 4px;
}

/* Category suggestions */
.suggestion-status {
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 8px;
  background: rgba(0,0,0,0.3);
}

.status-pending { border-left: 4px solid #FFA500; }
.status-approved { border-left: 4px solid #4CAF50; }
.status-denied { border-left: 4px solid #f44336; }

.admin-feedback {
  padding: 0.75rem;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  font-style: italic;
  margin-top: 0.5rem;
}

/* Progress bars */
.progress-bar {
  background: var(--card-bg);
  height: 8px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.progress-fill {
  background: linear-gradient(90deg, var(--gold), #ffdf80);
  height: 100%;
  width: 0%;
  transition: width 0.3s ease;
}

/* ====================================
   Admin Businesses Table/Cards
   ==================================== */

.filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.filters input,
.filters select {
  flex: 1;
  min-width: 200px;
}

@media (max-width: 768px) {
  .filters input,
  .filters select {
    min-width: 100%;
  }
}

.business-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.business-table th {
  background: var(--card-bg);
  padding: 0.75rem;
  text-align: left;
  border-bottom: 2px solid var(--gold);
  cursor: pointer;
  user-select: none;
}

.business-table th:hover {
  background: var(--card-bg-hover);
}

.business-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #333;
}

.business-table tr:hover {
  background: var(--card-bg-hover);
}

/* Mobile: Hide table, show cards */
@media (max-width: 768px) {
  .business-table thead {
    display: none;
  }
  
  .business-table,
  .business-table tbody,
  .business-table tr,
  .business-table td {
    display: block;
  }
  
  .business-table tr {
    background: var(--card-bg);
    border-radius: 12px;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
  }
  
  .business-table td {
    padding: 0.5rem 0;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .business-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--gold);
    margin-right: 1rem;
    flex-shrink: 0;
  }
  
  .business-table td:first-child {
    font-size: 1.1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    margin-bottom: 0.5rem;
    display: block;
  }
  
  .business-table td:first-child::before {
    display: block;
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
  }
  
  .business-table td:last-child {
    display: block;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
  }
  
  .business-table td:last-child::before {
    display: none;
  }
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-pro {
  background: var(--gold);
  color: #000;
}

.badge-free {
  background: #444;
  color: #aaa;
}

.status-active {
  color: #4caf50;
  font-weight: 600;
}

.status-pending {
  color: #ff9800;
  font-weight: 600;
}

.status-suspended {
  color: #f44336;
  font-weight: 600;
}

/* ====================================
   Admin Church Table/Cards
   ==================================== */

.church-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.church-table th {
  background: var(--card-bg);
  padding: 0.75rem;
  text-align: left;
  border-bottom: 2px solid var(--gold);
  cursor: pointer;
  user-select: none;
}

.church-table th:hover {
  background: var(--card-bg-hover);
}

.church-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #333;
}

.church-table tr:hover {
  background: var(--card-bg-hover);
}

/* Mobile: Hide table, show cards */
@media (max-width: 768px) {
  .church-table thead {
    display: none;
  }
  
  .church-table,
  .church-table tbody,
  .church-table tr,
  .church-table td {
    display: block;
  }
  
  .church-table tr {
    background: var(--card-bg);
    border-radius: 12px;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
  }
  
  .church-table td {
    padding: 0.5rem 0;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .church-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--gold);
    margin-right: 1rem;
    flex-shrink: 0;
  }
  
  .church-table td:first-child {
    font-size: 1.1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    margin-bottom: 0.5rem;
    display: block;
  }
  
  .church-table td:first-child::before {
    display: block;
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
  }
  
  .church-table td:last-child {
    display: block;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
  }
  
  .church-table td:last-child::before {
    display: none;
  }
}

/* ====================================
   Admin User Table/Cards
   ==================================== */

.user-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.user-table th {
  background: var(--card-bg);
  padding: 0.75rem;
  text-align: left;
  border-bottom: 2px solid var(--gold);
  cursor: pointer;
  user-select: none;
}

.user-table th:hover {
  background: var(--card-bg-hover);
}

.user-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #333;
}

.user-table tr:hover {
  background: var(--card-bg-hover);
}

/* Mobile: Hide table, show cards */
@media (max-width: 768px) {
  .user-table thead {
    display: none;
  }
  
  .user-table,
  .user-table tbody,
  .user-table tr,
  .user-table td {
    display: block;
  }
  
  .user-table tr {
    background: var(--card-bg);
    border-radius: 12px;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
  }
  
  .user-table td {
    padding: 0.5rem 0;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .user-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--gold);
    margin-right: 1rem;
    flex-shrink: 0;
  }
  
  .user-table td:first-child {
    font-size: 1.1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    margin-bottom: 0.5rem;
    display: block;
  }
  
  .user-table td:first-child::before {
    display: block;
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
  }
  
  .user-table td:last-child {
    display: block;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
  }
  
  .user-table td:last-child::before {
    display: none;
  }
}

.action-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-small {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
}

.btn-success {
  background: #4caf50;
}

.btn-success:hover {
  background: #45a049;
}

.btn-warning {
  background: #ff9800;
}

.btn-warning:hover {
  background: #fb8c00;
}

.btn-danger {
  background: #f44336;
}

.btn-danger:hover {
  background: #e53935;
}

.btn-info {
  background: #2196f3;
}

.btn-info:hover {
  background: #1e88e5;
}

.map-unavailable-container {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-dark);
  color: var(--text-primary);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
}

/* Marketing Manager specific styles */
.select-tall {
  height: 80px !important;
}

.quota-progress[data-width] {
  width: var(--quota-width, 0%);
}

.quota-progress[data-width="0"] { --quota-width: 0%; }
.quota-progress[data-width="10"] { --quota-width: 10%; }
.quota-progress[data-width="20"] { --quota-width: 20%; }
.quota-progress[data-width="30"] { --quota-width: 30%; }
.quota-progress[data-width="40"] { --quota-width: 40%; }
.quota-progress[data-width="50"] { --quota-width: 50%; }
.quota-progress[data-width="60"] { --quota-width: 60%; }
.quota-progress[data-width="70"] { --quota-width: 70%; }
.quota-progress[data-width="80"] { --quota-width: 80%; }
.quota-progress[data-width="90"] { --quota-width: 90%; }
.quota-progress[data-width="100"] { --quota-width: 100%; }
/* Marketing Dashboard - Minimal Layout Additions */
.leaderboard-item {
  display: grid;
  grid-template-columns: 60px 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.leaderboard-item:last-child {
  border-bottom: none;
}

.funnel-stage {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
}

.agent-card {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1.5rem;
  align-items: start;
  padding: 1.5rem;
}

.agent-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.comparison-table th {
  padding: 1rem;
  text-align: left;
}

.comparison-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
  .comparison-table thead {
    display: none;
  }
  
  .comparison-table,
  .comparison-table tbody,
  .comparison-table tr,
  .comparison-table td {
    display: block;
  }
  
  .comparison-table tr {
    background: var(--card-bg);
    border-radius: 12px;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
  }
  
  .comparison-table td {
    padding: 0.5rem 0;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .comparison-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--gold);
    margin-right: 1rem;
    flex-shrink: 0;
  }
  
  .funnel-stage {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1rem;
  }
}

/* Quick Actions Grid */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.quick-action-card {
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  border-radius: 12px;
}

.quick-action-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.quick-action-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* Goals and Activity Grid */
.goals-activity-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

.progress-bar-container {
  background: rgba(255,255,255,0.1);
  height: 20px;
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar-fill-gold {
  height: 100%;
  width: 0%;
  transition: width 0.3s ease;
}

.progress-bar-fill-green {
  height: 100%;
  width: 0%;
  transition: width 0.3s ease;
}

/* Date Selector */
.date-selector {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

/* Chart Container */
.chart-container {
  background: rgba(255,255,255,0.05);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .chart-container {
    padding: 1rem;
  }
}

.chart-placeholder {
  background: rgba(0,0,0,0.3);
  border: 2px dashed rgba(255,255,255,0.2);
  border-radius: 8px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
}

/* Funnel Visualization */
.funnel-visualization {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 2rem 0;
}

.funnel-bar {
  background: rgba(255,255,255,0.1);
  height: 30px;
  border-radius: 15px;
  overflow: hidden;
}

.funnel-bar-fill {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.funnel-count {
  font-size: 1.5rem;
  font-weight: 700;
  min-width: 80px;
  text-align: right;
}

@media (max-width: 768px) {
  .funnel-count {
    text-align: left;
    font-size: 1.25rem;
  }
  
  .funnel-bar-fill {
    font-size: 0.8rem;
    padding: 0 0.5rem;
  }
}

/* Team Agent Grid */
.agent-grid {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
}

.agent-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
}

.agent-info h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
}

.agent-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 0.75rem 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

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

.agent-stat-value {
  font-size: 1.25rem;
  font-weight: 700;
}

.agent-stat-label {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-top: 0.25rem;
}

.agent-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  gap: 0.5rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

/* Quota Bar */
.quota-bar {
  background: rgba(255,255,255,0.1);
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.quota-progress {
  height: 100%;
  transition: width 0.3s ease;
}

/* Report Grid */
.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.report-card {
  padding: 2rem;
  transition: all 0.3s ease;
  border-radius: 12px;
}

.report-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.report-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.report-description {
  opacity: 0.8;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Commission Summary */
.commission-table {
  background: rgba(255,255,255,0.05);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
}

.commission-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.summary-card {
  padding: 1.5rem;
  text-align: center;
  border-radius: 8px;
}

.summary-value {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.summary-label {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  border-radius: 12px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

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

.modal-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========================================
   Page-Specific Layout Classes
   (Consolidated from page-specific.css)
   ======================================== */

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.testimonials-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-top: 24px;
}

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

.testimonials-share {
  margin-top: 20px;
}

/* For Agents */
.for-agents-intro {
  max-width: 650px;
  margin: 2rem auto 0;
}

.for-agents-calculations {
  list-style: none;
  padding: 0;
}

/* For Churches */
.for-churches-intro {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto;
}

.for-churches-cta {
  max-width: 600px;
  margin: 2rem auto 0;
}

/* Pricing */
.pricing-benefits-list {
  text-align: left;
  max-width: 600px;
  margin: 0 auto;
}

.pricing-grid {
  margin-top: 40px;
}

.pricing-grid-header {
  grid-column: 1 / -1;
}

/* Signup */
.signup-card {
  max-width: 550px;
  margin: 40px auto;
}

.signup-benefits-list {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

/* Submit Review */
.review-business-name {
  font-size: 1.1rem;
}

/* Thank You Review */
.thank-you-review-disclaimer {
  margin: 0;
  font-size: 1rem;
}

/* Church Page */
.church-message-title {
  margin: 1rem 0 0.5rem 0;
}

.church-message-date {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Download Page */
.download-help-text {
  font-size: 0.9rem;
}

/* ========== Admin Dashboard Utilities ========== */
.border-left-gold {
  border-left: 4px solid var(--gold);
}

.border-top-divider {
  border-top: 1px solid #333;
}

.font-weight-600 {
  font-weight: 600;
}

.font-weight-700 {
  font-weight: 700;
}

/* ========== For-Agents Page Unique Styles ========== */
/* Used on: for-agents.html - sales agent recruitment page */

/* Earnings potential highlight box at top of page */
.earnings-highlight {
  background: linear-gradient(135deg, rgba(218,165,32,0.2) 0%, rgba(0,0,0,0.3) 100%);
  border: 3px solid var(--gold);
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  margin: 4rem 0;
}

/* Commission structure table - shows upfront bonus + recurring % */
.commission-table {
  background: rgba(255,255,255,0.05);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
}

/* Individual commission table row (3-col grid: description | amount | frequency) */
.commission-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

/* Commission table header row styling */
.commission-header {
  font-weight: 700;
  color: var(--gold);
  background: rgba(218,165,32,0.1);
  border-radius: 8px;
}

/* Large numbered steps (1, 2, 3, 4) in "How It Works" section */
.step-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 1rem;
}

/* "Ideal Candidate" box with checkmark list */
.ideal-candidate {
  background: rgba(218,165,32,0.1);
  border-left: 4px solid var(--gold);
  padding: 2rem;
  border-radius: 8px;
  margin: 2rem 0;
}

.ideal-candidate ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.ideal-candidate li {
  padding: 0.5rem 0;
  display: flex;
  align-items: start;
  gap: 0.75rem;
}

/* Gold checkmarks before each ideal candidate trait */
.ideal-candidate li::before {
  content: "✓";
  color: var(--gold);
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Commission calculator interactive section */
.calculator-section {
  background: rgba(218,165,32,0.1);
  border: 2px solid var(--gold);
  border-radius: 16px;
  padding: 3rem 2rem;
  margin: 4rem 0;
}

.calculator-input-group {
  max-width: 600px;
  margin: 2rem auto;
}

/* Range slider for "How many Pro clients?" */
.calculator-slider {
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: rgba(255,255,255,0.2);
  outline: none;
  margin: 1rem 0;
  cursor: pointer;
}

/* Slider thumb (Chrome, Safari, Edge) */
.calculator-slider::-webkit-slider-thumb {
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
}

/* Slider thumb (Firefox) */
.calculator-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  border: none;
}

/* Mobile: Stack commission table rows vertically */
@media (max-width: 768px) {
  .commission-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

/* ========================================
   Review Categories Page Styles
   ======================================== */

/* Filter tabs */
.filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 10px 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.filter-tab:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
}

.filter-tab.active {
  background: linear-gradient(135deg, rgba(255,215,0,0.2), rgba(255,165,0,0.15));
  border-color: var(--gold);
  color: var(--gold);
}

/* Suggestion cards */
.suggestion-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
  transition: all 0.2s ease;
}

.suggestion-card:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.15);
}

.suggestion-card.approved {
  border-left: 4px solid #4caf50;
}

.suggestion-card.denied {
  border-left: 4px solid #f44336;
}

.suggestion-card.pending {
  border-left: 4px solid var(--gold);
}

/* Suggestion header */
.suggestion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 12px;
  flex-wrap: wrap;
}

.suggestion-title {
  margin: 0;
  font-size: 1.2rem;
  color: var(--gold);
}

/* Suggestion description */
.suggestion-description {
  color: rgba(255,255,255,0.8);
  margin-bottom: 12px;
  line-height: 1.6;
}

/* Suggestion meta */
.suggestion-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
}

/* Admin feedback box */
.admin-feedback-box {
  background: rgba(255,193,7,0.1);
  border: 1px solid rgba(255,193,7,0.3);
  border-radius: 6px;
  padding: 12px;
  margin-top: 12px;
  font-size: 0.9rem;
}

.admin-feedback-box strong {
  color: #ffc107;
}

/* Suggestion actions */
.suggestion-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* Feedback form */
.feedback-form {
  display: none;
  margin-top: 16px;
  padding: 16px;
  background: rgba(0,0,0,0.2);
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.1);
}

.feedback-form.active {
  display: block;
}

.feedback-form label {
  display: block;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.9);
}

/* Status badges for suggestions */
.badge-pending {
  background: rgba(255,215,0,0.2);
  color: var(--gold);
  border: 1px solid var(--gold);
}

.badge-approved {
  background: rgba(76,175,80,0.2);
  color: #4caf50;
  border: 1px solid #4caf50;
}

.badge-denied {
  background: rgba(244,67,54,0.2);
  color: #f44336;
  border: 1px solid #f44336;
}

@media (max-width: 768px) {
  .suggestion-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .suggestion-meta {
    flex-direction: column;
    gap: 8px;
  }
  
  .suggestion-actions {
    width: 100%;
  }
  
  .suggestion-actions button {
    flex: 1;
  }
}

/* Business response box for review moderation */
.business-response-box {
  background: rgba(212, 175, 55, 0.05);
  padding: 1rem;
  border-radius: 4px;
  margin-top: 1rem;
  border: 1px solid rgba(212, 175, 55, 0.2);
}
