/* ══════════════════════════════════════
   Club List – Premium clean
   ══════════════════════════════════════ */

.club-list-shell {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

/* ── Hero header ──────────────────── */
.club-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.club-hero-title {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.club-hero-desc {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.club-create-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--transition);
  flex-shrink: 0;
}

.club-create-btn:hover {
  background: var(--primary-dark);
  color: #fff;
}

.club-create-btn i { font-size: 1rem; }

/* ── Toolbar (search) ─────────────── */
.club-toolbar {
  display: flex;
  gap: 12px;
}

.club-search-wrap {
  position: relative;
  flex: 1;
}

.club-search-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
  pointer-events: none;
}

.club-search-wrap input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 10px 14px 10px 40px;
  font-size: 0.88rem;
  color: var(--text-primary);
  transition: var(--transition);
}

.club-search-wrap input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 10%, transparent);
}

.club-search-wrap input::placeholder { color: var(--text-muted); }

/* ── Club grid ────────────────────── */
.club-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* ── Club card ────────────────────── */
.club-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.club-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  transform: translateY(-1px);
}

.club-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  flex: 1;
}

.club-card-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.club-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.club-card-info {
  flex: 1;
  min-width: 0;
}

.club-card-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.club-card-name a {
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
}

.club-card-name a:hover { color: var(--primary); }

.club-card-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.club-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
}

