/* SVG Icon System */
.icon-svg { display: inline-flex; align-items: center; justify-content: center; width: 1em; height: 1em; vertical-align: -0.125em; }
.icon-svg svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-svg.icon-filled svg { fill: currentColor; stroke: none; }

/* Page-specific styles matching home/contacts/opportunities */
.clubs-page { min-height: 100vh; background: var(--bg-cream); }

/* Main Container */
.dashboard-container { max-width: 1400px; margin: 0 auto; padding: 32px; }

/* Stats Row - horizontal grid */
.stats-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--bg-white); border: 1px solid var(--border-light); border-radius: 8px; padding: 20px; transition: all 0.2s ease; position: relative; }
.stat-card:hover { border-color: var(--gold-light); box-shadow: var(--shadow-gold); }
.stat-card.primary::before, .stat-card.success::before, .stat-card.info::before, .stat-card.warning::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: linear-gradient(180deg, var(--gold-primary) 0%, var(--gold-light) 100%); border-radius: 8px 0 0 8px; }
.stat-value { font-family: 'big-caslon-fb', serif; font-size: 28px; font-weight: 500; color: var(--text-dark); }
.stat-value.gold { color: var(--gold-primary); }
.stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-light); margin-top: 4px; }

/* Main Card */
.main-card { background: var(--bg-white); border: 1px solid var(--border-light); border-radius: 8px; overflow: hidden; margin-bottom: 24px; }

/* Filter Bar */
.filter-bar { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border-light); background: var(--bg-cream); flex-wrap: wrap; }
.filter-bar input, .filter-bar select { padding: 10px 14px; border: 1px solid var(--border-light); border-radius: 6px; font-family: 'articulat-cf', sans-serif; font-size: 14px; background: white; }
.filter-bar input { flex: 1; min-width: 200px; max-width: 350px; }
.filter-bar select { min-width: 120px; }
.filter-bar input:focus, .filter-bar select:focus { outline: none; border-color: var(--gold-primary); }
.search-input { padding: 10px 14px; border: 1px solid var(--border-light); border-radius: 6px; font-family: 'articulat-cf', sans-serif; font-size: 14px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 6px; font-family: 'articulat-cf', sans-serif; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; cursor: pointer; transition: all 0.2s ease; text-decoration: none; border: 1px solid transparent; }
.btn-gold { background: linear-gradient(135deg, var(--gold-primary), var(--gold-light)); color: white; border: none; }
.btn-gold:hover { box-shadow: 0 4px 12px rgba(160, 139, 91, 0.3); transform: translateY(-1px); }
.btn-outline, .pcm-btn-outline-light { background: transparent; border: 1px solid var(--border-light); color: var(--text-medium); }
.btn-outline:hover, .pcm-btn-outline-light:hover { border-color: var(--gold-primary); color: var(--gold-primary); }
.btn-sm { padding: 6px 12px; font-size: 11px; }

/* Bulk Action Bar */
.bulk-action-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; background: var(--gold-50); border: 1px solid var(--gold-primary); border-radius: 8px; margin-bottom: 16px; }

/* Page Actions */
.page-actions { display: flex; gap: 12px; align-items: center; }

/* Section Headers */
.section-header-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.numbered-indicator { width: 24px; height: 24px; border-radius: 50%; background: var(--gold-primary); color: white; display: flex; align-items: center; justify-content: center; font-family: 'big-caslon-fb', serif; font-size: 12px; font-weight: 500; }
.section-header { font-family: 'big-caslon-fb', serif; font-size: 18px; font-weight: 500; color: var(--text-dark); margin: 0; }
.section-divider { flex: 1; height: 1px; background: var(--border-light); }

