/* SSB Tamalanrea - Modern Glassmorphism Design System */
:root {
    --bg-dark: #090d16;
    --bg-card: rgba(26, 35, 50, 0.75);
    --bg-card-hover: rgba(35, 47, 68, 0.85);
    --border-glass: rgba(255, 255, 255, 0.1);
    --border-focus: rgba(99, 102, 241, 0.5);
    
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --secondary: #a855f7;
    --cyan: #06b6d4;
    --emerald: #10b981;
    --amber: #f59e0b;
    --rose: #f43f5e;
    
    --text-heading: #f8fafc;
    --text-body: #cbd5e1;
    --text-muted: #64748b;
    
    --sidebar-width: 260px;
    --topbar-height: 70px;
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-glass: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(at 10% 10%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
        radial-gradient(at 90% 90%, rgba(168, 85, 247, 0.12) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-body);
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
}

/* Sidebar Styles */
.sidebar {
    width: var(--sidebar-width);
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-glass);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1rem;
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.5rem 0.75rem 1.5rem 0.75rem;
    border-bottom: 1px solid var(--border-glass);
    margin-bottom: 1.5rem;
}

.brand-logo {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    font-size: 1.25rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.brand-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.2;
}

.brand-title span {
    font-size: 0.75rem;
    color: var(--primary);
    display: block;
    font-weight: 600;
    letter-spacing: 1px;
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.85rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.25) 0%, rgba(99, 102, 241, 0.05) 100%);
    border-left: 3px solid var(--primary);
}

.nav-link svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.user-footer {
    padding-top: 1rem;
    border-top: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--cyan);
}

.user-info {
    font-size: 0.85rem;
    line-height: 1.3;
}

.user-info strong {
    color: var(--text-heading);
    display: block;
}

/* Main Content Area */
.main-wrapper {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.topbar {
    height: var(--topbar-height);
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 90;
}

.page-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-heading);
}

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

.content-area {
    padding: 2rem;
    flex: 1;
}

/* Glass Cards & Grid Layout */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

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

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-glass);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.2s, border-color 0.2s;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.4);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-heading);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
}

.stat-icon svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-glass);
    margin-bottom: 2rem;
}

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

.card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-heading);
}

/* UI Badges & Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.7rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-heading);
    border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.badge-primary { background: rgba(99, 102, 241, 0.2); color: #818cf8; border: 1px solid rgba(99, 102, 241, 0.3); }
.badge-emerald { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-amber   { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-rose    { background: rgba(244, 63, 94, 0.2);  color: #f87171; border: 1px solid rgba(244, 63, 94, 0.3); }
.badge-cyan    { background: rgba(6, 182, 212, 0.2);  color: #22d3ee; border: 1px solid rgba(6, 182, 212, 0.3); }

/* Tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.data-table th {
    background: rgba(15, 23, 42, 0.8);
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 1rem;
    border-bottom: 1px solid var(--border-glass);
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-glass);
    vertical-align: middle;
    color: var(--text-body);
}

.data-table tbody tr {
    transition: background 0.2s;
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Forms */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-heading);
}

