/* ~~~~~~~~~~~~~~~~~~ */
/* VARIABLES & RESET  */
/* ~~~~~~~~~~~~~~~~~~ */
:root {
    --primary-green: #006a4e;
    --secondary-green: #6b9e86;
    --background-light: #f9fbfb;
    --white: #ffffff;
    --border-color: #e9ecef;
    --text-dark: #3b3e41;
    --text-light: hsl(0, 0%, 65%);
    --text-red: #dc3545;
    --live-green: #aeecbc;
    --warning-bg: #fff3cd;
    --warning-text: #856404;
    --info-bg: #d1ecf1;
    --info-text: #0c5460;
    --button-bg: #FFEB3B;

    /* Enhanced Professional Variables */
    --primary-gradient: linear-gradient(135deg, #006a4e 0%, #4a7c59 100%);
    --secondary-gradient: linear-gradient(135deg, #6b9e86 0%, #81b295 100%);
    --success-gradient: linear-gradient(135deg, #38a169 0%, #48bb78 100%);
    --surface-white: #ffffff;
    --surface-light: #f8fafc;
    --surface-border: #e2e8f0;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --border-radius-sm: 6px;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --font-family: 'Poppins', sans-serif;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --primary-green: #10b981;
    --secondary-green: #6ee7b7;
    --background-light: #152d47;
    --white: #e2e8f0;
    --border-color: #2d4a6f;
    --text-dark: #f1f5f9;
    --text-light: #cbd5e1;
    --live-green: #34d399;
    --warning-bg: #713f12;
    --warning-text: #fbbf24;
    --info-bg: #1e3a8a;
    --info-text: #93c5fd;
    --button-bg: #eab308;

    /* Dark Mode Enhanced Variables */
    --primary-gradient: linear-gradient(135deg, #1e3a5f 0%, #2d4a6f 100%);
    --secondary-gradient: linear-gradient(135deg, #2d4a6f 0%, #3d5a7f 100%);
    --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --surface-white: #1e3a5f;
    --surface-light: #2d4a6f;
    --surface-border: #3d5a7f;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px 0 rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Dark Mode Component Overrides */
[data-theme="dark"] .sidebar {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6f 100%);
}

[data-theme="dark"] .sidebar-header .username {
    color: #e2e8f0;
}

[data-theme="dark"] .sidebar-nav li a {
    color: rgba(226, 232, 240, 0.8);
}

[data-theme="dark"] .sidebar-nav li a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}

[data-theme="dark"] .sidebar-nav li.active a {
    background: rgba(21, 45, 71, 0.6);
    color: #e2e8f0;
    border-left-color: #10b981;
}

[data-theme="dark"] .sidebar-footer {
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .support-links a {
    color: rgba(226, 232, 240, 0.7);
}

[data-theme="dark"] .support-links a:hover {
    color: #e2e8f0;
}

[data-theme="dark"] .logout-link {
    color: rgba(226, 232, 240, 0.8);
}

[data-theme="dark"] .logout-link:hover {
    color: #e2e8f0;
}

/* Dark mode for cards and surfaces */
[data-theme="dark"] .form-card,
[data-theme="dark"] .dashboard-league-card,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .card {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .card-header {
    background: var(--surface-light);
}

[data-theme="dark"] .dashboard-header {
    background: transparent;
}

[data-theme="dark"] .stats-grid .stat-card {
    background: #1e293b;
    border: 1px solid #334155;
}

[data-theme="dark"] .info-card {
    background: linear-gradient(215deg, #719ab5 0%, #0054c5 100%);
    border-color: #0054c5;
}

/* Dark mode for tables */
[data-theme="dark"] table,
[data-theme="dark"] .data-table {
    background: #1e293b;
    color: #f1f5f9;
}

[data-theme="dark"] table th,
[data-theme="dark"] .data-table th {
    background: #334155;
    color: #f1f5f9;
    border-color: #475569;
}

[data-theme="dark"] table td,
[data-theme="dark"] .data-table td {
    border-color: #334155;
    color: #cbd5e1;
}

[data-theme="dark"] table tr:hover td,
[data-theme="dark"] .data-table tr:hover td {
    background: #334155;
}

/* Dark mode for modals */
[data-theme="dark"] .modal {
    background: #1e293b;
    color: #f1f5f9;
}

[data-theme="dark"] .modal-header h3 {
    color: #f1f5f9;
}

[data-theme="dark"] .modal-overlay {
    background: rgba(0, 0, 0, 0.8);
}

/* Dark mode for badges */
[data-theme="dark"] .badge,
[data-theme="dark"] .tag {
    background: #334155;
    color: #cbd5e1;
    border-color: #475569;
}

[data-theme="dark"] .badge.badge-success,
[data-theme="dark"] .tag-success {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

[data-theme="dark"] .badge.badge-warning,
[data-theme="dark"] .tag-warning {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

[data-theme="dark"] .badge.badge-danger,
[data-theme="dark"] .tag-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Dark mode for empty states */
[data-theme="dark"] .empty-content,
[data-theme="dark"] .empty-state-enhanced {
    background: rgba(30, 41, 59, 0.5);
    border-color: #334155;
}

/* Dark mode for inputs and selects */
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea,
[data-theme="dark"] .form-control {
    background: #1e293b;
    border-color: #475569;
    color: #f1f5f9;
}

[data-theme="dark"] input:focus,
[data-theme="dark"] select:focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] .form-control:focus {
    background: #1e293b;
    border-color: #10b981;
}

/* Dark mode nav items already styled above in main .mobile-nav dark mode section */

/* Dark mode for club cards and browse clubs page */
[data-theme="dark"] .club-card,
[data-theme="dark"] .club-membership-card {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .club-card:hover {
    background: #334155;
    border-color: #475569;
}

[data-theme="dark"] .club-header {
    background: #334155;
    border-color: #475569;
}

[data-theme="dark"] .club-name,
[data-theme="dark"] .club-card h3 {
    color: #f1f5f9;
}

[data-theme="dark"] .club-description,
[data-theme="dark"] .club-info {
    color: #cbd5e1;
}

[data-theme="dark"] .club-stats {
    color: #94a3b8;
}

[data-theme="dark"] .club-card-header {
    background: var(--surface-light);
    border-bottom-color: var(--surface-border);
}

[data-theme="dark"] .club-card-body {
    background: var(--surface-white);
}

[data-theme="dark"] .club-card-footer {
    background: var(--surface-light);
    border-top-color: var(--surface-border);
}

/* Dark mode for info banners */
[data-theme="dark"] .info-banner,
[data-theme="dark"] .beginner-info-banner {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

[data-theme="dark"] .info-banner h3,
[data-theme="dark"] .beginner-info-banner h3 {
    color: #dbeafe;
}

[data-theme="dark"] .info-banner i,
[data-theme="dark"] .beginner-info-banner i {
    color: #60a5fa;
}

/* Dark mode for search bar */
[data-theme="dark"] .search-bar {
    background: #1e293b;
    border-color: #475569;
}

[data-theme="dark"] .search-bar input {
    background: transparent;
    color: #f1f5f9;
}

[data-theme="dark"] .search-bar input::placeholder {
    color: #94a3b8;
}

[data-theme="dark"] .search-bar i {
    color: #94a3b8;
}

/* Dark mode for status badges in club cards */
[data-theme="dark"] .status-rejected,
[data-theme="dark"] .club-status.rejected {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.3);
}

[data-theme="dark"] .status-pending,
[data-theme="dark"] .club-status.pending {
    background: rgba(251, 191, 36, 0.2);
    color: #fcd34d;
    border-color: rgba(251, 191, 36, 0.3);
}

[data-theme="dark"] .status-approved,
[data-theme="dark"] .club-status.approved {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.3);
}

/* Dark mode for club action buttons */
[data-theme="dark"] .club-card .btn-secondary,
[data-theme="dark"] .btn-disabled {
    background: #334155;
    color: #94a3b8;
    border-color: #475569;
}

[data-theme="dark"] .club-card .btn-secondary:hover:not(:disabled) {
    background: #475569;
    color: #cbd5e1;
}

/* Dark mode for dashboard page header */
[data-theme="dark"] .page-header,
[data-theme="dark"] .dashboard-header {
    color: #f1f5f9;
}

[data-theme="dark"] .page-header p,
[data-theme="dark"] .dashboard-header p,
[data-theme="dark"] .subtitle {
    color: #cbd5e1;
}

/* Dark mode for tabs */
[data-theme="dark"] .tabs,
[data-theme="dark"] .capsule-tabs {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .tab-button {
    color: #94a3b8;
    background: transparent;
}

[data-theme="dark"] .tab-button:hover {
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .tab-button.active {
    color: #e2e8f0;
    background: rgba(21, 45, 71, 0.6);
    border-color: #10b981;
}

/* Dark mode for loading states */
[data-theme="dark"] .loading-state {
    color: #cbd5e1;
}

[data-theme="dark"] .loading-state i {
    color: #10b981;
}

/* Dark mode for profile section */
[data-theme="dark"] .profile-wrapper {
    background: var(--background-light);
}

[data-theme="dark"] .profile-header {
    background: linear-gradient(215deg, #719ab5 0%, #0054c5 100%);
    border-color: #0054c5;
}

[data-theme="dark"] .stat-card {
    background: var(--surface-white);
    border-color: var(--surface-border);
}

[data-theme="dark"] .stat-icon {
    color: #10b981;
}

[data-theme="dark"] .stat-value {
    color: var(--text-primary);
}

[data-theme="dark"] .stat-title {
    color: var(--text-muted);
}

[data-theme="dark"] .achievements-section,
[data-theme="dark"] .activity-section,
[data-theme="dark"] .history-section {
    background: var(--surface-white);
    border-color: var(--surface-border);
}

[data-theme="dark"] .section-header {
    border-bottom-color: var(--surface-border);
}

[data-theme="dark"] .section-title {
    color: var(--text-primary);
}

[data-theme="dark"] .achievement-card {
    background: var(--surface-light);
    border-color: var(--surface-border);
}

[data-theme="dark"] .achievement-card.unlocked {
    background: rgba(16, 185, 129, 0.15);
    border-color: #10b981;
}

[data-theme="dark"] .achievement-card.unlocked .achievement-icon {
    color: #10b981;
}

[data-theme="dark"] .achievement-title {
    color: var(--text-primary);
}

[data-theme="dark"] .achievement-description {
    color: var(--text-secondary);
}

[data-theme="dark"] .progress-bar {
    background: rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .progress-text {
    color: var(--text-muted);
}

[data-theme="dark"] .activity-item {
    background: var(--surface-light);
    border-left-color: #10b981;
}

[data-theme="dark"] .activity-item:hover {
    background: rgba(16, 185, 129, 0.1);
}

[data-theme="dark"] .activity-icon {
    color: #10b981;
}

[data-theme="dark"] .activity-title {
    color: var(--text-primary);
}

[data-theme="dark"] .activity-time {
    color: var(--text-muted);
}

[data-theme="dark"] .filter-btn {
    background: var(--surface-light);
    border-color: var(--surface-border);
    color: var(--text-primary);
}

[data-theme="dark"] .filter-btn.active {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

[data-theme="dark"] .filter-btn:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: #10b981;
}

[data-theme="dark"] .history-table {
    background: var(--surface-white);
}

[data-theme="dark"] .history-table th {
    background: var(--surface-light);
    color: var(--text-primary);
    border-color: var(--surface-border);
}

[data-theme="dark"] .history-table td {
    color: var(--text-secondary);
    border-color: var(--surface-border);
}

[data-theme="dark"] .history-table tr:hover td {
    background: var(--surface-light);
}

/* Dark mode for league cards */
[data-theme="dark"] .dashboard-league-card {
    background: var(--surface-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .dashboard-league-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .card-body-section {
    background: var(--surface-white);
}

[data-theme="dark"] .stat-icon {
    background: rgba(16, 185, 129, 0.15);
}

[data-theme="dark"] .stat-icon i {
    color: #10b981;
}

[data-theme="dark"] .stat-value {
    color: var(--text-primary);
}

[data-theme="dark"] .stat-label {
    color: var(--text-muted);
}

[data-theme="dark"] .card-footer-section {
    border-top-color: var(--surface-border);
}

[data-theme="dark"] .cta-link {
    color: #10b981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-light);
    color: var(--text-dark);
    line-height: 1.6;
}

html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Custom subtle scrollbar for main browser */
body::-webkit-scrollbar,
html::-webkit-scrollbar,
.dashboard-content::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track,
html::-webkit-scrollbar-track,
.dashboard-content::-webkit-scrollbar-track {
    background: rgba(0, 106, 78, 0.05);
    border-radius: 4px;
}

body::-webkit-scrollbar-thumb,
html::-webkit-scrollbar-thumb,
.dashboard-content::-webkit-scrollbar-thumb {
    background: rgba(0, 106, 78, 0.2);
    border-radius: 4px;
    transition: background 0.3s ease;
}

body::-webkit-scrollbar-thumb:hover,
html::-webkit-scrollbar-thumb:hover,
.dashboard-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 106, 78, 0.35);
}

/* Firefox scrollbar styling for main browser */
body,
html,
.dashboard-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 106, 78, 0.2) rgba(0, 106, 78, 0.05);
}

/* Enhanced Typography */
h1, h2, h3, h4 {
    color: var(--text-dark);
    font-weight: 600;
    letter-spacing: -0.025em;
}

h1 { font-size: 1.8rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.1rem; }

/* ~~~~~~~~~~~~~~~~~~ */
/* PROFESSIONAL DASHBOARD LAYOUT */
/* ~~~~~~~~~~~~~~~~~~ */
.dashboard-wrapper {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
    background: var(--background-light);
}

.dashboard-content {
    flex-grow: 1;
    overflow-y: auto;
    height: 100vh;
    overflow-x: hidden;
    /* max-width: calc(100vw - 280px); */
    background: var(--background-light);
}

/* Professional Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(105, 105, 105);
    transition: var(--transition);
    margin-bottom: 1rem;
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

/* Professional Sidebar */
.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 280px;
    background: var(--primary-gradient);
    color: var(--white);
    flex-shrink: 0;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    z-index: 100;
}

/* Custom subtle scrollbar for sidebar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    transition: background 0.3s ease;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* Firefox scrollbar styling */
.sidebar {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) rgba(0, 0, 0, 0.1);
}

.sidebar-logo-link {
    display: block;
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.sidebar-logo {
    max-width: 140px;
    height: auto;
    filter: brightness(1.1);
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-header .username {
    display: block;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.sidebar-header .user-level {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Enhanced Sidebar Navigation */
.sidebar-nav {
    flex-grow: 1;
    padding: 1rem 0;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin: 0.25rem 0;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
    font-weight: 500;
}

.sidebar-nav li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-left-color: rgba(255, 255, 255, 0.3);
}

.sidebar-nav li.active a {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border-left-color: var(--white);
    font-weight: 600;
}

.sidebar-nav i {
    margin-right: 1rem;
    width: 20px;
    text-align: center;
    font-size: 1.125rem;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.1);
}

.support-links {
    margin-bottom: 1.5rem;
}

.support-links span {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    opacity: 0.6;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.support-links a {
    display: block;
    font-size: 0.875rem;
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.support-links a:hover {
    color: var(--white);
}

/* Sidebar Theme Toggle */
.sidebar-theme-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-theme-toggle .theme-toggle {
    width: 60px;
    height: 34px;
}

.sidebar-theme-toggle .theme-toggle::before {
    width: 26px;
    height: 26px;
    left: 2px;
    top: 2px;
}

.sidebar-theme-toggle .theme-toggle.dark-active::before {
    left: calc(100% - 28px);
}

.logout-link {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 0;
    transition: var(--transition);
}

.logout-link:hover {
    color: var(--white);
}

.logout-link i {
    margin-right: 0.75rem;
    font-size: 1rem;
}

/* ~~~~~~~~~~~~~~~~~~ */
/* PROFESSIONAL DASHBOARD HERO */
/* ~~~~~~~~~~~~~~~~~~ */
.dashboard-hero {
    background: var(--primary-gradient);
    color: var(--white);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.dashboard-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.user-info {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 0 1rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.avatar {
    grid-row: 1 / 3;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    border: 3px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.user-details {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.welcome-message h1 {
    color: var(--white);
    font-size: 1.5rem;
    margin: 0 0 0.25rem 0;
    font-weight: 600;
}

.dashboard-subheading {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Club-specific styling */
.club-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.club-details h1 {
    color: var(--white);
    font-size: 1.5rem;
    margin: 0;
    font-weight: 600;
}

.subtitle {
    color: rgb(151 151 151 / 90%);
    margin: 0.25rem 0 0 0;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Professional Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.875rem;
    position: relative;
    z-index: 1;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius-lg);
    padding: 0.875rem 1rem;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.stat-card .value {
    display: block;
    font-size: 1.375rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.25rem;
}

.stat-card .label {
    font-size: 0.7rem;
    color: #000000;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ~~~~~~~~~~~~~~~~~~ */
/* PROFESSIONAL CONTENT CONTAINER */
/* ~~~~~~~~~~~~~~~~~~ */
.content-container {
    padding: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* ~~~~~~~~~~~~~~~~~~ */
/* PROFESSIONAL SECTIONS */
/* ~~~~~~~~~~~~~~~~~~ */
.page-section {
    margin-bottom: 3rem;
}

.page-section.hidden {
    display: none;
}

.dashboard-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--surface-border);
}

.dashboard-header h1 {
    color: var(--text-primary);
    font-size: 2rem;
    margin: 0;
    font-weight: 600;
}

.dashboard-header .subtitle {
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin: 0;
    font-weight: 500;
}

/* ~~~~~~~~~~~~~~~~~~ */
/* PROFESSIONAL LEAGUES SECTION */
/* ~~~~~~~~~~~~~~~~~~ */
.leagues-section {
    margin-top: 2rem;
}

.leagues-section h2 {
    color: var(--text-primary);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* Professional Tabs */
.tabs-container {
    background: var(--surface-light);
    border-radius: var(--border-radius-lg);
    padding: 0.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--surface-border);
}

.tabs.capsule-tabs {
    display: flex;
    gap: 0.5rem;
    background: none;
    padding: 0;
    border-radius: 0;
}

.tab-button {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tab-button:hover {
    background: rgba(255, 255, 255, 0.7);
    color: var(--text-primary);
}

.tab-button.active {
    background: var(--white);
    color: var(--primary-green);
    box-shadow: var(--shadow-sm);
}

/* Browse Leagues Filter Tabs - Icon Only Style */
#browse-league-filter-tabs .tab-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    min-width: 60px;
}

#browse-league-filter-tabs .tab-button i {
    font-size: 1.5rem;
    margin: 0;
}

#browse-league-filter-tabs .tab-button:hover {
    transform: translateY(-2px);
}

#browse-league-filter-tabs .tab-button.active {
    transform: translateY(0);
}

[data-theme="dark"] #browse-league-filter-tabs .tab-button.active {
    background: rgba(21, 45, 71, 0.6);
    color: #10b981;
}

/* Professional League Cards Grid */
.leagues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Browse Leagues Grid - 3 Column Layout */
.dashboard-leagues-grid,
#browse-leagues-section-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5rem;
}

@media (max-width: 1200px) {
    .dashboard-leagues-grid,
    #browse-leagues-section-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .dashboard-leagues-grid,
    #browse-leagues-section-grid {
        grid-template-columns: 1fr !important;
    }
}

.info-cards-grid,
.wallet-grid,
.settings-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
}

/* Enhanced League Card */
/* Enhanced League Card - Sleeper Style */
/* Dashboard League Card - Sleeper.com Style */
.dashboard-league-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.dashboard-league-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Top Section - 33% - League Name with Logo */
.card-header-section {
    height: 140px;
    position: relative;
    background: linear-gradient(135deg, #2d4a6f 0%, #1e3a5f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.tour-logo-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.2;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    /* filter: brightness(0) invert(1); */
}

.tour-logo-bg.tour-pga {
    background-image: url('/static/images/logo/pga_logo.png');
}

.tour-logo-bg.tour-euro {
    background-image: url('/static/images/logo/euro_logo.png');
}

.tour-logo-bg.tour-dp {
    background-image: url('/static/images/logo/euro_logo.png');
}

.header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.league-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 700;
    margin-top: 0.75rem;
    background: rgba(255, 255, 255, 0.95);
}

.rank-badge.rank-1 {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #744210;
}

.rank-badge.rank-2 {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
    color: #4a5568;
}

.rank-badge.rank-3 {
    background: linear-gradient(135deg, #cd7f32 0%, #d4a574 100%);
    color: #2d1b0e;
}

/* Bottom Section - 66% - Stats */
.card-body-section {
    flex: 1;
    padding: 1.25rem;
    background: var(--white);
    display: flex;
    flex-direction: column;
}

.stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.stat-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.stat-icon {
    height: 36px;
    border-radius: 8px;
    background: #f0f9ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon i {
    font-size: 1rem;
    color: #0284c7;
}

.stat-content {
    flex: 1;
    min-width: 0;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 0.125rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: capitalize;
}

/* Footer CTA */
.card-footer-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    margin-top: auto;
    border-top: 1px solid var(--surface-border);
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-indicator.live {
    background: #10b981;
    color: white;
}

.status-indicator.live .fa-circle {
    animation: pulse-live 2s ease-in-out infinite;
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-indicator.upcoming {
    background: #3b82f6;
    color: white;
}

.status-indicator.completed {
    background: #6b7280;
    color: white;
}

.cta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-green);
    transition: gap 0.2s ease;
}

.cta-link i {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.dashboard-league-card:hover .cta-link {
    gap: 0.5rem;
}

.dashboard-league-card:hover .cta-link i {
    transform: translateX(2px);
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.375rem 0.675rem;
    border-radius: 9999px;
    width: fit-content;
    white-space: nowrap;
}

.rank-badge.rank-gold {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #744210;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.rank-badge.rank-silver {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
    color: #4a5568;
    box-shadow: 0 2px 8px rgba(192, 192, 192, 0.3);
}

.rank-badge.rank-bronze {
    background: linear-gradient(135deg, #cd7f32 0%, #d4a574 100%);
    color: #2d1b0e;
    box-shadow: 0 2px 8px rgba(205, 127, 50, 0.3);
}

.rank-badge.rank-standard {
    background: var(--surface-light);
    color: var(--text-secondary);
    border: 1px solid var(--surface-border);
}

.status-and-tour {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.tour-tag-small {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 1px 3px rgba(102, 126, 234, 0.3);
}

.status-badge {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.3rem 0.625rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-badge.status-live {
    background: var(--success-gradient);
    color: white;
    box-shadow: 0 2px 8px rgba(56, 161, 105, 0.3);
}

.status-badge.status-upcoming {
    background: linear-gradient(135deg, #4299e1 0%, #63b3ed 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(66, 153, 225, 0.3);
}

.status-badge.status-completed {
    background: linear-gradient(135deg, #718096 0%, #a0aec0 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(113, 128, 150, 0.3);
}

/* Visual Body Section */
.card-body-visual {
    padding: 1.75rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: var(--white);
}

.prize-showcase {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 12px;
    border: 2px solid #bbf7d0;
}

.prize-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 12px;
    flex-shrink: 0;
}

.prize-icon i {
    font-size: 1.75rem;
    color: white;
}

.prize-info {
    flex: 1;
}

.prize-amount {
    font-size: 2rem;
    font-weight: 800;
    color: #065f46;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.prize-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #059669;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.compact-stats {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 0;
}

.compact-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

.compact-stat i {
    font-size: 1rem;
    color: var(--primary-green);
}

.stat-divider {
    color: var(--text-muted);
    font-weight: 400;
}

.participant-avatars {
    display: flex;
    align-items: center;
    gap: -0.5rem;
    margin-left: -0.25rem;
}

.avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -8px;
}

.avatar-circle:first-child {
    margin-left: 0;
}

.avatar-circle i {
    font-size: 0.75rem;
    color: #4f46e5;
}

.avatar-more {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-green);
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    margin-left: -8px;
}

/* Visual Footer */
.card-footer-visual {
    padding: 1.25rem 1.5rem;
    background: var(--background-light);
    border-top: 1px solid var(--surface-border);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.meta-item i {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--primary-green);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.cta-button i {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.dashboard-league-card:hover .cta-button {
    background: #059669;
}

.dashboard-league-card:hover .cta-button i {
    transform: translateX(3px);
}

/* ~~~~~~~~~~~~~~~~~~ */
/* PROFESSIONAL BUTTONS & NAVIGATION */
/* ~~~~~~~~~~~~~~~~~~ */
.nav-item-club, .nav-item-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.nav-item-club {
    background: var(--button-bg);
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(255, 235, 59, 0.4);
}

.nav-item-club:hover {
    background: #fdd835;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 235, 59, 0.6);
}

/* Club Actions Container */
.club-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* Members Button Styling */
.nav-item-club.members-btn {
    position: relative;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.nav-item-club.members-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

/* Notification Badge */
.badge-notification {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.6);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .club-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }

    .club-actions .nav-item-club {
        width: 100%;
        justify-content: center;
    }
}

/* Golf Ball CTA Button */
.nav-item.nav-item-cta {
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 50%, #e8e8e8 100%),
        repeating-radial-gradient(circle at center, transparent 0px, transparent 2px, rgba(0, 0, 0, 0.08) 2px, rgba(0, 0, 0, 0.08) 3px);
    color: #006a4e;
    padding: 0;
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
    border-radius: 50%;
    transform: translateY(-16px);
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.25),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1),
        inset 0 2px 4px rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
    flex-direction: column;
    gap: 2px;
    flex-grow: 0;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
}

.nav-item-cta:hover {
    transform: translateY(-18px) scale(1.05);
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1),
        inset 0 2px 4px rgba(255, 255, 255, 0.9);
}

.nav-item-cta i {
    font-size: 1.5rem;
    margin-bottom: 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.nav-item-cta span {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.nav-item-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.4), transparent 30%),
        radial-gradient(circle at 80% 80%, rgba(0, 0, 0, 0.05), transparent 30%);
    pointer-events: none;
}

/* Golf ball dimple pattern */
.nav-item-cta::after {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background-image:
        radial-gradient(circle at 15% 15%, rgba(0, 0, 0, 0.06) 1px, transparent 1px),
        radial-gradient(circle at 35% 12%, rgba(0, 0, 0, 0.06) 1px, transparent 1px),
        radial-gradient(circle at 55% 15%, rgba(0, 0, 0, 0.06) 1px, transparent 1px),
        radial-gradient(circle at 75% 18%, rgba(0, 0, 0, 0.06) 1px, transparent 1px),
        radial-gradient(circle at 25% 35%, rgba(0, 0, 0, 0.06) 1px, transparent 1px),
        radial-gradient(circle at 45% 32%, rgba(0, 0, 0, 0.06) 1px, transparent 1px),
        radial-gradient(circle at 65% 35%, rgba(0, 0, 0, 0.06) 1px, transparent 1px),
        radial-gradient(circle at 85% 38%, rgba(0, 0, 0, 0.06) 1px, transparent 1px),
        radial-gradient(circle at 15% 55%, rgba(0, 0, 0, 0.06) 1px, transparent 1px),
        radial-gradient(circle at 35% 52%, rgba(0, 0, 0, 0.06) 1px, transparent 1px),
        radial-gradient(circle at 55% 55%, rgba(0, 0, 0, 0.06) 1px, transparent 1px),
        radial-gradient(circle at 75% 58%, rgba(0, 0, 0, 0.06) 1px, transparent 1px),
        radial-gradient(circle at 25% 75%, rgba(0, 0, 0, 0.06) 1px, transparent 1px),
        radial-gradient(circle at 45% 72%, rgba(0, 0, 0, 0.06) 1px, transparent 1px),
        radial-gradient(circle at 65% 75%, rgba(0, 0, 0, 0.06) 1px, transparent 1px),
        radial-gradient(circle at 85% 78%, rgba(0, 0, 0, 0.06) 1px, transparent 1px);
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 1;
}

.join-league-hero-btn {
    background: var(--success-gradient);
    color: white;
    padding: 0.875rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(56, 161, 105, 0.4);
    border: none;
    cursor: pointer;
}

.join-league-hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(56, 161, 105, 0.6);
}

/* Enhanced Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    border: 1px solid transparent;
    min-height: 44px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
    border-color: var(--primary-green);
    box-shadow: 0 4px 15px rgba(0, 106, 78, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 106, 78, 0.5);
}

.btn-secondary {
    background: var(--secondary-gradient);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(107, 158, 134, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(107, 158, 134, 0.5);
}

.btn-outline {
    color: var(--primary-green);
    border: 1px solid var(--surface-border);
    box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
    background: var(--surface-light);
    border-color: var(--primary-green);
    transform: translateY(-1px);
}

/* Professional Join League Modal - Fixed positioning */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal, .modal-content {
    background: var(--surface-white);
    margin: 2rem;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-xl);
    transform: scale(0.9);
    transition: var(--transition);
}

.modal-overlay.active .modal,
.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--surface-border);
}

.modal-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.close-btn, .modal-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover, .modal-close-btn:hover {
    background: var(--surface-light);
    color: var(--text-primary);
}

.modal-subtitle {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
}

.modal-body {
    margin-bottom: 2rem;
}

.modal-body .icon-container {
    text-align: center;
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 1.5rem;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.modal-footer .btn {
    min-width: 120px;
}

.modal-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
}

.modal-message.error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.modal-message.success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.info-box {
    background: var(--surface-light);
    border: 1px solid var(--surface-border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.info-box h4 {
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-box li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--text-secondary);
}

.info-box li:before {
    content: '•';
    color: var(--primary-green);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Simplified Join League Modal - Sleeper.com inspired */
.join-league-modal-simplified {
    background: var(--surface-white);
    border-radius: 16px;
    max-width: 480px;
    width: 90%;
    padding: 3rem 2.5rem;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .join-league-modal-simplified {
    transform: scale(1);
}

.join-league-modal-simplified .modal-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.75rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
    line-height: 1;
}

.join-league-modal-simplified .modal-close-btn:hover {
    background: var(--surface-light);
    color: var(--text-primary);
}

.join-league-modal-simplified .modal-title {
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 2rem 0;
    text-align: center;
    letter-spacing: -0.02em;
}

.join-league-modal-simplified .modal-input-wrapper {
    margin-bottom: 1rem;
}

.join-league-modal-simplified .modal-input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--surface-light);
    border: 2px solid var(--surface-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    outline: none;
}

.join-league-modal-simplified .modal-input::placeholder {
    color: var(--text-muted);
}

.join-league-modal-simplified .modal-input:focus {
    border-color: #006a4e;
    background: var(--surface-white);
    box-shadow: 0 0 0 3px rgba(0, 106, 78, 0.15);
}

/* Dark mode overrides for modal */
[data-theme="dark"] .join-league-modal-simplified {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6f 100%);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .join-league-modal-simplified .modal-close-btn {
    color: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .join-league-modal-simplified .modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .join-league-modal-simplified .modal-title {
    color: #ffffff;
}

[data-theme="dark"] .join-league-modal-simplified .modal-input {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

[data-theme="dark"] .join-league-modal-simplified .modal-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .join-league-modal-simplified .modal-input:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: #00c896;
}

.join-league-modal-simplified .modal-message {
    margin: 0.75rem 0 1.25rem 0;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

.join-league-modal-simplified .modal-message.error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.join-league-modal-simplified .modal-message.success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* Dark mode error/success messages */
[data-theme="dark"] .join-league-modal-simplified .modal-message.error {
    background: rgba(220, 38, 38, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

[data-theme="dark"] .join-league-modal-simplified .modal-message.success {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.join-league-modal-simplified .modal-submit-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #006a4e 0%, #00805d 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 106, 78, 0.3);
}

.join-league-modal-simplified .modal-submit-btn:hover {
    background: linear-gradient(135deg, #00805d 0%, #009668 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 106, 78, 0.4);
}

.join-league-modal-simplified .modal-submit-btn:active {
    transform: translateY(0);
}

.join-league-modal-simplified .modal-submit-btn:disabled {
    background: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
}

.join-league-modal-simplified .modal-submit-btn:disabled:hover {
    transform: none;
}

/* Dark mode disabled button */
[data-theme="dark"] .join-league-modal-simplified .modal-submit-btn:disabled {
    background: #3a3f52;
    color: rgba(255, 255, 255, 0.4);
}

/* Mobile responsiveness */
@media (max-width: 640px) {
    .join-league-modal-simplified {
        padding: 2.5rem 1.75rem;
        max-width: 95%;
    }

    .join-league-modal-simplified .modal-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

/* Fixed Mobile Navigation - Floating design */
.mobile-nav {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    height: 72px;
    background: linear-gradient(135deg, #006a4e 0%, #008060 50%, #00a078 100%);
    backdrop-filter: blur(20px);
    display: none;
    justify-content: space-around;
    align-items: center;
    border-radius: 24px;
    z-index: 1000;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.25),
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Dark mode mobile nav - matches dark mode sidebar */
[data-theme="dark"] .mobile-nav {
    background: linear-gradient(135deg, #1a2f4a 0%, #1e3a5f 40%, #2d4a6f 100%);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Desktop sidebar - Only show on desktop */
.sidebar {
    display: flex;
    flex-direction: column;
}

/* Responsive Navigation Control */
@media (max-width: 1023px) {
    .mobile-nav {
        display: flex;
    }

    .dashboard-content {
        margin-bottom: 100px !important;
        max-width: 100vw;
    }

    .sidebar {
        display: none !important;
    }
}

@media (min-width: 1024px) {
    .sidebar {
        display: flex !important;
        flex-direction: column;
    }

    .mobile-nav {
        display: none !important;
    }
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.75rem;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 16px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-width: 60px;
    letter-spacing: 0.025em;
    overflow: hidden;
}

.nav-item i {
    font-size: 1.5rem;
    margin-bottom: 0;
}

/* Hide text labels in nav items */
.nav-item span {
    display: none;
}

.nav-item.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.nav-item.active i {
    transform: scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.3));
}

/* Hover effects */
.nav-item:hover:not(.active) {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.nav-item:hover:not(.active) i {
    transform: scale(1.05);
}

.nav-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(0, 106, 78, 0.1) 0%, transparent 70%);
    transform: scale(0);
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: inherit;
}

/* Active indicator dot */
.nav-item.active::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #006a4e;
    border-radius: 50%;
    animation: activeIndicator 0.3s ease-out;
}

.nav-item:active::before {
    transform: scale(1);
    opacity: 1;
    transition: transform 0.15s ease;
}

@keyframes activeIndicator {
    0% { transform: translateX(-50%) scale(0); opacity: 0; }
    100% { transform: translateX(-50%) scale(1); opacity: 1; }
}


/* Stagger animation on load */
.nav-item:nth-child(1) { animation-delay: 0ms; }
.nav-item:nth-child(2) { animation-delay: 50ms; }
.nav-item:nth-child(3) { animation-delay: 100ms; }
.nav-item:nth-child(4) { animation-delay: 150ms; }
.nav-item:nth-child(5) { animation-delay: 200ms; }

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-item {
    animation: slideUpFade 0.4s ease-out both;
}

/* Mobile More Options */
.more-options-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1010;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.more-options-overlay:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

.more-options-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top-left-radius: var(--border-radius-xl);
    border-top-right-radius: var(--border-radius-xl);
    padding: 2rem;
    z-index: 1020;
    transform: translateY(100%);
    transition: var(--transition);
    box-shadow: var(--shadow-xl);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
}


.more-options-menu.open {
    transform: translateY(0);
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--surface-border);
}

.menu-header h4 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--text-primary);
    font-weight: 700;
}

#close-menu-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
}

#close-menu-btn:hover {
    background: var(--surface-light);
    color: var(--text-primary);
}

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-list li a {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 0;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--surface-border);
    transition: var(--transition);
}

.menu-list li:last-child a {
    border-bottom: none;
}

.menu-list li a:hover {
    color: var(--primary-green);
    transform: translateX(4px);
}

.menu-list li a i {
    width: 24px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.25rem;
}

.menu-list .logout-link {
    color: var(--text-red);
}

.menu-list .logout-link:hover {
    color: #c53030;
}

/* ~~~~~~~~~~~~~~~~~~ */
/* RESPONSIVE DESIGN */
/* ~~~~~~~~~~~~~~~~~~ */
@media (max-width: 1024px) {
    .sidebar {
        display: none;
    }

    .leagues-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .card-info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .dashboard-hero {
        display: none;
    }

    .content-container {
        padding: 1rem;
    }

    .dashboard-header {
        margin-bottom: 1.5rem;
    }

    .dashboard-header h1 {
        font-size: 1.5rem;
    }

    .leagues-section h2 {
        font-size: 1.5rem;
    }

    .leagues-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .dashboard-league-card {
        margin-bottom: 0;
    }

    .card-header {
        padding: 1rem;
    }

    .card-info-grid {
        padding: 1rem;
        flex-direction: column;
        gap: 0.875rem;
    }

    .info-item {
        min-width: unset;
    }

    .card-footer {
        padding: 1rem;
    }

    .league-name {
        font-size: 1.125rem;
    }

    .rank-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.625rem;
    }
}

@media (max-width: 480px) {
    /* .tabs-container {
        margin: 0 -0.5rem 1.5rem -0.5rem;
        border-radius: 0;
    } */

    .tab-button {
        padding: 0.625rem 1rem;
        font-size: 0.8rem;
    }

    .content-container {
        padding: 0.5rem;
    }
}

@media (max-width: 375px) {
    .mobile-nav {
        height: 68px;
        bottom: 12px;
        left: 12px;
        right: 12px;
    }

    .nav-item {
        padding: 8px;
        min-width: 48px;
    }

    .nav-item i {
        font-size: 1.4rem;
    }

    .nav-item-cta {
        width: 56px;
        height: 56px;
        transform: translateY(-14px);
    }

    .nav-item-cta i {
        font-size: 1.3rem;
    }
}

@media (min-width: 430px) {
    .mobile-nav {
        height: 72px;
    }

    .nav-item {
        padding: 10px 12px;
        min-width: 60px;
    }
}

/* Animation Enhancements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.dashboard-league-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.dashboard-league-card:nth-child(2) {
    animation-delay: 0.1s;
}

.dashboard-league-card:nth-child(3) {
    animation-delay: 0.2s;
}

.dashboard-league-card:nth-child(4) {
    animation-delay: 0.3s;
}

.stat-card {
    animation: slideInRight 0.6s ease-out forwards;
}

.stat-card:nth-child(2) {
    animation-delay: 0.1s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.2s;
}


/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
        --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    }

    .dashboard-league-card {
        border-width: 2px;
    }

    .btn {
        border-width: 2px;
    }
}

/* Additional Professional Styles for JavaScript Components */

/* Professional Loading and Error States */
.loading-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
}

.loading-state i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-green);
}

.loading-state p {
    margin: 0;
    font-weight: 500;
}

.error-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
}