/* Table Container */
.clubs-table-container { background: var(--bg-white); border: 1px solid var(--border-light); border-radius: 8px; overflow: hidden; }
.clubs-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border-light); background: var(--bg-cream); flex-wrap: wrap; gap: 12px; }
.search-box { display: flex; align-items: center; gap: 8px; flex: 1; max-width: 400px; }
.search-box input { flex: 1; padding: 10px 14px; border: 1px solid var(--border-light); border-radius: 6px; font-family: 'articulat-cf', sans-serif; font-size: 14px; transition: all 0.2s ease; }
.search-box input:focus { outline: none; border-color: var(--gold-primary); box-shadow: 0 0 0 3px rgba(160, 139, 91, 0.1); }
.filter-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn, .filter-select { padding: 8px 14px; background: var(--bg-white); border: 1px solid var(--border-light); border-radius: 6px; font-family: 'articulat-cf', sans-serif; font-size: 12px; font-weight: 600; color: var(--text-medium); cursor: pointer; transition: all 0.2s ease; }
.filter-btn:hover, .filter-select:hover { border-color: var(--gold-primary); color: var(--gold-primary); }

/* Table */
.clubs-table { width: 100%; border-collapse: collapse; }
.clubs-table th { font-family: 'articulat-cf', sans-serif; text-transform: uppercase; letter-spacing: 0.1em; font-size: 11px; font-weight: 600; color: var(--text-light); text-align: left; padding: 14px 16px; background: var(--bg-cream); border-bottom: 2px solid var(--gold-primary); cursor: pointer; }
.clubs-table th:hover { color: var(--gold-primary); }
.clubs-table td { padding: 14px 16px; border-bottom: 1px solid var(--border-light); font-size: 14px; }
.clubs-table tbody tr:hover { background: var(--gold-50); }

