/* =====================================================
   ALG STUDIO — COMMUNITY DIRECTORY
   Apple-inspired design system with site-matching patterns
   ===================================================== */

/* SweetAlert2 + intl-tel-input */
.swal2-container { z-index: 99999 !important; }
.swal2-popup { z-index: 99999 !important; }
.iti { width: 100% !important; position: relative; }
.iti__flag-container { position: absolute; top: 0; bottom: 0; left: 0; z-index: 2; pointer-events: auto; }
.iti__selected-flag { padding: 10px 8px 10px 10px; background: transparent; border: none; }
.iti__dropdown-content { border-radius: 10px; border: 1px solid #e5e9f3; box-shadow: 0 8px 24px rgba(0,0,0,0.12); z-index: 100000; }
.iti__country-list { margin: 0; padding: 6px 0; max-height: 220px; }
.iti__country { padding: 8px 12px; font-size: 14px; }
#preRegWhatsapp { width: 100% !important; padding-left: 56px !important; border-radius: 10px !important; height: 44px; font-size: 14px; }
#preRegWhatsapp:focus { border-color: #1229ad; box-shadow: 0 0 0 3px rgba(18,41,173,0.1); outline: none; }

/* ── Stats ─────────────────────────────────────────── */
.comm-stats-bar {
  padding: 48px 0;
  background: linear-gradient(135deg, #1229ad 0%, #1a3ac7 50%, #1229ad 100%);
}
.comm-stats-row {
  display: flex;
  justify-content: center;
  align-items: center;
}
.comm-stat {
  text-align: center;
  padding: 0 48px;
}
.comm-stat-num {
  display: block;
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -1px;
}
.comm-stat-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.comm-stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .comm-stats-bar { padding: 32px 0; }
  .comm-stat { padding: 0 20px; }
  .comm-stat-num { font-size: 30px; }
  .comm-stat-label { font-size: 11px; letter-spacing: 0.5px; }
  .comm-stat-divider { height: 32px; }
}
@media (max-width: 400px) {
  .comm-stats-row { gap: 8px; }
  .comm-stat { padding: 0 14px; }
  .comm-stat-num { font-size: 26px; }
}

/* ── Section ───────────────────────────────────────── */
.comm-section { padding: 72px 0; }
.comm-section-header { margin-bottom: 36px; }
.comm-section-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.5px;
  margin: 0 0 6px;
}
.comm-section-header p {
  font-size: 15px;
  color: #86868b;
  margin: 0;
}

/* ── Groups Carousel ───────────────────────────────── */
.comm-carousel-wrap {
  position: relative;
  overflow: visible;
  padding: 0 0 8px;
}
.comm-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 12px 24px 24px;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  scroll-behavior: smooth;
}
.comm-carousel:active { cursor: grabbing; }
.comm-carousel::-webkit-scrollbar { display: none; }

/* Prev / Next buttons */
.comm-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.10), 0 1px 4px rgba(0,0,0,0.06);
  color: #1229ad;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0,0,0.2,1);
  opacity: 1;
  pointer-events: auto;
}
.comm-carousel-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.comm-carousel-btn:hover {
  background: #fff;
  box-shadow: 0 8px 28px rgba(18,41,173,0.18), 0 2px 8px rgba(0,0,0,0.08);
  transform: translateY(-50%) scale(1.08);
  border-color: rgba(18,41,173,0.2);
}
.comm-carousel-btn:active {
  transform: translateY(-50%) scale(0.95);
  transition-duration: 0.1s;
}
.comm-carousel-btn.disabled {
  opacity: 0.25;
  pointer-events: none;
  box-shadow: none;
}
.comm-carousel-prev { left: 4px; }
.comm-carousel-next { right: 4px; }

/* Progress dots */
.comm-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}
.comm-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d1d5db;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0,0,0.2,1);
}
.comm-carousel-dot.active {
  background: #1229ad;
  width: 24px;
  border-radius: 4px;
}