.error-state i {
    font-size: 3rem;
    color: #e53e3e;
    margin-bottom: 1.5rem;
}

.error-state h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.error-state p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.empty-content {
    text-align: center;
    padding: 2.5rem 2rem;
    color: var(--text-muted);
    background: var(--white);
    border-radius: var(--border-radius-lg);
    border: 2px dashed var(--surface-border);
}

/* Large decorative icon at top of empty state */
.empty-content > i {
    font-size: 3rem;
    margin-bottom: 1rem;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-muted);
    opacity: 0.15;
    display: block;
    text-align: center;
}

.empty-content h3 {
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.empty-content .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    min-height: auto;
}

.empty-content .btn i {
    font-size: 0.875rem;
    margin: 0;
    opacity: 1;
    color: inherit;
}

/* Professional Schedule Item Styling */
.schedule-item {
    background: var(--background-light);
    border: 1px solid var(--surface-border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.schedule-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-green);
}

.schedule-tour-tabs{
    margin-bottom: 1rem;
}

.schedule-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.schedule-title strong {
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
}

.schedule-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.schedule-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.schedule-meta i {
    color: var(--primary-green);
    width: 14px;
}

/* Professional Status Tags */
.status-tag {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-tag.upcoming {
    background: linear-gradient(135deg, #4299e1 0%, #63b3ed 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(66, 153, 225, 0.3);
}

.status-tag.completed {
    background: linear-gradient(135deg, #718096 0%, #a0aec0 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(113, 128, 150, 0.3);
}

.status-tag.live {
    background: var(--success-gradient);
    color: white;
    box-shadow: 0 2px 8px rgba(56, 161, 105, 0.3);
}

/* Professional Leaderboard Enhancements */
.leader-row {
    background: linear-gradient(135deg, #fef7cd 0%, #fef3c7 100%) !important;
    border-left: 4px solid #fbbf24;
    font-weight: 600;
}

.highlighted {
    background: var(--surface-light) !important;
}

.live-score {
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    display: inline-block;
    min-width: 40px;
    text-align: center;
}

.score-negative {
    color: #16a34a;
    font-weight: 700;
}

.score-positive {
    color: #dc2626;
    font-weight: 700;
}

.score-even {
    color: var(--text-secondary);
    font-weight: 600;
}

/* No Results Search State */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
}

/* Professional Player Profile Grid */
.player-profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.player-profile-card {
    background: var(--white);
    border: 1px solid var(--surface-border);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.player-profile-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-green);
}

/* Search Bar Enhancement */
.search-bar {
    position: relative;
    margin-bottom: 2rem;
}

.search-bar i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    z-index: 1;
}

.search-bar input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 1px solid var(--surface-border);
    border-radius: var(--border-radius);
    font-size: 1rem;
    background: var(--white);
    transition: var(--transition);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(0, 106, 78, 0.1);
}

