:root {
    --bg-sidebar: #0f1724;
    --bg-gradient-start: #081229;
    --bg-gradient-end: #142033;
    --accent: #0066cc;
    --accent-hover: #0052a3;
    --text-main: #ffffff;
    --text-muted: #a0aec0;
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --sidebar-width-collapsed: 80px;
    --sidebar-width-expanded: 240px;
    --transition-speed: 0.3s;
    --profit-pos: #10b981;
    --profit-neg: #ef4444;
    --iban-color: #3b82f6;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
}

/* --- SIDEBAR [ZABLOKOWANY] --- */
.sidebar {
    background-color: var(--bg-sidebar);
    width: var(--sidebar-width-collapsed);
    height: 100vh;
    position: fixed; left: 0; top: 0;
    display: flex; flex-direction: column; align-items: center;
    padding: 20px 0; transition: width var(--transition-speed) ease;
    z-index: 1000; border-right: 1px solid var(--border-color); overflow-y: auto; overflow-x: hidden;
}
.sidebar::-webkit-scrollbar { width: 0; }
.sidebar.expanded { width: var(--sidebar-width-expanded); align-items: flex-start; padding-left: 0; }

.sidebar-toggle { cursor: pointer; font-size: 24px; color: var(--text-main); margin-bottom: 20px; width: 100%; text-align: center; background: none; border: none; height: 40px; }
.sidebar.expanded .sidebar-toggle { text-align: right; padding-right: 20px; }

.nav-item { display: flex; align-items: center; width: 100%; padding: 15px 0; cursor: pointer; transition: background 0.2s; color: var(--text-muted); text-decoration: none; white-space: nowrap; position: relative; z-index: 2;}
.nav-item:hover, .nav-item.active { background-color: rgba(255,255,255,0.05); color: var(--text-main); border-left: 3px solid var(--accent); }

#nav-shop { background: transparent; border-left: 3px solid transparent; }
#nav-shop.active { border-left: 3px solid var(--accent); background-color: rgba(255,255,255,0.05); }

.nav-icon { width: var(--sidebar-width-collapsed); display: flex; justify-content: center; align-items: center; flex-shrink: 0; }
.nav-icon img { width: 32px; height: 32px; object-fit: contain; transition: transform 0.2s; }
.nav-icon img.flag-icon { border-radius: 50%; }
.nav-icon img.whatsapp-icon { width: 64px; height: 64px; }
.nav-item:hover .nav-icon img { transform: scale(1.1); }

/* Fix for label visibility in expanded mode */
.nav-label { opacity: 0; transition: opacity 0.2s; font-size: 0.9rem; pointer-events: none; margin-left: 0; white-space: nowrap; display: none; }
.sidebar.expanded .nav-label { opacity: 1; pointer-events: auto; display: block; margin-left: 10px; }

.nav-separator { width: 80%; height: 1px; background: var(--border-color); margin: 10px auto; }
.nav-icon-text { font-weight: 800; font-size: 1.1rem; color: var(--text-main); letter-spacing: 1px; }

/* --- MAIN CONTENT (Dostosowanie do paska) --- */
.main-content {
    margin-left: var(--sidebar-width-collapsed);
    width: calc(100% - var(--sidebar-width-collapsed));
    transition: margin-left var(--transition-speed) ease, width var(--transition-speed) ease; /* Dodanie transition dla płynności */
    display: flex; flex-direction: column; min-height: 100vh;
}

.sidebar.expanded + .main-content {
    margin-left: var(--sidebar-width-expanded);
    width: calc(100% - var(--sidebar-width-expanded));
}

/* --- HEADER [ZABLOKOWANY] --- */
.header {
    background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(10px); padding: 2.2vh 3vw;
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 900;
}
.header-left a { display: flex; align-items: center; text-decoration: none; transition: transform 0.2s; gap: 15px; }
.header-left a:hover { transform: scale(1.05); }
.header-left img { height: 80px; width: auto; background: transparent; padding: 0; display: block; }

.mobile-logo-text {
    display: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 1px;
}