/* Mobile carousel — smaller arrows + dots, adaptive cards */
@media (max-width: 768px) {
  .comm-carousel-wrap { padding: 0 4px 8px; }
  .comm-carousel-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .comm-carousel-btn.prev { left: 4px; }
  .comm-carousel-btn.next { right: 4px; }
  .comm-carousel-btn svg { width: 14px; height: 14px; }
  .comm-carousel-dots { gap: 6px; padding: 8px 0 0; }
  .comm-carousel-dot { width: 6px; height: 6px; }
  .comm-carousel-dot.active { width: 18px; }
  .comm-carousel {
    padding: 12px 12px 20px;
    gap: 12px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
  .comm-group-card {
    flex: 0 0 min(260px, 75vw);
  }
  .comm-group-img { height: 150px; }
  .comm-group-body { padding: 14px 16px 10px; }
  .comm-group-body h4 { font-size: 15px; }
  .comm-group-actions { padding: 0 16px 14px; }
}
@media (max-width: 480px) {
  .comm-carousel { gap: 10px; padding: 10px 10px 18px; }
  .comm-group-card { flex: 0 0 min(240px, 80vw); }
  .comm-group-img { height: 130px; }
}

.comm-group-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.35s cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
}
.comm-group-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}
.comm-group-card:active {
  transform: scale(0.98);
  transition-duration: 0.1s;
}
.comm-group-card-active {
  box-shadow: 0 0 0 3px #1229ad, 0 12px 40px rgba(18,41,173,0.12) !important;
}

.comm-group-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
  cursor: pointer;
}
.comm-group-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.comm-group-card:hover .comm-group-img img {
  transform: scale(1.05);
}
.comm-group-img-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}

.comm-group-body {
  padding: 16px 20px 12px;
  cursor: pointer;
  flex: 1;
}
.comm-group-body h4 {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  margin: 0 0 6px;
  letter-spacing: -0.2px;
  line-height: 1.3;
}
.comm-group-desc {
  font-size: 12px;
  color: #86868b;
  line-height: 1.5;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.comm-group-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.comm-group-count {
  font-size: 12px;
  color: #86868b;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.comm-group-actions {
  padding: 0 20px 16px;
}
.comm-group-join-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--gc, #1229ad);
  background: transparent;
  color: var(--gc, #1229ad);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0,0,0.2,1);
  font-family: inherit;
}
.comm-group-join-btn:hover {
  background: var(--gc, #1229ad);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--gc, #1229ad) 30%, transparent);
}
.comm-group-join-btn:active {
  transform: scale(0.97);
  transition-duration: 0.1s;
}

/* Join hint */
.comm-pre-reg-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  margin-top: 12px;
  border-radius: 10px;
  background: rgba(18,41,173,0.06);
  border: 1px solid rgba(18,41,173,0.12);
  font-size: 12px;
  color: #1229ad;
  line-height: 1.4;
}

/* ── Search ────────────────────────────────────────── */
.comm-search-wrap {
  max-width: 560px;
  margin: 0 auto 48px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: #f4f6fb;
  padding: 12px 0;
}
.comm-search-box {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #e5e5ea;
  border-radius: 12px;
  padding: 0 6px 0 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.comm-search-box:focus-within {
  border-color: #1229ad;
  box-shadow: 0 0 0 4px rgba(18,41,173,0.08);
}
.comm-search-box > i:first-child { color: #86868b; font-size: 15px; }
.comm-search-box input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 12px;
  font-size: 15px;
  background: transparent;
  color: #111;
}
.comm-search-box input::placeholder { color: #aeaeb2; }
.comm-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 9px;
  background: #1229ad;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}
.comm-search-btn:hover { background: #1a3ac7; }
.comm-search-btn svg { width: 16px; height: 16px; }
.comm-search-hint {
  text-align: center;
  font-size: 12px;
  color: #aeaeb2;
  margin-top: 8px;
}
.comm-search-clear {
  background: none;
  border: none;
  color: #aeaeb2;
  cursor: pointer;
  padding: 4px;
  font-size: 14px;
}

/* ── Members ───────────────────────────────────────── */
.comm-members-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
}
.comm-members-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.3px;
  margin: 0;
}
.comm-members-count {
  font-size: 14px;
  color: #86868b;
}
.comm-members-grid {
  /* deprecated — using Bootstrap row/col instead */
}
.comm-member-card {
  background: #fff;
  border: 1px solid #f0f0f5;
  border-radius: 16px;
  padding: 28px 20px 22px;
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.comm-member-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(18, 41, 173, 0.08);
  border-color: #e0e4f0;
}
.comm-member-avatar-wrap {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 0 auto 14px;
}
.comm-member-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  overflow: hidden;
  background: #f5f5f7;
  border: 2.5px solid #f0f0f5;
  transition: border-color 0.3s ease;
}
.comm-member-card:hover .comm-member-avatar {
  border-color: #1229ad30;
}
.comm-member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.comm-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1229ad, #1f41db);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.comm-member-verified {
  position: absolute;
  bottom: 0;
  right: 0;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.15));
  line-height: 0;
}
.comm-member-name {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  margin-bottom: 3px;
  letter-spacing: -0.2px;
}
.comm-member-title {
  font-size: 12.5px;
  color: #1229ad;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.1px;
}
.comm-member-location {
  font-size: 12px;
  color: #86868b;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.comm-member-id,
.comm-member-phone {
  font-size: 11px;
  color: #86868b;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  letter-spacing: 0.3px;
}
.comm-member-id {
  color: #1229ad;
  font-weight: 600;
}
.comm-member-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
}
.comm-member-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: -0.1px;
}