/* Enhanced Form Input States */
.input-group input:focus,
.modal-body input:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(0, 106, 78, 0.1);
}

/* Professional Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive Fixes */
@media (max-width: 768px) {
    .schedule-meta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .schedule-title {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .modal, .modal-content {
        margin: 1rem;
        padding: 1.5rem;
    }

    .modal-footer {
        flex-direction: column;
    }

    .modal-footer .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .empty-content,
    .empty-state-enhanced {
        padding: 2rem 1.5rem;
    }

    .empty-content > i,
    .empty-state-enhanced > i {
        font-size: 2.5rem;
    }

    .empty-content h3,
    .empty-state-enhanced h3 {
        font-size: 1rem;
    }

    .empty-content p,
    .empty-state-enhanced p {
        font-size: 0.85rem;
    }

    .empty-content .btn,
    .empty-state-enhanced .btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
        gap: 0.375rem;
    }

    .empty-content .btn i,
    .empty-state-enhanced .btn i {
        font-size: 0.8125rem;
    }

    .loading-state,
    .error-state {
        padding: 2rem 1rem;
    }
}

/* ~~~~~~~~~~~~~~~~~~ */
/* FORM CONTROLS - Professional Styling */
/* ~~~~~~~~~~~~~~~~~~ */

/* Select dropdowns and form controls */
select,
.form-control {
    width: 100%;
    padding: 0.625rem 1rem;
    border: 2px solid var(--surface-border);
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 0.875rem;
    font-weight: 500;
    background: var(--surface-white);
    color: var(--text-primary);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 3rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

select:focus,
.form-control:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(0, 106, 78, 0.1);
    background-color: var(--surface-white);
}

