:root {
    --bg-deep: #0B1D26;
    --bg-card: #132D3A;
    --bg-card-light: #1A3A4A;
    --gold: #E8B931;
    --gold-light: #F5D76E;
    --text-primary: #F0EDE6;
    --text-secondary: #8FA3B0;
    --text-muted: #5A7080;
    --success: #4ADE80;
    --error: #F87171;
    --warning: #FBBF24;
    --info: #60A5FA;
    --divider: #1E3A4A;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-deep);
    color: var(--text-primary);
    min-height: 100vh;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }

/* Layout */
.layout { display: flex; min-height: 100vh; }
.sidebar {
    width: 240px; background: var(--bg-card);
    border-right: 1px solid var(--divider);
    padding: 24px 0; flex-shrink: 0;
}
.sidebar-logo {
    display: flex; align-items: center; gap: 10px;
    padding: 0 20px 24px; border-bottom: 1px solid var(--divider); margin-bottom: 16px;
}
.sidebar-logo-icon {
    width: 32px; height: 32px; background: var(--gold);
    border-radius: 8px; display: flex; align-items: center;
    justify-content: center; font-size: 18px; color: var(--bg-deep);
}
.sidebar-logo-text { font-size: 15px; font-weight: 600; }
.sidebar-nav { list-style: none; }
.sidebar-nav li a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 20px; font-size: 14px;
    color: var(--text-secondary); transition: all 0.2s;
}
.sidebar-nav li a:hover, .sidebar-nav li a.active {
    color: var(--text-primary); background: var(--bg-card-light);
    border-left: 3px solid var(--gold);
}
.sidebar-nav li a .icon { font-size: 18px; width: 20px; text-align: center; }
.sidebar-bottom { padding: 16px 20px; border-top: 1px solid var(--divider); margin-top: auto; }
.sidebar-user { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }

.content { flex: 1; padding: 24px 32px; overflow-y: auto; }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.page-title { font-size: 22px; font-weight: 600; }

/* Cards */
.card {
    background: var(--bg-card); border-radius: 12px;
    padding: 20px; margin-bottom: 16px;
}
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--bg-card); border-radius: 12px; padding: 20px; text-align: center; }
.stat-value { font-size: 32px; font-weight: 700; color: var(--gold); }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* Tables */
.table-container { background: var(--bg-card); border-radius: 12px; overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
th {
    text-align: left; padding: 12px 16px; font-size: 11px;
    font-weight: 600; color: var(--text-muted); text-transform: uppercase;
    letter-spacing: 0.5px; background: var(--bg-card-light);
    border-bottom: 1px solid var(--divider);
}
td { padding: 12px 16px; font-size: 14px; border-bottom: 1px solid var(--divider); vertical-align: top; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(232,185,49,0.03); }

.club-name { color: var(--gold); font-weight: 500; }
.badge {
    display: inline-block; padding: 2px 10px; border-radius: 10px;
    font-size: 11px; font-weight: 600;
}
.badge-info { background: rgba(96,165,250,0.15); color: var(--info); }
.badge-success { background: rgba(74,222,128,0.15); color: var(--success); }
.badge-warning { background: rgba(251,191,36,0.15); color: var(--warning); }
.badge-error { background: rgba(248,113,113,0.15); color: var(--error); }
.badge-muted { background: rgba(90,112,128,0.2); color: var(--text-muted); }
.date-text { color: var(--text-muted); font-size: 13px; white-space: nowrap; }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; }
input, select {
    width: 100%; padding: 10px 14px;
    background: var(--bg-card-light); border: 1px solid var(--divider);
    border-radius: 8px; color: var(--text-primary); font-size: 14px;
    outline: none; transition: border-color 0.2s;
}
input:focus, select:focus { border-color: var(--gold); }
select option { background: var(--bg-card); }

.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 20px; border: none; border-radius: 8px;
    font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.btn-primary { background: var(--gold); color: var(--bg-deep); }
.btn-primary:hover { background: var(--gold-light); }
.btn-outline { background: transparent; color: var(--gold); border: 1.5px solid var(--gold); }
.btn-outline:hover { background: rgba(232,185,49,0.1); }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-danger { background: var(--error); color: white; }
.btn-success { background: var(--success); color: var(--bg-deep); }
.btn-full { width: 100%; justify-content: center; }

/* Filters */
.filters { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.filter-input { max-width: 250px; }

/* Login */
.login-wrapper { display: flex; justify-content: center; align-items: center; min-height: 100vh; }
.login-card { width: 100%; max-width: 420px; background: var(--bg-card); border-radius: 16px; padding: 32px; }
.login-card h2 { margin-bottom: 8px; font-size: 20px; }
.login-card .subtitle { color: var(--text-secondary); font-size: 14px; margin-bottom: 24px; }
.error-msg { background: rgba(248,113,113,0.1); color: var(--error); padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 16px; }
.demo-code { background: rgba(74,222,128,0.1); color: var(--success); padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 16px; }

/* Pagination */
.pagination { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; }
.pagination-info { font-size: 13px; color: var(--text-muted); }

/* Responsive */
@media (max-width: 768px) {
    .layout { flex-direction: column; }
    .sidebar { width: 100%; flex-direction: row; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .content { padding: 16px; }
}
