/* MY CLUB V2 - STRICTLY MATCHING TOURNAMENT V2 / INDEX V2 */

/* Compat: variabili usate dal blocco campo ereditato da myclub.css,
   rimappate sui valori di styles_v2.css */
:root {
    --accent-cyan: var(--cyan);
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-muted: rgba(255, 255, 255, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
}

/* General overrides to ensure consistency */
.main-content {
    position: relative;
    z-index: 10;
    padding-top: 120px;
    padding-bottom: 60px;
}

/* La navbar e' flottante e cambia altezza al restringersi:
   finisce a 96px su desktop, 114px intorno ai 1024px e 132px
   sotto i 600px (logo + hamburger). Il padding segue quelle misure,
   altrimenti il titolo finisce sotto la navbar. */
@media (max-width: 1100px) {
    .main-content { padding-top: 140px; }
}
@media (max-width: 600px) {
    .main-content { padding-top: 155px; }
}

/* Container Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* La tabella carte ha 11 colonne e serve ~1100px: dentro il contenitore
   standard da 1200px con margini al 5% verrebbe tagliata. Da 1200px in su
   il contenitore si allarga e i margini laterali diventano fissi, cosi'
   su desktop si vedono tutte le colonne senza scorrimento. */
@media (min-width: 1200px) {
    .myclub-section .container {
        max-width: 1560px;
        padding: 0 24px;
    }
}

/* Titles */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-align: center;
}

/* ============================================
   PROFILE HEADER (card come .tournament-card)
   ============================================ */
.profile-header {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 10px;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-avatar,
.profile-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.4);
}

.profile-details h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 900;
    line-height: 1.1;
    color: white;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.profile-stats-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 8px 18px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 600;
}

.stat-badge .badge-icon {
    font-size: 1.1rem;
    color: #8b5cf6;
}

/* ============================================
   TAB SWITCHER (identico a .tournament-tabs)
   ============================================ */
.tab-switcher {
    display: flex;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    padding: 6px;
    gap: 0;
    margin: 40px auto;
    width: fit-content;
}

.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 100px;
    padding: 10px 24px;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: white;
}

.tab-btn.active {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.5);
    color: white;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

.tab-btn .material-symbols-outlined {
    font-size: 1.2rem;
}

/* ============================================
   BUTTONS (identici a tournament)
   ============================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #8b5cf6;
    color: white;
    padding: 12px 24px;
    border-radius: 100px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background: #7c3aed;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.btn-secondary,
.btn-success,
.btn-danger,
.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    padding: 12px 24px;
    border-radius: 100px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-secondary:hover,
.btn-success:hover,
.btn-danger:hover,
.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-success { border-color: rgba(16, 185, 129, 0.5); color: #10b981; }
.btn-danger  { border-color: rgba(239, 68, 68, 0.5);  color: #ef4444; }

/* ============================================
   FILTERS (campi come .form-group di tournament)
   ============================================ */
.filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.filter-input,
.filter-select {
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.filter-input {
    flex: 1;
    min-width: 220px;
}
.filter-input::placeholder { color: rgba(255, 255, 255, 0.4); }

.filter-select { cursor: pointer; }

.filter-input:focus,
.filter-select:focus {
    border-color: rgba(139, 92, 246, 0.5);
}

.filter-select option,
.filter-select optgroup {
    background: #0a0b10;
    color: white;
}

/* ============================================
   CARD LIST (wrapper come .leaderboard-table)
   ============================================ */
.card-list-wrapper {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px 12px;
    overflow-x: auto;
    transition: all 0.3s ease;
}
.card-list-wrapper:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

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

.card-list-table th {
    padding: 15px 8px;
    text-align: left;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    white-space: nowrap;
}

.card-list-table td {
    padding: 12px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    font-weight: 600;
    font-size: 1rem;
    vertical-align: middle;
}

.card-list-table tbody tr {
    transition: background 0.3s ease;
}
.card-list-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Tier strips - come oggi */
.card-list-table tbody tr.row-gold   td:first-child { box-shadow: inset 4px 0 0 #FFD700; }
.card-list-table tbody tr.row-silver td:first-child { box-shadow: inset 4px 0 0 #C0C0C0; }
.card-list-table tbody tr.row-bronze td:first-child { box-shadow: inset 4px 0 0 #CD7F32; }

.row-selected { background: rgba(139, 92, 246, 0.1); }

.th-select,
.td-select { width: 42px; text-align: center; }

.th-select input[type="checkbox"],
.td-select input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #8b5cf6;
    cursor: pointer;
}

.td-image { width: 56px; }

.player-img,
.player-img-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.4);
}

.td-rating {
    width: 56px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 900;
}

.tier-gold   { color: #FFD700; }
.tier-silver { color: #E0E0E0; }
.tier-bronze { color: #CD7F32; }

.td-name {
    font-weight: 700;
    color: white;
    font-size: 1.1rem;
    white-space: nowrap;
}

.td-position {
    width: 120px;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 700;
}

.altpos-text {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.75rem;
    font-weight: 600;
}

.td-club,
.td-nation {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
}

.td-type {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    /* i nomi tipo "PATH TO GLORY" andavano a capo 3 volte
       e alzavano tutta la riga */
    min-width: 118px;
    line-height: 1.25;
}

.td-value {
    color: #4ade80;
    font-weight: 700;
    white-space: nowrap;
}

.td-status { white-space: nowrap; }

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-right: 4px;
}
.status-badge .material-symbols-outlined { font-size: 0.9rem; }

.status-badge.lineup {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-badge.untradable {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.td-actions { width: 48px; text-align: right; }

.sell-row-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #ef4444;
    cursor: pointer;
    transition: all 0.3s ease;
}
.sell-row-btn:hover {
    background: rgba(239, 68, 68, 0.15);
}
.sell-row-btn .material-symbols-outlined { font-size: 1.1rem; }

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    padding: 12px 24px;
    border-radius: 100px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}
.pagination-btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.1); }
.pagination-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.pagination-info {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* ============================================
   LINEUP - pannello stats e barra azioni
   ============================================ */
.formation-label {
    text-align: center;
    margin-bottom: 1.5rem;
}

.formation-name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
}

.lineup-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.lineup-stats-panel {
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stats-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
}
.stats-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.stats-card h3 {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
    margin-bottom: 8px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}
.stat-row:last-child { border-bottom: none; }

.stat-row .stat-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 500;
}