select:hover,
.form-control:hover {
    border-color: var(--primary-green);
}

select option,
.form-control option {
    padding: 0.5rem;
    background: var(--surface-white);
    color: var(--text-primary);
}

/* Remove hover transform to prevent movement */
select,
.form-control {
    transform: none !important;
}

/* ~~~~~~~~~~~~~~~~~~ */
/* INTERACTIVE UTILITIES - Inspired by Sleeper */
/* ~~~~~~~~~~~~~~~~~~ */

/* Hover Scale Effects */
.hover-scale-sm {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-scale-sm:hover {
    transform: scale(1.02);
}

.hover-scale-md {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-scale-md:hover {
    transform: scale(1.05);
}

.hover-scale-lg {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-scale-lg:hover {
    transform: scale(1.08);
}

/* Enhanced Focus States - Sleeper Style */
.focus-ring {
    transition: box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.focus-ring:focus,
.focus-ring:focus-visible {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 4px rgba(0, 106, 78, 0.15);
}

/* Apply enhanced focus to all interactive elements */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 106, 78, 0.2);
    border-color: var(--primary-green);
}

/* Card Interactive States */
.interactive-card {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.interactive-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 24px -10px rgba(0, 106, 78, 0.2),
                0 8px 16px -8px rgba(0, 0, 0, 0.1);
}

.interactive-card:active {
    transform: translateY(-2px) scale(1.01);
}

/* Button Interactive Enhancements */
.btn {
    position: relative;
    overflow: hidden;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -4px rgba(0, 106, 78, 0.3);
}

.btn:active:not(:disabled) {
    transform: translateY(0);
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Trend Indicators */
.trend-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.trend-up {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.trend-up::before {
    content: '↑';
    font-size: 1rem;
}

.trend-down {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.trend-down::before {
    content: '↓';
    font-size: 1rem;
}

.trend-neutral {
    color: #6b7280;
    background: rgba(107, 114, 128, 0.1);
}

.trend-neutral::before {
    content: '—';
    font-size: 0.875rem;
}

/* Smooth Entry Animation */
.fade-in {
    animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pulse Animation for Loading/Active States */
.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Enhanced Empty States */
.empty-state-enhanced {
    text-align: center;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, rgba(0, 106, 78, 0.02) 0%, rgba(107, 158, 134, 0.02) 100%);
    border-radius: var(--border-radius-lg);
    border: 2px dashed var(--border-color);
}

/* Large decorative icon at top of enhanced empty state */
.empty-state-enhanced > i {
    font-size: 3rem;
    color: var(--primary-green);
    opacity: 0.15;
    margin-bottom: 1rem;
    margin-left: auto;
    margin-right: auto;
    display: block;
    text-align: center;
}

.empty-state-enhanced h3 {
    font-size: 1.125rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-state-enhanced p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.empty-state-enhanced .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    min-height: auto;
}

.empty-state-enhanced .btn i {
    font-size: 0.875rem;
    margin: 0;
    opacity: 1;
    color: inherit;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hover-scale-sm:hover,
    .hover-scale-md:hover,
    .hover-scale-lg:hover,
    .interactive-card:hover,
    .btn:hover {
        transform: none;
    }
}