/* ===================================================================
   7. CLUB MANAGEMENT DASHBOARD & MILESTONES ROADMAP
   =================================================================== */

.club-manage-section {
  margin-bottom: 24px;
}

.manage-top-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.dash-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.dash-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dash-card-title {
  font-size: 13px;
  font-weight: 800;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Integrated Club Card Header */
.club-header-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
}
.club-header-info-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.club-header-title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.3px;
}
.club-chip-members {
  background: rgba(139, 92, 246, 0.15) !important;
  border: 1px solid rgba(139, 92, 246, 0.35) !important;
  color: #c084fc !important;
  font-size: 12.5px;
  font-weight: 600;
}
.club-chip-points {
  background: rgba(245, 158, 11, 0.12) !important;
  border: 1px solid rgba(245, 158, 11, 0.3) !important;
  color: #fbbf24 !important;
  font-size: 12.5px;
  font-weight: 600;
}
.club-header-actions-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.manage-card.purple-card {
  border-top: 3px solid var(--purple);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.08) 0%, var(--surface) 100%);
}
.manage-card.gold-card {
  border-top: 3px solid var(--gold);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.08) 0%, var(--surface) 100%);
}
.manage-card.green-card {
  border-top: 3px solid var(--emerald);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, var(--surface) 100%);
}

.dash-input-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.dash-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 130px;
}
.dash-field label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.dash-input {
  background: var(--surface-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #fff;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 600;
  outline: none;
  transition: all 0.2s;
}
.dash-input:focus { border-color: var(--border-focus); }
.dash-input.points { font-weight: 800; color: #818cf8; text-align: center; }

.manage-quick-pts {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.manage-stats-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}
.manage-stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 4px;
  color: #cbd5e1;
}

/* CLUB FINDER & ACTIVE CLUB */
.no-club-card {
  margin-bottom: 20px;
}
.club-finder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 768px) {
  .club-finder-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}
.club-finder-col {
  display: flex;
  flex-direction: column;
}
.club-create-col {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding-left: 24px;
}
@media (max-width: 768px) {
  .club-create-col {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-left: 0;
    padding-top: 18px;
  }
}
.club-search-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.club-search-bar input {
  flex: 1;
}
.club-create-form {
  display: flex;
  gap: 8px;
}
.club-create-form input {
  flex: 1;
}
.club-search-results {
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 4px;
}
.club-search-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  transition: all 0.2s;
}
.club-search-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(139, 92, 246, 0.3);
}
.club-item-name {
  font-weight: 700;
  color: #fff;
  font-size: 13px;
}
.club-item-meta {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  margin-top: 2px;
}

/* ACTIVE CLUB HEADER BAR */
.active-club-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.15), rgba(245, 158, 11, 0.1));
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 12px;
  margin-bottom: 16px;
}
.active-club-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.active-club-icon {
  font-size: 28px;
}
.active-club-name {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.3px;
}
.active-club-badge {
  font-size: 11px;
  color: #a78bfa;
  font-weight: 600;
}
.pill-btn.danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}
.pill-btn.danger:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: #ef4444;
}

/* SPECIAL FISHES PANEL */
.special-fishes-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.special-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}
.special-header-left h3 {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}
.special-header-left p {
  font-size: 12px;
  color: var(--text-muted);
}
.special-header-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.special-fishes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}
.special-fish-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: all 0.2s;
}
.special-fish-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.18);
}
.special-fish-card.unlocked {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-color: rgba(16, 185, 129, 0.35);
}
.special-fish-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.special-fish-img {
  width: 58px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
.special-fish-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.special-fish-name {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.special-fish-cost {
  font-size: 11px;
  font-weight: 700;
  color: #fbbf24;
}
.special-toggle-btn {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  border: 1px solid transparent;
  flex-shrink: 0;
}
.special-toggle-btn.locked {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.35);
}
.special-toggle-btn.locked:hover {
  background: rgba(245, 158, 11, 0.28);
  border-color: #f59e0b;
}
.special-toggle-btn.unlocked {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.4);
}
.special-toggle-btn.unlocked:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.4);
}

.milestone-roadmap-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.roadmap-header-left h3 {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}
.roadmap-header-left p {
  font-size: 12px;
  color: var(--text-muted);
}
.roadmap-header-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.milestone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.milestone-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  transition: all 0.2s ease;
  position: relative;
}
.milestone-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
.milestone-card.unlocked {
  border-color: rgba(16, 185, 129, 0.4);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.07) 0%, #101726 100%);
}
.milestone-card.locked {
  opacity: 0.8;
  border-color: rgba(239, 68, 68, 0.25);
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.04) 0%, #0d1321 100%);
}

.milestone-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.milestone-status {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.milestone-status.unlocked {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.milestone-status.locked {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.milestone-status.fc {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}
.milestone-status.monster {
  background: rgba(234, 179, 8, 0.2);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.milestone-cost-badge {
  font-size: 11px;
  font-weight: 800;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.15);
  padding: 2px 6px;
  border-radius: 6px;
}

.milestone-fish-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.milestone-fish-img-box {
  width: 76px;
  height: 48px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: none;
  padding: 2px;
  box-shadow: none;
}
.milestone-fish-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.milestone-fish-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}
.milestone-fish-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.milestone-fish-meta {
  font-size: 11px;
  color: var(--text-muted);
}

.milestone-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.btn-caught-milestone {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-caught-milestone:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}
.btn-caught-milestone.caught {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  color: #34d399;
}

