/* ==========================================================================
   WhatsApp Community Manager IA - Forest Green Minimalist Design System
   Inspired by clean modern editorial layouts (Deep Forest Green, Crisp White, Lime Accents)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Color Palette - Forest Green Theme */
  --bg-body: #f4f6f3;
  --bg-card: #ffffff;
  --bg-card-subtle: #edf1eb;
  
  --green-deep: #143626;
  --green-dark: #1b4d36;
  --green-primary: #1e5a3f;
  --green-light: #e8f3ea;
  
  --lime-accent: #84cc16;
  --lime-bright: #a3e635;
  --lime-light: #ecfccb;

  --accent-amber: #d97706;
  --accent-rose: #e11d48;
  --accent-blue: #2563eb;

  --text-dark: #111827;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --text-light: #f9fafb;

  --border-color: #e5e7eb;
  --border-subtle: #d1d5db;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Radius & Shadows */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 16px rgba(20, 54, 38, 0.08);
  --shadow-lg: 0 10px 30px rgba(20, 54, 38, 0.12);

  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Global */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-dark);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Header & Top Bar - Inspired by Docents en Lluita Reference */
.top-nav {
  background: var(--green-deep);
  color: #ffffff;
  padding: 0.85rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(20, 54, 38, 0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo-badge {
  width: 40px;
  height: 40px;
  background: var(--lime-accent);
  color: var(--green-deep);
  font-weight: 800;
  font-size: 1.15rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  box-shadow: 0 2px 8px rgba(132, 204, 22, 0.3);
}

.brand-info h1 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #ffffff;
  line-height: 1.1;
  font-family: var(--font-heading);
}

.brand-info p {
  font-size: 0.72rem;
  color: var(--lime-bright);
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.9;
}

/* Authentic Top Navigation Links */
.nav-links-wrapper {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(0, 0, 0, 0.15);
  padding: 0.3rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-link-btn {
  background: transparent;
  border: none;
  color: #d1d5db;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.nav-link-btn.active {
  background: #ffffff;
  color: var(--green-deep);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-link-btn .pill-badge {
  background: var(--accent-rose);
  color: #fff;
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: 10px;
}

/* Header Action Button (Matching [ Entrar ] / [ Eixir ] in Reference PDF) */
.header-action-btn {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  padding: 0.45rem 1.25rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}

.header-action-btn:hover {
  background: #ffffff;
  color: var(--green-deep);
  border-color: #ffffff;
}

/* Secondary Filter Pills Bar (Inspired by Page 2 PDF Filters) */
.filter-pills-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.filter-pill-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-pill-item:hover {
  border-color: var(--green-dark);
  color: var(--green-dark);
}

.filter-pill-item.active {
  background: var(--green-deep);
  color: #ffffff;
  border-color: var(--green-deep);
}

/* Layout Main Container */
.main-layout {
  max-width: 1320px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

/* Hero & Main Grid */
.hero-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 2rem;
  align-items: start;
}

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

/* Deep Green Featured Hero Card */
.featured-card {
  background: var(--green-dark);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 480px;
  position: relative;
  overflow: hidden;
}

.featured-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lime-bright);
  margin-bottom: 0.75rem;
}

.featured-card h2 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.featured-card p {
  font-size: 0.95rem;
  color: #d1d5db;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.featured-stats-list {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.stat-item h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--lime-bright);
  font-family: var(--font-heading);
}

.stat-item p {
  font-size: 0.78rem;
  color: #e5e7eb;
  margin-bottom: 0;
  line-height: 1.3;
}

/* Right Content Area & Tab Panes System */
.content-area {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Tab Panes Control */
.tab-pane {
  display: none !important;
}

.tab-pane.active {
  display: block !important;
  animation: paneFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.card-white {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);

/* Landing Page Community Subgroups Cards Grid */
.landing-groups-card-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.landing-groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.subgroup-card-landing {
  background: var(--bg-card-subtle);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.subgroup-card-landing:hover {
  border-color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.subgroup-card-landing.active {
  background: var(--green-light);
  border-color: var(--green-dark);
  box-shadow: 0 0 0 2px var(--green-dark);
}

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

.subgroup-card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--green-deep);
}

.subgroup-card-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.subgroup-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
}
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.25rem;
}

.card-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-deep);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Buttons System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
}

