/* ==========================================================================
   BISERICA IMPACT - DESIGN SYSTEM & STYLES
   ========================================================================== */

:root {
  --bg-dark: #090a0b;
  --bg-surface: #121316;
  --bg-surface-elevated: #1a1c21;
  --bg-card: rgba(22, 24, 28, 0.75);
  --bg-card-hover: rgba(30, 33, 39, 0.9);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(247, 224, 95, 0.5);
  --border-full: rgba(239, 68, 68, 0.35);

  --impact-accent: #0ea5e9;
  --impact-accent-hover: #38bdf8;
  --impact-accent-glow: rgba(14, 165, 233, 0.3);
  --impact-accent-deep: #0284c7;
  
  --impact-yellow: var(--impact-accent);
  --impact-yellow-hover: var(--impact-accent-hover);
  --impact-yellow-glow: var(--impact-accent-glow);
  
  --text-white: #ffffff;
  --text-primary: #f3f3f3;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --text-dark: #0d0e0e;

  --badge-green: #22c55e;
  --badge-green-bg: rgba(34, 197, 94, 0.12);
  --badge-amber: #f59e0b;
  --badge-amber-bg: rgba(245, 158, 11, 0.15);
  --badge-red: #ef4444;
  --badge-red-bg: rgba(239, 68, 68, 0.15);

  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.18s ease;
  --transition-smooth: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-elevated: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(14, 165, 233, 0.09) 0%, transparent 60%),
    radial-gradient(circle at 10% 30%, rgba(14, 165, 233, 0.04) 0%, transparent 40%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 10, 11, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.9rem 1.5rem;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  transition: opacity var(--transition-fast);
}

.logo-img:hover {
  opacity: 0.9;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--badge-green);
  box-shadow: 0 0 10px var(--badge-green);
  animation: pulse-live 2s infinite;
}

@keyframes pulse-live {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.admin-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.admin-nav-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--impact-yellow);
}

/* Main Container */
.main-content {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* Hero Section */
.hero-section {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2.5rem;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--impact-accent);
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.28);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.2rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-white);
  margin-bottom: 0;
}

.highlight-yellow {
  color: var(--impact-accent);
  text-shadow: 0 0 35px rgba(14, 165, 233, 0.4);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 2rem;
}

.hero-subtitle strong {
  color: var(--text-white);
}

/* Filter Bar */
.filter-bar {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 0.3rem;
  border-radius: var(--radius-full);
  gap: 0.3rem;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  color: var(--text-white);
}

.filter-btn.active {
  background: var(--bg-surface-elevated);
  color: var(--impact-yellow);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Groups Section & Grid */
.groups-section {
  margin-bottom: 3.5rem;
}

.groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

/* Group Card */
.group-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.7rem;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
  overflow: hidden;
}

.group-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--impact-yellow), transparent);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.group-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-elevated);
}

.group-card:hover::before {
  opacity: 1;
}

