/* 
    UK Soccer Leagues - Master Theme
    Consolidated Design System for Light & Dark Mode
    Standardized: 2026-05-02
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Outfit:wght@400;600;700;800&display=swap');

:root {
    /* Color Palette - Midnight League (Emerald & Indigo) */
    --primary: #10b981; /* Emerald 500 */
    --primary-hover: #059669;
    --secondary: #6366f1; /* Indigo 500 */
    --secondary-hover: #4f46e5;
    
    /* Default Dark Mode */
    --bg-main: #0f172a; /* Slate 900 */
    --bg-surface: rgba(30, 41, 59, 0.7); /* Slate 800 with transparency */
    --bg-card: rgba(15, 23, 42, 0.8);
    
    --text-main: #f8fafc; /* Slate 50 */
    --text-muted: #cbd5e1; /* Lighter Slate for better dark mode contrast */
    --text-on-primary: #ffffff;
    
    --border-color: rgba(255, 255, 255, 0.1);
    --border-accent: rgba(16, 185, 129, 0.3);
    
    --glass-blur: blur(10px);
    --shadow-premium: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    /* Semantic Colors - Dark Mode */
    --danger: #ef4444;
    --danger-subtle: rgba(239, 68, 68, 0.15);
    --ft-bg: rgba(255, 255, 255, 0.05);
    --ft-text: #94a3b8;
    --ft-border: rgba(255, 255, 255, 0.1);

    /* RGB Values for transparency usage */
    --primary-rgb: 16, 185, 129;
    --secondary-rgb: 99, 102, 241;
    --danger-rgb: 239, 68, 68;

    /* Theme Variable Aliases for legacy/adhoc usage */
    --bg-body: var(--bg-main);
    --bg-card-header: var(--bg-surface);

    /* Secondary Header - Dark Mode (Muted Slate Blue) */
    --bg-secondary-header: #1e293b; 
    --text-secondary-header: #f8fafc;
    --border-secondary-header: #334155;
}

/* Light Mode Overrides */
html[data-theme="light"] {
    --bg-main: #f1f5f9;
    --bg-surface: rgba(255, 255, 255, 0.9);
    --bg-card: rgba(255, 255, 255, 0.95);
    
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-on-primary: #ffffff;
    
    --border-color: rgba(0, 0, 0, 0.1);
    --border-accent: rgba(16, 185, 129, 0.4);
    
    --shadow-premium: 0 4px 16px -4px rgba(0, 0, 0, 0.1), 0 2px 6px -2px rgba(0, 0, 0, 0.05);
    
    /* Semantic Colors - Light Mode */
    --danger-subtle: #fee2e2;
    --ft-bg: #f1f5f9;
    --ft-text: #64748b;
    --ft-border: #e2e8f0;

    /* Secondary Header - Light Mode (Pale Blue) */
    --bg-secondary-header: #e0f2fe;
    --text-secondary-header: #000000;
    --border-secondary-header: #bae6fd;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    background-image: 
        radial-gradient(circle at 0% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(16, 185, 129, 0.1) 0%, transparent 40%);
    background-attachment: fixed;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Global Typography - Overriding legacy web.css Navy colors */
h1, h2, h3, h4, h5, h6, b, strong, li {
    color: var(--text-main) !important;
    font-family: 'Outfit', 'Inter', sans-serif;
}

/* Ensure common text elements respect theme in legacy containers */
p, span:not(.badge-form):not(.soccer-spinner), div:not(.card):not(.modern-card):not(.spinner-overlay) {
    color: inherit;
}

/* Global Typography & Links Overrides */
a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

html[data-theme="dark"] a {
    color: #34d399; /* Brighter Emerald for Dark Mode */
}

html[data-theme="dark"] .text-muted, 
html[data-theme="dark"] .num-cell,
html[data-theme="dark"] .pos-cell {
    color: var(--text-muted) !important;
}

/* Force all text in cards to respect theme */
.card, .modern-card, .card *, .modern-card * {
    color: inherit;
}

.card, .modern-card {
    color: var(--text-main) !important;
}

/* Layout Containers */
.page-container, .admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Modern Card */
.card, .modern-card {
    background: var(--bg-surface) !important;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-premium);
    padding: 1.5rem;
    margin-bottom: 2rem;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.3s ease;
}

.card:hover, .modern-card:hover {
    border-color: var(--border-accent) !important;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Layout & Admin Headers */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}

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