/* ── Load More ─────────────────────────────────────── */
.comm-load-more {
  text-align: center;
  margin-top: 36px;
}

/* ── CTA ───────────────────────────────────────────── */
.comm-cta-card {
  background: linear-gradient(135deg, #1229ad 0%, #1f41db 100%);
  border-radius: 24px;
  padding: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.comm-cta-content h2 {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
}
.comm-cta-content p {
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  margin: 0 0 28px;
  max-width: 400px;
  line-height: 1.6;
}
.comm-cta-visual {
  display: flex;
}
.comm-cta-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid #fff;
  overflow: hidden;
  background: rgba(255,255,255,0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.comm-cta-avatar img { width: 100%; height: 100%; object-fit: cover; }
.comm-cta-avatar-2 { margin-left: -16px; }
.comm-cta-avatar-3 { margin-left: -16px; }

/* ── Empty state ────────────────────────────────────── */
.comm-empty-state {
  text-align: center;
  padding: 80px 24px;
  grid-column: 1 / -1;
}
.comm-empty-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: #f0f2f5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.comm-empty-icon i {
  font-size: 32px;
  color: #b0b8c4;
}
.comm-empty-state h4 {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a2e;
  margin: 0 0 8px;
}
.comm-empty-state p {
  font-size: 14px;
  color: #888;
  margin: 0;
}

/* ── Modal ─────────────────────────────────────────── */
.comm-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}
.comm-modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 440px;
  padding: 32px;
  position: relative;
  animation: slideUp 0.3s ease;
}
.comm-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 18px;
  color: #999;
  cursor: pointer;
}
.comm-modal-header {
  text-align: center;
  margin-bottom: 24px;
}
.comm-modal-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: #111;
  margin: 0 0 6px;
}
.comm-modal-header p {
  font-size: 13px;
  color: #666;
  margin: 0;
}
.comm-form-group {
  margin-bottom: 16px;
}
.comm-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}
.comm-form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e5e5ea;
  border-radius: 10px;
  font-size: 14px;
  color: #111;
  background: #f5f5f7;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.comm-form-group input:focus {
  border-color: #1229ad;
  box-shadow: 0 0 0 3px rgba(18,41,173,0.1);
  background: #fff;
}

/* ── Buttons ───────────────────────────────────────── */
.community-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #1229ad 0%, #1f41db 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.community-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(18,41,173,0.3);
}

/* ── Toast ─────────────────────────────────────────── */
.comm-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #10b981;
  color: #fff;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  z-index: 999999;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 30px rgba(16,185,129,0.3);
  animation: slideUp 0.3s ease;
}

/* ── Animations ────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Mobile ────────────────────────────────────────── */
@media (max-width: 768px) {
  .comm-section { padding: 48px 0; }
  .comm-section-header h2 { font-size: 26px; }
  .comm-cta-card { flex-direction: column; text-align: center; padding: 40px 24px; border-radius: 20px; }
  .comm-cta-content p { max-width: none; }
  .comm-members-header { flex-direction: column; gap: 4px; }
  .comm-member-card { padding: 24px 18px 20px; }
  .comm-member-avatar-wrap { width: 72px; height: 72px; }
  .comm-member-avatar { width: 72px; height: 72px; }
}