.header-center { text-align: center; }
.header-center h1 { font-size: 1.6rem; font-weight: 700; letter-spacing: 0.5px; }
.header-center p { color: var(--text-muted); font-size: 0.95rem; }
.header-right { display: flex; align-items: center; gap: 20px; }
.user-profile { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,0.05); padding: 5px 15px 5px 5px; border-radius: 30px; border: 1px solid var(--border-color); cursor: pointer; }
.user-profile img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--accent); object-fit: cover; }
.discord-btn { background-color: #5865F2; color: white; border: none; padding: 12px 24px; border-radius: 8px; cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: 8px; text-decoration: none; }

/* --- CONTENT --- */
#content-container { flex: 1; padding: 40px 3%; position: relative; }
.view-section { display: none; animation: fadeIn 0.5s ease; width: 100%; }
.view-section.active { display: block; }

/* --- MENU TILES --- */
.menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; padding-top: 40px; }
.menu-tile { background: var(--glass-bg); border: 1px solid var(--border-color); border-radius: 20px; padding: 40px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; backdrop-filter: blur(10px); text-align: center; min-height: 250px; }
.menu-tile:hover { transform: translateY(-10px); border-color: var(--accent); background: rgba(255, 255, 255, 0.08); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4); }
.menu-icon { width: 80px; height: 80px; margin-bottom: 20px; object-fit: contain; }
.menu-title { font-size: 1.5rem; font-weight: 700; color: var(--text-main); }