/* Sub-admin pages (with close buttons) get a two-line header to prevent wrapping */
.admin-header:has(.btn-close-window) {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.admin-header h1 {
    font-size: 1.75rem;
    font-family: 'Outfit', sans-serif;
    margin: 0;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.admin-header:has(.btn-close-window) .header-right {
    width: 100%;
    justify-content: flex-end;
}

.logged-details {
    display: flex !important;
    gap: 0.5rem;
    flex-wrap: nowrap !important;
}

.logged-details > div, .theme-toggle {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0 0.75rem;
    color: var(--text-muted);
    height: 38px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    font-size: 0.75rem;
}

.logged-details strong {
    color: var(--text-main);
    margin-right: 0.25rem;
}

.theme-toggle {
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    outline: none;
    width: auto;
    padding: 0 0.75rem;
    gap: 0.5rem;
    justify-content: center;
}

.theme-toggle::before {
    content: "Mode";
    font-weight: 700;
    color: var(--text-main);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
    color: var(--primary);
}

.theme-toggle.btn-close-window {
    background: var(--danger) !important;
    color: #ffffff !important;
    border-color: var(--danger) !important;
    width: 38px !important;
    justify-content: center;
    padding: 0;
}

.theme-toggle.btn-close-window::before {
    content: none !important;
}

.theme-toggle.btn-close-window:hover {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
    color: #ffffff !important;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

.theme-toggle.btn-close-window i {
    color: #ffffff !important;
}

html[data-theme="light"] .theme-toggle { 
    background: rgba(0, 0, 0, 0.04);
    color: #64748b !important; 
}

html[data-theme="light"] .logged-details > div {
    background: rgba(0, 0, 0, 0.03);
}

/* Forms & Inputs */
.modern-input, select, .modern-dropdown {
    background: rgba(15, 23, 42, 0.4) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    padding: 0.75rem 1rem !important;
    color: var(--text-main) !important;
    font-size: 1rem !important;
    width: 100%;
    transition: all 0.3s ease;
}

html[data-theme="light"] .modern-input, 
html[data-theme="light"] select, 
html[data-theme="light"] .modern-dropdown {
    background: white !important;
}

.modern-input:focus, select:focus, .modern-dropdown:focus {
    outline: none;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2) !important;
}

/* Buttons */
.btn-primary {
    background: var(--primary) !important;
    color: white !important;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.8rem;
}

.btn-primary:hover {
    background: var(--primary-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Spinners (Gold Standard) */
.spinner-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9999;
}

.spinner-panel {
    background: var(--bg-card) !important;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.spinner-icon-large {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary);
    animation: spin 0.8s linear infinite;
}

.spinner-message {
    font-weight: 600;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Results Specific Components */
.result-row-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    transition: border-color 0.2s;
}

.result-row-card:hover {
    border-color: var(--border-accent) !important;
}

.result-date-header {
    color: var(--text-secondary-header) !important;
    background: var(--bg-secondary-header) !important;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: none;
    letter-spacing: normal;
    margin: 1rem 0 0.5rem 0;
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem !important;
    border-radius: 6px !important;
    border: 1px solid var(--border-secondary-header) !important;
}

.result-date-header::before {
    display: none !important; /* Hide legacy blue strip */
}

.score {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
}

/* Tables / GridViews */
table.modern-gridview, 
.modern-gridview {
...
}

/* DetailsView Modernization */
table.modern-detailsview,
.modern-detailsview {
    width: 100% !important;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.modern-detailsview tr {
    border-bottom: 1px solid var(--border-color);
}

/* Header style */
.modern-detailsview th, 
.modern-detailsview .details-header {
    background: #1e293b !important;
    color: var(--primary) !important;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem !important;
    border-bottom: 2px solid var(--border-color) !important;
    text-align: center !important;
}

html[data-theme="light"] .modern-detailsview th,
html[data-theme="light"] .modern-detailsview .details-header {
    background: var(--primary) !important;
    color: var(--text-on-primary) !important;
}

/* Field Header (Left column) */
.modern-detailsview td:first-child,
.modern-detailsview .field-header {
    background: rgba(255, 255, 255, 0.03) !important;
    color: var(--text-muted) !important;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.85rem 1rem !important;
    width: 160px;
    border-right: 1px solid var(--border-color);
    white-space: nowrap;
}

html[data-theme="light"] .modern-detailsview td:first-child,
html[data-theme="light"] .modern-detailsview .field-header {
    background: rgba(0, 0, 0, 0.02) !important;
}

/* Data Cell (Right column) */
.modern-detailsview td:last-child,
.modern-detailsview .field-value {
    padding: 0.85rem 1rem !important;
    font-size: 0.9rem;
    color: var(--text-main);
    background: transparent !important;
}

.modern-detailsview tr:last-child,
.modern-detailsview tr:last-child td {
    border-bottom: none;
}

/* Form controls within DetailsView */
.modern-detailsview input[type="text"],
.modern-detailsview textarea,
.modern-detailsview select {
    width: 100% !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px;
    padding: 0.6rem 0.85rem !important;
    color: var(--text-main) !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.85rem !important;
    transition: all 0.2s ease;
}

html[data-theme="light"] .modern-detailsview input[type="text"],
html[data-theme="light"] .modern-detailsview textarea,
html[data-theme="light"] .modern-detailsview select {
    background: #ffffff !important;
}

.modern-detailsview input[type="text"]:focus,
.modern-detailsview textarea:focus,
.modern-detailsview select:focus {
    border-color: var(--primary) !important;
    background: rgba(16, 185, 129, 0.05) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.modern-detailsview .command-row td {
    background: rgba(255, 255, 255, 0.02) !important;
    padding: 1.25rem !important;
    text-align: center !important;
}

html[data-theme="light"] .modern-detailsview .command-row td {
    background: rgba(0, 0, 0, 0.01) !important;
}

/* Specific templates */
.details-footer {
    padding: 1.5rem !important;
    text-align: center;
    border-top: 1px solid var(--border-color);
}
    width: 100% !important;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.modern-gridview th {
    background: #1e293b !important; /* Dark Slate Header for Contrast */
    color: var(--primary) !important; /* Emerald Text */
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 0.5rem !important;
    border-bottom: 2px solid var(--border-color) !important;
    text-align: right !important;
}

html[data-theme="light"] .modern-gridview th {
    background: var(--primary) !important;
    color: var(--text-on-primary) !important;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1) !important;
}

.modern-gridview td {
    padding: 0.75rem 0.5rem !important;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
    vertical-align: middle;
    text-align: right !important;
}

/* Specific Alignment for Club and Form Headers/Cells */
.modern-gridview th:nth-child(2),
.modern-gridview td:nth-child(2),
.modern-gridview th:last-child,
.modern-gridview td:last-child {
    text-align: left !important;
}

.modern-gridview tr:last-child td {
    border-bottom: none;
}

.modern-gridview tr:hover td {
    background: rgba(255, 255, 255, 0.05) !important;
}

html[data-theme="light"] .modern-gridview tr:hover td {
    background: rgba(0, 0, 0, 0.03) !important;
}

/* League Table Specific Cell Styles */
.pos-cell {
    font-weight: 700;
    color: var(--text-muted);
    width: 40px !important;
    text-align: right !important;
}

.club-cell {
    font-weight: 600;
    text-align: left !important;
}

.num-cell {
    width: 35px !important;
    text-align: right !important;
}

.pts-cell {
    width: 45px !important;
    font-weight: 600;
    text-align: right !important;
}

.pa-cell {
    width: 45px !important;
    color: var(--danger);
    text-align: right !important;
}

.ap-cell {
    width: 55px !important;
    font-weight: 800;
    color: var(--primary) !important;
    background: rgba(16, 185, 129, 0.05) !important;
    text-align: right !important;
}

.micro-badge {
    object-fit: contain;
    border-radius: 4px;
}

/* Form Badges Styling */
.form-badges {
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: flex-start;
}

.badge-form {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
}

.badge-form-w { background-color: #10b981; } /* Emerald 500 */
.badge-form-d { background-color: #94a3b8; } /* Slate 400 */
.badge-form-l { background-color: #ef4444; } /* Red 500 */

.club-link {
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.club-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Home/Away Analysis Headers */
.home-header-bg { background-color: #065f46 !important; }
.away-header-bg { background-color: #1e40af !important; }
.home-cell-bg { background-color: rgba(16, 185, 129, 0.08) !important; }
.away-cell-bg { background-color: rgba(59, 130, 246, 0.08) !important; }


/* High Specificity Overrides for Headers */
.modern-gridview th.comp-header-row,
.comp-header-row, .comp-header-row td, .comp-header-row th {
    background: var(--bg-secondary-header) !important;
    color: var(--text-secondary-header) !important;
    font-weight: 700 !important;
    text-transform: none !important;
    font-size: 0.85rem !important;
    border-bottom: 1px solid var(--border-secondary-header) !important;
    padding: 0.5rem 1rem !important;
}

.modern-gridview th.date-header-row,
.date-header-row, .date-header-row td, .date-header-row th {
    background: #10b981 !important; /* Solid Emerald Green as requested */
    color: #ffffff !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    font-size: 0.9rem !important;
    padding: 0.6rem 1rem !important;
}

.expunged-caption {
    color: var(--danger) !important;
    font-size: 0.85rem;
    font-weight: 700;
    display: block;
    margin-bottom: 1rem;
    text-align: center;
}

/* ==========================================================================
   Administrative & specialized Components (Merged from admin-theme.css)
   ========================================================================== */

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--primary);
    border-radius: 50%;
    color: var(--primary);
    text-decoration: none !important;
    font-size: 1.2rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.icon-btn:hover {
    background: var(--primary);
    color: var(--text-on-primary);
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--secondary);
    color: var(--secondary);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: var(--secondary);
    color: white;
}

.modern-details {
    width: 100% !important;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--text-main) !important;
}

.modern-details tr {
    border-bottom: 1px solid var(--border-color);
}

.modern-details td, .modern-details th {
    padding: 1.25rem 1rem;
    background: transparent !important;
    border: none !important;
    color: var(--text-main) !important;
}

.modern-details .header-row {
    background: var(--primary) !important;
    color: white !important;
    font-weight: 700;
}

.modern-details .field-header {
    width: 200px;
    font-weight: 600;
    color: var(--text-muted) !important;
    font-size: 0.9rem;
}

.club-name-prominent {
    color: var(--primary) !important;
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    display: block;
    margin-bottom: 0.5rem;
}

.validation-summary {
    background-color: rgba(255, 107, 107, 0.1);
    border-left: 4px solid var(--danger);
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: var(--radius-md);
    color: var(--danger);
    font-size: 0.9rem;
}

.section-divider {
    background: var(--border-accent) !important;
    color: var(--primary) !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem !important;
}

.details-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.details-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.details-item label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.results-layout {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    align-items: flex-start;
}

.results-sidebar {
    flex: 0 0 350px;
    position: sticky;
    top: 2rem;
}

.results-main {
    flex: 1;
}

.fixture-card {
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.fixture-card:hover {
    border-color: var(--primary);
}

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

.fixture-body {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
    margin: 1.5rem 0;
}

.score-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--text-on-primary);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.score-input {
    width: 60px !important;
    text-align: center;
    font-size: 1.5rem !important;
    font-weight: 700;
}

.pen-input {
    width: 50px !important;
    text-align: center;
    font-size: 0.9rem !important;
    border-color: var(--secondary) !important;
}

/* Modern Calendar Styling */
.modern-calendar {
    border: none !important;
    background: transparent !important;
}

.calendar-title {
    background: transparent !important;
    color: var(--primary) !important;
    font-weight: 700 !important;
    padding: 10px !important;
}

.calendar-day-header {
    color: var(--text-muted) !important;
    font-size: 0.75rem !important;
    text-transform: uppercase;
    padding: 10px 0 !important;
}

.calendar-today {
    background: rgba(16, 185, 129, 0.1) !important;
    border-radius: 50%;
    color: var(--primary) !important;
}

.calendar-selected-day {
    background: var(--primary) !important;
    color: var(--text-on-primary) !important;
    border-radius: 50%;
}

.calendar-next-prev {
    color: var(--primary) !important;
}

.status-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

/* New Utility Classes */
.modern-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modern-badge.success {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.modern-badge.warning {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.modern-badge.danger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.section-divider {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--text-muted) !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.7rem !important;
    padding: 0.75rem 1rem !important;
    border-radius: 4px;
    margin: 1.5rem 0 0.75rem 0;
}

.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.modern-details .section-divider {
    grid-column: 1 / -1;
}

.club-name-prominent {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
}

/* Modern Button Base and Variants */
.modern-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--primary);
    color: white !important;
}

.modern-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    filter: brightness(1.1);
}

.modern-button:active {
    transform: translateY(0);
}

.modern-button.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main) !important;
}

.modern-button.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.modern-button.btn-danger {
    background: var(--danger);
    color: white;
}

.modern-button.btn-danger:hover {
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.modern-button.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.7rem;
}