.stat-row .stat-value {
    font-weight: 900;
    font-size: 1.2rem;
    color: white;
}
.stat-value.gold { color: #FFD700; }
.stat-value.coin-val { color: #4ade80; }

/* ============================================
   PITCH - blocco ripreso da myclub.css invariato
   ============================================ */
.pitch-wrapper {
    flex: 1;
    width: 100%;
    min-width: 280px;
    max-width: 700px;
    aspect-ratio: 0.7;
    /* Typical pitch ratio */
    background:
        repeating-linear-gradient(0deg,
            #2d4a22 0px,
            #2d4a22 40px,
            #335226 40px,
            #335226 80px);
    border-radius: 12px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.pitch {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Pitch Markings */
.pitch-outline {
    position: absolute;
    top: 3%;
    left: 3%;
    right: 3%;
    bottom: 3%;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.pitch-outline::after {
    /* Center line */
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    border-top: 2px solid rgba(255, 255, 255, 0.4);
}

.pitch-outline::before {
    /* Center circle */
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

/* Players on Pitch */
.pitch-player {
    position: absolute;
    width: 120px; /* Base width for cards increased even more */
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 5;
    transition: transform 0.2s;
}

.pitch-player:hover {
    transform: translate(-50%, -50%) scale(1.15);
    z-index: 10;
}

.pitch-player-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
}

.pitch-player-chem {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 30px;
    height: 30px;
    background: #1a1a2a;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
    z-index: 20;
}

/* Edit Mode Styling */
.pitch-player-edit {
    cursor: pointer;
    transition: transform 0.2s, filter 0.2s;
}
.pitch-player-edit:hover {
    transform: translate(-50%, -50%) scale(1.1);
    filter: brightness(1.2) drop-shadow(0 0 10px rgba(0, 255, 200, 0.5));
}
.pitch-player-empty {
    width: 60px;
    height: 85px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.2s;
}
.pitch-player-edit:hover .pitch-player-empty {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.6);
    color: white;
}
.empty-plus {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}
.empty-role {
    font-size: 0.9rem;
    font-weight: bold;
}
.position-badge-perfect {
    background: #28a745;
    color: white;
    box-shadow: 0 0 8px rgba(40, 167, 69, 0.5);
}

.chem-diamond {
    position: absolute;
    width: 7px;
    height: 7px;
    transform: translate(-50%, -50%) rotate(45deg);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-sizing: border-box;
}

.chem-diamond:nth-child(1) {
    top: calc(50% - 4px);
    left: 50%;
}

.chem-diamond:nth-child(2) {
    top: calc(50% + 4px);
    left: calc(50% - 6px);
}

.chem-diamond:nth-child(3) {
    top: calc(50% + 4px);
    left: calc(50% + 6px);
}

.chem-blue { background: #0080FF; }
.chem-yellow { background: #FFD700; }
.chem-red { background: #FF0000; }
.chem-inactive { background: rgba(50, 50, 50, 0.7); }

.pitch-player-card {
    background: rgba(20, 20, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 4px;
    text-align: center;
    width: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s;
}

.pitch-player-card:hover {
    transform: scale(1.1);
    z-index: 10;
    border-color: var(--accent-cyan);
}

.pitch-player-rating {
    font-size: 1.1rem;
    font-weight: 800;
}

.pitch-player-name {
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
    margin: 2px 0;
}

.pitch-player-role {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
}

/* Empty State on Pitch */
.pitch-player-empty {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.empty-plus {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.5);
}

.empty-role {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 700;
    margin-top: -4px;
}

/* Stats Panel */

/* ============================================
   MODALS (identici a tournament)
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.modal.show,
.modal.active { display: flex; }

.modal-content {
    position: relative;
    background: #0a0b10;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h2,
.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}

.modal-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
}
.modal-close:hover { color: white; }

.modal-body { padding: 0; }

/* Login modal (auth.js) */
.discord-login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}
.discord-login-text { color: rgba(255, 255, 255, 0.6); }

.btn-discord {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: #5865F2;
    color: white;
    padding: 14px 24px;
    border-radius: 100px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-discord:hover { background: #4752c4; }

/* ============================================
   SELL MODAL
   ============================================ */
.sell-modal-content { max-width: 480px; }

.sell-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}
.sell-modal-header .sell-icon {
    font-size: 1.8rem;
    color: #8b5cf6;
}
.sell-modal-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}

.sell-player-info {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
}
.sell-player-rating {
    font-size: 2rem;
    font-weight: 900;
    color: #8b5cf6;
    min-width: 60px;
    text-align: center;
}
.sell-player-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
}
.sell-player-position {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sell-bulk-info {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
}
.sell-bulk-count {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
}
.sell-bulk-count .material-symbols-outlined { color: #8b5cf6; }

.sell-lineup-warning {
    background: rgba(234, 179, 8, 0.05);
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
}
.sell-lineup-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #eab308;
    font-weight: 700;
    margin-bottom: 8px;
}
.sell-lineup-list {
    list-style: none;
    padding-left: 28px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}
.sell-lineup-note {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    margin-top: 8px;
}

.sell-value-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 16px;
}
.sell-value-label {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}
.sell-value-amount {
    font-size: 1.5rem;
    font-weight: 900;
    color: #4ade80;
}

.sell-warning {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    margin-bottom: 24px;
}

.sell-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}
.sell-btn-cancel {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    padding: 12px 24px;
    border-radius: 100px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}
.sell-btn-cancel:hover { background: rgba(255, 255, 255, 0.1); }

.sell-btn-confirm {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ef4444;
    color: white;
    padding: 12px 24px;
    border-radius: 100px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.sell-btn-confirm:hover:not(:disabled) {
    background: #dc2626;
    transform: scale(1.05);
}
.sell-btn-confirm:disabled { opacity: 0.6; cursor: not-allowed; }

/* ============================================
   BULK SELL BAR
   ============================================ */
.bulk-sell-bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    display: flex;
    align-items: center;
    gap: 24px;
    background: #0a0b10;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 14px 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    z-index: 500;
    transition: transform 0.3s ease;
}
.bulk-sell-bar.visible { transform: translateX(-50%) translateY(0); }

.bulk-sell-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    font-size: 0.9rem;
}
.bulk-sell-info .material-symbols-outlined {
    font-size: 1.2rem;
    color: #8b5cf6;
}
.bulk-sell-info #bulkSellCount { color: white; font-weight: 900; }
.bulk-sell-divider { color: rgba(255, 255, 255, 0.15); }
.bulk-sell-coins { color: #4ade80; font-weight: 900; }

.bulk-sell-actions { display: flex; gap: 10px; }

.bulk-deselect-btn {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    padding: 10px 20px;
    border-radius: 100px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}
.bulk-deselect-btn:hover { background: rgba(255, 255, 255, 0.1); }

.bulk-sell-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #8b5cf6;
    color: white;
    padding: 10px 20px;
    border-radius: 100px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.bulk-sell-btn:hover {
    background: #7c3aed;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

/* ============================================
   TOAST / LOADING / EMPTY
   ============================================ */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #0a0b10;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 3px solid #8b5cf6;
    border-radius: 12px;
    padding: 16px 24px;
    color: white;
    font-weight: 600;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.3s ease;
}
.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}
.toast-notification.success { border-left-color: #10b981; }
.toast-notification.error   { border-left-color: #ef4444; }

.loading-state,
.empty-state,
.no-lineup {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.4);
}
.empty-state h3,
.no-lineup h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
    border: 3px solid rgba(255, 255, 255, 0.05);
    border-top-color: #8b5cf6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
.loading-spinner-small {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================
   LOGIN REQUIRED (stato mostrato da myclub.js
   quando l'utente non e' autenticato: oggi non
   ha nessuno stile, riceve quello dei pannelli)
   ============================================ */
.login-required {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 60px 30px;
    text-align: center;
}
.login-required h2 {
    font-size: 1.8rem;
    font-weight: 900;
    color: white;
    margin-bottom: 12px;
}
.login-required p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 30px;
}

.btn-discord-login {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #5865F2;
    color: white;
    padding: 14px 28px;
    border-radius: 100px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}
.btn-discord-login:hover {
    background: #4752c4;
    transform: scale(1.05);
}

/* Checkbox di selezione riga */
.card-select-cb {
    width: 16px;
    height: 16px;
    accent-color: #8b5cf6;
    cursor: pointer;
}

/* Utilities */
.admin-only { display: none; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .lineup-stats-panel { width: 100%; }
}

@media (max-width: 768px) {
    .profile-header { padding: 20px; }
    .profile-info { flex-direction: column; text-align: center; }
    .profile-stats-badges { justify-content: center; }

    .tab-switcher { width: 100%; }
    .tab-btn { flex: 1; justify-content: center; padding: 10px 12px; font-size: 0.85rem; }

    .filters-bar { flex-direction: column; }
    .filter-input, .filter-select { width: 100%; }

    .card-list-wrapper { padding: 10px; }
    .card-list-table th,
    .card-list-table td { padding: 10px 8px; font-size: 0.85rem; }
    .td-rating { font-size: 1.2rem; width: 50px; }
    .td-name { font-size: 0.95rem; }
    .player-img, .player-img-placeholder { width: 36px; height: 36px; }
    .th-club, .td-club,
    .th-nation, .td-nation,
    .th-type, .td-type { display: none; }

    .bulk-sell-bar {
        width: calc(100% - 24px);
        flex-direction: column;
        gap: 12px;
        border-radius: 20px;
        padding: 16px;
    }
    .bulk-sell-actions { width: 100%; }
    .bulk-deselect-btn, .bulk-sell-btn { flex: 1; justify-content: center; }

    .toast-notification { right: 12px; left: 12px; bottom: 12px; }

    .modal-content { padding: 24px; }
}
