:root {
    --neon-cyan: #00f2fe; --neon-magenta: #fe0979; --bg-dark: #0b0f19;
    --surface-glass: rgba(15, 20, 32, 0.45); --surface-hover: rgba(25, 32, 48, 0.65);
    --text-main: #f8fafc; --text-muted: #94a3b8; --border-light: rgba(255, 255, 255, 0.12);
    --gold: #fbbf24;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }

body { background-color: var(--bg-dark); color: var(--text-main); -webkit-font-smoothing: antialiased; position: relative; overflow-x: hidden; }

/* AMBIENT LIGHTS */
.ambient-lights { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; overflow: hidden; mix-blend-mode: screen; }
.light-1, .light-2, .light-3 { position: absolute; border-radius: 50%; filter: blur(70px); will-change: transform; }
.light-1 { width: 55vw; height: 55vw; background: radial-gradient(circle, rgba(0, 242, 254, 0.4) 0%, rgba(0, 242, 254, 0) 70%); top: -10vh; left: -10vw; animation: randomOrbit1 25s infinite alternate ease-in-out; }
.light-2 { width: 50vw; height: 50vw; background: radial-gradient(circle, rgba(254, 9, 121, 0.35) 0%, rgba(254, 9, 121, 0) 70%); bottom: -10vh; right: -10vw; animation: randomOrbit2 35s infinite alternate ease-in-out; }
.light-3 { width: 45vw; height: 45vw; background: radial-gradient(circle, rgba(251, 191, 36, 0.25) 0%, rgba(251, 191, 36, 0) 70%); top: 40vh; left: 30vw; animation: randomOrbit3 30s infinite alternate ease-in-out; }
@keyframes randomOrbit1 { 0% { transform: translate(0, 0); } 50% { transform: translate(20vw, 25vh) scale(1.1); } 100% { transform: translate(10vw, 50vh) scale(0.9); } }
@keyframes randomOrbit2 { 0% { transform: translate(0, 0); } 50% { transform: translate(-25vw, -15vh) scale(1.2); } 100% { transform: translate(-10vw, -45vh) scale(0.8); } }
@keyframes randomOrbit3 { 0% { transform: translate(0, 0); } 50% { transform: translate(-15vw, 15vh) scale(1.3); } 100% { transform: translate(25vw, -15vh) scale(1); } }

.container { max-width: 1550px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 10; }

/* Nawigacja */
.navbar { background: rgba(11, 15, 25, 0.7); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--border-light); position: sticky; top: 0; z-index: 100; box-shadow: 0 4px 30px rgba(0,0,0,0.5); }
.navbar::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--neon-cyan), var(--neon-magenta), transparent); opacity: 0.5; }
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 85px; }
.logo { display: flex; align-items: center; }
.logo a { display: block; line-height: 0; outline: none; }
.logo-img { max-height: 60px; width: auto; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); filter: drop-shadow(0 0 10px rgba(0, 242, 254, 0.3)); }
.logo-img:hover { transform: scale(1.05); filter: drop-shadow(0 0 15px rgba(254, 9, 121, 0.5)); }

.btn-outline { background: transparent; border: 1px solid var(--neon-cyan); color: var(--neon-cyan); padding: 10px 20px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: 0.3s; box-shadow: 0 0 10px rgba(0, 242, 254, 0.1); text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; }
.btn-outline:hover { background: var(--neon-cyan); color: var(--bg-dark); box-shadow: 0 0 20px rgba(0, 242, 254, 0.4); transform: translateY(-2px); }
.user-greeting { margin-right: 15px; font-weight: 500; color: var(--text-muted); }
.user-greeting b { color: var(--neon-cyan); }

