/* ===== CSS Variables ===== */
:root {
    /* Light mode colors */
    --background: hsl(0, 0%, 98%);
    --foreground: hsl(0, 0%, 10%);
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(0, 0%, 10%);
    --primary: hsl(0, 85%, 45%);
    --primary-foreground: hsl(0, 0%, 100%);
    --secondary: hsl(0, 0%, 20%);
    --secondary-foreground: hsl(0, 0%, 98%);
    --muted: hsl(0, 0%, 92%);
    --muted-foreground: hsl(0, 0%, 40%);
    --accent: hsl(0, 100%, 50%);
    --accent-foreground: hsl(0, 0%, 100%);
    --destructive: hsl(0, 84.2%, 60.2%);
    --border: hsl(0, 0%, 85%);
    --input: hsl(0, 0%, 85%);
    --ring: hsl(0, 85%, 45%);
}

.dark {
    /* Dark mode colors */
    --background: hsl(0, 0%, 5%);
    --foreground: hsl(0, 0%, 95%);
    --card: hsl(0, 0%, 8%);
    --card-foreground: hsl(0, 0%, 95%);
    --primary: hsl(0, 85%, 55%);
    --primary-foreground: hsl(0, 0%, 100%);
    --secondary: hsl(0, 0%, 15%);
    --secondary-foreground: hsl(0, 0%, 95%);
    --muted: hsl(0, 0%, 12%);
    --muted-foreground: hsl(0, 0%, 60%);
    --accent: hsl(0, 100%, 60%);
    --accent-foreground: hsl(0, 0%, 100%);
    --destructive: hsl(0, 62.8%, 30.6%);
    --border: hsl(0, 0%, 18%);
    --input: hsl(0, 0%, 18%);
    --ring: hsl(0, 85%, 55%);
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease;
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ===== Header ===== */
.header {
    background: var(--background);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 100;
    opacity: 0.95;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--foreground);
}

.shield-icon {
    width: 2rem;
    height: 2rem;
    color: var(--primary);
}

.logo-text {
    font-weight: bold;
    font-size: 1.125rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--foreground);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.875rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link-desktop {
    display: none;
}

.theme-toggle {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.625rem;
    cursor: pointer;
    position: relative;
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    background: var(--muted);
    border-color: var(--primary);
}

/* Header Actions Container */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-action-btn {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.625rem;
    cursor: pointer;
    position: relative;
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: var(--foreground);
    text-decoration: none;
}