.form-control {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    color: var(--text-heading);
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Progress & Attribute Bar */
.skill-bar {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    height: 10px;
    width: 100%;
    overflow: hidden;
    margin-top: 6px;
}

.skill-fill {
    height: 100%;
    border-radius: 9999px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

/* Athlete Profile Avatar Pill */
.athlete-pill {
    display: flex;
    align-items: center;
    gap: 12px;
}

.athlete-thumb {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

/* ID Card Styles for Print */
.id-card {
    width: 360px;
    background: linear-gradient(145deg, #0f172a 0%, #1e1b4b 100%);
    border: 2px solid var(--primary);
    border-radius: 20px;
    padding: 1.5rem;
    color: #fff;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    text-align: center;
    position: relative;
    margin: 0 auto;
}

.id-card-header {
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.id-card-photo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
    margin-bottom: 0.75rem;
}

/* Mobile Menu Toggle Button & Overlay Styles */
.btn-menu-toggle {
    display: none;
    color: #818cf8 !important;
    border-color: rgba(99, 102, 241, 0.35) !important;
    background: rgba(99, 102, 241, 0.1) !important;
    transition: all 0.25s ease;
}

.btn-menu-toggle:hover, .btn-menu-toggle:active {
    background: rgba(99, 102, 241, 0.25) !important;
    color: #a5b4fc !important;
    border-color: rgba(99, 102, 241, 0.6) !important;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25);
}

.sidebar-close-btn {
    display: none;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #94a3b8;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sidebar-close-btn:hover {
    background: rgba(244, 63, 94, 0.2);
    color: #f87171;
    border-color: rgba(244, 63, 94, 0.4);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Media Queries */
@media (max-width: 992px) {
    .btn-menu-toggle {
        display: inline-flex !important;
        align-items: center;
        gap: 6px;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 10px 0 35px rgba(0, 0, 0, 0.6);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }

    .brand-header {
        justify-content: space-between;
    }

    .sidebar-close-btn {
        display: flex;
    }
    
    .main-wrapper {
        margin-left: 0;
    }
}

/* Tournament Dashboard & Leaderboard Custom Styles */
.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-glass);
}

.metric-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-focus);
    background: var(--bg-card-hover);
}

.metric-icon-box {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.metric-info .metric-num {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1.1;
}

.metric-info .metric-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
}

/* Podium Leaderboard */
.podium-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.podium-card {
    position: relative;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-glass);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.podium-card:hover {
    transform: translateY(-6px);
}

.podium-card.rank-1 {
    border-color: rgba(245, 158, 11, 0.6);
    box-shadow: 0 10px 30px -10px rgba(245, 158, 11, 0.3);
}

.podium-card.rank-2 {
    border-color: rgba(148, 163, 184, 0.6);
    box-shadow: 0 10px 30px -10px rgba(148, 163, 184, 0.2);
}

.podium-card.rank-3 {
    border-color: rgba(217, 119, 6, 0.6);
    box-shadow: 0 10px 30px -10px rgba(217, 119, 6, 0.2);
}

.podium-crown {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 1.4rem;
}

.podium-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 0.75rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: #fff;
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.podium-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 4px;
}

.podium-stats {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-glass);
}

.podium-stat-item {
    font-size: 0.85rem;
}

.podium-stat-item strong {
    display: block;
    font-size: 1.1rem;
    color: #fff;
}

/* Glassmorphism Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(9, 13, 22, 0.82);
    backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease-out;
}

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

.modal-box {
    background: linear-gradient(160deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 580px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    transform: translateY(20px) scale(0.95);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.modal-overlay.active .modal-box {
    transform: translateY(0) scale(1);
}

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

.modal-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-heading);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    border-radius: 6px;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.modal-body {
    padding: 1.5rem;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-glass);
    background: rgba(15, 23, 42, 0.5);
}

/* Tournament Card Custom Grid */
.tournament-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tournament-card:hover {
    border-color: var(--border-focus);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glass);
}

.tournament-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.tournament-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.tournament-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.tournament-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Compact Visual Bar Ranking Custom Styles */
.player-bar-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.player-bar-card {
    background: var(--bg-card);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1.1rem 1.25rem;
    display: grid;
    grid-template-columns: 240px 1fr 180px;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.player-bar-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-focus);
    transform: translateX(4px);
}

.player-bar-card.top-rank-1 {
    border-left: 4px solid #f59e0b;
}

.player-bar-card.top-rank-2 {
    border-left: 4px solid #94a3b8;
}

.player-bar-card.top-rank-3 {
    border-left: 4px solid #d97706;
}

.player-bar-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.player-bar-rank {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--text-heading);
    flex-shrink: 0;
}

.player-bar-rank.rank-gold {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
}

.player-bar-rank.rank-silver {
    background: linear-gradient(135deg, #94a3b8, #64748b);
    color: #fff;
}

.player-bar-rank.rank-bronze {
    background: linear-gradient(135deg, #d97706, #b45309);
    color: #fff;
}

.player-bar-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
}

.player-bar-details .player-bar-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--text-heading);
    line-height: 1.2;
}

