/* Page: clubs */
.page-clubs .page-header {
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.page-clubs .nav {
  justify-content: center;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .page-clubs .page-header {
    margin-bottom: 20px;
  }
  
  .page-clubs .nav {
    flex-direction: column;
    gap: 8px;
  }
  
  .page-clubs .btn {
    width: 100%;
    text-align: center;
  }
  
  .clubs-hero {
    padding: 20px 0;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
}
.page-clubs .container {
  max-width: 1200px;
}
.clubs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  align-items: stretch;
}
@media (min-width: 1200px) {
  .clubs-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1600px) {
  .clubs-grid { grid-template-columns: repeat(4, 1fr); }
}
.page-clubs #clubsList {
  margin-top: var(--space-sm);
}
.page-clubs .badge {
  font-size: var(--text-tiny);
}

/* Hero section for Mes clubs */
.clubs-hero {
  background: linear-gradient(180deg, #f5f7ff, #eef4ff);
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 32px 20px;
  text-align: center;
  margin: 16px auto 12px;
  box-shadow: 0 6px 20px rgba(79,70,229,.08);
}
.clubs-hero .hero-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  margin-bottom: 8px;
}
.clubs-hero .hero-title {
  margin: 0 0 6px;
  font-size: clamp(1.8rem, 3vw, 2.2rem);
}
.clubs-hero .hero-subtitle {
  margin: 0;
  color: var(--gray);
}

/* Utilities shared on clubs pages */
.mt-8 {
  margin-top: 8px;
}
.mt-16 {
  margin-top: 16px;
}
.text-center {
  text-align: center;
}
.grid-span-all {
  grid-column: 1 / -1;
}
.btn-row {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}
.row {
  display: flex;
}
.items-center {
  align-items: center;
}
.gap-8 {
  gap: 8px;
}
.avatar-28 {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.avatar-placeholder {
  background: #eee;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}
.link-box {
  display: flex;
  gap: 8px;
  align-items: center;
}
.actions-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.badge-owner {
  margin-left: 6px;
  color: var(--primary);
}
.mb-8 {
  margin-bottom: 8px;
}
.flex-1 {
  flex: 1;
}
.min-w-220 {
  min-width: 220px;
}

/* Club card look */
.club-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.club-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.club-card .car-header {
  padding: 16px 16px 8px;
}
.club-card .chip-row {
  padding: 0 16px 8px;
}
.club-card .chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: #edf2ff;
  color: #27327a;
  border: 1px solid #c7d2fe;
  font-weight: 600;
}
.club-card .card-desc {
  padding: 0 16px;
  color: var(--gray);
  min-height: 44px;
}
.club-card .card-footer {
  padding: 12px 16px 16px;
  margin-top: auto;
}
.btn-full {
  display: block;
  width: 100%;
  text-align: center;
}

/* Soft stat boxes inside cards */
.stats.stats-soft {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 12px 16px 0;
}
.stats.stats-soft .stat-card {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  text-align: center;
}
.stats.stats-soft .stat-number {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
}
.stats.stats-soft .stat-label {
  color: var(--gray);
  font-size: 12px;
}

/* Owner badge tint */
.badge-owner {
  margin-left: 6px;
  color: #27327a;
  background: #edf2ff;
  border: 1px solid #c7d2fe;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 24px 16px;
}
.empty-state .empty-icon {
  font-size: 28px;
  display: inline-flex;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  background: #f1f5ff;
  color: var(--primary);
  margin-bottom: 8px;
}
