/* =========================================
   1. ZMIENNE I FUNDAMENTY (GŁADKI ESPORT)
   ========================================= */
:root {
    /* Głęboka, gładka czerń bez żadnych szumów */
    --bg-body: #060608;
    --bg-panel: #0b0b0e;
    --bg-card: #121216;
    --bg-input: #08080a;

    /* Bardzo miękkie, półprzezroczyste ramki */
    --border-panel: rgba(255, 255, 255, 0.05);
    --border-card: rgba(255, 255, 255, 0.04);
    --border-hover: rgba(255, 255, 255, 0.15);

    --text-main: #ffffff;
    --text-muted: #8b8b9e;

    /* Żywe, esportowe akcenty */
    --accent-blue: #5b7fff;
    --accent-pink: #d92d7b;
    --accent-orange: #ff6a00;
    --accent-green: #00ff88;

    --radius-panel: 16px;
    --radius-card: 10px;
    --transition: 0.2s ease-out;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* =========================================
   2. NAWIGACJA & HERO
   ========================================= */
nav {
    position: fixed;
    top: 24px;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

.nav-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    height: 66px;
    padding: 0 30px;
    background: rgba(11, 11, 14, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-panel);
    border-radius: 22px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    transition: var(--transition);
    position: relative;
    padding: 10px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-links a:hover {
    color: #fff;
    transform: translateY(-2px);
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--accent-blue);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    transition: 0.2s;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(91, 127, 255, 0.2);
}

.btn-primary:hover {
    filter: brightness(1.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px #5b7fff59;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: 0.2s;
    border-radius: 8px;
}

.btn-ghost:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.03);
}

#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 48px 150px;
    position: relative;
}

.hero-avatar-wrap {
    position: absolute;
    top: 56px;
    right: 0;
    width: 52vw;
    height: calc(100vh - 56px);
    overflow: hidden;
    pointer-events: none;
}

.hero-avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(40%) contrast(1.1);
    opacity: 0.35;
    mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.8) 20%, transparent 100%);
    -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.8) 20%, transparent 100%);
}

.hero-tag {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--accent-blue);
    margin-bottom: 20px;
}

.hero-title {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: clamp(90px, 14vw, 200px);
    line-height: 0.88;
    letter-spacing: 0.02em;
    color: #fff;
}

.hero-sub {
    margin-top: 32px;
    max-width: 440px;
    font-size: 0.95rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
}

.hero-actions {
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 16px;
}

/* =========================================
   3. BENTO LAYOUT (GŁÓWNY KONTENER)
   ========================================= */
.bento-layout {
    max-width: 1350px;
    margin: 0 auto 100px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.bento-panel {
    background-color: var(--bg-panel);
    border: 1px solid var(--border-panel);
    border-radius: var(--radius-panel);
    padding: 32px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
}

.panel-label {
    background-color: rgba(91, 127, 255, 0.15);
    color: var(--accent-blue);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
    margin: 0 auto 24px;
    padding: 6px 12px;
    border-radius: 4px;
    display: inline-block;
}

.panel-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.title-dash {
    display: inline-block;
    width: 20px;
    height: 4px;
    margin-right: 12px;
    border-radius: 2px;
}

.title-dash.pink { background-color: var(--accent-pink); }
.title-dash.blue { background-color: var(--accent-blue); }
.title-dash.orange { background-color: var(--accent-orange); }

/* =========================================
   4. GÓRNY WIERSZ & SOCIAL MEDIA
   ========================================= */

/* Dodaj to, aby ikony miały stały obszar roboczy */
.row-item .item-icon {
    width: 24px;         /* Stała szerokość kontenera ikony */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    text-align: center;  /* Backup dla starszych przeglądarek */
}

/* Upewnij się, że tekst i ikona są w tej samej linii */
.row-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
}