.btn-primary {
  background: var(--green-dark);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--green-deep);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-lime {
  background: var(--lime-accent);
  color: var(--green-deep);
}

.btn-lime:hover {
  background: var(--lime-bright);
}

.btn-secondary {
  background: var(--bg-card-subtle);
  color: var(--text-dark);
}

.btn-secondary:hover {
  background: #e2e8f0;
}

.btn-sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
}

/* Status Badges */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
}

.badge-pill.valid { background: var(--green-light); color: var(--green-dark); }
.badge-pill.pending { background: #fef3c7; color: var(--accent-amber); }
.badge-pill.alert { background: #ffe4e6; color: var(--accent-rose); }

/* Live Chat Container */
.chat-container-clean {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 440px;
  display: flex;
  flex-direction: column;
}

.chat-header-clean {
  background: var(--green-dark);
  color: #ffffff;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-body-clean {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: #ffffff;
}

.message-bubble-clean {
  max-width: 80%;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.5;
  box-shadow: var(--shadow-sm);
}

.message-bubble-clean.incoming {
  background: var(--bg-card-subtle);
  align-self: flex-start;
  color: var(--text-dark);
  border-top-left-radius: 2px;
}

.message-bubble-clean.outgoing {
  background: var(--green-light);
  align-self: flex-end;
  color: var(--green-deep);
  border-top-right-radius: 2px;
}

.chat-input-clean {
  background: var(--bg-card-subtle);
  padding: 0.85rem;
  display: flex;
  gap: 0.6rem;
  border-top: 1px solid var(--border-color);
}

.chat-input-clean input {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  flex: 1;
}

.chat-input-clean input:focus {
  border-color: var(--green-dark);
}

/* Digest Output Box */
.digest-box-clean {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  font-family: 'Consolas', 'Courier New', monospace;
  white-space: pre-wrap;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--green-deep);
  max-height: 480px;
  overflow-y: auto;
}

/* Toast Container */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 9999;
}

.toast {
  background: var(--green-deep);
  color: #ffffff;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
}

/* ==========================================================================
   DOCENTS EN LLUITA EDITORIAL DESIGN SYSTEM EXTENSION
   ========================================================================== */

.lime-accent-bar {
  width: 70px;
  height: 5px;
  background: var(--lime-accent);
  border-radius: 99px;
  margin: 0.85rem 0 1.25rem 0;
}

.lime-accent-bar-sm {
  width: 40px;
  height: 4px;
  background: var(--lime-accent);
  border-radius: 99px;
  margin: 0.5rem 0 0.85rem 0;
}

/* Sidebar Index Card ("CONTINGUT" - Page 1) */
.sidebar-index-card {
  background: var(--green-dark);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
}

.sidebar-index-header {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lime-bright);
  margin-bottom: 1.25rem;
}

.index-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.index-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.index-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.index-item-left {
  display: flex;
  flex-direction: column;
}

.index-tag {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a3e635;
}

.index-title {
  font-size: 0.88rem;
  font-weight: 500;
  color: #ffffff;
}

.index-page-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--lime-bright);
}