/* --- SHOP [ZABLOKOWANE DANE] --- */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }
.product-card { background: var(--glass-bg); border: 1px solid var(--border-color); border-radius: 16px; overflow: hidden; transition: transform 0.3s; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.product-img-wrapper { width: 100%; height: 200px; background: radial-gradient(circle at center, #1a2b4d 0%, #0f1724 100%); display: flex; justify-content: center; align-items: center; padding: 20px; background-size: cover !important; background-position: center !important; background-repeat: no-repeat !important; }
.product-img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 0 10px rgba(0,0,0,0.5)); opacity: 1; }
.product-info { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.product-price-row { margin-bottom: 15px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,0.05); }
.price-pln { font-size: 1.3rem; font-weight: 700; color: var(--accent); }
.price-old { text-decoration: line-through; color: #ef4444; font-size: 0.9rem; margin-right: 5px; }
.price-discounted { color: #10b981; }
.price-eur { font-size: 0.85rem; color: var(--text-muted); text-align: right; margin-top: 2px; }
.buy-btn { width: 100%; padding: 12px; background: var(--accent); color: white; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; transition: background 0.2s; text-transform: uppercase; letter-spacing: 0.5px; }
.buy-btn:hover { background-color: var(--accent-hover); }

/* --- TOOLS UI --- */
.tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tool-card { background: var(--glass-bg); border: 1px solid var(--border-color); border-radius: 16px; padding: 30px 20px; text-align: center; cursor: pointer; transition: all 0.3s; }
.tool-card:hover { transform: translateY(-5px); border-color: var(--accent); background: rgba(255,255,255,0.08); }
.tool-icon { font-size: 2.5rem; margin-bottom: 15px; display: block; }
.tool-name { font-size: 1.1rem; font-weight: 600; }

.tool-box { max-width: 700px; }
.tool-form-container { display: flex; flex-direction: column; gap: 15px; }
.tool-row { display: flex; gap: 15px; }
.tool-col { flex: 1; }
.tool-input-wrapper { position: relative; margin-bottom: 5px; }
.tool-label { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 6px; font-weight: 500; }
.tool-label img { width: 20px; height: 20px; object-fit: contain; cursor: pointer; transition: transform 0.2s;}
.tool-label img:hover { transform: scale(1.2); }
.tool-input { width: 100%; background: #0f1724; border: 1px solid var(--border-color); padding: 12px 15px; border-radius: 8px; color: white; font-size: 1rem; transition: border-color 0.2s; }
.tool-input:focus { outline: none; border-color: var(--accent); }
.tool-select { width: 100%; background: #0f1724; border: 1px solid var(--border-color); padding: 12px 15px; border-radius: 8px; color: white; cursor: pointer; }
.tool-checkbox-group { display: flex; gap: 20px; align-items: center; margin-top: 5px; background: rgba(255,255,255,0.03); padding: 10px; border-radius: 8px; }
.tool-checkbox-group label { cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 0.95rem; }

.tool-result-modern {
    margin-top: 20px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid #10b981;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    animation: slideUp 0.3s ease;
    display: none;
}
.tool-result-modern.visible { display: block; }
.result-value { font-size: 1.5rem; font-weight: 700; color: white; margin: 5px 0; }
.result-label { font-size: 0.9rem; color: #a0aec0; }
.bless-list { text-align: left; width: 100%; font-size: 0.95rem; }
.bless-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.bless-row:last-child { border-bottom: none; font-weight: 700; color: #10b981; font-size: 1.1rem; margin-top: 10px; }

/* Loot Split */
.loot-textarea { width: 100%; height: 150px; background: #0f1724; border: 1px solid var(--border-color); color: white; padding: 10px; border-radius: 8px; resize: vertical; font-family: monospace; font-size: 0.85rem; }
.copy-btn-small { background: #333; color: white; border: 1px solid #555; padding: 4px 8px; border-radius: 4px; cursor: pointer; font-size: 0.8rem; }
.copy-btn-small:hover { background: var(--accent); border-color: var(--accent); }

/* --- OTHER VIEWS [ZABLOKOWANE DANE] --- */
.channels-container { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.channel-col { background: rgba(255,255,255,0.02); border-radius: 16px; padding: 20px; border: 1px solid var(--border-color); }

.channel-header {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 20px;
    color: var(--accent);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}
.platform-header-icon {
    height: 28px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
}

.channel-list { display: flex; flex-direction: column; gap: 15px; }
.channel-item { display: flex; align-items: center; gap: 15px; background: var(--glass-bg); padding: 10px; border-radius: 10px; text-decoration: none; color: white; margin-bottom: 10px; transition: background 0.2s; }
.channel-item:hover { background: rgba(255,255,255,0.1); }
.channel-avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.platform-icon { width: 18px; height: 18px; object-fit: contain; margin-right: 5px; }

.traders-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 25px; }
.trader-card { background: var(--glass-bg); border: 1px solid var(--border-color); border-radius: 16px; padding: 20px; text-align: center; cursor: pointer; transition: all 0.3s; }
.trader-card:hover { transform: translateY(-5px); border-color: #10b981; }
.trader-img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin-bottom: 15px; border: 2px solid #10b981; }
.trader-name { font-weight: 700; font-size: 1.1rem; margin-bottom: 5px; }
.trader-status { color: #10b981; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }

.payments-section { padding: 40px 3%; width: 100%; }
.payments-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 20px; }
.section-title { text-align: center; font-size: 1.8rem; margin-bottom: 30px; background: linear-gradient(90deg, #fff, #a0aec0); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.payment-card { background: var(--glass-bg); border: 1px solid var(--border-color); border-radius: 12px; padding: 20px 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: transform 0.3s; cursor: default; }
.payment-card:hover { transform: scale(1.05); border-color: var(--accent); background: rgba(255,255,255,0.08); }
.payment-icon { width: 100%; height: 50px; object-fit: contain; margin-bottom: 10px; }

.faq-section { padding: 60px 0; width: 90%; max-width: 1400px; margin: 0 auto; }
.faq-title { text-align: center; margin-bottom: 40px; font-size: 2rem; background: linear-gradient(90deg, #fff, #a0aec0); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.faq-item { background: var(--glass-bg); border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; margin-bottom: 10px; }
.faq-question { padding: 20px; cursor: pointer; display: flex; justify-content: space-between; font-weight: 600; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; background: rgba(0,0,0,0.2); padding: 0 20px; color: var(--text-muted); }
.faq-answer.open { padding: 20px; border-top: 1px solid var(--border-color); }

#faq-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: flex-start;
}

.promo-card { background: #1e293b; border-color: #f59e0b; }
.promo-input { width: 100%; margin-top: 5px; padding: 10px; border-radius: 5px; border: 1px solid var(--border-color); background: #0f1724; color: white; text-align: center;}
.promo-check-btn { width: 100%; margin-top: 10px; padding: 10px; background: var(--accent); color: white; border: none; border-radius: 5px; cursor: pointer; font-weight: 600; text-transform: uppercase;}

/* --- FOOTER COMPACT [ZABLOKOWANY] --- */
.footer {
    background-color: var(--bg-sidebar);
    color: var(--text-muted);
    padding: 15px 3% 10px 3%; /* Reduced padding */
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 20px; /* Reduced gap */
    width: 95%;
    margin: 0 auto 15px auto; /* Reduced margin */
    align-items: center;
}

.footer-col h3 {
    color: white;
    margin-bottom: 10px; /* Reduced margin */
    font-size: 1rem; /* Smaller font */
    border-bottom: 2px solid var(--accent);
    display: inline-block;
    padding-bottom: 2px;
}
.footer-contact p { margin-bottom: 5px; font-size: 0.85rem; } /* Compact rows */

.nip-text a, .reseller-info a {
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 1px dotted var(--text-muted);
    transition: color 0.2s;
}
.nip-text a:hover, .reseller-info a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.footer-contact a.contact-link {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 5px;
    transition: color 0.2s;
}
.footer-contact a.contact-link:hover { color: var(--accent); }

.footer-img-container {
    text-align: center;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-img-container img {
    max-width: 420px; /* Large Image */
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
}

.reseller-info { margin-top: 10px; font-size: 0.8rem; color: var(--text-muted); line-height: 1.4; }

.footer-bank {
    text-align: left;
    padding-left: 20px;
    background: rgba(255,255,255,0.03);
    padding: 15px; /* Reduced padding */
    border-radius: 12px;
    border: 1px solid var(--border-color);
    justify-self: end;
    width: 100%;
    max-width: 450px;
}

.bank-row { margin-bottom: 8px; font-size: 0.85rem; } /* Compact rows */
.bank-row .footer-label {
    color: #fff;
    display: block;
    margin-bottom: 2px;
    font-size: 0.75rem;
    text-transform: uppercase;
    opacity: 0.7;
}
.iban-text {
    font-family: monospace;
    letter-spacing: 0.5px;
    color: var(--iban-color);
    font-weight: 700;
    word-break: break-all;
    font-size: 0.9rem;
}

.footer-bottom { text-align: center; padding-top: 10px; border-top: 1px solid var(--border-color); font-size: 0.75rem; opacity: 0.7; }

/* --- MODALS --- */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(5px); z-index: 2000; justify-content: center; align-items: center; animation: fadeIn 0.3s ease; overflow-y: auto; padding: 20px; }
.modal-box { background: #142033; border: 1px solid var(--accent); padding: 40px; border-radius: 16px; position: relative; max-width: 600px; width: 100%; animation: slideUp 0.3s ease; display: flex; flex-direction: column; }
.modal-close-btn { position: absolute; top: 15px; right: 15px; background: none; border: none; color: var(--text-muted); font-size: 28px; cursor: pointer; z-index: 10; }
.modal-close-btn:hover { color: white; }
.trader-description { margin-top: 15px; text-align: center; font-size: 1rem; color: var(--text-muted); line-height: 1.5; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 15px; width: 100%; }

/* --- MOBILE NAV --- */
#mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-sidebar);
    border-top: 1px solid var(--border-color);
    justify-content: space-around;
    padding: 10px 0;
    z-index: 1001;
}

#mobile-nav img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    cursor: pointer;
    border-radius: 50%;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

@media (max-width: 900px) {
    .sidebar { display: none; }
    .main-content, .sidebar.expanded + .main-content { margin-left: 0; width: 100%; padding-bottom: 70px; }
    .header { justify-content: center; padding: 15px; }
    .header-center, .header-right { display: none; }
    .header-left img { height: 60px; }
    .mobile-logo-text { display: block; }
    .tools-grid { grid-template-columns: repeat(2, 1fr); }
    #faq-container, .channels-container { grid-template-columns: 1fr; }
    .menu-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .menu-tile { min-height: 150px; padding: 20px; }
    .menu-icon { width: 50px; height: 50px; }
    .menu-title { font-size: 1.2rem; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .footer-bank { justify-self: center; padding-left: 20px; }
    .modal-box, .profile-box { width: 95%; }
    #mobile-nav { display: flex; }
}