/* =====================================================
   STATUS CHECK — ID CARD
   ===================================================== */

@keyframes csCardIn {
  0% { opacity: 0; transform: translateY(16px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes csSpin {
  to { transform: rotate(360deg); }
}

/* ── Card ───────────────────────────────────────────── */
.cs-card {
  background: #fff;
  border: 1px solid #f0f0f5;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.03);
}
.cs-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid #f0f0f5;
  background: linear-gradient(135deg, #fafbff 0%, #fff 100%);
}
.cs-card-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  color: #1229ad;
  letter-spacing: 1.5px;
}
.cs-card-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: -0.1px;
}
.cs-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  animation: csPulse 2s infinite;
}
@keyframes csPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── Body ───────────────────────────────────────────── */
.cs-card-body {
  padding: 28px 24px 20px;
}
.cs-card-avatar-section {
  text-align: center;
  margin-bottom: 24px;
}
.cs-card-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 12px;
  overflow: hidden;
  border: 3px solid #f0f0f5;
  background: #f5f5f7;
}
.cs-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cs-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1229ad, #1f41db);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.cs-card-name {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.3px;
  margin-bottom: 2px;
}
.cs-card-title {
  font-size: 13px;
  color: #1229ad;
  font-weight: 600;
  margin-bottom: 4px;
}
.cs-card-email {
  font-size: 12px;
  color: #86868b;
}

/* ── Details ────────────────────────────────────────── */
.cs-card-details {
  margin-bottom: 20px;
}
.cs-card-id {
  text-align: center;
  padding: 14px;
  background: linear-gradient(135deg, #1229ad08 0%, #1229ad04 100%);
  border: 1px dashed #1229ad25;
  border-radius: 12px;
  margin-bottom: 16px;
}
.cs-card-id-label {
  font-size: 10px;
  font-weight: 700;
  color: #1229ad;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.cs-card-id-value {
  font-size: 20px;
  font-weight: 800;
  color: #1229ad;
  letter-spacing: 2px;
  font-family: 'SF Mono', 'Fira Code', monospace;
}
.cs-card-meta-row {
  display: flex;
  gap: 12px;
}
.cs-card-meta {
  flex: 1;
  padding: 10px 14px;
  background: #fafbff;
  border-radius: 10px;
  border: 1px solid #f0f0f5;
}
.cs-card-meta-label {
  font-size: 10px;
  font-weight: 600;
  color: #86868b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.cs-card-meta-value {
  font-size: 13px;
  font-weight: 600;
  color: #111;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Groups ─────────────────────────────────────────── */
.cs-card-groups {
  margin-bottom: 0;
}
.cs-card-groups-label {
  font-size: 10px;
  font-weight: 700;
  color: #86868b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.cs-card-groups-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cs-group-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #f5f7ff;
  border: 1px solid #e8ecf5;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #333;
}
.cs-group-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cs-group-pending {
  font-size: 10px;
  color: #f59e0b;
  font-weight: 600;
}

/* ── Timeline ───────────────────────────────────────── */
.cs-card-timeline {
  padding: 20px 24px 24px;
  border-top: 1px solid #f0f0f5;
  background: #fafbff;
}
.cs-timeline-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  padding-bottom: 20px;
}
.cs-timeline-step:last-child {
  padding-bottom: 0;
}
.cs-timeline-node {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  border: 2px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}
.cs-timeline-step.active .cs-timeline-node {
  box-shadow: 0 0 0 4px #1229ad15;
}
.cs-timeline-text {
  flex: 1;
  padding-top: 1px;
}
.cs-timeline-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.1px;
}
.cs-timeline-desc {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 1px;
}
.cs-timeline-line {
  position: absolute;
  left: 11px;
  top: 26px;
  width: 2px;
  height: calc(100% - 26px);
  border-radius: 1px;
  transition: background 0.3s ease;
}