/* 10x10 Seat / Capacity Grid (Page 4) */
.pancarta-banner {
  background: var(--lime-accent);
  color: var(--green-deep);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.capacity-grid-100 {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
  margin-bottom: 1.25rem;
}

.spot-cell {
  aspect-ratio: 1;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.spot-cell.free {
  background: var(--lime-accent);
  color: var(--green-deep);
}

.spot-cell.free:hover {
  background: var(--lime-bright);
  transform: scale(1.08);
}

.spot-cell.occupied {
  background: var(--green-deep);
  color: #94a3b8;
}

.spot-cell.user {
  background: #ffffff;
  border: 2px solid var(--lime-accent);
  color: var(--green-deep);
  font-weight: 800;
}

.spot-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.spot-legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.spot-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.spot-dot.free { background: var(--lime-accent); }
.spot-dot.occupied { background: var(--green-deep); }
.spot-dot.user { background: #ffffff; border: 2px solid var(--lime-accent); }

/* OTP Box Display (Page 3) */
.otp-box-display {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin: 1.25rem 0;
}

.otp-digit {
  width: 48px;
  height: 56px;
  border: 2px solid var(--green-dark);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--green-deep);
  background: #ffffff;
}

/* Email / Notification Preview Card (Page 5) */
.email-preview-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.email-preview-header {
  background: var(--bg-card-subtle);
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.email-preview-body {
  padding: 1.5rem;
  font-size: 0.92rem;
  line-height: 1.6;
}

.email-highlight-box {
  background: var(--green-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin: 1rem 0;
  color: var(--green-deep);
  font-weight: 500;
}

/* Editorial Tables (Pages 7 & 9) */
.table-editorial {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.88rem;
}

.table-editorial th {
  background: var(--bg-card-subtle);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.table-editorial th:first-child { border-top-left-radius: var(--radius-md); }
.table-editorial th:last-child { border-top-right-radius: var(--radius-md); }

.table-editorial td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-dark);
  vertical-align: middle;
}

.table-editorial tr:last-child td {
  border-bottom: none;
}

/* 2x2 Rules Grid (Page 10) */
.rules-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .rules-grid-2x2 {
    grid-template-columns: 1fr;
  }
}

.rule-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.rule-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 0.5rem;
}

.rule-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.bottom-banner-green {
  background: var(--green-dark);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2rem;
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Comprehensive Mobile & Responsive Enhancements
   ========================================================================== */

/* Tablet & Mobile Screens (<= 900px) */
@media (max-width: 900px) {
  .top-nav {
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .brand-wrapper {
    flex: 1;
  }

  .brand-info h1 {
    font-size: 1rem;
  }

  .brand-info p {
    font-size: 0.68rem;
  }

  .nav-links-wrapper {
    order: 3;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding: 0.4rem 0.5rem;
    justify-content: flex-start;
    border-radius: 14px;
    margin-top: 0.25rem;
  }

  /* Hide scrollbars for clean nav swipe */
  .nav-links-wrapper::-webkit-scrollbar {
    display: none;
  }
  .nav-links-wrapper {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .nav-link-btn {
    padding: 0.4rem 0.85rem;
    font-size: 0.82rem;
    flex-shrink: 0;
  }

  .header-action-btn {
    padding: 0.4rem 0.85rem;
    font-size: 0.78rem;
  }

  .main-layout {
    margin: 1rem auto;
    padding: 0 0.85rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .featured-card {
    padding: 1.5rem 1.25rem;
    min-height: auto;
    border-radius: var(--radius-lg);
  }

  .featured-card h2 {
    font-size: 1.5rem;
  }

  .card-white, .landing-groups-card-box {
    padding: 1.25rem 1rem;
    border-radius: var(--radius-lg);
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .chat-container-clean {
    border-radius: var(--radius-md);
  }

  .chat-header-clean {
    padding: 0.75rem 1rem;
  }

  .chat-body-clean {
    padding: 1rem;
    max-height: 380px;
  }

  .chat-input-clean {
    padding: 0.75rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .chat-input-clean input[type="text"] {
    max-width: 100% !important;
    width: 100%;
  }

  .chat-input-clean .btn {
    width: 100%;
  }

  .landing-groups-grid {
    grid-template-columns: 1fr !important;
  }

  #tab-groups-directory-grid {
    grid-template-columns: 1fr !important;
  }

  .table-editorial-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }

  .featured-stats-list {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    padding-top: 1rem;
  }

  .stat-item h3 {
    font-size: 1.4rem;
  }

  .stat-item p {
    font-size: 0.72rem;
  }

  /* Search Inputs on Mobile */
  #landing-groups-search-input, #tab-groups-search-input {
    font-size: 0.85rem;
  }
}

/* Small Smartphone Screens (<= 480px) */
@media (max-width: 480px) {
  .brand-logo-badge {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }

  .featured-stats-list {
    grid-template-columns: 1fr 1fr;
  }

  .card-white {
    padding: 1rem 0.85rem;
  }

  .subgroup-card-landing {
    padding: 0.85rem;
  }

  .rule-card {
    padding: 1.1rem;
  }
}