/* Club Avatar */
.club-avatar { width: 40px; height: 40px; border-radius: 8px; background: #ffffff; border: 1px solid var(--border-light); display: flex; align-items: center; justify-content: center; color: var(--gold-primary); font-family: 'big-caslon-fb', serif; font-size: 16px; font-weight: 500; overflow: hidden; }
.club-avatar.editable:hover { box-shadow: 0 0 0 3px var(--gold-100); }
.club-avatar img { width: 100%; height: 100%; object-fit: contain; background: #ffffff; }
.modal-avatar { width: 56px; height: 56px; border-radius: 10px; background: #ffffff; border: 1px solid var(--border-light); display: flex; align-items: center; justify-content: center; color: var(--gold-primary); font-size: 24px; overflow: hidden; flex-shrink: 0; }
.club-name { display: flex; align-items: center; gap: 12px; }
.club-info h4 { font-family: 'articulat-cf', sans-serif; font-size: 14px; font-weight: 600; color: var(--text-dark); margin: 0; }
.club-info p { font-size: 12px; color: var(--text-light); margin: 2px 0 0 0; }

/* Tags & Badges */
.tag { display: inline-flex; padding: 3px 10px; background: var(--gold-100); color: var(--gold-dark); border-radius: 4px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-right: 4px; }
.tag.platinum { background: #e0e7ff; color: #3730a3; }
.tag.active { background: #dcfce7; color: #166534; }
.tag.prospect { background: #fef3c7; color: #92400e; }

/* Score Badge */
.score-badge { padding: 4px 10px; border-radius: 4px; font-family: 'articulat-cf', sans-serif; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.score-badge.hot { background: #fee2e2; color: #dc2626; }
.score-badge.warm { background: #fef3c7; color: #d97706; }
.score-badge.engaged { background: #dbeafe; color: #2563eb; }
.score-badge.cold { background: #f3f4f6; color: #6b7280; }

/* View Button */
.view-btn { padding: 6px 14px; background: transparent; border: 1px solid var(--border-light); border-radius: 4px; font-family: 'articulat-cf', sans-serif; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-medium); cursor: pointer; transition: all 0.2s ease; }
.view-btn:hover { border-color: var(--gold-primary); color: var(--gold-primary); }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-top: 1px solid var(--border-light); }
.pagination-info { font-size: 13px; color: var(--text-light); }
.pagination-buttons { display: flex; gap: 4px; }
.pagination-btn { padding: 8px 12px; background: var(--bg-white); border: 1px solid var(--border-light); border-radius: 4px; font-size: 12px; cursor: pointer; transition: all 0.2s ease; }
.pagination-btn:hover:not(:disabled) { border-color: var(--gold-primary); color: var(--gold-primary); }
.pagination-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.pagination-btn.active { background: var(--gold-primary); border-color: var(--gold-primary); color: white; }

/* Modal - WealthX Style */
.modal-overlay { position: fixed; inset: 0; background: rgba(26, 35, 50, 0.8); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 10000; }
.modal-overlay.show { animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-container { background: var(--bg-white); border: 1px solid var(--border-light); border-radius: 12px; width: 90%; max-width: 1000px; max-height: 90vh; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }
.modal-content { background: var(--bg-white); border: 1px solid var(--border-light); border-radius: 12px; width: 90%; max-width: 900px; max-height: 90vh; overflow: hidden; display: flex; flex-direction: column; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border-light); background: var(--bg-cream); }
.modal-header-content { display: flex; align-items: center; gap: 16px; flex: 1; }
.modal-header h2, .modal-title { font-family: 'big-caslon-fb', serif; font-size: 22px; font-weight: 500; margin: 0; color: var(--text-dark); }
.modal-subtitle { font-size: 13px; color: var(--text-light); margin: 4px 0 0 0; }
.modal-close { width: 36px; height: 36px; border: 1px solid var(--border-light); background: var(--bg-white); border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; font-size: 20px; color: var(--text-light); }
.modal-close:hover { background: #fee2e2; border-color: #fecaca; color: #dc2626; }
.modal-body { flex: 1; overflow-y: auto; padding: 24px; background: var(--bg-cream); }
.modal-tabs { display: flex; gap: 0; padding: 0 24px; background: var(--bg-white); border-bottom: 1px solid var(--border-light); }
.modal-tab { padding: 16px 20px; background: none; border: none; font-family: 'articulat-cf', sans-serif; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-light); cursor: pointer; position: relative; transition: color 0.2s ease; }
.modal-tab:hover { color: var(--gold-primary); }
.modal-tab.active { color: var(--gold-primary); }
.modal-tab.active::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--gold-primary); }

/* Detail Grid */
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.detail-item { padding: 16px; background: var(--bg-white); border: 1px solid var(--border-light); border-radius: 8px; }
.detail-label { font-family: 'articulat-cf', sans-serif; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-light); margin-bottom: 6px; }
.detail-value { font-family: 'big-caslon-fb', serif; font-size: 16px; color: var(--text-dark); font-weight: 500; }

/* Form Sections - WealthX Style */
.form-section { background: var(--bg-white); border: 1px solid var(--border-light); border-radius: 8px; padding: 20px; margin-bottom: 16px; }
.form-section.gold { border-left: 4px solid var(--gold-primary); }
.section-title { font-family: 'big-caslon-fb', serif; font-size: 16px; font-weight: 500; color: var(--text-dark); margin: 0 0 16px 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.form-group { margin-bottom: 0; }
.form-label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-light); margin-bottom: 6px; }

/* Badges - WealthX Style */
.badge { display: inline-flex; padding: 4px 10px; border-radius: 4px; font-family: 'articulat-cf', sans-serif; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.badge-gold { background: var(--gold-100); color: var(--gold-dark); }
.badge-info { background: #dbeafe; color: #1e40af; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-success { background: #dcfce7; color: #166534; }

/* Contacts List */
.contact-row { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--bg-cream); border-radius: 8px; margin-bottom: 8px; cursor: pointer; transition: all 0.2s ease; }
.contact-row:hover { background: var(--gold-50); border-color: var(--gold-primary); }
.contact-avatar-sm { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-primary), var(--gold-light)); display: flex; align-items: center; justify-content: center; color: white; font-size: 14px; font-weight: 500; }

/* Toast */
.toast { position: fixed; bottom: 24px; right: 24px; padding: 14px 20px; border-radius: 8px; color: white; font-weight: 600; z-index: 10001; animation: toastSlide 0.3s ease; }
.toast.success { background: #10b981; }
.toast.error { background: #ef4444; }
@keyframes toastSlide { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Loading */
.skeleton { background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 4px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

@media (max-width: 1200px) { .stats-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .stats-row { grid-template-columns: repeat(2, 1fr); } .clubs-toolbar { flex-direction: column; } .search-box { max-width: 100%; } .dashboard-container { padding: 16px; } }