/* ── Not Found ──────────────────────────────────────── */
.cs-not-found {
  text-align: center;
  padding: 40px 24px;
  background: #fff;
  border: 1px solid #f0f0f5;
  border-radius: 20px;
}
.cs-not-found-icon {
  margin: 0 auto 20px;
  opacity: 0.85;
}
.cs-not-found-title {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  margin: 0 0 8px;
}
.cs-not-found-desc {
  font-size: 14px;
  color: #86868b;
  margin: 0 0 24px;
  line-height: 1.6;
}
.cs-not-found-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Loading ────────────────────────────────────────── */
.cs-loading {
  text-align: center;
  padding: 48px 24px;
  background: #fff;
  border: 1px solid #f0f0f5;
  border-radius: 20px;
}
.cs-loading-pulse {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1229ad15;
  border: 3px solid #1229ad30;
  border-top-color: #1229ad;
  animation: csSpin 0.8s linear infinite;
  margin: 0 auto 16px;
}
.cs-loading-text {
  font-size: 14px;
  color: #86868b;
  font-weight: 500;
}

/* ── Buttons ────────────────────────────────────────── */
.cs-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.2s ease;
}
.cs-btn-primary {
  background: #1229ad;
  color: #fff;
}
.cs-btn-primary:hover {
  background: #0f2290;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px #1229ad30;
}
.cs-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.cs-btn-ghost {
  background: transparent;
  color: #86868b;
  border: 1px solid #e5e7eb;
}
.cs-btn-ghost:hover {
  color: #111;
  border-color: #d1d5db;
  background: #f9fafb;
}

/* ── Form ───────────────────────────────────────────── */
.cs-check-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cs-check-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ── Mobile ─────────────────────────────────────────── */
@media (max-width: 600px) {
  .cs-card-header { padding: 14px 18px; flex-wrap: wrap; gap: 8px; }
  .cs-card-body { padding: 22px 18px 16px; }
  .cs-card-timeline { padding: 16px 18px 20px; }
  .cs-card-avatar { width: 68px; height: 68px; }
  .cs-avatar-fallback { font-size: 20px; }
  .cs-card-name { font-size: 16px; }
  .cs-card-id-value { font-size: 17px; letter-spacing: 1.5px; }
  .cs-card-meta-row { flex-direction: column; gap: 8px; }
  .cs-not-found { padding: 32px 18px; }
  .comm-id-card-grid { gap: 24px; padding: 0 12px; }
  .comm-id-card-cell { max-width: 100%; }
}

/* =====================================================
   ID CARD GRID
   ===================================================== */
.comm-id-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: 32px;
  justify-items: center;
  padding: 0 16px;
}
.comm-id-card-cell {
  width: 100%;
  max-width: 400px;
  display: flex;
  justify-content: center;
}

/* =====================================================
   FLIP ID CARD
   ===================================================== */
.cs-card-id-real {
  perspective: 900px;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}
.cs-card-id-flip {
  position: relative;
  width: 100%;
  max-width: 338px;
  height: 0;
  padding-bottom: 153.8%;
  margin: 0 auto;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: default;
}
.cs-card-id-real:hover .cs-card-id-flip {
  transform: rotateY(180deg);
}
.cs-id-face {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
}

