        :root { 
            --bg: #0b0c10; --box-bg: #14161c; --box-light: #1f222b; 
            --accent: #10b981; --accent-hover: #059669; --text-main: #f8fafc; 
            --text-muted: #94a3b8; --danger: #ef4444; 
        }
        
        body { font-family: 'Segoe UI', system-ui, sans-serif; background: var(--bg); color: var(--text-main); margin: 0; padding: 0; overflow-x: hidden; }
        
        .top-bar { position: absolute; top: 15px; left: 15px; right: 15px; display: flex; justify-content: space-between; align-items: center; z-index: 50; flex-wrap: wrap; gap: 15px;}
        .top-bar-left { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; flex: 1; }
        
        .currency-switch { display: flex; background: var(--box-light); border-radius: 6px; padding: 2px;}
        .curr-btn { background: transparent; border: none; color: white; padding: 6px 15px; cursor: pointer; font-weight: bold; border-radius: 4px; transition: 0.3s;}
        .curr-btn.active { background: var(--accent); color: #000; }

        .faq-btn { background: var(--box-bg); color: var(--text-muted); border: 1px solid var(--box-light); padding: 8px 15px; cursor: pointer; font-weight: bold; border-radius: 6px; transition: 0.3s; flex-shrink: 0; }
        .faq-btn:hover { background: var(--box-light); color: var(--text-main); }

        /* Historie Dropdown */
        .history-wrapper { position: relative; }
        .history-dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            margin-top: 8px;
            background: var(--box-bg);
            border: 1px solid var(--box-light);
            border-radius: 6px;
            padding: 8px;
            display: none;
            flex-direction: column;
            gap: 5px;
            min-width: 180px;
            z-index: 100;
            box-shadow: 0 4px 15px rgba(0,0,0,0.5);
        }
        .history-dropdown.show { display: flex; }
        .history-item {
            background: rgba(255,255,255,0.03);
            color: var(--text-muted);
            border: 1px solid transparent;
            padding: 10px 12px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 13px;
            transition: 0.2s;
            text-align: left;
            font-family: inherit;
            font-weight: bold;
            width: 100%;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .history-item:hover {
            background: rgba(16, 185, 129, 0.1);
            color: var(--accent);
            border-color: var(--accent);
        }
        .history-empty { color: var(--text-muted); font-size: 12px; text-align: center; padding: 10px; }

        .profile-header { background: var(--bg); padding: 70px 20px 20px 20px; display: flex; flex-direction: column; align-items: center; gap: 20px; position: relative;}
        
        /* ÚVODNÍ DESIGN: Vycentrování a animace */
        .profile-main { text-align: center; width: 100%; display: flex; flex-direction: column; align-items: center; opacity: 0; transform: translateY(-20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out, margin-top 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); margin-top: 20vh; }
        .profile-main.show { opacity: 1; transform: translateY(0); }
        .profile-main.active-search { margin-top: 0; }
        
        #welcome-text { color: var(--text-muted); font-size: 14px; margin-bottom: 25px; letter-spacing: 2px; text-transform: uppercase; font-weight: bold; }
        
        #prof-avatar { border-radius: 50%; border: 3px solid var(--accent); width: 100px; height: 100px; margin-bottom: 15px; box-shadow: 0 0 20px rgba(16, 185, 129, 0.2); transition: opacity 0.4s ease, transform 0.4s ease; cursor: pointer; opacity: 0; transform: scale(0.8); }
        #prof-avatar.loaded { opacity: 1; transform: scale(1); }
        #prof-avatar.loaded:hover { transform: scale(1.05); }
        
        #prof-level-container { opacity: 0; transition: opacity 0.4s ease-in-out; }
        
        .prof-input { font-size: 20px; font-weight: bold; color: var(--text-main); background: transparent; border: none; border-bottom: 1px dashed var(--box-light); text-align: center; outline: none; transition: 0.3s; width: 100%; max-width: 300px; margin-bottom: 5px; font-family: inherit; }
        .prof-input:focus { border-bottom-color: var(--accent); box-shadow: 0 10px 10px -10px rgba(16, 185, 129, 0.5); }
        .prof-input::placeholder { color: var(--text-muted); opacity: 0.5; font-size: 18px;}
        
        .level-pill { display: inline-block; border: 1px solid var(--accent); color: var(--accent); padding: 4px 15px; border-radius: 20px; font-weight: bold; margin-top: 10px; font-size: 14px; background: rgba(16, 185, 129, 0.1); }

        .profile-details-container { display: flex; flex-direction: row; justify-content: center; align-items: stretch; flex-wrap: wrap; gap: 20px; width: 100%; max-width: 900px; margin: 0 auto; padding: 10px; box-sizing: border-box;}
        
        .id-card { background: var(--box-bg); border: 1px solid var(--box-light); border-radius: 12px; padding: 20px; width: 100%; flex: 1; min-width: 250px; margin: 0; display: flex; flex-direction: column; justify-content: center; opacity: 0; transform: translateX(-30px); box-sizing: border-box; }
        .ban-container { flex: 1; min-width: 250px; display: flex; flex-direction: column; justify-content: center; gap: 10px; margin: 0; opacity: 0; transform: translateX(30px); box-sizing: border-box; }
        
        .id-card.show { animation: slideRightFade 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
        .ban-container.show { animation: slideLeftFade 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }

        .id-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,0.03); padding-bottom: 6px; }
        .id-row:last-child { margin-bottom: 0; border-bottom: none; padding-bottom: 0;}
        .id-row span:first-child { color: var(--text-muted); flex-shrink: 0; margin-right: 10px; }
        .id-row span:last-child, .id-row a { color: var(--text-main); font-family: monospace; text-align: right; overflow-wrap: anywhere; word-break: break-all; white-space: normal; max-width: 65%; line-height: 1.3;}
        .id-row a { color: var(--accent); text-decoration: none; font-family: 'Segoe UI'; font-weight: bold; word-break: normal;}

        .ban-row { border: 1px solid var(--accent); color: var(--accent); padding: 12px; border-radius: 8px; text-align: center; font-weight: bold; font-size: 14px; background: rgba(16, 185, 129, 0.05); text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; flex: 1; display: flex; align-items: center; justify-content: center;}
        .ban-row.danger { border-color: var(--danger); color: var(--danger); background: rgba(239, 68, 68, 0.05); }

        .navbar { background: var(--box-bg); padding: 10px; display: flex; gap: 15px; border-bottom: 1px solid var(--box-light); justify-content: center; flex-wrap: wrap; opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out;}
        .navbar.show { opacity: 1; transform: translateY(0); }

        .nav-btn { position: relative; background: transparent; color: var(--text-muted); border: none; padding: 12px 20px; cursor: pointer; font-weight: bold; border-radius: 6px; transition: 0.3s; overflow: hidden; }
        .nav-btn:hover { color: var(--text-main); }
        .nav-btn.active { color: var(--accent); }
        
        .nav-btn::after { content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 3px; background: var(--accent); transition: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); transform: translateX(-50%); border-radius: 3px 3px 0 0; }
        .nav-btn:hover::after { width: 60%; }
        .nav-btn.active::after { width: 100%; }
        
        .container { padding: 20px; max-width: 1200px; margin: auto; box-sizing: border-box;}
        .section { display: none; }
        .section.active { display: block; animation: fadeInTab 0.4s ease forwards; }
        
        .dashboard-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: 30px; }
        
        .stat-box { background: var(--box-bg); padding: 25px; border-radius: 12px; border-top: 4px solid var(--accent); box-shadow: 0 4px 15px rgba(0,0,0,0.3); opacity: 0; transform: translateY(30px); transition: opacity 0.5s ease-out, transform 0.5s ease-out; }
        .stat-box.show { opacity: 1; transform: translateY(0); }
        
        .stat-title { font-size: 12px; color: var(--text-muted); text-transform: uppercase; font-weight: bold; }
        .stat-value { font-size: 32px; font-weight: 800; margin-top: 10px; color: var(--accent); font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; min-height: 38px;}

        .price-tag { transition: 0.2s ease-in-out; }
        
        .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 15px; margin-top: 20px; }
        .card { background: var(--box-bg); padding: 12px; text-align: center; border-radius: 10px; border: 1px solid var(--box-light); transition: transform 0.3s, border-color 0.3s; position: relative; opacity: 0; animation: slideUpFade 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; display: flex; flex-direction: column; justify-content: space-between; height: 100%; box-sizing: border-box; overflow: hidden;}
        .card:hover { transform: translateY(-5px); border-color: var(--accent); z-index: 10; box-shadow: 0 10px 20px rgba(0,0,0,0.3);}
        
        .card-img-container { zoom: 1.2; flex: 1; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
        .card img { max-width: 100%; max-height: 100px; filter: drop-shadow(0 5px 10px rgba(0,0,0,0.4)); transition: transform 0.3s; }
        .card:hover img { transform: scale(1.08); }
        .card-name { font-size: 12px; font-weight: 600; color: var(--text-main); margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 34px; line-height: 1.4; }
        
        .card-bottom { width: 100%; }
        .card-price { font-size: 14px; color: var(--accent); font-weight: bold; background: rgba(0,0,0,0.3); padding: 6px; border-radius: 4px; width: 100%; box-sizing: border-box; display: flex; justify-content: center; align-items: center; min-height: 30px;}
        
        .price-btn { background: var(--box-light); color: var(--text-main); border: 1px solid var(--accent); padding: 6px; font-size: 12px; border-radius: 4px; cursor: pointer; font-weight: bold; width: 100%; transition: 0.2s; box-sizing: border-box;}
        .price-btn:hover { background: var(--accent); color: #000; }
        .price-btn:disabled { opacity: 0.5; cursor: not-allowed; }

        .untradable-badge { position: absolute; top: 5px; right: 5px; background: var(--danger); color: white; font-size: 10px; font-weight: bold; padding: 3px 6px; border-radius: 4px; z-index: 2; box-shadow: 0 2px 5px rgba(0,0,0,0.5);}

        .inv-header { display: flex; justify-content: space-between; align-items: center; background: var(--box-bg); padding: 15px; border-radius: 12px; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; border: 1px solid var(--box-light); }
        .inv-controls { flex: 1; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
        select { padding: 10px; background: var(--bg); color: white; border: 1px solid var(--box-light); border-radius: 6px; outline: none; transition: 0.3s;}
        select:focus { border-color: var(--accent); box-shadow: 0 0 5px rgba(16, 185, 129, 0.3);}
        .inv-total-text { font-size: 16px; color: var(--text-muted); font-weight: 600; text-align: right; }
        .inv-total-text span { color: var(--accent); font-size: 18px; font-weight: 800; display: inline-flex; align-items: center;}
        
        #fetch-all-btn { background: var(--accent); color: #000; padding: 10px 15px; border-radius: 6px; font-size: 14px; display: none; border: none; font-weight: bold; cursor: pointer; transition: 0.2s;}
        #fetch-all-btn:hover { filter: brightness(1.1); transform: scale(1.02); }

        .playtime-list { display: flex; flex-direction: column; gap: 15px; margin-top: 20px; }
        .playtime-row { display: flex; align-items: center; background: var(--box-bg); padding: 15px; border-radius: 12px; gap: 20px; border: 1px solid var(--box-light); opacity: 0; animation: slideUpFade 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; transition: 0.3s; }
        .playtime-row:hover { transform: translateX(5px); border-color: #333845; }
        .playtime-img { width: 180px; height: 85px; object-fit: cover; object-position: center; border-radius: 6px; box-shadow: 0 4px 10px rgba(0,0,0,0.4); flex-shrink: 0; background: var(--bg);}
        
        .playtime-info { flex: 1; display: flex; flex-direction: column; gap: 10px; width: 100%; overflow: hidden;}
        .playtime-header { display: flex; justify-content: space-between; align-items: flex-end; }
        .playtime-name { font-size: 18px; font-weight: bold; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
        .playtime-hours { font-size: 16px; color: var(--accent); font-weight: bold; white-space: nowrap;}
        .playtime-bar-bg { width: 100%; background: var(--box-light); height: 8px; border-radius: 4px; overflow: hidden; }
        .playtime-bar-fill { height: 100%; background: var(--accent); width: 0%; transition: width 1.5s cubic-bezier(0.2, 0.8, 0.2, 1); box-shadow: 0 0 10px var(--accent);}

        /* CS2 STATS VZHLED */
        .faceit-card { background: linear-gradient(135deg, var(--box-light) 0%, var(--box-bg) 100%); border-left: 4px solid #ff5500; border-radius: 12px; padding: 20px; display: flex; align-items: center; gap: 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.3); flex-wrap: wrap; }
        .faceit-logo { width: 70px; height: 70px; border-radius: 12px; border: 2px solid #ff5500; }
        .faceit-info { flex: 1; }
        .faceit-info h3 { margin: 0 0 8px 0; color: #fff; font-size: 22px; }
        .faceit-stats { display: flex; gap: 20px; font-weight: bold; }
        .faceit-stat span { color: #ff5500; font-size: 18px; }
        .faceit-btn { background: #ff5500; color: #fff; padding: 10px 20px; text-decoration: none; border-radius: 6px; font-weight: bold; transition: 0.2s; white-space: nowrap;}
        .faceit-btn:hover { background: #e04a00; transform: scale(1.05); }

        .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 20px; }
        .stat-portal-card { background: var(--box-bg); border: 1px solid var(--box-light); border-radius: 12px; padding: 30px 20px; text-align: center; text-decoration: none; color: var(--text-main); transition: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; overflow: hidden;}
        .stat-portal-card:hover { transform: translateY(-8px); border-color: var(--accent); box-shadow: 0 10px 25px rgba(0,0,0,0.4); }
        .stat-portal-card.leetify:hover { border-color: #ff4c4c; box-shadow: 0 10px 25px rgba(255, 76, 76, 0.2); }
        .stat-portal-card.csstats:hover { border-color: #00a8ff; box-shadow: 0 10px 25px rgba(0, 168, 255, 0.2); }
        .stat-portal-title { font-size: 24px; font-weight: 800; margin-bottom: 10px; z-index: 2;}
        .stat-portal-desc { font-size: 14px; color: var(--text-muted); z-index: 2;}
        .stat-portal-icon { font-size: 40px; margin-bottom: 15px; z-index: 2;}

        .faq-container { background: var(--box-bg); border-radius: 12px; border: 1px solid var(--box-light); padding: 30px; max-width: 800px; margin: 0 auto; line-height: 1.6; }
        .faq-container h2 { color: var(--accent); margin-top: 0; border-bottom: 1px solid var(--box-light); padding-bottom: 10px; margin-bottom: 20px;}
        .faq-container h4 { color: var(--text-main); margin-bottom: 5px; font-size: 16px;}
        .faq-container p { color: var(--text-muted); margin-top: 0; margin-bottom: 20px; font-size: 14px;}

        /* AVATAR LIGHTBOX MODAL */
        #avatar-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); z-index: 9999; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s; cursor: pointer; }
        #avatar-modal.show { display: flex; opacity: 1; }
        #avatar-modal img { max-width: 90%; max-height: 90%; border-radius: 50%; border: 6px solid var(--accent); box-shadow: 0 0 40px rgba(16, 185, 129, 0.4); transform: scale(0.8); transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
        #avatar-modal.show img { transform: scale(1); }

        @keyframes slideUpFade { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
        @keyframes fadeInTab { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
        @keyframes slideRightFade { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
        @keyframes slideLeftFade { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }

        .loader-container { width: 100%; display: flex; justify-content: center; align-items: center; padding: 60px 0; }
        .spinner { border: 4px solid rgba(255, 255, 255, 0.05); border-left-color: var(--accent); border-radius: 50%; width: 50px; height: 50px; animation: spin 1s linear infinite; }
        @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

        .loading-pulse { animation: pulseText 1.5s infinite ease-in-out; }
        @keyframes pulseText { 0% { opacity: 0.6; } 50% { opacity: 1; text-shadow: 0 0 10px var(--accent); } 100% { opacity: 0.6; } }

        .fade-out-text { animation: fadeOutAnim 1s ease-in-out forwards; }
        @keyframes fadeOutAnim { 0% { opacity: 1; visibility: visible; } 100% { opacity: 0; visibility: hidden; } }

        #games-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)) !important; }
        #games-grid .card { min-height: 180px !important; }
        #games-grid .card img { max-height: 440px !important; max-width: 440px !important; zoom: 1.5;}

        @media (max-width: 768px) {
            .top-bar { position: static; padding: 15px; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--box-light); }
            .top-bar-left { width: 100%; }
            .profile-header { padding-top: 30px; }
            .prof-input { font-size: 24px; max-width: 100%; }
            
            .profile-details-container { flex-direction: column; padding: 0 15px; }
            .id-card, .ban-container { min-width: 0 !important; width: 100%; transform: translateY(20px); box-sizing: border-box;}
            
            .id-row { flex-direction: column; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05); margin-bottom: 0; text-align: center;}
            .id-row:last-child { border-bottom: none; }
            .id-row span:first-child { font-size: 11px; color: var(--accent); text-transform: uppercase; margin-bottom: 4px; margin-right: 0;}
            .id-row span:last-child, .id-row a { font-size: 14px; text-align: center; overflow-wrap: break-word; white-space: normal; max-width: 100%; }

            .navbar { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; padding: 15px; background: var(--bg); border-bottom: 1px solid var(--box-light); }
            .nav-btn { padding: 12px 0; font-size: 11px; background: rgba(255,255,255,0.03); border-radius: 6px; display: flex; align-items: center; justify-content: center; }
            .nav-btn:nth-child(1), .nav-btn:nth-child(2), .nav-btn:nth-child(3) { grid-column: span 2; }
            .nav-btn:nth-child(4), .nav-btn:nth-child(5) { grid-column: span 3; }
            .nav-btn.active { background: rgba(16, 185, 129, 0.15); color: var(--accent); }
            .nav-btn::after { display: none; }

            .inv-header { flex-direction: column; align-items: stretch; text-align: center; gap: 15px; }
            .inv-controls { flex-direction: column; width: 100%; }
            .inv-controls select, .inv-controls button { width: 100%; font-size: 15px; padding: 12px; }
            .inv-total-text { width: 100%; text-align: center; }

            .playtime-row { flex-direction: column; align-items: stretch; text-align: center; }
            .playtime-img { width: 100%; max-width: 250px; height: 110px; margin: 0 auto; }
            .playtime-header { flex-direction: column; align-items: center; gap: 5px; }
            
            #games-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important; }
            #games-grid .card { min-height: auto !important; }
            #games-grid .card img { max-height: 100px !important; }
            
            .faceit-card { flex-direction: column; text-align: center; }
            .faceit-btn { width: 100%; box-sizing: border-box; }
        }