:root {
    --bg-color: #0b0f19; --text-main: #ffffff; --text-muted: #a1a1aa;
    --accent-glow: rgba(168, 85, 247, 0.6); --card-bg: rgba(255, 255, 255, 0.04);
    --card-border: rgba(255, 255, 255, 0.08); --pro-color: #f59e0b;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, sans-serif; }
body { background-color: var(--bg-color); color: var(--text-main); display: flex; justify-content: center; align-items: center; height: 100vh; overflow: hidden; background: radial-gradient(circle at top right, #1a163a, #0b0f19 60%); }

.app-window { width: 1100px; height: 750px; background: rgba(11, 15, 25, 0.85); backdrop-filter: blur(25px); border-radius: 16px; display: flex; flex-direction: column; border: 1px solid rgba(168, 85, 247, 0.4); box-shadow: 0 0 30px rgba(59, 130, 246, 0.15), inset 0 0 20px rgba(168, 85, 247, 0.05), 0 25px 50px -12px rgba(0, 0, 0, 0.7); }

/* Umożliwia przesuwanie okna */
.top-bar { display: flex; justify-content: space-between; align-items: center; padding: 15px 25px; border-bottom: 1px solid var(--card-border); -webkit-app-region: drag; }
.logo { font-weight: bold; font-size: 1.2rem; color: #c084fc; text-shadow: 0 0 10px var(--accent-glow); }

/* Zabezpiecza klikalne elementy przed "ciągnięciem" */
.main-nav a, .window-controls span, .nav-btn, .toggle-switch, input, button, select { -webkit-app-region: no-drag; }

.main-nav a { color: var(--text-muted); text-decoration: none; margin: 0 12px; font-size: 0.9rem; transition: 0.3s; }
.main-nav a:hover, .main-nav a.active-link { color: var(--text-main); text-shadow: 0 0 8px rgba(255,255,255,0.5); }
.window-controls span { margin-left: 15px; color: var(--text-muted); cursor: pointer; transition: 0.2s; } .window-controls span:hover { color: white; }

.sub-nav { display: flex; gap: 10px; padding: 15px 25px; }
.nav-btn { background: var(--card-bg); border: 1px solid var(--card-border); color: var(--text-main); padding: 10px 16px; border-radius: 12px; cursor: pointer; font-size: 0.9rem; display: flex; align-items: center; gap: 8px; transition: all 0.3s; }
.nav-btn:hover { background: rgba(255,255,255,0.08); }
.nav-btn.active { background: rgba(168, 85, 247, 0.15); border: 1px solid #c084fc; box-shadow: 0 0 15px var(--accent-glow); }
.nav-btn.pro-btn i { color: var(--pro-color); }

.content { flex-grow: 1; padding: 0 25px; display: flex; flex-direction: column; gap: 15px; overflow-y: auto; padding-bottom: 20px; position: relative; }
.content::-webkit-scrollbar { width: 6px; } .content::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 10px; }

.glass-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 12px; padding: 20px; display: flex; align-items: center; transition: 0.3s; position: relative; overflow: hidden; }
.glass-card:hover { border-color: rgba(168, 85, 247, 0.3); }
.card-icon { font-size: 1.8rem; margin-right: 15px; color: var(--text-muted); width: 35px; text-align: center; }
.card-text { flex-grow: 1; z-index: 1; }
.card-text h2 { font-size: 1rem; margin-bottom: 4px; font-weight: 600; }
.card-text p { color: var(--text-muted); font-size: 0.8rem; line-height: 1.4; }

.toggle-switch { position: relative; display: inline-block; width: 50px; height: 26px; flex-shrink: 0; z-index: 1; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #3f3f46; transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: #c084fc; box-shadow: 0 0 12px var(--accent-glow); }
input:checked + .slider:before { transform: translateX(24px); }
input:checked + .pro-slider { background-color: var(--pro-color); box-shadow: 0 0 12px rgba(245, 158, 11, 0.5); }

.advanced-card { flex-direction: column; align-items: stretch; }
.advanced-header { display: flex; align-items: center; margin-bottom: 20px; }
.sub-cards-container { display: flex; gap: 15px; }
.sub-card { flex: 1; background: rgba(0,0,0,0.3); border: 1px solid var(--card-border); border-radius: 12px; padding: 15px; display: flex; align-items: center; justify-content: space-between; }
.sub-card i { margin-right: 10px; color: var(--text-muted); } .sub-card span { flex-grow: 1; font-size: 0.85rem; }
.small-toggle { width: 44px; height: 24px; } .small-toggle .slider:before { height: 18px; width: 18px; left: 3px; bottom: 3px; } .small-toggle input:checked + .slider:before { transform: translateX(20px); }

.account-wrapper { display: flex; justify-content: center; align-items: center; height: 100%; }
.account-card { background: #121212; border: 1px solid #27272a; border-radius: 16px; padding: 40px; width: 420px; text-align: center; display: flex; flex-direction: column; gap: 15px; }
.account-avatar { font-size: 3rem; color: #fff; margin-bottom: 5px; }
.account-field { display: flex; justify-content: space-between; align-items: center; background: #18181b; padding: 12px 20px; border-radius: 8px; border: 1px solid #27272a; font-size: 0.9rem; }
.field-label { color: var(--text-muted); } .field-value { font-weight: bold; }
.license-input-box { display: flex; gap: 10px; margin-top: 5px; }
.license-input { flex-grow: 1; background: #18181b; border: 1px solid var(--card-border); color: white; padding: 10px; border-radius: 8px; outline: none; }
.license-activate-btn { background: var(--pro-color); color: #000; font-weight: bold; border: none; padding: 0 15px; border-radius: 8px; cursor: pointer; transition: 0.3s; } .license-activate-btn:hover { background: #d97706; }
.account-btn { background: #27272a; color: white; border: none; padding: 12px; border-radius: 8px; cursor: pointer; font-weight: bold; transition: 0.3s; } .account-btn:hover { background: #3f3f46; }
.account-info { font-size: 0.75rem; color: var(--text-muted); margin-top: 5px; } .account-link { color: #ef4444; text-decoration: none; font-size: 0.85rem; }

.pro-header-actions { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.pro-banner { background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.3); color: #fcd34d; padding: 10px 15px; border-radius: 10px; font-size: 0.85rem; }
.pro-buttons { display: flex; gap: 10px; }
.pro-sub-nav { display: flex; gap: 10px; margin-bottom: 15px; background: rgba(0,0,0,0.3); padding: 5px; border-radius: 10px; width: fit-content; }
.pro-sub-btn { background: transparent; color: var(--text-muted); border: none; padding: 8px 16px; border-radius: 8px; cursor: pointer; font-weight: bold; transition: 0.3s; }
.pro-sub-btn.active { background: rgba(245, 158, 11, 0.2); color: var(--pro-color); }
.pro-grid-dense { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pro-card-small { padding: 15px; flex-direction: column; align-items: flex-start; position: relative; padding-bottom: 45px; }
.pro-card-small h2 { font-size: 0.9rem; } .pro-card-small p { font-size: 0.75rem; margin-top: 4px; }
.pro-card-small .toggle-switch { position: absolute; bottom: 12px; right: 15px; }
.pro-action-btn-small { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: white; padding: 8px 12px; border-radius: 8px; cursor: pointer; font-size: 0.8rem; transition: 0.3s; z-index: 2; }
.pro-action-btn-small:hover { border-color: var(--pro-color); }

.ram-slider-container { display: flex; align-items: center; gap: 15px; margin-top: 15px; width: 100%; z-index: 1; }
.styled-slider { -webkit-appearance: none; width: 100%; height: 6px; border-radius: 5px; background: #3f3f46; outline: none; }
.styled-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--pro-color); cursor: pointer; box-shadow: 0 0 10px rgba(245,158,11,0.5); }
#cpu-slider::-webkit-slider-thumb { background: #4ade80; box-shadow: 0 0 10px rgba(74, 222, 128, 0.5); }

.locked-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(11, 15, 25, 0.4); backdrop-filter: grayscale(50%) blur(1px); display: flex; justify-content: center; align-items: center; z-index: 10; cursor: not-allowed; transition: 0.3s; border-radius: inherit; }
.locked-overlay i { font-size: 2.5rem; color: #71717a; text-shadow: 0 2px 4px rgba(0,0,0,0.8); opacity: 0.8; transition: 0.3s;}
.pro-feature-item:hover .locked-overlay i { color: var(--pro-color); opacity: 1; transform: scale(1.1); }

.pro-card-tool { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 25px 20px; }
.pro-card-tool h3 { font-size: 1rem; margin-bottom: 8px; }
.pro-card-tool p { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 20px; line-height: 1.4; }
.tool-icon { font-size: 2.5rem; margin-bottom: 15px; color: #c084fc; }
.tool-checkboxes { display: flex; flex-direction: column; gap: 8px; text-align: left; width: 100%; margin-bottom: 15px; }
.tool-checkboxes label { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--text-muted); cursor: pointer; }
.tool-btn { background: rgba(255,255,255,0.05); border: 1px solid var(--card-border); color: white; padding: 10px 15px; border-radius: 8px; cursor: pointer; font-size: 0.85rem; font-weight: bold; width: 100%; transition: 0.3s; margin-top: auto; z-index: 2; }
.tool-btn:hover { background: rgba(168, 85, 247, 0.2); border-color: #c084fc; }
.dns-text { font-size: 0.75rem; color: #a1a1aa; margin: 5px 0 15px 0; }
.dns-val { color: white; font-weight: bold; }

.search-container { display: flex; align-items: center; background: rgba(0,0,0,0.3); border: 1px solid var(--card-border); padding: 12px 15px; border-radius: 10px; margin-bottom: 15px; }
.search-container i { color: var(--text-muted); margin-right: 10px; } .search-container input { background: transparent; border: none; color: white; width: 100%; outline: none; font-size: 0.9rem; }
.games-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.game-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: 0.3s; position: relative; }
.game-card:hover { border-color: #c084fc; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.3); }
.game-card img { width: 100%; height: 110px; object-fit: cover; }
.game-info { padding: 15px; display: flex; flex-direction: column; flex-grow: 1; z-index: 1;}
.game-info h3 { font-size: 0.95rem; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-info p { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 12px; }
.game-opt-btn { background: rgba(168, 85, 247, 0.2); border: 1px solid #c084fc; color: white; padding: 6px; border-radius: 6px; cursor: pointer; font-weight: bold; font-size: 0.8rem; transition: 0.3s; position: relative; z-index: 2;}
.game-opt-btn:hover { background: #c084fc; }

.store-btn { background: #000; border: 1px solid #333; color: white; padding: 10px 15px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 0.9rem; width: 200px; transition: 0.3s; z-index: 2;}
.store-btn:hover { background: #111; border-color: #555; }
.store-btn i { font-size: 1.2rem; }
.pro-action-btn { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: white; padding: 8px 16px; border-radius: 8px; cursor: pointer; transition: 0.3s; z-index: 2;}

.custom-select { background: #18181b; color: white; border: 1px solid var(--card-border); padding: 8px 12px; border-radius: 8px; outline: none; cursor: pointer; }
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 1000; display: flex; justify-content: center; align-items: center; backdrop-filter: blur(5px); }
.modal-box { background: #121212; border: 1px solid var(--card-border); padding: 40px; border-radius: 16px; text-align: center; width: 400px; box-shadow: 0 0 50px rgba(168, 85, 247, 0.2); }
.loader { border: 4px solid #27272a; border-top: 4px solid #c084fc; border-radius: 50%; width: 40px; height: 40px; animation: spin 1s linear infinite; margin: 20px auto 0; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.status-bar { padding: 12px 20px; font-size: 0.8rem; color: var(--text-muted); border-top: 1px solid var(--card-border); text-align: center; background: rgba(0,0,0,0.2); }

.toast-container { position: fixed; bottom: 30px; right: 30px; display: flex; flex-direction: column; gap: 10px; z-index: 9999; }
.toast { min-width: 250px; padding: 15px 20px; border-radius: 8px; color: white; font-size: 0.9rem; font-weight: 500; display: flex; align-items: center; gap: 12px; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); transform: translateX(120%); animation: slideIn 0.4s forwards; }
.toast.removing { animation: slideOut 0.4s forwards; }
.toast.error { background: rgba(15, 23, 42, 0.95); border-left: 5px solid #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); border-left-width: 5px; }
.toast.error i { color: #c084fc; font-size: 1.2rem; }
.toast.success { background: rgba(15, 23, 42, 0.95); border-left: 5px solid #22c55e; border: 1px solid rgba(34, 197, 94, 0.3); border-left-width: 5px; }
.toast.success i { color: #22c55e; font-size: 1.2rem; }
@keyframes slideIn { to { transform: translateX(0); } }
@keyframes slideOut { to { transform: translateX(120%); opacity: 0; } }

.stat-row { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: 5px; }
.mt-10 { margin-top: 15px; }
.good-val { color: #4ade80; }
.warn-val { color: #fbbf24; }
.monitor-header { text-align: center; margin-bottom: 10px; }
.monitor-header h2 { font-size: 1.4rem; color: #fff; }
.monitor-header p { font-size: 0.85rem; color: var(--text-muted); }
.monitor-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 15px; }
.monitor-card { flex-direction: column; align-items: stretch; padding: 25px; }
.monitor-card h3 { text-align: center; margin-bottom: 5px; font-size: 1.2rem; letter-spacing: 1px; }
.hw-name { display: block; text-align: center; color: var(--text-muted); font-size: 0.85rem; margin-bottom: 15px; }
.progress-bg { width: 100%; height: 6px; background: #27272a; border-radius: 4px; overflow: hidden; margin-top: 5px; margin-bottom: 5px;}
.progress-fill { height: 100%; background: #3b82f6; }
.gpu-fill { background: #10b981; } .ram-fill { background: #f59e0b; }

/* DODATKI DLA NOWEGO MONITORA PC */
.detailed-card {
    flex-direction: column;
    align-items: stretch;
    padding: 30px;
    background: rgba(15, 23, 42, 0.4);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}
.stat-group {
    background: rgba(0,0,0,0.3);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--card-border);
    margin-bottom: 15px;
}
.progress-bg {
    background: rgba(255,255,255,0.05);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
    transition: width 0.5s ease;
}
.gpu-fill {
    background: linear-gradient(90deg, #10b981, #34d399);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}
.ram-fill {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}