.club-badge--public {
  background: color-mix(in srgb, var(--success) 12%, #fff);
  color: var(--success);
}

.club-badge--private {
  background: color-mix(in srgb, var(--warning) 15%, #fff);
  color: #7A5F00;
}

.club-badge--members {
  background: var(--background);
  color: var(--text-secondary);
  font-weight: 500;
}

.club-card-desc {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.club-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
}

.club-join-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 16px;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.club-join-btn:hover {
  background: var(--primary);
  color: #fff;
}

.club-join-btn.is-joined {
  border-color: var(--border);
  color: var(--text-muted);
  cursor: default;
}

.club-join-btn.is-joined:hover {
  background: transparent;
  color: var(--text-muted);
}

/* ── Loading state ────────────────── */
.club-loading {
  display: flex;
  justify-content: center;
  padding: 48px 0;
  grid-column: 1 / -1;
}

.club-spinner {
  width: 28px;
  height: 28px;
  border: 2.5px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: club-spin 0.7s linear infinite;
}

@keyframes club-spin { to { transform: rotate(360deg); } }

/* ── Empty state ──────────────────── */
.club-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 0;
  color: var(--text-muted);
}

.club-empty-state i {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 12px;
}

/* ── Load more ────────────────────── */
.club-load-more {
  display: block;
  width: 100%;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.club-load-more:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 4%, #fff);
}

/* ── Responsive ───────────────────── */
@media (max-width: 640px) {
  .club-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .club-create-btn {
    width: 100%;
    justify-content: center;
  }

  .club-grid {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════
   Club Detail – Premium clean
   ══════════════════════════════════════ */
.club-detail-shell {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}

/* ── Hero header ──────────────────── */
.cd-hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.cd-hero-inner {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.cd-hero-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
  font-size: 1.6rem;
  font-weight: 800;
  flex-shrink: 0;
}

.cd-hero-body { flex: 1; min-width: 0; }

.cd-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.cd-hero-name {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.cd-join-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 20px;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-md);
  background: var(--primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.cd-join-btn:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.cd-join-btn.is-member {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}

.cd-join-btn.is-member:hover {
  border-color: var(--danger);
  color: var(--danger);
}

.cd-hero-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.cd-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.cd-badge--public  { background: color-mix(in srgb, var(--success) 12%, #fff); color: var(--success); }
.cd-badge--private { background: color-mix(in srgb, var(--warning) 15%, #fff); color: #7A5F00; }
.cd-badge--stat    { background: var(--background); color: var(--text-secondary); font-weight: 500; }
.cd-badge--role    { background: color-mix(in srgb, var(--info) 12%, #fff); color: var(--info); }
.cd-badge--going   { background: color-mix(in srgb, var(--success) 12%, #fff); color: var(--success); }

.cd-hero-owner {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.cd-hero-owner i {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.cd-hero-desc {
  margin: 12px 0 0;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
}

.cd-hero-loading,
.cd-panel-loading {
  display: flex;
  justify-content: center;
  padding: 32px 0;
}

.cd-spinner {
  width: 26px;
  height: 26px;
  border: 2.5px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: cd-spin 0.7s linear infinite;
}

@keyframes cd-spin { to { transform: rotate(360deg); } }

/* ── Tabs (underline) ─────────────── */
.cd-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1.5px solid var(--border);
  margin-top: 20px;
}

.cd-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 18px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.cd-tab::after {
  content: '';
  position: absolute;
  bottom: -1.5px;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: transparent;
  transition: var(--transition);
}

.cd-tab:hover { color: var(--text-primary); }

.cd-tab.active {
  color: var(--primary);
  font-weight: 600;
}

.cd-tab.active::after {
  background: var(--primary);
}

.cd-tab i { font-size: 0.95rem; }

/* ── Tab panels ───────────────────── */
.cd-panel {
  padding: 20px 0;
}

/* Posts */
.cd-post-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  margin-bottom: 10px;
  transition: var(--transition);
}

.cd-post-item:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cd-post-icon {
  color: var(--text-muted);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.cd-post-title {
  flex: 1;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
}

.cd-post-title:hover { color: var(--primary); }

/* Members */
.cd-member-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  margin-bottom: 8px;
}

.cd-member-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.cd-member-info { flex: 1; min-width: 0; }

.cd-member-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.cd-member-joined {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.cd-member-role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cd-role-badge {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
}

.cd-role-badge--owner {
  background: color-mix(in srgb, var(--warning) 15%, #fff);
  color: #7A5F00;
}

.cd-role-badge--mod {
  background: color-mix(in srgb, var(--info) 12%, #fff);
  color: var(--info);
}

/* Action buttons (promote/demote) */
.cd-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.cd-action-promote:hover {
  background: color-mix(in srgb, var(--success) 10%, transparent);
  color: var(--success);
}

.cd-action-demote:hover {
  background: color-mix(in srgb, var(--warning) 12%, transparent);
  color: #7A5F00;
}

/* About – view mode */
.cd-about-view {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 20px;
}

.cd-about-view--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
}

.cd-about-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.cd-about-placeholder {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.cd-about-placeholder i {
  margin-right: 4px;
}

.cd-about-edit-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
}

.cd-about-edit-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 6%, transparent);
}

/* About – edit mode */
.cd-about-editor {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cd-about-textarea {
  width: 100%;
  min-height: 160px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 14px;
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.7;
  resize: vertical;
  transition: var(--transition);
  font-family: inherit;
}

.cd-about-textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 10%, transparent);
}

.cd-about-textarea::placeholder { color: var(--text-muted); }

.cd-about-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.cd-about-cancel {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.cd-about-cancel:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

.cd-about-save {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 20px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.cd-about-save:hover {
  background: var(--primary-dark);
}

/* Empty */
.cd-empty {
  text-align: center;
  padding: 36px 0;
  color: var(--text-muted);
}

.cd-empty i {
  font-size: 2rem;
  display: block;
  margin-bottom: 8px;
}

/* ── Tab toolbar (action buttons) ─── */
.cd-tab-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.cd-toolbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 16px;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-md);
  background: var(--primary);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.cd-toolbar-btn:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.cd-toolbar-btn i { font-size: 0.9rem; }

/* ── Form (in modal) ─────────────── */
.cd-form { display: flex; flex-direction: column; gap: 14px; }

.cd-form-group { display: flex; flex-direction: column; gap: 4px; }

.cd-form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.cd-form-row {
  display: flex;
  gap: 12px;
}

.cd-form-half { flex: 1; min-width: 0; }

.cd-form-input,
.cd-form-textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.86rem;
  color: var(--text-primary);
  background: var(--surface);
  font-family: inherit;
  transition: var(--transition);
}

.cd-form-input:focus,
.cd-form-textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 10%, transparent);
}

.cd-form-textarea { resize: vertical; min-height: 80px; }

.cd-form-input--option { margin-bottom: 6px; }

.cd-form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cd-form-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
}

.cd-form-checkbox input { accent-color: var(--primary); }

.cd-form-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 4px;
  border: none;
  background: transparent;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
}

.cd-form-link:hover { text-decoration: underline; }

/* ── Events ───────────────────────── */
.cd-event-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  margin-bottom: 10px;
  transition: var(--transition);
}

.cd-event-item:hover {
  border-color: color-mix(in srgb, var(--primary) 40%, transparent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cd-event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  flex-shrink: 0;
}

.cd-event-month {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1;
}

.cd-event-day {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.cd-event-info { flex: 1; min-width: 0; }

.cd-event-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}

.cd-event-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.cd-event-meta i { font-size: 0.82rem; }
.cd-event-sep { margin: 0 4px; }

.cd-event-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.cd-event-link:hover {
  text-decoration: underline;
  color: var(--primary-dark);
}

.cd-rsvp-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.cd-rsvp-btn:hover {
  background: var(--primary);
  color: #fff;
}

/* ── Announcements ────────────────── */
.cd-announcement-item {
  position: relative;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  margin-bottom: 10px;
}

.cd-announcement-item.is-pinned {
  border-color: color-mix(in srgb, var(--warning) 50%, transparent);
  background: color-mix(in srgb, var(--warning) 4%, var(--surface));
}

.cd-pin-badge {
  position: absolute;
  top: 8px;
  right: 10px;
  color: var(--warning);
  font-size: 0.88rem;
}

.cd-announcement-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 6px;
}

.cd-announcement-content {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.cd-announcement-date {
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cd-announcement-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.cd-announcement-footer .cd-announcement-date {
  margin-top: 0;
}

.cd-announcement-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
}

.cd-announcement-delete:hover {
  background: color-mix(in srgb, var(--danger) 10%, transparent);
  color: var(--danger);
}

/* ── Polls ────────────────────────── */
.cd-poll-item {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  margin-bottom: 12px;
}

.cd-poll-question {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.cd-poll-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cd-poll-option {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-primary);
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
}

.cd-poll-option:hover {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 4%, transparent);
}

.cd-poll-result {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
}

.cd-poll-result.is-my-vote .cd-poll-text {
  font-weight: 700;
  color: var(--primary);
}

.cd-poll-text {
  flex: 1;
  font-size: 0.86rem;
  color: var(--text-primary);
  min-width: 0;
}

.cd-poll-bar {
  width: 120px;
  height: 6px;
  border-radius: 3px;
  background: var(--background);
  flex-shrink: 0;
  overflow: hidden;
}

.cd-poll-bar div {
  height: 100%;
  border-radius: 3px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.cd-poll-pct {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  width: 36px;
  text-align: right;
  flex-shrink: 0;
}

.cd-poll-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.cd-poll-sep { margin: 0 2px; }

.cd-poll-close-btn {
  margin-left: auto;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.78rem;
  cursor: pointer;
  transition: var(--transition);
}

.cd-poll-close-btn:hover {
  border-color: var(--danger);
  color: var(--danger);
}

/* ── Responsive ───────────────────── */
@media (max-width: 640px) {
  .cd-hero { padding: 18px; }
  .cd-hero-inner { flex-direction: column; gap: 14px; }
  .cd-hero-top { flex-direction: column; align-items: flex-start; }
  .cd-join-btn { width: 100%; justify-content: center; }
  .cd-tab span { display: none; }
  .cd-tab { padding: 10px 14px; }
  .cd-form-row { flex-direction: column; gap: 8px; }
  .cd-tab-toolbar { flex-wrap: wrap; }
  .cd-toolbar-btn { flex: 1; justify-content: center; }
}

.club-create-shell {
  max-width: 720px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 20px;
}

.club-create-shell h2 {
  margin: 0 0 16px;
  font-size: 1.5rem;
}

.club-create-shell .form-group {
  margin-bottom: 14px;
}

.club-create-shell label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.club-create-shell input,
.club-create-shell textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: var(--surface);
}

.club-create-shell textarea {
  min-height: 120px;
}

.club-create-shell button {
  border: 1px solid var(--primary);
  color: var(--primary);
  background: transparent;
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  transition: var(--transition);
}

.club-create-shell button:hover {
  background: color-mix(in srgb, var(--primary) 8%, transparent);
}