/* Hero Section */
.hero { position: relative; color: white; padding: 100px 0 100px 0; text-align: center; border-bottom: 4px solid var(--primary); background-color: #1e293b; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -10%; left: -10%; width: 120%; height: 120%; background-image: url('hero_bg.jpg'); background-size: cover; background-position: center; z-index: 0; animation: smoothDrift 60s infinite alternate cubic-bezier(0.4, 0, 0.2, 1); will-change: transform; }
@keyframes smoothDrift { 0% { transform: translate(0, 0) scale(1); } 25% { transform: translate(2%, 1.5%) scale(1.02); } 50% { transform: translate(-1.5%, 2.5%) scale(1.04); } 75% { transform: translate(-2.5%, -1.5%) scale(1.01); } 100% { transform: translate(1.5%, -2.5%) scale(1.03); } }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(11,15,25,0.4) 0%, rgba(11,15,25,0.95) 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; }
.gradient-text { background: linear-gradient(90deg, var(--neon-cyan), #fff, var(--neon-magenta)); -webkit-background-clip: text; color: transparent; background-clip: text; display: inline-block; }
.hero h1 { font-size: 3.8rem; font-weight: 900; margin-bottom: 15px; letter-spacing: -1.5px; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5)); }
.hero p { font-size: 1.1rem; color: #cbd5e1; max-width: 650px; margin: 0 auto; line-height: 1.7; font-weight: 400; text-shadow: 0 2px 5px rgba(0,0,0,0.8); }

/* HOW TO PLAY STEPS */
.how-to-play { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: -40px; margin-bottom: 40px; position: relative; z-index: 20; }
.step-card { background: var(--surface-glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--border-light); border-radius: 16px; padding: 25px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.5); transition: 0.3s; position: relative; overflow: hidden; cursor: pointer; }
.step-card:hover { transform: translateY(-5px); border-color: var(--neon-cyan); box-shadow: 0 15px 40px rgba(0, 242, 254, 0.2); }
.step-icon { width: 50px; height: 50px; background: linear-gradient(45deg, var(--neon-magenta), #ff4757); border-radius: 50%; color: white; font-weight: 900; font-size: 1.5rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 15px auto; box-shadow: 0 0 15px rgba(254, 9, 121, 0.5); }
.step-card h3 { color: white; font-size: 1.1rem; margin-bottom: 10px; font-weight: 800; }
.step-card p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.5; }
.step-click-hint { margin-top: 15px; font-size: 0.75rem; color: var(--gold); text-transform: uppercase; font-weight: bold; opacity: 0; transition: 0.3s; transform: translateY(10px); }
.step-card:hover .step-click-hint { opacity: 1; transform: translateY(0); }

/* SWITCHER PLATFORM */
.platform-switcher-wrapper { display: flex; justify-content: center; margin-bottom: 40px; position: relative; z-index: 20; }
.platform-switcher { display: flex; gap: 15px; padding: 12px 20px !important; border-radius: 50px !important; margin: 0; }
.plat-btn { display: flex; align-items: center; gap: 10px; background: transparent; border: none; color: var(--text-muted); font-size: 1rem; font-weight: 800; padding: 12px 30px; border-radius: 40px; cursor: pointer; transition: 0.3s; letter-spacing: 0.5px;}
.plat-btn svg { height: 22px; transition: 0.3s; }
.plat-btn:hover:not(:disabled) { color: white; background: rgba(255,255,255,0.05); }
.plat-btn.active[data-platform="youtube"] { background: linear-gradient(45deg, #ff0000, #cc0000); color: white; box-shadow: 0 5px 20px rgba(255, 0, 0, 0.4); transform: scale(1.05); }
.plat-btn.active[data-platform="tiktok"] { background: linear-gradient(45deg, #00f2fe, #fe054f); color: white; box-shadow: 0 5px 20px rgba(254, 5, 79, 0.4); transform: scale(1.05); }
.plat-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.badge-soon { font-size: 0.6rem; background: var(--surface-hover); color: white; padding: 3px 8px; border-radius: 10px; border: 1px solid var(--border-light); font-weight: bold; text-transform: uppercase; }

/* GŁÓWNY UKŁAD 3-KOLUMNOWY */
.main-grid { display: grid; grid-template-columns: 320px 1fr 320px; gap: 30px; align-items: start; }
.glass-panel { background: var(--surface-glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 16px; border: 1px solid var(--border-light); border-bottom: 1px solid rgba(0,0,0,0.6); padding: 25px; box-shadow: 0 10px 30px rgba(0,0,0,0.4); margin-bottom: 20px; transition: 0.3s; }
.glass-panel:hover { border-color: rgba(0, 242, 254, 0.3); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(0, 242, 254, 0.05); }

.widget-title { font-size: 1rem; color: var(--neon-cyan); margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px dashed rgba(255,255,255,0.1); padding-bottom: 10px; }
.widget-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 20px; line-height: 1.5; }

/* WIDGET NA CZASIE */
.trending-item { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; text-decoration: none; transition: 0.3s; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 18px; }
.trending-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.trending-item:hover { transform: translateY(-4px); }
.trending-item:hover .trending-title { color: var(--neon-cyan); }
.trending-thumb-wrapper { position: relative; border-radius: 8px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.5); border: 1px solid var(--border-light); aspect-ratio: 16/9; }
.trending-thumb { width: 100%; height: 100%; object-fit: cover; display: block; transition: 0.4s ease; }
.trending-item:hover .trending-thumb { transform: scale(1.08); filter: brightness(1.1); }
.trending-title { font-size: 0.95rem; font-weight: 700; color: white; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: 0.2s; line-height: 1.4; }
.trending-channel { font-size: 0.75rem; color: var(--text-muted); display: flex; justify-content: space-between; align-items: center; margin-top: 2px;}
.trending-channel strong { color: var(--neon-magenta); font-weight: 600; font-size: 0.8rem;}

/* Formularze */
.add-form { display: flex; flex-direction: column; gap: 15px; }
.add-form input, .add-form select { width: 100%; padding: 14px 16px; border: 1px solid var(--border-light); border-radius: 8px; font-size: 0.95rem; background: rgba(0,0,0,0.3); color: white; transition: 0.3s; }
.add-form input:focus, .add-form select:focus { outline: none; border-color: var(--neon-magenta); box-shadow: 0 0 15px rgba(254, 9, 121, 0.2); }
.add-form select option { background: var(--bg-dark); color: white; }
#add-personal-message { margin-top: 15px; font-size: 0.85rem; font-weight: 600; text-align: center; }

/* ZAKŁADKI NAD TABELĄ */
.tabs-container { display: flex; justify-content: center; gap: 15px; margin-bottom: 25px; flex-wrap: wrap; }
.tab-btn { display: inline-flex; align-items: center; justify-content: center; background: rgba(20, 25, 40, 0.8); border: 1px solid rgba(255, 255, 255, 0.2); color: #e2e8f0; padding: 12px 28px; border-radius: 30px; font-weight: 700; font-size: 0.95rem; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
.tab-btn:hover:not(.active) { background: rgba(255, 255, 255, 0.1); color: white; transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.4); }
.tab-btn.active { background: linear-gradient(90deg, var(--neon-cyan), #00b4d8); color: #000 !important; border-color: transparent; box-shadow: 0 0 25px rgba(0, 242, 254, 0.5); font-weight: 900; letter-spacing: 0.5px; }

.tab-btn-gold { border-color: rgba(251, 191, 36, 0.5); color: var(--gold); }
.tab-btn-gold:hover:not(.active) { background: rgba(251, 191, 36, 0.15); color: var(--gold); border-color: var(--gold); box-shadow: 0 5px 20px rgba(251, 191, 36, 0.2); }
.tab-btn-gold.active { background: linear-gradient(90deg, #fbbf24, #f59e0b); color: #000 !important; box-shadow: 0 0 25px rgba(251, 191, 36, 0.6); border-color: transparent; }

.btn-primary { background: linear-gradient(45deg, var(--neon-magenta), #ff4757); border: none; color: white; padding: 14px 20px; border-radius: 8px; font-weight: bold; font-size: 0.95rem; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 5px 15px rgba(254, 9, 121, 0.3); text-transform: uppercase; letter-spacing: 1px; width: 100%; }
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(254, 9, 121, 0.5); filter: brightness(1.1); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

/* Tabela GŁÓWNA */
.table-wrapper { width: 100%; overflow: visible; }
table { width: 100%; border-collapse: separate; border-spacing: 0 12px; }
th { background: transparent; font-weight: 700; text-transform: uppercase; font-size: 0.7rem; letter-spacing: 1px; color: var(--text-muted); padding: 0 20px 10px 20px; transition: 0.2s; border-bottom: none !important; }
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: white; text-shadow: 0 0 8px rgba(255,255,255,0.3); }
th.sortable.active { color: var(--neon-cyan); }
.sort-icon { display: inline-block; margin-left: 5px; font-size: 0.75rem; color: inherit; }

.main-row { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer; }
.main-row td { background: var(--surface-glass); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 18px 20px; vertical-align: middle; border-top: 1px solid var(--border-light); border-bottom: 1px solid rgba(0,0,0,0.6); }
.main-row td:first-child { border-left: 1px solid var(--border-light); border-top-left-radius: 16px; border-bottom-left-radius: 16px; }
.main-row td:last-child { border-right: 1px solid var(--border-light); border-top-right-radius: 16px; border-bottom-right-radius: 16px; }
.main-row:hover { transform: scale(1.02); z-index: 10; position: relative; }
.main-row:hover td { background: var(--surface-hover); border-color: rgba(0, 242, 254, 0.4); box-shadow: inset 0 0 20px rgba(0, 242, 254, 0.05), 0 10px 30px -10px rgba(0, 0, 0, 0.7); }

.col-fav { width: 40px; text-align: center; }
.col-rank { width: 80px; }
.rank-number { font-weight: 900; font-size: 1.3rem; color: rgba(255,255,255,0.4); }

.trend { font-size: 0.7rem; font-weight: 700; display: flex; align-items: center; gap: 3px; margin-top: 4px; }
.trend-up { color: #00e676; text-shadow: 0 0 5px rgba(0, 230, 118, 0.4); } 
.trend-down { color: #ff1744; text-shadow: 0 0 5px rgba(255, 23, 68, 0.4); } 
.trend-neutral { color: var(--text-muted); } 
.trend-new { color: var(--neon-magenta); font-size: 0.6rem; border: 1px solid var(--neon-magenta); padding: 2px 6px; border-radius: 4px; box-shadow: inset 0 0 5px rgba(254, 9, 121, 0.2); }

.medal-gold .rank-number { color: #ffd700 !important; text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); font-size: 1.5rem !important; }
.medal-silver .rank-number { color: #c0c0c0 !important; text-shadow: 0 0 10px rgba(192, 192, 192, 0.5); font-size: 1.4rem !important; }
.medal-bronze .rank-number { color: #cd7f32 !important; text-shadow: 0 0 10px rgba(205, 127, 50, 0.5); font-size: 1.3rem !important; }

.creator-cell { display: flex; align-items: center; gap: 12px; }
.creator-avatar-link { display: block; border-radius: 50%; overflow: hidden; height: 46px; width: 46px; flex-shrink: 0; box-shadow: 0 0 15px rgba(0,0,0,0.5); border: 2px solid transparent; transition: 0.3s; }
.main-row:hover .creator-avatar-link { border-color: var(--neon-cyan); }
.creator-avatar { width: 100%; height: 100%; object-fit: cover; }
.creator-name-link { display: flex; align-items: center; gap: 8px; text-decoration: none; color: white; transition: 0.2s; }
.creator-name-link:hover .creator-name { color: var(--neon-cyan); text-shadow: 0 0 8px rgba(0, 242, 254, 0.4); }
.creator-name { font-size: 1rem; font-weight: 700; }
.yt-icon { width: 20px; height: 20px; fill: var(--text-muted); transition: 0.3s; }
.creator-name-link:hover .yt-icon { fill: #ff0000; filter: drop-shadow(0 0 5px rgba(255,0,0,0.5)); transform: scale(1.1); }

.badge { background-color: rgba(0, 242, 254, 0.05); color: var(--neon-cyan); border: 1px solid rgba(0, 242, 254, 0.3); padding: 4px 10px; border-radius: 9999px; font-size: 0.65rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.stats { font-family: 'Inter', monospace; font-size: 1rem; font-weight: 600; color: white; }
.star-btn { background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--border-light); transition: 0.3s; }
.star-btn.active { color: var(--gold); filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.6)); }
.star-btn:hover { transform: scale(1.2); color: var(--gold); }

.details-row { display: none; }
.details-row.show { display: table-row; animation: fadeIn 0.4s ease forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.details-container { position: relative; background: linear-gradient(180deg, rgba(20,25,40,0.8) 0%, rgba(10,13,20,0.95) 100%); border-radius: 0 0 16px 16px; margin: -12px 0 15px 0; overflow: hidden; border: 1px solid var(--border-light); border-top: none; box-shadow: 0 15px 30px rgba(0,0,0,0.5); }
.details-banner { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-size: cover; background-position: center; opacity: 0.1; z-index: 0; filter: saturate(1.5); }
.details-content { position: relative; z-index: 1; padding: 25px; display: grid; grid-template-columns: 2fr 1fr; gap: 25px; }
.details-info h4 { color: var(--neon-cyan); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; word-break: break-word; }
.details-desc { font-size: 0.9rem; line-height: 1.6; color: #cbd5e1; margin-bottom: 15px; word-break: break-word; font-style: italic; border-left: 2px solid var(--neon-magenta); padding-left: 15px; }
.details-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat-box { background: rgba(0,0,0,0.4); padding: 15px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); transition: 0.3s; }
.stat-box:hover { border-color: rgba(254, 9, 121, 0.3); background: rgba(254, 9, 121, 0.05); }
.stat-box-title { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; font-weight: bold; margin-bottom: 5px; letter-spacing: 0.5px; }
.stat-box-value { font-size: 1.1rem; font-weight: 900; color: white; }

.pagination-wrapper { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 25px; margin-bottom: 20px; }
.page-btn { background: var(--surface-glass); border: 1px solid var(--border-light); color: var(--text-muted); padding: 10px 16px; border-radius: 10px; font-weight: 700; cursor: pointer; transition: 0.3s; backdrop-filter: blur(8px); }
.page-btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.1); color: white; border-color: var(--neon-cyan); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0, 242, 254, 0.2); }
.page-btn.active { background: linear-gradient(45deg, var(--neon-cyan), #00b4d8); color: var(--bg-dark); border-color: transparent; box-shadow: 0 0 15px rgba(0, 242, 254, 0.4); }
.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.loading-state { text-align: center; padding: 60px !important; color: var(--neon-cyan); background: transparent !important; border: none !important; }
.spinner { width: 40px; height: 40px; border: 3px solid rgba(0, 242, 254, 0.1); border-top: 3px solid var(--neon-cyan); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 15px auto; filter: drop-shadow(0 0 10px rgba(0, 242, 254, 0.5)); }

/* MODAL LOGOWANIA I TUTORIALU */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.8); backdrop-filter: blur(8px); align-items: center; justify-content: center; }

/* ZMIANA: Zabezpieczenie modali pod widok mobilny z możliwością scrollowania wewnątrz */
.modal-content { 
    background: var(--bg-dark); 
    padding: 40px; 
    border-radius: 20px; 
    width: 90%; 
    max-width: 420px; 
    position: relative; 
    border: 1px solid var(--border-light); 
    box-shadow: 0 0 40px rgba(0, 242, 254, 0.15); 
    animation: modalFadeIn 0.3s ease-out; 
    max-height: 85vh; 
    overflow-y: auto; 
}

/* ZMIANA: Neonowy suwak do modali */
.modal-content::-webkit-scrollbar { width: 8px; }
.modal-content::-webkit-scrollbar-track { background: rgba(0,0,0,0.3); border-radius: 8px; margin-block: 10px; }
.modal-content::-webkit-scrollbar-thumb { background: var(--neon-magenta); border-radius: 8px; }
.modal-content::-webkit-scrollbar-thumb:hover { background: var(--neon-cyan); }

.modal-content::before { content: ''; position: absolute; top: -2px; left: -2px; right: -2px; bottom: -2px; z-index: -1; background: linear-gradient(45deg, var(--neon-cyan), var(--neon-magenta)); border-radius: 22px; opacity: 0.3; }
.close-btn { position: absolute; right: 20px; top: 20px; font-size: 1.5rem; font-weight: bold; cursor: pointer; color: var(--text-muted); background: none; border: none; transition: 0.2s; z-index: 10; }
.close-btn:hover { color: white; transform: rotate(90deg); }
.modal-header { text-align: center; margin-bottom: 30px; }
.modal-header h2 { font-size: 1.8rem; margin-bottom: 5px; }
.modal-header p { color: var(--text-muted); font-size: 0.9rem; }
.auth-form .input-group { margin-bottom: 20px; }
.auth-form label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px;}
.auth-form input { width: 100%; padding: 14px 16px; border: 1px solid var(--border-light); border-radius: 8px; font-size: 1rem; background: rgba(0,0,0,0.5); color: white; transition: 0.3s;}
.auth-form input:focus { outline: none; border-color: var(--neon-cyan); box-shadow: 0 0 15px rgba(0, 242, 254, 0.2); }
.modal-footer { margin-top: 25px; text-align: center; }
.toggle-btn { background: none; border: none; font-size: 0.9rem; color: var(--text-muted); cursor: pointer; }
.toggle-btn strong { color: var(--neon-cyan); transition: 0.2s; text-transform: uppercase; letter-spacing: 1px; }

/* KARTA ŁOWCÓW I ODZNAKI */
.hunter-badge:hover { background: var(--gold) !important; color: black !important; transform: scale(1.05); }

.hunter-card-wrapper { background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); border: 1px solid var(--gold) !important; box-shadow: 0 0 50px rgba(251, 191, 36, 0.3) !important; text-align: center; padding: 0 !important; overflow: hidden; }
.hunter-card-wrapper::before { display: none; }
.hunter-card-header { background: rgba(0,0,0,0.3); padding: 40px 20px 20px 20px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.hc-avatar { width: 90px; height: 90px; background: linear-gradient(45deg, var(--gold), #d97706); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: 900; font-size: 2.5rem; margin: 0 auto 15px auto; box-shadow: 0 0 25px rgba(251, 191, 36, 0.5); border: 3px solid rgba(255,255,255,0.2); }
.hc-name { font-size: 1.8rem; color: white; font-weight: 900; margin-bottom: 5px; }
.hc-title { color: var(--gold); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; font-weight: bold; }
.hc-stats { display: flex; justify-content: center; gap: 30px; padding: 25px 20px; background: rgba(255,255,255,0.02); border-bottom: 1px solid rgba(255,255,255,0.05); }
.hc-stat-val { font-size: 1.8rem; font-weight: 900; color: var(--neon-cyan); font-family: monospace; }
.hc-stat-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-weight: bold; }
.hc-bio { padding: 25px; color: #cbd5e1; font-size: 0.95rem; line-height: 1.6; font-style: italic; border-bottom: 1px solid rgba(255,255,255,0.05); }
.hc-socials { padding: 25px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.hc-social-btn { padding: 10px 20px; border-radius: 8px; color: white; text-decoration: none; font-weight: bold; font-size: 0.85rem; transition: 0.3s; display: flex; align-items: center; gap: 8px; }
.hc-social-btn.yt { background: #ff0000; box-shadow: 0 5px 15px rgba(255,0,0,0.3); }
.hc-social-btn.tt { background: #00f2fe; color: black; box-shadow: 0 5px 15px rgba(0,242,254,0.3); }
.hc-social-btn.ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); box-shadow: 0 5px 15px rgba(220, 39, 67, 0.3); }
.hc-social-btn:hover { transform: translateY(-3px); filter: brightness(1.1); }

.front-search-input { width: 100%; padding: 15px 22px; border-radius: 14px; background: rgba(20, 25, 40, 0.6); border: 1px solid var(--border-light); color: white; font-size: 1rem; font-weight: 500; outline: none; transition: 0.3s; box-shadow: inset 0 0 15px rgba(0,0,0,0.5), 0 5px 15px rgba(0,0,0,0.3); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.front-search-input::placeholder { color: var(--text-muted); }
.front-search-input:focus { border-color: var(--neon-cyan); background: rgba(20, 25, 40, 0.8); box-shadow: inset 0 0 15px rgba(0,0,0,0.5), 0 0 20px rgba(0, 242, 254, 0.2); }
.locked-stat { display: inline-flex; align-items: center; gap: 5px; font-size: 0.75rem; color: var(--text-muted); background: rgba(0,0,0,0.6); padding: 4px 10px; border-radius: 6px; cursor: pointer; border: 1px dashed rgba(255,255,255,0.2); transition: 0.3s; text-transform: uppercase; font-weight: bold; margin-left: 8px; vertical-align: middle; }
.locked-stat:hover { color: white; border-color: var(--neon-cyan); background: rgba(0, 242, 254, 0.15); transform: scale(1.05); }
.blur-text { filter: blur(5px); opacity: 0.4; user-select: none; pointer-events: none; }
.stat-val { display: block; }
.stat-diff { display: inline-block; font-size: 0.75rem; font-weight: 800; margin-top: 5px; letter-spacing: 0.5px; animation: popIn 0.5s ease-out; }
.stat-up { color: #00e676; text-shadow: 0 0 8px rgba(0, 230, 118, 0.4); }
.stat-down { color: #ff1744; text-shadow: 0 0 8px rgba(255, 23, 68, 0.4); }
.hunter-row td { padding: 20px !important; }
.hunter-name { font-weight: 900; color: white; display: flex; align-items: center; gap: 15px; font-size: 1.1rem; }
.hunter-avatar { width: 45px; height: 45px; background: linear-gradient(45deg, var(--gold), #d97706); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: 900; font-size: 1.2rem; box-shadow: 0 0 15px rgba(251, 191, 36, 0.4); border: 2px solid rgba(255,255,255,0.2); }
.hunter-score { color: var(--gold); font-weight: 900; font-size: 1.4rem; text-shadow: 0 0 15px rgba(251, 191, 36, 0.5); font-family: monospace; }
.hunter-count { color: var(--neon-cyan); font-weight: bold; font-size: 1.1rem; }
.password-strength { font-size: 0.75rem; font-weight: bold; margin-top: 8px; color: var(--text-muted); text-align: left; }
.password-strength span { color: white; transition: 0.3s; }
.strength-weak span { color: #ff1744; text-shadow: 0 0 5px rgba(255,23,68,0.4); }
.strength-medium span { color: #fbbf24; text-shadow: 0 0 5px rgba(251,191,36,0.4); }
.strength-strong span { color: #00e676; text-shadow: 0 0 5px rgba(0,230,118,0.4); }

/* WIDGET TOP ŁOWCÓW */
.hunter-widget-item { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,0.05); cursor: pointer; transition: 0.3s; }
.hunter-widget-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.hunter-widget-item:hover { transform: translateX(5px); }
.hunter-widget-item:hover .hw-name { color: var(--gold); }
.hw-rank { font-weight: 900; font-size: 1.1rem; width: 30px; text-align: center; }
.hw-avatar { width: 35px; height: 35px; border-radius: 50%; background: linear-gradient(45deg, var(--gold), #d97706); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1rem; color: white; border: 1px solid rgba(255,255,255,0.2); flex-shrink: 0; }
.hw-info { flex: 1; overflow: hidden; }
.hw-name { font-weight: 700; font-size: 0.9rem; color: white; transition: 0.2s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hw-score { font-size: 0.75rem; color: var(--neon-cyan); font-weight: 800; font-family: monospace; margin-top: 3px; }

@media (max-width: 1250px) {
    .main-grid { display: flex; flex-direction: column; margin-top: 0; }
    .left-sidebar { order: 2; width: 100%; margin-bottom: 20px; }
    .main-content { order: 1; width: 100%; margin-bottom: 20px; }
    .right-sidebar { order: 3; width: 100%; }
}

@media (max-width: 768px) {
    .nav-container { flex-direction: column; height: auto; padding: 15px 0; gap: 15px; }
    .hero { padding: 60px 0 40px 0; }
    .hero h1 { font-size: 2.2rem; }
    .platform-switcher-wrapper { margin-top: 20px; margin-bottom: 20px; }
    .platform-switcher { gap: 5px; padding: 8px !important; }
    .plat-btn { padding: 10px 15px; font-size: 0.85rem; }
    .plat-btn svg { height: 18px; }
    .badge-soon { display: none; }
    table { display: block; width: 100%; border-spacing: 0; }
    thead { display: block; margin-bottom: 20px; }
    thead tr { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
    th { display: block; border: 1px solid var(--border-light) !important; padding: 10px 15px !important; background: var(--surface-glass); border-radius: 30px; flex: 1 1 calc(33% - 8px); text-align: center; font-size: 0.65rem !important; }
    th.col-fav, th.col-rank { display: none !important; } 
    tbody { display: block; }
    .main-row { display: flex; flex-wrap: wrap; align-items: center; background: rgba(20, 25, 40, 0.45) !important; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 16px !important; margin-bottom: 20px; padding: 20px; border: 1px solid rgba(255,255,255,0.18) !important; box-shadow: 0 10px 25px rgba(0,0,0,0.6), inset 0 0 15px rgba(255,255,255,0.03); }
    .main-row td { display: block; border: none !important; padding: 0 !important; background: transparent !important; }
    .col-fav { order: 1; width: 15%; display: flex; justify-content: flex-start; }
    .col-rank { order: 2; width: 15%; text-align: left; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
    td:nth-child(3) { order: 3; width: 70%; margin-top: 10px; }
    td:nth-child(4) { order: 4; width: 100%; text-align: center; margin: 20px 0; padding: 15px 0 !important; border-top: 1px dashed rgba(255,255,255,0.15) !important; border-bottom: 1px dashed rgba(255,255,255,0.15) !important; } 
    td:nth-child(5), td:nth-child(6), td:nth-child(7) { order: 5; width: 33.33%; text-align: center; display: flex; flex-direction: column; gap: 8px; }
    td:nth-child(5)::before { content: 'Subskrypcje'; font-size: 0.55rem; color: var(--text-muted); text-transform: uppercase; font-weight: 700; letter-spacing: 1px; }
    td:nth-child(6)::before { content: 'Wyświetlenia'; font-size: 0.55rem; color: var(--text-muted); text-transform: uppercase; font-weight: 700; letter-spacing: 1px; }
    td:nth-child(7)::before { content: 'Wideo'; font-size: 0.55rem; color: var(--text-muted); text-transform: uppercase; font-weight: 700; letter-spacing: 1px; }
    .details-row.show { display: block; margin-top: -30px; margin-bottom: 30px; }
    .details-container { border-radius: 0 0 16px 16px; margin: 0; }
    .details-content { grid-template-columns: 1fr; padding: 15px; }
}

@media (max-width: 480px) {
    .user-greeting { display: block; margin-bottom: 10px; text-align: center; margin-right: 0;}
    .btn-outline { width: 100%; text-align: center; }
    .auth-section { width: 100%; }
    .modal-content { padding: 25px 20px; }
}
/* ==========================================
   INDYWIDUALNE ANIMACJE KART "JAK GRAĆ" 
   ========================================== */

/* 1. Przenosimy tekst i ikony na wierzch, by animacja ich nie zasłaniała */
.step-card * {
    position: relative;
    z-index: 2; 
}

/* 2. Wspólne właściwości dla "hologramu" w tle każdej karty */
.step-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.3; /* Delikatna przezroczystość bazy */
    transition: opacity 0.4s ease;
    
    /* Efekt rozmycia krawędzi animacji (żeby nie odcinała się twardo przy ramce) */
    -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 70%);
    mask-image: radial-gradient(circle at center, black 30%, transparent 70%);
}

/* Podświetlenie animacji przy najechaniu myszką */
.step-card:hover::before {
    opacity: 0.75; 
}

/* =====================================
   KARTA 1: Załóż Agencję (Cyber-Siatka) 
   ===================================== */
.step-card:nth-child(1)::before {
    background-image: 
        linear-gradient(rgba(0, 242, 254, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 242, 254, 0.3) 1px, transparent 1px);
    background-size: 35px 35px;
    transform: rotate(-15deg);
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: -70px 70px; }
}

/* =====================================
   KARTA 2: Złów Talent (Radar Sonaru) 
   ===================================== */
.step-card:nth-child(2)::before {
    background: repeating-radial-gradient(
        circle at center, 
        transparent, 
        transparent 15px, 
        rgba(254, 9, 121, 0.25) 17px, 
        rgba(254, 9, 121, 0.05) 20px
    );
    animation: radarPulse 5s linear infinite;
}

@keyframes radarPulse {
    0% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.15); opacity: 0.6; }
    100% { transform: scale(1); opacity: 0.2; }
}

/* =====================================
   KARTA 3: Zgarniaj Zasięgi (Wzrosty) 
   ===================================== */
.step-card:nth-child(3)::before {
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 15px,
        rgba(251, 191, 36, 0.2) 15px,
        rgba(251, 191, 36, 0.2) 18px
    );
    background-size: 100% 33px;
    animation: riseUp 2.5s linear infinite;
}

@keyframes riseUp {
    0% { background-position: 0 0; }
    100% { background-position: 0 -33px; }
}
/* --- AKTYWNY PRZYCISK INSTAGRAMA --- */
.plat-btn[data-platform="instagram"].active {
    background: rgba(254, 9, 121, 0.1);
    color: #fe0979;
    border-color: #fe0979;
    box-shadow: 0 0 15px rgba(254, 9, 121, 0.4);
}

.plat-btn[data-platform="instagram"].active svg {
    fill: #fe0979;
}
/* =========================================
   WYMUSZENIE PODŚWIETLENIA INSTAGRAMA (PC + MOBILE)
   ========================================= */
button.plat-btn[data-platform="instagram"].active,
.plat-btn[data-platform="instagram"].active {
    background-color: rgba(254, 9, 121, 0.15) !important;
    color: #fe0979 !important;
    border: 1px solid #fe0979 !important;
    box-shadow: 0 0 15px rgba(254, 9, 121, 0.4) !important;
}

button.plat-btn[data-platform="instagram"].active svg,
button.plat-btn[data-platform="instagram"].active svg path {
    fill: #fe0979 !important;
}

@media (max-width: 768px) {
    button.plat-btn[data-platform="instagram"] svg {
        width: 16px !important;
        height: 16px !important;
        margin-right: 4px !important;
    }
    
    .creator-name-link svg[style*="fill:#fe0979"] {
        width: 14px !important;
        height: 14px !important;
        min-width: 14px !important;
        vertical-align: middle !important;
    }
}