.header-action-btn:hover {
    background: var(--muted);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.header-action-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

.sun-icon,
.moon-icon {
    width: 1rem;
    height: 1rem;
    position: absolute;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.dark .sun-icon {
    transform: rotate(-90deg);
    opacity: 0;
}

.dark .moon-icon {
    transform: rotate(0deg);
    opacity: 1;
}

body:not(.dark) .sun-icon {
    transform: rotate(0deg);
    opacity: 1;
}

body:not(.dark) .moon-icon {
    transform: rotate(90deg);
    opacity: 0;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 0.375rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

.hamburger-line {
    width: 1.5rem;
    height: 2px;
    background: var(--foreground);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    padding: 4rem 0 6rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--background), var(--secondary));
    opacity: 0.3;
}

.hero-content {
    position: relative;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 3rem;
    letter-spacing: 0.05em;
    animation: fadeIn 1s ease;
}

.hero-ball {
    position: relative;
    width: 12rem;
    height: 12rem;
    margin: 0 auto 3rem;
    animation: scaleIn 1s ease;
}

.ball-outer {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.ball-middle {
    position: absolute;
    inset: 0.5rem;
    background: var(--secondary);
    border-radius: 50%;
}

.ball-inner {
    position: absolute;
    inset: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ball-center-outer {
    width: 4rem;
    height: 4rem;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ball-center {
    width: 2rem;
    height: 2rem;
    background: var(--primary);
    border-radius: 50%;
}

.ball-pattern {
    position: absolute;
    inset: 1rem;
    color: var(--secondary);
    opacity: 0.6;
}

.btn-hero {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.75rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.btn-hero:hover {
    background: var(--primary);
    color: var(--primary-foreground);
    transform: scale(1.05);
}

/* ===== Latest Matches Section ===== */
.latest-matches {
    padding: 4rem 0;
    background: var(--secondary);
    opacity: 0.3;
}

.section-title {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 2rem;
    text-align: left;
}

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

.match-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.match-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 16px rgba(255, 0, 0, 0.2);
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.team {
    flex: 1;
    text-align: center;
    font-weight: 500;
    color: var(--foreground);
}

.score {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.score-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

.score-separator {
    color: var(--muted-foreground);
}

.vs {
    color: var(--muted-foreground);
    font-weight: 600;
}

/* ===== League Table Section ===== */
.league-table {
    padding: 4rem 0;
}

.table-container {
    overflow-x: auto;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    
    /* Custom scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--muted);
}

/* Webkit browsers (Chrome, Safari, Edge) */
.table-container::-webkit-scrollbar {
    height: 8px;
}

.table-container::-webkit-scrollbar-track {
    background: var(--muted);
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table thead {
    background: var(--secondary);
}

.table th {
    padding: 0.75rem 1rem;
    text-align: left;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
}

.table th:not(:nth-child(2)) {
    text-align: center;
}

.table td {
    padding: 1rem;
    border-top: 1px solid var(--border);
    color: var(--muted-foreground);
}

.table tbody tr {
    transition: background 0.3s ease;
}

.table tbody tr:hover {
    background: var(--muted);
}

.table .position {
    color: var(--primary);
    font-weight: 600;
}

.table .team-name {
    font-weight: 500;
    color: var(--foreground);
}

.table .points {
    color: var(--primary);
    font-weight: bold;
    text-align: center;
}

.hide-mobile {
    display: none;
}

/* ===== Page Section ===== */
.page-section {
    padding: 4rem 0;
    min-height: calc(100vh - 4rem);
}

.page-title {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 2rem;
    text-align: center;
}

/* ===== Card Component ===== */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.card-title {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.card-description {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.card-content {
    padding: 1.5rem;
}

/* ===== Tabs Component ===== */
.tabs {
    margin-top: 2rem;
}

.tabs-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    background: var(--muted);
    padding: 0.25rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.tabs-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.tab-trigger {
    background: transparent;
    border: none;
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--foreground);
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.tab-trigger:hover {
    background: var(--card);
}

.tab-trigger.active {
    background: var(--primary);
    color: var(--primary-foreground);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* ===== Fixture Cards ===== */
.fixture-card {
    background: var(--muted);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

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

.match-time {
    text-align: center;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    margin-top: 0.75rem;
}

.stage-label {
    text-align: center;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

/* ===== Champions League Specific ===== */
.format-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.format-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.format-text {
    color: var(--muted-foreground);
}

.highlight {
    color: var(--primary);
    font-weight: 600;
}

.points-rule {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.win {
    color: #4ade80;
    font-weight: 600;
}

.draw {
    color: #facc15;
    font-weight: 600;
}

.loss {
    color: #ef4444;
    font-weight: 600;
}

.cl-table .qualified-seeded {
    background: rgba(34, 197, 94, 0.1);
}

.cl-table .qualified-unseeded {
    background: rgba(234, 179, 8, 0.1);
}

.cl-table .eliminated {
    background: rgba(239, 68, 68, 0.1);
}

.legend {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.legend-box {
    width: 1rem;
    height: 1rem;
    border-radius: 0.25rem;
}

.legend-box.seeded {
    background: rgba(34, 197, 94, 0.4);
    border: 1px solid #22c55e;
}

.legend-box.unseeded {
    background: rgba(234, 179, 8, 0.4);
    border: 1px solid #eab308;
}

.legend-box.eliminated-box {
    background: rgba(239, 68, 68, 0.4);
    border: 1px solid #ef4444;
}

.knockout-rules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.rule-item h3 {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.rule-item p {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.bracket-match {
    background: var(--muted);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.bracket-team {
    flex: 1;
    padding: 0.75rem;
    border-radius: 0.375rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.seeded-team {
    background: rgba(34, 197, 94, 0.1);
}

.unseeded-team {
    background: rgba(234, 179, 8, 0.1);
}

.seed {
    font-size: 0.75rem;
    font-weight: 600;
}

.seeded-team .seed {
    color: #4ade80;
}

.unseeded-team .seed {
    color: #facc15;
}

.team-name-bracket {
    font-weight: 500;
    color: var(--foreground);
}

/* ===== Admin Page ===== */
.admin-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border);
}

.admin-title {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.admin-subtitle {
    color: var(--muted-foreground);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.admin-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.admin-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(255, 0, 0, 0.15);
    transform: translateY(-4px);
}

.admin-card .card-header {
    background: linear-gradient(135deg, var(--muted) 0%, var(--card) 100%);
    padding: 1.75rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.admin-card .card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.admin-card .card-description {
    font-size: 0.875rem;
    line-height: 1.4;
}

.admin-card .card-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
    flex-grow: 1;
}

/* ===== Buttons ===== */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 0.875rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--primary);
    color: var(--primary-foreground);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: var(--accent);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--secondary-foreground);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    opacity: 0.9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--foreground);
}

.btn-outline:hover {
    background: var(--muted);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-destructive {
    background: var(--destructive);
    color: var(--primary-foreground);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-destructive:hover {
    opacity: 0.9;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    transform: translateY(-2px);
}

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1000;
}

.modal-overlay.active {
    display: block;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--card);
    border-radius: 0.5rem;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1001;
    display: none;
}

.modal.active {
    display: block;
    animation: scaleIn 0.3s ease;
}

.modal-content {
    display: flex;
    flex-direction: column;
}

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

.modal-header h2 {
    color: var(--primary);
    font-size: 1.5rem;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--muted-foreground);
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.modal-close:hover {
    color: var(--foreground);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.modal-footer .btn {
    width: auto;
}

/* ===== Form Elements ===== */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--foreground);
    font-weight: 500;
    font-size: 0.875rem;
}

.form-input {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    background: var(--background);
    color: var(--foreground);
    font-size: 0.875rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.1);
}

/* ===== Toast Notification ===== */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.toast-content strong {
    display: block;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.toast-content p {
    color: var(--foreground);
    margin: 0;
}

/* ===== Account / Profile Page ===== */
.account-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.profile-summary-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.profile-avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.avatar-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

.avatar-initial {
    font-size: 3rem;
    font-weight: bold;
    color: white;
}

.profile-info {
    text-align: center;
    width: 100%;
}

.profile-name {
    font-size: 1.75rem;
    font-weight: bold;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.profile-email {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.profile-form-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Platform Selector */
.platform-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.platform-option {
    cursor: pointer;
}

.platform-option input[type="radio"] {
    display: none;
}

.platform-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    background: var(--card);
    transition: all 0.3s ease;
}

.platform-option input[type="radio"]:checked + .platform-card {
    border-color: var(--primary);
    background: var(--muted);
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1);
}

.platform-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.platform-icon {
    font-size: 2rem;
}

.platform-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--foreground);
    text-align: center;
}

/* Form Elements */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: background 0.3s ease;
}

.checkbox-label:hover {
    background: var(--muted);
}

.checkbox-label input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    cursor: pointer;
    accent-color: var(--primary);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1rem;
}

.form-actions .btn {
    width: auto;
    min-width: 150px;
}

/* Football Pitch Position Selector */
.position-selector-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.football-pitch {
    position: relative;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 2/3;
    margin: 0 auto;
    background: linear-gradient(180deg, #2d5016 0%, #1e3a0f 100%);
    border: 3px solid var(--border);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Pitch markings */
.pitch-half-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.6);
}

.pitch-center-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
}

.pitch-penalty-box {
    position: absolute;
    left: 20%;
    width: 60%;
    height: 18%;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.penalty-box-top {
    top: 0;
    border-top: none;
}

.penalty-box-bottom {
    bottom: 0;
    border-bottom: none;
}

.pitch-six-yard-box {
    position: absolute;
    left: 35%;
    width: 30%;
    height: 8%;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.six-yard-top {
    top: 0;
    border-top: none;
}

.six-yard-bottom {
    bottom: 0;
    border-bottom: none;
}

/* Position Buttons */
.position-btn {
    position: absolute;
    width: 50px;
    height: 50px;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    border: 3px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: bold;
    color: #1a3d0a;
    font-size: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.position-btn:hover {
    transform: translate(-50%, -50%) scale(1.15);
    border-color: var(--primary);
    background: white;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
}

.position-btn.selected {
    background: var(--primary);
    border-color: var(--accent);
    color: white;
    box-shadow: 0 4px 16px rgba(255, 0, 0, 0.6);
}

.position-btn.selected:hover {
    transform: translate(-50%, -50%) scale(1.15);
}

.position-label {
    font-weight: 700;
    display: inline;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
}

/* Selected Positions Display */
.selected-positions {
    text-align: center;
}

.selected-positions h3 {
    color: var(--foreground);
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.position-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    min-height: 50px;
    align-items: center;
}

.position-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: white;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease;
}

.position-badge-remove {
    cursor: pointer;
    font-size: 1.125rem;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.position-badge-remove:hover {
    opacity: 1;
}

.empty-state {
    color: var(--muted-foreground);
    font-style: italic;
    font-size: 0.875rem;
}

/* Player Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--muted);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat-box:hover {
    background: var(--card);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    font-size: 2rem;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background);
    border-radius: 50%;
    flex-shrink: 0;
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-box .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stat-box .stat-label {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.025em;
}

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-box {
        padding: 1rem;
    }
    
    .stat-icon {
        font-size: 1.5rem;
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .stat-box .stat-value {
        font-size: 1.5rem;
    }
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

/* ===== Responsive Design ===== */
@media (min-width: 640px) {
    .nav-link-desktop {
        display: inline;
    }

    .logo-text {
        display: inline;
    }

    .hide-mobile {
        display: table-cell;
    }

    .hero-title {
        font-size: 4rem;
    }

    .hero-ball {
        width: 16rem;
        height: 16rem;
    }

    .ball-center-outer {
        width: 5rem;
        height: 5rem;
    }

    .ball-center {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .admin-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (min-width: 768px) {
    .nav-menu {
        gap: 2rem;
    }

    .section-title {
        text-align: left;
    }

    .page-title {
        font-size: 3.5rem;
    }

    .admin-title {
        font-size: 4rem;
    }
    
    .admin-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .account-layout {
        grid-template-columns: 300px 1fr;
    }
    
    .profile-summary-card {
        position: sticky;
        top: 5rem;
        align-self: start;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4.5rem;
    }

    .tabs-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .tabs-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .admin-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .admin-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1400px;
    }
}

/* ===== Recruitment Page Styles ===== */
.recruitment-header,
.management-header {
    text-align: center;
    margin-bottom: 3rem;
}

.recruitment-subtitle,
.management-subtitle {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    margin-top: 0.75rem;
}

.listing-cta {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    margin-bottom: 2rem;
}

.listing-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.listing-cta-text h2 {
    color: white;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.listing-cta-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.player-listings {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.player-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.player-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.player-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.player-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.player-info h3 {
    font-size: 1.25rem;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.player-gamertag {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.player-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.player-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.badge-position {
    background: var(--primary);
    color: white;
}

.badge-platform {
    background: var(--muted);
    color: var(--muted-foreground);
}

.badge-experience {
    background: var(--secondary);
    color: var(--secondary-foreground);
}

.player-bio {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.player-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

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

.detail-label {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    text-transform: uppercase;
    font-weight: 600;
}

.detail-value {
    color: var(--foreground);
    font-size: 0.875rem;
}

.player-availability {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.availability-tag {
    padding: 0.125rem 0.5rem;
    background: var(--muted);
    border-radius: 8px;
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.player-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.position-quick-select {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.position-quick-btn {
    padding: 0.5rem 1rem;
    background: var(--muted);
    color: var(--foreground);
    border: 2px solid var(--border);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.position-quick-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.05);
}

.position-quick-btn.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.empty-state-large {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state-large h3 {
    font-size: 1.5rem;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.empty-state-large p {
    color: var(--muted-foreground);
    font-size: 1rem;
}

/* ===== Management Page Styles ===== */
.club-selector-card {
    background: linear-gradient(135deg, var(--card), var(--muted));
    border: 2px solid var(--border);
}

.club-header-card {
    background: linear-gradient(135deg, var(--card), var(--muted));
    border: 2px solid var(--primary);
}

.club-header-layout {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.club-header-info {
    flex: 1;
}

.club-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.club-name-display {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.club-note {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    font-style: italic;
}

.club-selector-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.club-selector-info {
    flex: 1;
    min-width: 250px;
}

.club-selector-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.75rem;
}

.club-select-input {
    font-size: 1.125rem;
    font-weight: 600;
    padding: 0.875rem 1rem;
}

.club-badge-display {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card);
    border: 3px solid var(--primary);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.badge-placeholder {
    font-size: 3rem;
}

.team-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--muted);
    border-radius: 12px;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.stat-note {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    font-style: italic;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.color-picker-group {
    display: flex;
    gap: 1rem;
}

.color-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.color-input-wrapper label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.color-input {
    width: 80px;
    height: 50px;
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
}

.squad-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.squad-player-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.25rem;
    background: var(--muted);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.squad-player-card:hover {
    background: var(--card);
    border-color: var(--primary);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.squad-player-number {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 50%;
    flex-shrink: 0;
}

.squad-player-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.squad-player-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.captain-badge {
    background: #fbbf24;
    color: #000;
    padding: 0.125rem 0.5rem;
    border-radius: 6px;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
}

.squad-player-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.squad-player-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
}

/* Release Button Styling */
.btn-release {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--destructive);
    color: var(--destructive);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-release:hover {
    background: var(--destructive);
    color: white;
    transform: translateX(-2px);
}

/* Invite Player Section */
.invite-player-section {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    margin-top: 2rem;
}

.invite-player-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: end;
}

.invite-player-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.invite-player-field .form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
}

.invite-submit-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    padding: 0.75rem 1.5rem;
}

.invite-message {
    margin-top: 1rem;
    padding: 0.875rem 1rem;
    border-radius: 0.5rem;
    display: none;
    font-size: 0.875rem;
}

.invite-message:not(:empty) {
    display: block;
}

.btn-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 8px;
    font-size: 1.125rem;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.quick-action-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.quick-action-content {
    text-align: center;
    padding: 2rem 1.5rem;
}

.quick-action-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.quick-action-content h3 {
    font-size: 1.25rem;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.quick-action-content p {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-active {
    background: #dcfce7;
    color: #166534;
}

.dark .status-active {
    background: #14532d;
    color: #86efac;
}

.status-injured {
    background: #fee2e2;
    color: #991b1b;
}

.dark .status-injured {
    background: #7f1d1d;
    color: #fca5a5;
}

.status-suspended {
    background: #fef3c7;
    color: #92400e;
}

.dark .status-suspended {
    background: #78350f;
    color: #fde68a;
}

.status-inactive {
    background: var(--muted);
    color: var(--muted-foreground);
}

/* Modal Sizes */
.modal-large {
    width: 95%;
    max-width: 700px;
}

@media (max-width: 768px) {
    .listing-cta-content {
        text-align: center;
        flex-direction: column;
    }
    
    .club-selector-layout {
        flex-direction: column;
        text-align: center;
    }
    
    .club-header-layout {
        flex-direction: column;
        text-align: center;
    }
    
    .squad-player-card {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .squad-player-actions {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .btn-release {
        flex: 0 0 auto;
    }
    
    .invite-player-form {
        grid-template-columns: 1fr;
    }
    
    .invite-submit-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== Match Management Styles ===== */
.match-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

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

.match-time {
    font-weight: 600;
    color: var(--primary);
    font-size: 1.1rem;
}

.match-teams {
    font-weight: 600;
    font-size: 1.1rem;
}

.match-body {
    margin-bottom: 1rem;
}

.lineup-status {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.lineup-status.success {
    background: rgba(34, 197, 94, 0.1);
    color: rgb(34, 197, 94);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.lineup-status.pending {
    background: rgba(251, 191, 36, 0.1);
    color: rgb(251, 191, 36);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.match-result {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    text-align: center;
    padding: 0.75rem;
    background: var(--muted);
    border-radius: 6px;
    margin-top: 0.5rem;
}

.match-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.lineup-positions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.lineup-position label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.result-match-info {
    background: var(--muted);
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .match-actions {
        flex-direction: column;
    }
    
    .match-actions button {
        width: 100%;
    }
    
    .lineup-positions-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Lineup List (Vertical Layout) ===== */
.lineup-list,
.lineup-view-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    margin: 0 auto;
}

.lineup-item,
.lineup-view-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.lineup-item.any-item,
.lineup-view-item.any-item {
    background: rgba(255, 200, 0, 0.1);
    border: 2px solid rgba(255, 200, 0, 0.5);
    margin-top: 1rem;
}

.lineup-position-label {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.875rem;
    min-width: 70px;
    text-align: center;
    flex-shrink: 0;
}

.lineup-position-label.any-label {
    background: rgba(255, 200, 0, 0.9);
    color: #1a3d0a;
}

.lineup-select {
    flex: 1;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--background);
    color: var(--foreground);
    font-size: 0.875rem;
}

.lineup-player-display {
    flex: 1;
    padding: 0.625rem 0.75rem;
    background: var(--muted);
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
}

/* Mobile responsive for lineup lists */
@media (max-width: 768px) {
    .lineup-list,
    .lineup-view-list {
        max-width: 100%;
    }
    
    .lineup-item,
    .lineup-view-item {
        padding: 0.5rem 0.75rem;
        gap: 0.75rem;
    }
    
    .lineup-position-label {
        min-width: 60px;
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .lineup-select,
    .lineup-player-display {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
}

/* ===== Mobile Header Navigation ===== */
@media (max-width: 768px) {
    /* Hide regular nav menu on mobile */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--background);
        border-left: 1px solid var(--border);
        padding: 5rem 1.5rem 2rem;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        transition: right 0.3s ease;
        z-index: 100;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
        box-shadow: -4px 0 12px rgba(0, 0, 0, 0.2);
    }
    
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Stack nav links vertically */
    .nav-link {
        padding: 0.875rem 1rem;
        border-radius: 8px;
        font-size: 1rem;
        transition: all 0.2s ease;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background: var(--muted);
    }
    
    /* Header actions in mobile menu */
    .header-actions {
        margin-top: auto;
        padding-top: 1.5rem;
        border-top: 1px solid var(--border);
        justify-content: center;
    }
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 99;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}