.player-bar-details .player-bar-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Stat Progress Bar Track */
.stat-bar-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-bar-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    width: 48px;
    font-weight: 600;
    text-align: right;
}

.stat-bar-track {
    flex: 1;
    height: 9px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 9999px;
    overflow: hidden;
    position: relative;
}

.stat-bar-fill-goals {
    height: 100%;
    border-radius: 9999px;
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-bar-fill-assists {
    height: 100%;
    border-radius: 9999px;
    background: linear-gradient(90deg, #06b6d4 0%, #38bdf8 100%);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-bar-value {
    font-size: 0.8rem;
    font-weight: 700;
    width: 55px;
    text-align: right;
}

.player-bar-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.contribution-pill {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #818cf8;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.78rem;
}

.ratio-text {
    font-size: 0.72rem;
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .player-bar-card {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }
    .player-bar-summary {
        align-items: flex-start;
        flex-direction: row;
        justify-content: space-between;
    }
}

/* FIFA FUT / Scouting Card Grid Styles */
.fut-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.25rem;
}

.fut-card {
    position: relative;
    background: linear-gradient(160deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1.25rem;
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.6);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.fut-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 22px 45px -10px rgba(99, 102, 241, 0.45);
    border-color: rgba(99, 102, 241, 0.6);
}

.fut-card.theme-gold {
    background: linear-gradient(160deg, rgba(45, 30, 10, 0.95) 0%, rgba(20, 14, 5, 0.98) 100%);
    border: 1px solid rgba(245, 158, 11, 0.5);
    box-shadow: 0 15px 35px -10px rgba(245, 158, 11, 0.25);
}
.fut-card.theme-gold:hover {
    box-shadow: 0 22px 45px -10px rgba(245, 158, 11, 0.5);
    border-color: rgba(245, 158, 11, 0.8);
}

.fut-card.theme-purple {
    background: linear-gradient(160deg, rgba(38, 20, 50, 0.95) 0%, rgba(18, 10, 25, 0.98) 100%);
    border: 1px solid rgba(168, 85, 247, 0.4);
    box-shadow: 0 15px 35px -10px rgba(168, 85, 247, 0.2);
}
.fut-card.theme-purple:hover {
    box-shadow: 0 22px 45px -10px rgba(168, 85, 247, 0.5);
    border-color: rgba(168, 85, 247, 0.8);
}

.fut-card.theme-cyan {
    background: linear-gradient(160deg, rgba(12, 40, 55, 0.95) 0%, rgba(5, 20, 30, 0.98) 100%);
    border: 1px solid rgba(6, 182, 212, 0.4);
    box-shadow: 0 15px 35px -10px rgba(6, 182, 212, 0.2);
}
.fut-card.theme-cyan:hover {
    box-shadow: 0 22px 45px -10px rgba(6, 182, 212, 0.5);
    border-color: rgba(6, 182, 212, 0.8);
}

.fut-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.85rem;
}

.fut-badge-ovr {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fut-badge-ovr span {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary);
    text-transform: uppercase;
}

.fut-avatar-wrap {
    position: relative;
    width: 64px;
    height: 64px;
    margin: 0 auto 0.75rem auto;
}

.fut-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.35rem;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    border: 2px solid rgba(255,255,255,0.2);
}

.theme-gold .fut-avatar {
    border-color: #f59e0b;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}
.theme-purple .fut-avatar {
    border-color: #c084fc;
    box-shadow: 0 8px 20px rgba(192, 132, 252, 0.4);
}
.theme-cyan .fut-avatar {
    border-color: #38bdf8;
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.4);
}

.fut-player-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    text-align: center;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fut-player-sub {
    font-size: 0.76rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Fut Card 2x2 Stats Grid */
.fut-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 0.75rem;
    margin-bottom: 0.85rem;
}

.fut-stat-box {
    text-align: center;
    padding: 4px;
}

.fut-stat-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fut-stat-val {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.2;
}

.fut-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.65rem;
    border-top: 1px solid var(--border-glass);
    font-size: 0.75rem;
    color: var(--text-muted);
}