/* Group Card Header */
.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.category-badge {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.topic-badge {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(14, 165, 233, 0.12);
  color: var(--impact-accent);
  border: 1px solid rgba(14, 165, 233, 0.28);
}

/* Status Indicator Badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.status-badge.available {
  background: var(--badge-green-bg);
  color: var(--badge-green);
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.status-badge.locked-notice {
  background: var(--badge-amber-bg);
  color: var(--badge-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
  animation: pulse-amber 1.8s infinite;
}

@keyframes pulse-amber {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

/* Explicit requirement: "De fiecare dată când un grup se ocupă, va apărea etichela, locuri ocupate." */
.status-badge.full {
  background: var(--badge-red-bg);
  color: var(--badge-red);
  border: 1px solid var(--badge-red);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Leader & Info */
.leader-name {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.group-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.4rem;
  flex-grow: 1;
}

/* Capacity Section */
.capacity-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 1.3rem;
}

.capacity-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.capacity-occupied {
  color: var(--text-secondary);
}

.capacity-remaining {
  color: var(--badge-green);
}

.capacity-remaining.none {
  color: var(--badge-red);
  font-weight: 700;
}

.capacity-progress {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.progress-bar-inner {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, #22c55e, #10b981);
  transition: width 0.4s ease;
}

.progress-bar-inner.warn {
  background: linear-gradient(90deg, #f59e0b, #eab308);
}

.progress-bar-inner.full {
  background: var(--badge-red);
}

/* Locked sub-indicator on card */
.locked-sub-indicator {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.45rem;
  font-size: 0.74rem;
  color: var(--badge-amber);
}

/* Card Button */
.card-btn {
  width: 100%;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.card-actions-group {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: 100%;
}

.card-btn.btn-action {
  background: var(--impact-accent);
  color: #ffffff;
  box-shadow: 0 4px 15px var(--impact-accent-glow);
}

.card-btn.btn-action:hover {
  background: var(--impact-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.45);
}

.card-btn.btn-action:active {
  transform: translateY(0);
}

.card-btn.btn-action-couple {
  background: rgba(14, 165, 233, 0.1);
  color: var(--impact-accent);
  border: 1px solid rgba(14, 165, 233, 0.35);
  box-shadow: none;
}

.card-btn.btn-action-couple:hover:not(:disabled) {
  background: rgba(14, 165, 233, 0.2);
  border-color: var(--impact-accent);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.25);
}

.card-btn.btn-action-couple:active:not(:disabled) {
  transform: translateY(0);
}

.card-btn.btn-disabled-spots {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  cursor: not-allowed;
  font-size: 0.8rem;
  padding: 0.7rem 1rem;
}

.card-btn.btn-full {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  cursor: not-allowed;
}

.card-btn.btn-locked {
  background: rgba(245, 158, 11, 0.1);
  color: var(--badge-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
  cursor: not-allowed;
}

/* Group Card Full State */
.group-card.is-full {
  border-color: rgba(239, 68, 68, 0.25);
  background: rgba(20, 18, 19, 0.65);
}

.group-card.is-full .leader-name {
  color: #d1d5db;
}

/* Info Card Banner */
.info-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  backdrop-filter: blur(10px);
}

.info-icon {
  background: rgba(14, 165, 233, 0.12);
  color: var(--impact-accent);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-content h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.4rem;
}

.info-content p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.info-content strong {
  color: var(--text-white);
}

/* ==========================================================================
   MODAL (NATIVE <DIALOG>)
   ========================================================================== */

.custom-modal {
  margin: auto;
  border: none;
  background: transparent;
  padding: 1rem;
  max-width: 520px;
  width: 92vw;
  color: var(--text-primary);
  outline: none;
}

.custom-modal::backdrop {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeInBackdrop 0.25s ease forwards;
}

@keyframes fadeInBackdrop {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-wrapper {
  background: var(--bg-surface-elevated);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85);
  animation: zoomInModal 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes zoomInModal {
  from { opacity: 0; transform: scale(0.94) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

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

.modal-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--impact-accent);
  background: rgba(14, 165, 233, 0.12);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.4rem;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.25;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 1rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-white);
}

/* 30-Second Countdown Timer Box */
.timer-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(14, 165, 233, 0.35);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
  transition: border-color var(--transition-fast);
}

.timer-box.urgent {
  border-color: rgba(239, 68, 68, 0.7);
  background: rgba(239, 68, 68, 0.08);
  animation: pulse-urgent 1s infinite;
}

@keyframes pulse-urgent {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  50% { box-shadow: 0 0 15px 2px rgba(239, 68, 68, 0.4); }
}

.timer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.timer-left {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
}

.timer-icon {
  color: var(--impact-yellow);
}

.timer-box.urgent .timer-icon {
  color: var(--badge-red);
}

.timer-clock {
  display: inline-flex;
  align-items: baseline;
  gap: 0.2rem;
  font-family: var(--font-heading);
}

.countdown-number {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--impact-yellow);
  line-height: 1;
}

.timer-box.urgent .countdown-number {
  color: var(--badge-red);
}

.countdown-unit {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.progress-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 0.6rem;
}

.progress-fill {
  height: 100%;
  background: var(--impact-yellow);
  border-radius: var(--radius-full);
  transition: width 0.1s linear, background-color 0.3s ease;
}

.timer-box.urgent .progress-fill {
  background: var(--badge-red);
}

.timer-subtext {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Registration Form Inputs */
.registration-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.required {
  color: var(--impact-yellow);
}

.optional {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
}

.form-input, .form-textarea {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-white);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--impact-yellow);
  box-shadow: 0 0 0 2px var(--impact-yellow-glow);
}