/* ── FRONT ─────────────────────────────────────────── */
.cs-id-front {
  background: linear-gradient(160deg, #3a5bdb 0%, #1e3cb4 38%, #101a3e 62%);
  color: #fff;
  z-index: 2;
}
.cs-id-front::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.10) 1.5px, transparent 1.6px);
  background-size: 22px 22px;
  opacity: 0.5;
  mix-blend-mode: overlay;
}
.cs-id-lanyard-hole {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 34px; height: 10px; border-radius: 6px;
  background: #0a1230;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.6);
  z-index: 5;
}
.cs-id-front-header {
  position: relative; z-index: 2;
  padding: 32px 22px 0;
  display: flex; align-items: center; gap: 10px;
}
.cs-id-front-logo {
  width: 30px; height: 30px; flex: none;
}
.cs-id-front-logo svg { width: 100%; height: 100%; }
.cs-id-front-org {
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  font-size: 19px;
  letter-spacing: 0.03em;
  line-height: 1;
}
.cs-id-front-sub {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-top: 2px;
}
.cs-id-front-photo {
  position: relative; z-index: 2;
  margin: 22px auto 0;
  width: 112px; height: 112px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 3px solid rgba(255,255,255,0.55);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.cs-id-front-photo img {
  width: 100%; height: 100%; object-fit: cover;
}
.cs-id-front-photo-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1e3cb4, #3a5bdb);
  color: #fff;
  font-size: 36px; font-weight: 700; letter-spacing: 1px;
}
.cs-id-front-name {
  position: relative; z-index: 2;
  text-align: center;
  margin-top: 14px;
  padding: 0 20px;
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  font-size: 26px;
  letter-spacing: 0.02em;
  line-height: 1;
}
.cs-id-front-ticks {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 6px;
  vertical-align: middle;
}
.cs-id-front-ticks svg { width: 16px; height: 16px; }
.cs-id-front-role {
  position: relative; z-index: 2;
  text-align: center;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e8b64a;
  margin-top: 6px;
}
.cs-id-front-divider {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 8px;
  margin: 14px 26px 0;
}
.cs-id-front-divider-line { flex: 1; height: 1px; background: rgba(255,255,255,0.18); }
.cs-id-front-divider-dot { width: 4px; height: 4px; border-radius: 50%; background: #e8b64a; }
.cs-id-front-grid {
  position: relative; z-index: 2;
  margin: 12px 26px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 10px;
  column-gap: 10px;
}
.cs-id-front-grid-label {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 2px;
}
.cs-id-front-grid-value {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
}
.cs-id-front-grid-value.mono {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  color: #e8b64a;
}
/* ── Front ID (under role) ──────────────────────────── */
.cs-id-front-id {
  position: relative; z-index: 2;
  text-align: center;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 20px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.55);
  margin-top: 8px;
}
/* ── Front Groups (inside card) ────────────────────── */
.cs-id-front-groups {
  position: relative; z-index: 2;
  margin: 8px 26px 16px;
  display: flex; flex-wrap: wrap; gap: 4px;
}
.cs-id-front-group-chip {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 7px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  font-size: 8px; font-weight: 600; color: #fff;
  white-space: nowrap;
}
.cs-id-front-group-dot {
  width: 4px; height: 4px;
  border-radius: 50%; flex-shrink: 0;
}

