
        :root {
            --primary: #2563eb;
            --brand-gradient: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
            --success: #10b981;
            --warning: #f59e0b;
            --danger: #ef4444;
            --dark: #0f172a;
            --light: #f8fafc;
            --card-bg: #ffffff;
            --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        }

        * { box-sizing: border-box; }

        body {
            font-family: 'Inter', sans-serif;
            background-color: #f8fafc;
            margin: 0;
            padding-bottom: 90px; 
            overflow-x: hidden;
        }

        /* --- NAVBAR --- */
        .navbar {
            background: var(--brand-gradient);
            color: white;
            padding: 0.8rem 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 4px 20px rgba(0,0,0,0.2);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .navbar-left { display: flex; align-items: center; gap: 20px; }
        .navbar-brand { 
            font-family: 'Exo 2', sans-serif; font-size: 1.6rem; font-weight: 800; 
            display: flex; align-items: center; gap: 12px; text-transform: uppercase; letter-spacing: 1px;
        }

        .nav-links { display: flex; align-items: center; gap: 15px; }
        .nav-links a { color: rgba(255,255,255,0.8); text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: 0.2s; padding: 5px 10px; border-radius: 6px; }
        .nav-links a:hover { color: white; background: rgba(255,255,255,0.1); }
        
        /* Buttons */
        .btn-reset-unsold { background-color: rgba(239, 68, 68, 0.9); color: white !important; box-shadow: 0 2px 10px rgba(239, 68, 68, 0.4); }
        .btn-reset-unsold:hover { background-color: #dc2626 !important; transform: translateY(-1px); }

        .btn-danger-reset {
            background-color: #7f1d1d; color: #fca5a5; font-size: 0.75rem; padding: 6px 12px;
            border-radius: 4px; font-weight: 700; text-decoration: none; border: 1px solid #991b1b;
            transition: 0.2s; display: flex; align-items: center; gap: 6px; cursor: pointer;
        }
        .btn-danger-reset:hover { background-color: #991b1b; color: white; box-shadow: 0 0 10px rgba(255, 0, 0, 0.5); }

        /* --- MAIN LAYOUT --- */
        .main-container {
            display: grid; grid-template-columns: 380px 1fr; gap: 25px;
            max-width: 1800px; margin: 25px auto; padding: 0 25px; align-items: start;
        }

        /* --- SIDEBAR --- */
        .player-sidebar {
            background: var(--card-bg); border-radius: 16px; padding: 20px;
            box-shadow: var(--shadow); position: sticky; top: 90px;
            height: calc(100vh - 110px); overflow-y: auto; border: 1px solid #e2e8f0;
            display: flex; flex-direction: column;
        }

        /* Search */
        .search-wrapper { position: relative; margin-bottom: 20px; }
        .search-hint { 
            position: absolute; right: 10px; top: 50%; transform: translateY(-50%); 
            font-size: 0.75rem; color: #94a3b8; background: #f1f5f9; padding: 2px 6px; border-radius: 4px; border: 1px solid #e2e8f0;
        }
        #searchBox {
            width: 100%; padding: 14px 15px; border: 2px solid #e2e8f0; border-radius: 10px;
            font-size: 1rem; font-family: inherit; transition: 0.3s;
        }
        #searchBox:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }
        
        .suggestions {
            position: absolute; background: white; border: 1px solid #e2e8f0; border-radius: 8px;
            max-height: 400px; overflow-y: auto; width: 100%; z-index: 1001;
            box-shadow: 0 10px 25px rgba(0,0,0,0.15); margin-top: 5px;
        }
        .suggestion-item { padding: 12px 15px; cursor: pointer; border-bottom: 1px solid #f1f5f9; display: flex; flex-direction: column; gap: 4px; }
        .suggestion-item:hover { background: #f0f9ff; }
        .sugg-header { display: flex; justify-content: space-between; font-weight: 700; color: var(--dark); }
        .sugg-meta { display: flex; justify-content: space-between; font-size: 0.8rem; align-items: center; }
        
        /* Badges */
        .status-badge { padding: 3px 8px; border-radius: 4px; font-weight: 700; font-size: 0.75rem; text-transform: uppercase; }
        .bg-success { background: #dcfce7; color: #166534; }
        .bg-danger { background: #fee2e2; color: #991b1b; }
        .bg-primary { background: #dbeafe; color: #1e40af; }

        /* Player Photo */
        .player-photo-wrapper {
            width: 100%; height: 260px; background: #f8fafc; border-radius: 12px;
            overflow: hidden; margin-bottom: 15px; border: 1px solid #e2e8f0;
            display: flex; align-items: center; justify-content: center; position: relative;
        }
        .player-photo { width: 100%; height: 100%; object-fit: contain; z-index: 2; }
        .empty-state { text-align: center; color: #94a3b8; }
        .empty-state i { font-size: 4rem; margin-bottom: 10px; opacity: 0.3; }

        .player-name { font-size: 1.8rem; font-weight: 800; color: var(--dark); text-align: center; margin: 0 0 10px 0; line-height: 1.2; font-family: 'Exo 2', sans-serif; }
        .player-meta { display: flex; justify-content: center; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
        .badge { padding: 6px 12px; border-radius: 6px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
        .badge-role { background: #e0f2fe; color: #0284c7; }
        .badge-address { background: #f3e8ff; color: #9333ea; }

        /* Dashboard */
        .bid-dashboard {
            background: linear-gradient(to bottom, #f8fafc, #f1f5f9);
            border-radius: 12px; padding: 20px; text-align: center;
            border: 1px solid #e2e8f0; box-shadow: inset 0 2px 4px rgba(0,0,0,0.03); margin-top: auto;
        }
        .bid-label { font-size: 0.8rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
        .current-bid-display {
            font-size: 3rem; font-weight: 900; color: var(--danger);
            font-family: 'Inter', monospace; letter-spacing: -2px; line-height: 1; margin-bottom: 5px;
        }
        .current-holder { font-size: 1.1rem; font-weight: 700; color: var(--dark); min-height: 1.5rem; margin-bottom: 10px; }
        .custom-bid-wrapper { margin-top: 15px; display: flex; gap: 8px; }
        #customBidInput { flex: 1; padding: 10px; border: 2px solid #cbd5e1; border-radius: 8px; font-weight: 700; text-align: center; font-size: 1.1rem; }
        .btn-custom-set { background: var(--dark); color: white; border: none; padding: 0 15px; border-radius: 8px; font-weight: 700; cursor: pointer; transition: 0.2s; }
        
        /* Status Banners (Sold/Unsold) */
        .status-banner {
            border-radius: 12px; padding: 20px; text-align: center; margin-top: auto;
            display: flex; flex-direction: column; gap: 10px; border: 2px solid transparent;
        }
        .banner-sold { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
        .banner-unsold { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
        .banner-price { font-size: 2rem; font-weight: 900; font-family: 'Inter', monospace; margin: 10px 0; }
        
        .action-buttons { display: flex; gap: 10px; margin-top: 10px; }
        .btn-outline { flex: 1; padding: 10px; border-radius: 8px; font-weight: 700; cursor: pointer; transition: 0.2s; background: white; border: 2px solid; }
        .btn-outline-primary { border-color: var(--primary); color: var(--primary); }
        .btn-outline-primary:hover { background: var(--primary); color: white; }
        .btn-outline-warning { border-color: var(--warning); color: var(--warning); }
        .btn-outline-warning:hover { background: var(--warning); color: white; }

        /* --- TEAMS GRID --- */
        .team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
        .team-card {
            background: white; border-radius: 16px; padding: 0; border: 1px solid rgba(0,0,0,0.05);
            box-shadow: 0 4px 6px rgba(0,0,0,0.02); cursor: pointer; transition: all 0.2s;
            position: relative; user-select: none; overflow: hidden; display: flex; flex-direction: column;
        }
        .team-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
        .team-card-top { height: 6px; width: 100%; }
        .team-card-body { padding: 15px; flex: 1; }
        .team-card.highest { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.4), 0 10px 25px rgba(16, 185, 129, 0.1); transform: scale(1.02); z-index: 10; }
        .team-card.highest::after {
            content: '👑 Leading'; position: absolute; top: 10px; right: 0; background: var(--success); color: white;
            font-size: 0.7rem; font-weight: bold; padding: 4px 10px; border-radius: 10px 0 0 10px; box-shadow: -2px 2px 5px rgba(0,0,0,0.1);
        }
        .key-badge { position: absolute; top: 10px; left: 10px; background: rgba(255, 255, 255, 0.8); color: #334155; font-size: 0.7rem; font-weight: 700; padding: 2px 6px; border-radius: 4px; border: 1px solid rgba(0,0,0,0.1); }
        .team-card.disabled { opacity: 0.5; filter: grayscale(1); pointer-events: none; background: #f1f5f9 !important; border: 1px dashed #cbd5e1; }
        .team-header { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; border-bottom: 1px solid rgba(0,0,0,0.05); padding-bottom: 12px; }
        .team-logo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 3px solid white; box-shadow: 0 2px 5px rgba(0,0,0,0.1); background: white; }
        .team-info { flex: 1; overflow: hidden; }
        .team-name { font-weight: 800; font-size: 1.05rem; color: var(--dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .team-owner { font-size: 0.8rem; color: #475569; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0.8; }
        .team-stat { display: flex; justify-content: space-between; font-size: 0.9rem; color: #475569; margin-bottom: 6px; align-items: center; font-weight: 500; }
        .stat-value { font-weight: 700; color: var(--dark); font-size: 1rem; }
        .max-bid-row { 
            margin-top: 15px; padding-top: 10px; border-top: 1px dashed rgba(0,0,0,0.1); 
            color: var(--primary); font-weight: 800; font-size: 0.9rem; 
            display: flex; justify-content: space-between; 
            background: rgba(255,255,255,0.5); margin: 10px -15px -15px; padding: 10px 15px;
        }

        /* --- ACTION BAR --- */
        .bottom-action-bar {
            position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%);
            background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(10px);
            padding: 12px 25px; border-radius: 50px; box-shadow: 0 15px 35px rgba(0,0,0,0.3);
            display: flex; gap: 15px; z-index: 2000; width: 60rem; border: 1px solid rgba(255,255,255,0.1);
        }
        .btn-action {
            border: none; padding: 12px 24px; border-radius: 30px; font-weight: 700; cursor: pointer; font-size: 0.95rem;
            display: flex; align-items: center; gap: 5px; transition: all 0.2s; text-transform: uppercase; letter-spacing: 0.5px;
        }
        .btn-sold { background: var(--success); color: white; }
        .btn-sold:hover { background: #059669; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4); }
        .btn-unsold { background: var(--danger); color: white; }
        .btn-unsold:hover { background: #dc2626; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(239, 68, 68, 0.4); }
        .btn-util { background: rgba(255,255,255,0.15); color: white; }
        .btn-util:hover { background: rgba(255,255,255,0.25); transform: translateY(-2px); }
        .shortcut-hint { font-size: 0.7rem; opacity: 0.6; font-weight: 400; margin-left: 5px; border: 1px solid rgba(255,255,255,0.3); padding: 2px 6px; border-radius: 4px; }

        /* Modals */
        .modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); z-index: 3000; display: none; align-items: center; justify-content: center; }
        .modal-content { background: white; padding: 30px; border-radius: 16px; width: 400px; max-width: 90%; box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
        .modal-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 20px; color: var(--dark); }
        .form-group { margin-bottom: 15px; }
        .form-group label { display: block; font-weight: 600; margin-bottom: 5px; color: #475569; }
        .form-control { width: 100%; padding: 12px; border: 2px solid #e2e8f0; border-radius: 8px; font-family: inherit; font-size: 1rem; }
        .modal-actions { display: flex; gap: 10px; margin-top: 25px; }
        
        /* Toast */
        #toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; }
        .toast {
            background: white; color: var(--dark); padding: 16px 24px; border-radius: 12px;
            box-shadow: 0 10px 25px rgba(0,0,0,0.15); margin-bottom: 15px; font-weight: 600;
            display: flex; align-items: center; gap: 12px; animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            border-left: 6px solid var(--primary); min-width: 300px;
        }
        @keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