.form-input.is-invalid {
  border-color: var(--badge-red);
}

.input-error-msg {
  font-size: 0.75rem;
  color: var(--badge-red);
  line-height: 1.3;
}

.input-error-msg:empty {
  display: none;
}

.form-general-error {
  background: var(--badge-red-bg);
  border: 1px solid var(--badge-red);
  color: var(--text-white);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

/* Modal Actions */
.modal-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.btn-primary {
  flex: 1;
  background: var(--impact-accent);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.85rem 1.2rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 15px var(--impact-accent-glow);
}

.btn-primary:hover {
  background: var(--impact-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.45);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary.full-width {
  width: 100%;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-white);
}

/* State Views inside Modal */
.state-view {
  text-align: center;
  padding: 1.5rem 0.5rem;
}

.state-icon-wrap {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
}

.expired-icon {
  background: var(--badge-amber-bg);
  color: var(--badge-amber);
  border: 2px solid var(--badge-amber);
}

.success-icon {
  background: var(--badge-green-bg);
  color: var(--badge-green);
  border: 2px solid var(--badge-green);
  box-shadow: 0 0 25px rgba(34, 197, 94, 0.35);
}

.state-view h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 0.6rem;
}

.state-view p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.confirmation-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.conf-row {
  display: flex;
  justify-content: space-between;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.88rem;
}

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

.conf-label {
  color: var(--text-muted);
}

.conf-val {
  color: var(--text-white);
  font-weight: 600;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
  background: var(--bg-surface-elevated);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.3rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-white);
  display: none;
  animation: slideUpToast 0.25s ease forwards;
}

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

.toast.success {
  border-left: 4px solid var(--badge-green);
}

.toast.error {
  border-left: 4px solid var(--badge-red);
}

.toast.info {
  border-left: 4px solid var(--impact-yellow);
}

/* Spinner Loading */
.loading-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-secondary);
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--impact-yellow);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(9, 10, 11, 0.95);
  padding: 2rem 1.5rem;
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.church-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-white);
}

.church-quote {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color var(--transition-fast);
}

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

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .header-container {
    flex-direction: row;
  }
  
  .logo-img {
    height: 30px;
  }
  
  .hero-section {
    margin-bottom: 2rem;
  }
  
  .groups-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    width: 100%;
    border-radius: var(--radius-md);
  }

  .filter-btn {
    flex: 1 1 auto;
    text-align: center;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  /* Ultra-compact Modal on Mobile */
  .custom-modal {
    padding: 0.5rem;
    width: 95vw;
    max-height: 94dvh;
    margin: auto;
  }

  .modal-wrapper {
    padding: 1.1rem 1rem;
    max-height: 92dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md);
  }

  .modal-header {
    margin-bottom: 0.75rem;
    gap: 0.5rem;
  }

  .modal-title {
    font-size: 1.15rem;
    line-height: 1.25;
  }

  .modal-tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
  }

  .timer-box {
    padding: 0.55rem 0.8rem;
    margin-bottom: 0.75rem;
    border-radius: var(--radius-sm);
  }

  .timer-left {
    font-size: 0.78rem;
    gap: 0.35rem;
  }

  .countdown-number {
    font-size: 1.25rem;
  }

  .timer-subtext {
    display: none; /* Hide verbose 2-line explanation to maximize visible screen */
  }

  .progress-track {
    height: 4px;
    margin-bottom: 0;
    margin-top: 0.35rem;
  }

  .registration-form {
    gap: 0.65rem;
  }

  .form-group {
    gap: 0.25rem;
  }

  .form-group label {
    font-size: 0.8rem;
  }

  .form-input {
    padding: 0.6rem 0.75rem;
    font-size: 0.92rem;
  }

  .modal-actions {
    margin-top: 0.5rem;
    gap: 0.5rem;
  }

  .btn-primary, .btn-secondary {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
  }
}