/* ── BACK ──────────────────────────────────────────── */
.cs-id-back {
  background: #f4f6fb;
  color: #0a1230;
  transform: rotateY(180deg);
}
.cs-id-back-top {
  background: #101a3e;
  padding: 14px 22px;
  display: flex; align-items: center; justify-content: space-between;
}
.cs-id-back-org {
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  font-size: 15px;
  letter-spacing: 0.03em;
  color: #fff;
}
.cs-id-back-org svg { width: 20px; height: 20px; }
.cs-id-mag-stripe {
  height: 34px;
  background: repeating-linear-gradient(180deg, #12183a, #12183a 2px, #1a2350 2px, #1a2350 4px);
}
.cs-id-back-body {
  padding: 16px 24px 0;
}
.cs-id-back-terms-title {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #1e3cb4;
  margin-bottom: 6px;
}
.cs-id-back-terms-list {
  font-size: 10px;
  line-height: 1.55;
  color: #374262;
  padding-left: 16px;
  margin: 0 0 14px;
}
.cs-id-back-terms-list li { margin-bottom: 3px; }
.cs-id-back-qr-row {
  display: flex; align-items: center; gap: 14px;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px dashed #c7cfe6;
}
.cs-id-back-qr-box {
  width: 64px; height: 64px;
  background: #fff;
  border: 1px solid #d7deef;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.cs-id-back-qr-box svg { width: 48px; height: 48px; }
.cs-id-back-qr-caption {
  font-size: 10px;
  color: #5a6588;
  line-height: 1.4;
}
.cs-id-back-qr-caption b { color: #0a1230; }
.cs-id-back-footer {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 12px 24px 16px;
  text-align: center;
}
.cs-id-back-sig-line {
  width: 70%; margin: 0 auto 6px;
  border-top: 1px solid #b9c2de;
}
.cs-id-back-sig-cap {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a93b5;
}

/* ── Groups (below card) ───────────────────────────── */
.cs-id-groups-section {
  padding: 14px 20px 0;
}
.cs-id-groups-title {
  font-size: 9px;
  font-weight: 700;
  color: #86868b;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.cs-id-groups-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cs-id-group-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: #f5f7ff;
  border: 1px solid #e8ecf5;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 600;
  color: #333;
}
.cs-id-group-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cs-id-group-pending {
  font-size: 9px;
  color: #f59e0b;
  font-weight: 600;
}
.cs-id-tick {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 4px;
}
.cs-id-tick-blue svg,
.cs-id-tick-green svg {
  width: 14px;
  height: 14px;
}

/* ── Mobile ─────────────────────────────────────────── */
@media (max-width: 480px) {
  .cs-id-front-header { padding: 28px 6% 0; }
  .cs-id-front-photo { width: 88px; height: 88px; margin-top: 16px; }
  .cs-id-front-photo-fallback { font-size: 30px; }
  .cs-id-front-name { font-size: 21px; margin-top: 10px; padding: 0 5%; }
  .cs-id-front-role { font-size: 7.5px; margin-top: 4px; }
  .cs-id-front-divider { margin: 10px 6% 0; gap: 6px; }
  .cs-id-front-grid { margin: 8px 6% 0; gap: 6px 8px; }
  .cs-id-front-grid-label { font-size: 7px; }
  .cs-id-front-grid-value { font-size: 10px; }
  .cs-id-front-grid-value.mono { font-size: 9px; }
  .cs-id-front-id { font-size: 16px; margin-top: 6px; }
  .cs-id-lanyard-hole { top: 10px; width: 28px; height: 8px; }
  /* groups inside card */
  .cs-id-front-groups { margin-left: 5%; margin-right: 5%; }
  /* back */
  .cs-id-back-top { padding: 10px 16px; }
  .cs-id-back-top img { height: 18px; }
  .cs-id-mag-stripe { height: 26px; }
  .cs-id-back-body { padding: 12px 16px 0; }
  .cs-id-back-terms-title { font-size: 8px; }
  .cs-id-back-terms-list { font-size: 9px; padding-left: 14px; }
  .cs-id-back-qr-box { width: 52px; height: 52px; }
  .cs-id-back-qr-box svg { width: 38px; height: 38px; }
  .cs-id-back-qr-caption { font-size: 9px; }
  .cs-id-back-footer { padding: 10px 16px 12px; }
}
@media (max-width: 360px) {
  .cs-id-front-header { padding: 24px 4% 0; }
  .cs-id-front-photo { width: 72px; height: 72px; margin-top: 12px; border-width: 2px; }
  .cs-id-front-photo-fallback { font-size: 24px; }
  .cs-id-front-name { font-size: 18px; margin-top: 8px; padding: 0 4%; }
  .cs-id-front-name .cs-id-front-ticks svg { width: 14px; height: 14px; }
  .cs-id-front-role { font-size: 7px; margin-top: 3px; }
  .cs-id-front-divider { margin: 8px 5% 0; }
  .cs-id-front-grid { margin: 6px 5% 0; gap: 5px 6px; }
  .cs-id-front-grid-value { font-size: 9px; }
  .cs-id-front-grid-value.mono { font-size: 8px; }
  .cs-id-front-id { font-size: 13px; margin-top: 5px; }
  .cs-id-back-body { padding: 10px 12px 0; }
  .cs-id-back-qr-row { gap: 10px; }
}

/* ── Group Detail Modal ───────────────────────────── */
.comm-group-modal-overlay {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .25s ease;
  padding: 24px;
}
.comm-group-modal-overlay.active { opacity: 1; }
.comm-group-modal {
  background: #fff; border-radius: 16px; width: 100%; max-width: 520px;
  max-height: 80vh; overflow-y: auto; position: relative;
  box-shadow: 0 24px 48px rgba(0,0,0,0.15);
  transform: translateY(16px) scale(0.97); transition: transform .25s cubic-bezier(0,0,0.2,1);
}
.comm-group-modal-overlay.active .comm-group-modal { transform: translateY(0) scale(1); }
.comm-group-modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 32px; height: 32px; border-radius: 8px; border: none;
  background: rgba(255,255,255,0.9); color: #666; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.comm-group-modal-close:hover { background: #f0f0f0; color: #1a1a2e; }
.comm-group-modal-hero {
  width: 100%; height: 180px; border-radius: 16px 16px 0 0;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.comm-group-modal-hero img { width: 100%; height: 100%; object-fit: cover; }
.comm-group-modal-icon { font-size: 48px; }
.comm-group-modal-body { padding: 24px; }
.comm-group-modal-body h2 { margin: 0 0 8px; font-size: 20px; font-weight: 700; }
.comm-group-modal-stats { font-size: 13px; color: #666; margin-bottom: 16px; display: flex; gap: 16px; }
.comm-group-modal-stats i { margin-right: 4px; }
.comm-group-modal-section { margin-bottom: 18px; }
.comm-group-modal-section h4 { font-size: 14px; font-weight: 700; color: #1a1a2e; margin: 0 0 8px; }
.comm-group-modal-html {
  font-size: 14px; color: #444; line-height: 1.65;
}
.comm-group-modal-html p { margin: 0 0 8px; }
.comm-group-modal-html ul, .comm-group-modal-html ol { margin: 0 0 8px; padding-left: 20px; }
.comm-group-modal-html li { margin-bottom: 4px; }
.comm-group-modal-html h1, .comm-group-modal-html h2, .comm-group-modal-html h3 {
  margin: 12px 0 6px; font-weight: 700; color: #1a1a2e;
}
.comm-group-modal-html h1 { font-size: 20px; }
.comm-group-modal-html h2 { font-size: 17px; }
.comm-group-modal-html h3 { font-size: 15px; }
.comm-group-modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.comm-group-modal-join {
  flex: 1; padding: 10px 16px; border: none; border-radius: 10px;
  color: #fff; font-size: 14px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: opacity .2s;
}
.comm-group-modal-join:hover { opacity: 0.9; }
.comm-group-modal-view {
  padding: 10px 16px; border: 1px solid #e5e5ea; border-radius: 10px;
  background: #f5f5f7; color: #1a1a2e; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background .2s;
}
.comm-group-modal-view:hover { background: #ebebed; }

@media (max-width: 600px) {
  .comm-group-modal-overlay { padding: 12px; }
  .comm-group-modal { max-height: 85vh; }
  .comm-group-modal-hero { height: 140px; }
  .comm-group-modal-body { padding: 18px; }
  .comm-group-modal-actions { flex-direction: column; }
}

/* =====================================================
   WEEKLY ACTIVITIES
   ===================================================== */
/* ── Weekly Activities — Site-Matching Design ────────────── */
.comm-weekly-section {
  padding: 80px 0;
  background: #f8f9fb;
  border-top: 1px solid rgba(0,0,0,0.04);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.comm-weekly-header {
  text-align: left;
  margin-bottom: 48px;
  max-width: 600px;
}
.comm-weekly-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: #1229ad;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.comm-weekly-kicker::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background-color: #1229ad;
}
.comm-weekly-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #111;
  margin: 0 0 16px;
}
.comm-weekly-subtitle {
  font-size: 16px;
  line-height: 1.6;
  color: #666;
  margin: 0;
}
.comm-weekly-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  padding: 28px;
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
}
.comm-weekly-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--card-accent, #1229ad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.comm-weekly-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.comm-weekly-card:hover::before {
  transform: scaleX(1);
}
.comm-weekly-card-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.comm-weekly-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}
.comm-weekly-card:hover .comm-weekly-icon {
  transform: scale(1.05);
}
.comm-weekly-day {
  font-size: 11px;
  font-weight: 700;
  color: #86868b;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.comm-weekly-card-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111;
  line-height: 1.3;
}
.comm-weekly-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
  margin: 0 0 20px;
}
.comm-weekly-goal {
  font-size: 13px;
  font-weight: 600;
  color: var(--card-accent, #1229ad);
  background: rgba(18, 41, 173, 0.06);
  padding: 8px 16px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
@media (max-width: 768px) {
  .comm-weekly-section {
    padding: 60px 0;
  }
  .comm-weekly-header {
    text-align: center;
    margin: 0 auto 40px;
  }
  .comm-weekly-title {
    font-size: 32px;
  }
  .comm-weekly-card {
    padding: 24px;
  }
}
@media (max-width: 576px) {
  .comm-weekly-section {
    padding: 48px 0;
  }
  .comm-weekly-title {
    font-size: 28px;
  }
}