/* Kolory Oryginalne Social Media (bez zmian, ale dla porządku) */
.social-twitch i    { color: #a970ff !important; }
.social-youtube i   { color: #ff0000 !important; }
.social-instagram i { color: #e4405f !important; }
.social-tiktok i    { color: #ffffff !important; }
.social-discord i   { color: #5865f2 !important; }

/* Poprawka hovera, aby skalowała się ikona wewnątrz stałego kontenera */
.bento-item[class*="social-"]:hover .item-icon i {
    filter: brightness(1.2);
    transform: scale(1.1);
    transition: var(--transition);
}
.bento-top-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.bento-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bento-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-card);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-main);
    display: block;
}

.bento-item:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.row-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
}

.item-left {
    display: flex;
    align-items: center;
}

.item-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.item-icon {
    font-size: 1.2rem;
    color: var(--text-main);
    transition: var(--transition);
}

/* Kolory Oryginalne Social Media */
.social-twitch i    { color: #a970ff !important; }
.social-youtube i   { color: #ff0000 !important; }
.social-instagram i { color: #e4405f !important; }
.social-tiktok i    { color: #ffffff !important; }
.social-discord i   { color: #5865f2 !important; }

/* Nadpisanie domyślnego hovera dla social mediów */
.bento-item[class*="social-"]:hover .item-icon {
    filter: brightness(1.2);
    transform: scale(1.1);
}

/* Domyślny hover dla reszty ikon */
.row-item:hover .item-icon:not([class*="social-"] i) {
    color: var(--accent-blue);
}

.input-item {
    padding: 16px 20px;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-label {
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.input-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid var(--border-panel);
    padding: 12px 16px;
    border-radius: 8px;
    width: 100%;
    overflow: hidden;
}

.input-val {
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 85%;
}

.input-box i {
    color: var(--text-muted);
    transition: var(--transition);
}

.input-item:hover .input-box i {
    color: #fff;
}

.copy-tooltip-inline {
    position: absolute;
    right: 20px;
    top: 16px;
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--accent-green);
    opacity: 0;
    transition: opacity 0.2s;
    text-transform: uppercase;
}

.copy-active .copy-tooltip-inline {
    opacity: 1;
}

/* =========================================
   5. GIVEAWAY
   ========================================= */
.panel-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-panel);
    padding-bottom: 24px;
    flex-wrap: wrap;
    gap: 20px;
}

.panel-desc {
    font-size: 0.8rem;
    color: var(--accent-blue);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

.panel-desc .highlight { color: #fff; }
.header-right { text-align: right; }

.total-label {
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.total-val {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.gw-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.gw-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-card);
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.gw-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.gw-badges {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.badge {
    font-size: 0.6rem;
    font-weight: 800;
    padding: 6px 10px;
    border-radius: 6px;
    text-transform: uppercase;
}

.badge.red { background-color: #ff2a2a; color: #fff; }
.badge.purple { background-color: #4a2b82; color: #fff; border: 1px solid #6b4cbb; }

.gw-img-wrap {
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.gw-img-wrap img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.5));
    transition: transform var(--transition);
    image-rendering: high-quality;
}

.gw-card:hover .gw-img-wrap img {
    transform: scale(1.08);
}

.gw-skin-name {
    font-weight: 800;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 6px;
    line-height: 1.2;
}

.gw-skin-wear {
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

.gw-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid var(--border-panel);
    padding-top: 16px;
    margin-top: auto;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    gap: 8px;
}

.meta-row span { color: var(--text-muted); font-weight: 600; white-space: nowrap; }
.meta-row strong { color: var(--accent-blue); font-weight: 800; text-align: right; }
.meta-row .highlight-pink { color: var(--accent-pink); }

.gw-cta-card {
    background-color: var(--accent-blue);
    border-radius: var(--radius-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.2rem;
    transition: var(--transition);
    text-align: center;
    padding: 20px;
    height: 100%;
    min-height: 200px;
    box-shadow: 0 4px 15px rgba(91, 127, 255, 0.2);
}

.gw-cta-card:hover {
    filter: brightness(1.15);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(91, 127, 255, 0.4);
}

.gw-cta-card i { margin-left: 8px; }

/* =========================================
   6. SPECYFIKACJA
   ========================================= */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
}

.spec-col {
    display: flex;
    flex-direction: column;
}

.col-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.title-icon-blue { color: var(--accent-blue); font-size: 1.1rem; }
.title-icon-pink { color: var(--accent-pink); font-size: 1.1rem; }

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-panel);
    font-size: 0.85rem;
    gap: 16px;
}

.spec-row span { color: var(--text-muted); font-weight: 600; white-space: nowrap; }
.spec-row strong { color: #fff; font-weight: 700; text-align: right; }

/* =========================================
   7. USTAWIENIA CS2
   ========================================= */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-box {
    background-color: var(--bg-body);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-card);
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

.stat-box span {
    color: var(--text-muted);
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-box strong {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1;
}

.stat-box .orange-text { color: var(--accent-orange); }

.code-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.code-box .green-text { color: var(--accent-green); font-family: monospace; }
.code-box .blue-text {
    color: var(--accent-blue);
    font-family: monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 85%;
    display: block;
}

/* =========================================
   ZAKŁADKI (TABS) - CS2 SETTINGS
   ========================================= */
.settings-bento {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.tabs-sidebar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 240px;
    flex-shrink: 0;
}

.tab-btn {
    background-color: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-card);
    padding: 16px 20px;
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.tab-btn i {
    color: var(--text-muted);
    transition: var(--transition);
}

.tab-btn:hover {
    border-color: var(--border-hover);
    background-color: var(--bg-panel);
    transform: translateX(4px);
}

.tab-btn:hover i {
    color: #fff;
}

.tab-btn.active {
    background-color: #5b7fff59;
    border-color: #12012b;
    color: #fff;
    transform: translateX(0);
}

.tab-btn.active i {
    color: #ffffff;
}

.tabs-content {
    flex-grow: 1;
    background-color: var(--bg-panel);
    border: 1px solid var(--border-panel);
    border-radius: var(--radius-panel);
    padding: 32px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.tab-panel {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   8. FOOTER
   ========================================= */
footer {
    border-top: 1px solid var(--border-panel);
    padding: 40px 20px;
    text-align: center;
    margin-top: auto;
}

.footer-logo {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
    display: inline-block;
    color: #fff;
}

.footer-legal {
    color: var(--text-muted);
    font-size: 0.75rem;
    max-width: 500px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

.footer-warning {
    color: #ff3333;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.7rem;
}

.footer-credit {
    color: var(--border-card);
    font-size: 0.75rem;
    font-weight: 600;
}

/* =========================================
   9. MEDIA QUERIES
   ========================================= */
@media (max-width: 1024px) {
    .bento-top-row { grid-template-columns: 1fr; }
    .gw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .specs-grid { grid-template-columns: 1fr; }
    .stats-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .code-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .settings-bento { flex-direction: column; }
    .tabs-sidebar {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    .tab-btn { white-space: nowrap; }
    .tab-btn:hover { transform: translateY(-2px); }
}

@media (max-width: 600px) {
    .gw-grid { grid-template-columns: 1fr; }
    .stats-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .panel-header-flex { flex-direction: column; align-items: flex-start; gap: 16px; }
    .header-right { text-align: left; }
    #hero { padding: 0 20px 80px; }
    .hero-title { font-size: 100px; }
}

/* =========================================
   10. PRELOADER (ANIMACJA ŁADOWANIA)
   ========================================= */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-body);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s;
}

#preloader.preloader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-ring {
    width: 48px;
    height: 48px;
    border: 3px solid transparent;
    border-top-color: var(--accent-blue);
    border-bottom-color: var(--accent-pink);
    border-radius: 50%;
    position: relative;
    animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    box-shadow: 0 0 20px rgba(91, 127, 255, 0.2);
}

.loader-ring::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 3px solid transparent;
    border-left-color: var(--accent-blue);
    border-right-color: var(--accent-orange);
    border-radius: 50%;
    animation: spin-reverse 0.8s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

@keyframes spin-reverse {
    100% { transform: rotate(-360deg); }
}