/* --- BUDYN.WTF HEADER START ---
 * System: Budyn-Core
 * File: /assets/css/style.css
 * Version: v1.223
 * Date: 2026-11-06 13:52:40
 * --- BUDYN.WTF HEADER END --- */

/* ========================================== SPIS TREŚCI: 1. FUNDAMENTY I BAZOWY GLASS BOX 2. NAGŁÓWEK, LOGO I ZEGAR i FAZY KSIEZYCA 3. WIDŻET POGODY V3.0 4. CYTATY, KOT, TIMER 5. STOPKA I TERMINAL 6. RWD I MODALE ========================================== */
/* --- 1. FUNDAMENTY I BAZOWY GLASS BOX --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800;900&display=swap');
/* BAZOWE ZMIENNE SYSTEMOWE */
:root {
    --accent: #a5b4fc; /* Domyślny niebieski dla STABLE */
    --header-side-panel-width: 362px;
    --header-side-panel-height: 199px;
    --logo-text-gradient: linear-gradient(180deg, #67e8f9 0%, #6366f1 100%);
}

.ip-intelligence-home-slot { display: flow-root; margin: 20px 0 0; }
.ip-intelligence-home-promo {
    overflow: hidden;
    margin: 0;
    border: 1px solid rgba(244, 114, 182, 0.42);
    border-radius: 12px;
    background: linear-gradient(115deg, rgba(17, 15, 29, 0.98), rgba(8, 15, 28, 0.98));
    box-shadow: 0 10px 28px rgba(2, 6, 23, 0.2), inset 0 1px rgba(255, 255, 255, 0.035);
    color: #e2e8f0;
    font-family: 'Fira Code', monospace;
}
.ip-intelligence-home-promo[hidden], .ip-intelligence-home-dock[hidden] { display: none !important; }
.ip-intelligence-home-promo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 38px;
    padding: 0 12px 0 16px;
    border-bottom: 1px solid rgba(244, 114, 182, 0.2);
    background: linear-gradient(90deg, rgba(190, 24, 93, 0.16), rgba(30, 41, 59, 0.32));
}
.ip-intelligence-home-promo-title { display: inline-flex; align-items: center; gap: 9px; min-width: 0; color: #f9a8d4; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; }
.ip-intelligence-home-promo-title i { color: #67e8f9; }
.ip-intelligence-home-promo-actions { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ip-intelligence-home-promo-beta { padding: 3px 6px; border: 1px solid rgba(103, 232, 249, 0.34); border-radius: 4px; color: #a5f3fc; font-size: 0.56rem; font-weight: 700; letter-spacing: 0.06em; }
.ip-intelligence-home-dismiss {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: #cbd5e1;
    cursor: pointer;
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.ip-intelligence-home-dismiss:hover, .ip-intelligence-home-dismiss:focus-visible { border-color: rgba(248, 113, 113, 0.35); background: rgba(248, 113, 113, 0.12); color: #fecaca; outline: none; }
.ip-intelligence-home-promo-body { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 13px 16px; }
.ip-intelligence-home-prompt { color: #67e8f9; font-size: 0.68rem; white-space: nowrap; }
.ip-intelligence-home-open { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; color: #f8fafc; font-size: 0.76rem; font-weight: 700; text-decoration: none; }
.ip-intelligence-home-open::before { content: ">"; margin-right: 1px; color: #f472b6; }
.ip-intelligence-home-open i { color: #67e8f9; font-size: 0.66rem; }
.ip-intelligence-home-open:hover, .ip-intelligence-home-open:focus-visible { color: #a5f3fc; outline: none; }
.ip-intelligence-home-promo-hint { color: rgba(148, 163, 184, 0.8); font-size: 0.58rem; text-align: right; }
.ip-intelligence-home-dock { display: inline-flex; align-items: center; }
.ip-intelligence-home-dock--standalone { display: flex; justify-content: flex-end; margin-top: 10px; }
.ip-intelligence-home-dock--attached { position: absolute; top: -14px; right: clamp(20px, 3vw, 36px); z-index: 5; }
.ip-intelligence-home-restore {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 28px;
    padding: 4px 9px;
    border: 1px solid rgba(103, 232, 249, 0.35);
    border-radius: 7px;
    background: rgba(8, 15, 28, 0.94);
    color: #a5f3fc;
    font: 700 0.58rem 'Fira Code', monospace;
    letter-spacing: 0.04em;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(2, 6, 23, 0.22);
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.ip-intelligence-home-restore:hover, .ip-intelligence-home-restore:focus-visible { transform: translateY(-1px); border-color: rgba(103, 232, 249, 0.75); background: rgba(8, 47, 73, 0.9); outline: none; }
.ip-intelligence-home-restore-hint { color: #f9a8d4; font-size: 0.52rem; }
.ip-intelligence-home-promo.is-dismissing { animation: ip-intelligence-promo-out 240ms ease-in forwards; }
.ip-intelligence-home-promo.is-restoring { animation: ip-intelligence-promo-in 240ms ease-out both; }
.ip-intelligence-home-dock.is-attaching { animation: ip-intelligence-dock-in 420ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.ip-intelligence-home-dock.is-undocking { animation: ip-intelligence-dock-out 180ms ease-in forwards; }
@keyframes ip-intelligence-promo-out { to { opacity: 0; transform: translateY(12px) scale(0.985); } }
@keyframes ip-intelligence-promo-in { from { opacity: 0; transform: translateY(10px) scale(0.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes ip-intelligence-dock-in { 0% { opacity: 0; transform: translateY(-9px) scale(0.88); } 70% { opacity: 1; transform: translateY(2px) scale(1.02); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes ip-intelligence-dock-out { to { opacity: 0; transform: translateY(-5px) scale(0.94); } }

.ip-intelligence { width: 100%; max-width: 2200px; box-sizing: border-box; margin: 20px auto; padding: clamp(18px, 3vw, 32px); }
.ip-intelligence-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 1px dashed rgba(196, 181, 253, 0.35); }
.ip-intelligence-eyebrow { margin: 0 0 10px; color: #c4b5fd; font: 700 0.7rem 'Fira Code', monospace; letter-spacing: 0.1em; }
.ip-intelligence-header h1 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.ip-intelligence-beta { padding: 5px 8px; border: 1px solid rgba(251, 191, 36, 0.45); border-radius: 6px; background: rgba(251, 191, 36, 0.1); color: #fcd34d; font: 700 0.63rem 'Fira Code', monospace; letter-spacing: 0.08em; }
.ip-intelligence-lede { margin: 8px 0 0; color: rgba(226, 232, 240, 0.75); font-size: 0.88rem; }
.ip-intelligence-baseline { display: flex; flex-direction: column; gap: 5px; min-width: 185px; padding: 12px 14px; border: 1px solid rgba(196, 181, 253, 0.22); border-radius: 10px; background: rgba(76, 29, 149, 0.12); }
.ip-intelligence-baseline strong { color: #c4b5fd; font: 700 0.62rem 'Fira Code', monospace; letter-spacing: 0.08em; }
.ip-intelligence-baseline span { color: #e2e8f0; font-size: 0.72rem; }
.ip-intelligence-disclaimer { margin: 16px 0; padding: 11px 14px; border-left: 3px solid #fbbf24; border-radius: 0 8px 8px 0; background: rgba(120, 53, 15, 0.13); color: rgba(253, 230, 138, 0.9); font-size: 0.72rem; line-height: 1.55; }
.ip-intelligence-profile-search { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 18px 0 14px; }
.ip-intelligence-profile-search > label, .ip-intelligence-filters label > span { color: rgba(203, 213, 225, 0.78); font: 700 0.64rem 'Fira Code', monospace; letter-spacing: 0.05em; }
.ip-intelligence-profile-search > div { display: flex; gap: 8px; }
.ip-intelligence-profile-search input, .ip-intelligence-filters input, .ip-intelligence-filters select { box-sizing: border-box; width: 100%; min-width: 0; min-height: 40px; padding: 9px 11px; border: 1px solid rgba(148, 163, 184, 0.25); border-radius: 8px; background: rgba(2, 6, 23, 0.58); color: #f8fafc; font: 0.75rem 'Fira Code', monospace; }
.ip-intelligence-profile-search input { flex: 1; }
.ip-intelligence-profile-search button, .ip-intelligence-filters button, .ip-intelligence-share { min-height: 40px; padding: 9px 13px; border: 1px solid rgba(196, 181, 253, 0.4); border-radius: 8px; background: rgba(124, 58, 237, 0.16); color: #e9d5ff; font: 700 0.66rem 'Fira Code', monospace; cursor: pointer; }
.ip-intelligence-profile-search button:hover, .ip-intelligence-filters button:hover, .ip-intelligence-share:hover { background: rgba(124, 58, 237, 0.3); }
.ip-intelligence-filter-toggle { min-height: 36px; margin: 0 0 8px; padding: 8px 11px; border: 1px solid rgba(196, 181, 253, 0.3); border-radius: 8px; background: rgba(124, 58, 237, 0.1); color: #e9d5ff; font: 700 0.62rem 'Fira Code', monospace; cursor: pointer; }
.ip-intelligence-filter-toggle:hover { background: rgba(124, 58, 237, 0.22); }
.ip-intelligence-filters { display: grid; grid-template-columns: repeat(5, minmax(110px, 1fr)) auto; align-items: start; gap: 10px; padding: 14px; border: 1px solid rgba(148, 163, 184, 0.14); border-radius: 12px; background: rgba(2, 6, 23, 0.28); }
.ip-intelligence-filters[hidden] { display: none; }
.ip-intelligence-filters label { display: grid; grid-template-rows: auto 40px auto; align-content: start; gap: 6px; min-width: 0; }
.ip-intelligence-filters label > span { grid-row: 1; }
.ip-intelligence-filters label > input, .ip-intelligence-filters label > select { grid-row: 2; }
.ip-intelligence-filters label > small { grid-row: 3; }
.ip-intelligence-filters > button { box-sizing: border-box; align-self: start; min-height: 40px; margin-top: 18px; white-space: nowrap; }
.ip-intelligence-status { min-height: 1.2em; margin: 12px 0; color: rgba(148, 163, 184, 0.85); font-size: 0.72rem; scroll-margin-top: 90px; }
.ip-intelligence-status[data-state="error"] { min-height: 0; padding: 12px 14px; border: 1px solid rgba(248, 113, 113, 0.45); border-left: 4px solid #f87171; border-radius: 9px; background: rgba(127, 29, 29, 0.28); color: #fecaca; font-size: 0.88rem; font-weight: 700; line-height: 1.5; }
.ip-intelligence-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 1800px; margin: 14px auto 18px; }
.ip-intelligence-summary article, .ip-intelligence-profile-facts article { min-width: 0; padding: 13px 15px; border: 1px solid rgba(148, 163, 184, 0.15); border-radius: 11px; background: rgba(15, 23, 42, 0.48); }
.ip-intelligence-summary span, .ip-intelligence-profile-facts span { display: block; color: rgba(203, 213, 225, 0.68); font: 700 0.61rem 'Fira Code', monospace; letter-spacing: 0.05em; }
.ip-intelligence-summary strong, .ip-intelligence-profile-facts strong { display: block; margin-top: 7px; color: #f8fafc; font: 700 clamp(1rem, 2vw, 1.35rem) 'Fira Code', monospace; overflow-wrap: anywhere; }
.ip-intelligence-list { scroll-margin-top: 90px; }
.ip-intelligence-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 24px 0 10px; }
.ip-intelligence-list-heading h2 { margin: 0; font-size: 1rem; }
.ip-intelligence-list-heading p { margin: 5px 0 0; color: rgba(148, 163, 184, 0.72); font-size: 0.68rem; }
.ip-intelligence-pagination { display: flex; align-items: center; gap: 8px; color: #cbd5e1; font: 0.68rem 'Fira Code', monospace; white-space: nowrap; }
.ip-intelligence-pagination-bottom { justify-content: flex-end; margin-top: 10px; }
.ip-intelligence-pagination button { width: 32px; height: 32px; border: 1px solid rgba(148, 163, 184, 0.2); border-radius: 7px; background: rgba(15, 23, 42, 0.65); color: #e2e8f0; cursor: pointer; }
.ip-intelligence-pagination button:disabled { opacity: 0.35; cursor: not-allowed; }
.ip-intelligence-table-wrap { overflow-x: auto; border: 1px solid rgba(148, 163, 184, 0.15); border-radius: 12px; }
.ip-intelligence-table { width: 100%; border-collapse: collapse; min-width: 680px; }
.ip-intelligence-table th { padding: 11px 13px; background: rgba(15, 23, 42, 0.72); color: rgba(203, 213, 225, 0.68); font: 700 0.6rem 'Fira Code', monospace; letter-spacing: 0.06em; text-align: left; }
.ip-intelligence-table td { padding: 11px 13px; border-top: 1px solid rgba(148, 163, 184, 0.1); color: rgba(226, 232, 240, 0.83); font-size: 0.72rem; }
.ip-intelligence-table td.ip-intelligence-empty { padding: 20px; background: rgba(120, 53, 15, 0.16); color: #fde68a; font-size: 0.85rem; font-weight: 600; line-height: 1.5; text-align: center; }
.ip-intelligence-table tbody tr:hover { background: rgba(124, 58, 237, 0.07); }
.ip-intelligence-address { color: #c4b5fd; font: 700 0.72rem 'Fira Code', monospace; text-decoration: underline; text-underline-offset: 3px; }
.ip-intelligence-number { color: #f8fafc !important; font-family: 'Fira Code', monospace; font-weight: 700; }
.ip-intelligence-last-seen-time { display: block; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ip-intelligence-last-seen-relative { display: block; margin-top: 3px; color: rgba(148, 163, 184, 0.78); font-size: 0.58rem; line-height: 1.3; white-space: nowrap; }
.ip-intelligence-profile { position: relative; isolation: isolate; width: 100%; max-width: 1800px; box-sizing: border-box; margin: 24px auto; padding: clamp(22px, 4vw, 48px); overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 24px; background: radial-gradient(ellipse at 82% 10%, rgba(103, 232, 249, 0.09), transparent 34%), radial-gradient(ellipse at 12% 0%, rgba(124, 58, 237, 0.17), transparent 42%), linear-gradient(135deg, rgba(20, 24, 34, 0.97), rgba(11, 14, 20, 0.95)); box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32); scroll-margin-top: 90px; }
.ip-intelligence-profile::before { position: absolute; z-index: -1; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px); background-size: 34px 34px; content: ""; mask-image: linear-gradient(90deg, transparent, #000 65%); }
.ip-intelligence-profile[hidden] { display: none; }
.ip-intelligence-profile-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid rgba(148, 163, 184, 0.18); }
.ip-intelligence-profile-eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 14px; padding: 8px 12px; border: 1px solid rgba(103, 232, 249, 0.24); border-radius: 999px; background: rgba(103, 232, 249, 0.06); color: #a5f3fc; font: 700 0.66rem/1.2 'Fira Code', monospace; letter-spacing: 0.1em; }
.ip-intelligence-profile-eyebrow::before { width: 7px; height: 7px; border-radius: 50%; background: #67e8f9; box-shadow: 0 0 12px rgba(103, 232, 249, 0.85); content: ""; }
.ip-intelligence-profile-heading h2 { margin: 0; color: #f8fafc; font: 800 clamp(2rem, 5vw, 3.8rem)/1.02 Inter, sans-serif; letter-spacing: -0.065em; overflow-wrap: anywhere; }
.ip-intelligence-profile-heading p:not(.ip-intelligence-profile-eyebrow) { margin: 10px 0 0; color: #a8b0bf; font-size: 0.94rem; line-height: 1.55; }
.ip-intelligence-heading-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 9px; }
.ip-intelligence-share { flex: 0 0 auto; }
.ip-intelligence-icon-link { display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 0 9px; border: 1px solid rgba(196, 181, 253, 0.24); border-radius: 7px; background: rgba(124, 58, 237, 0.1); color: #ddd6fe; text-decoration: none; }
.ip-intelligence-icon-link:hover { border-color: rgba(196, 181, 253, 0.55); background: rgba(124, 58, 237, 0.2); }
.ip-intelligence-icon-link > i:first-child { font-size: 0.9rem; }
.ip-intelligence-icon-link > i:last-child { color: rgba(203, 213, 225, 0.65); font-size: 0.55rem; }
.ip-intelligence-profile-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; width: 100%; margin: 22px 0; }
.ip-intelligence-fact-group { min-width: 0; padding: 16px; border: 1px solid rgba(148, 163, 184, 0.16); border-radius: 16px; background: rgba(13, 17, 24, 0.72); }
.ip-intelligence-fact-group h3 { margin: 0 0 12px; color: #c4b5fd; font: 700 0.68rem 'Fira Code', monospace; letter-spacing: 0.08em; }
.ip-intelligence-fact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ip-intelligence-fact-grid article { box-sizing: border-box; min-height: 82px; padding: 12px; border: 1px solid rgba(148, 163, 184, 0.12); border-radius: 12px; background: rgba(15, 23, 42, 0.54); }
.ip-intelligence-profile-facts span { font-size: 0.68rem; }
.ip-intelligence-profile-facts strong { font-size: 0.9rem; line-height: 1.4; }
.ip-intelligence-score-fact { display: flex; flex-direction: column; }
.ip-intelligence-score-meter { position: relative; height: 9px; margin-top: 10px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 99px; background: linear-gradient(90deg, #22c55e 0%, #84cc16 30%, #facc15 58%, #f97316 78%, #ef4444 100%); }
.ip-intelligence-score-meter span { position: absolute; top: -4px; left: var(--score-position); width: 4px; height: 17px; border: 1px solid #fff; border-radius: 4px; background: #0f172a; box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.6); transform: translateX(-50%); }
.ip-intelligence-reputation-note { margin: 9px 2px 0; color: rgba(203, 213, 225, 0.72); font-size: 0.68rem; line-height: 1.5; }
.ip-intelligence-chart-section, .ip-intelligence-profile-details > section { min-width: 0; padding: 18px; border: 1px solid rgba(148, 163, 184, 0.16); border-radius: 16px; background: rgba(13, 17, 24, 0.76); }
.ip-intelligence-chart-section { width: 100%; max-width: 1800px; box-sizing: border-box; margin-inline: auto; }
.ip-intelligence-chart-section h3, .ip-intelligence-profile-details h3 { margin: 0 0 13px; color: #c4b5fd; font: 700 0.76rem 'Fira Code', monospace; letter-spacing: 0.07em; }
.ip-intelligence-section-note { margin: -5px 0 12px; color: rgba(203, 213, 225, 0.78); font-size: 0.8rem; line-height: 1.5; }
.ip-intelligence-chart { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; align-items: stretch; }
.ip-intelligence-chart-y-axis { display: flex; flex-direction: column; justify-content: space-between; height: 150px; color: rgba(203, 213, 225, 0.74); font: 0.58rem 'Fira Code', monospace; text-align: right; }
.ip-intelligence-chart-plot { min-width: 0; }
.ip-intelligence-chart-bars { display: grid; align-items: end; gap: 2px; height: 150px; background: repeating-linear-gradient(to top, rgba(148, 163, 184, 0.12) 0 1px, transparent 1px 25%); }
.ip-intelligence-chart-column { display: flex; align-items: flex-end; justify-content: center; width: 100%; height: 100%; min-width: 0; padding: 0; border: 0; border-radius: 3px 3px 0 0; background: transparent; cursor: pointer; }
.ip-intelligence-chart-column:hover, .ip-intelligence-chart-column:focus-visible { background: rgba(196, 181, 253, 0.16); outline: 1px solid rgba(196, 181, 253, 0.8); outline-offset: -1px; }
.ip-intelligence-chart-bar { display: block; width: 100%; min-height: 0; overflow: hidden; border-radius: 3px 3px 0 0; background: #8b5cf6; }
.ip-intelligence-chart-dates { display: grid; height: 18px; color: rgba(148, 163, 184, 0.82); font: 0.58rem 'Fira Code', monospace; }
.ip-intelligence-chart-dates span { overflow: visible; text-align: center; white-space: nowrap; }
.ip-intelligence-chart-tooltip { display: flex; align-items: center; box-sizing: border-box; height: 3.2em; margin: 8px 0 2px; padding: 4px 8px; overflow: hidden; border: 1px solid rgba(148, 163, 184, 0.13); border-radius: 6px; background: rgba(15, 23, 42, 0.35); color: #f8fafc; font: 600 0.68rem 'Fira Code', monospace; line-height: 1.4; }
.ip-intelligence-chart-day-controls { display: flex; justify-content: flex-end; margin-top: 8px; }
.ip-intelligence-chart-reset-range { min-height: 32px; padding: 6px 9px; border: 1px solid rgba(196, 181, 253, 0.3); border-radius: 7px; background: rgba(124, 58, 237, 0.12); color: #e9d5ff; font: 700 0.58rem 'Fira Code', monospace; cursor: pointer; }
.ip-intelligence-chart-reset-range:hover, .ip-intelligence-chart-reset-range:focus-visible { background: rgba(124, 58, 237, 0.26); outline: 1px solid rgba(196, 181, 253, 0.7); }
.ip-intelligence-profile-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 14px; margin-top: 14px; }
.ip-intelligence-profile-details .ip-intelligence-primary-reason-section, .ip-intelligence-profile-details .ip-intelligence-location-network-section { grid-column: 1 / -1; }
.ip-intelligence-location-network-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ip-intelligence-location-network-group { min-width: 0; padding: 16px; border: 1px solid rgba(148, 163, 184, 0.12); border-radius: 14px; background: rgba(15, 23, 42, 0.42); }
.ip-intelligence-map-details { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(148, 163, 184, 0.16); }
.ip-intelligence-map-details > p, .ip-intelligence-network-note { color: rgba(203, 213, 225, 0.8); font-size: 0.72rem; line-height: 1.55; }
.ip-intelligence-map-details a { color: #a5f3fc; text-decoration: underline; text-underline-offset: 2px; }
.ip-intelligence-location-network-group h3, .ip-intelligence-jail-history h4 { margin: 0 0 10px; color: rgba(203, 213, 225, 0.88); font: 700 0.66rem 'Fira Code', monospace; letter-spacing: 0.05em; }
.ip-intelligence-jail-history { margin-top: 14px; }
.ip-intelligence-jail-history ul { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.ip-intelligence-jail-history li { display: flex; justify-content: space-between; gap: 12px; color: rgba(226, 232, 240, 0.86); font-size: 0.75rem; }
.ip-intelligence-jail-history li strong { color: #c4b5fd; font: 600 0.68rem 'Fira Code', monospace; white-space: nowrap; }
.ip-intelligence-profile-details ul { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ip-intelligence-profile-details li { display: grid; grid-template-columns: minmax(110px, 220px) minmax(0, 1fr); align-items: start; gap: 12px; color: rgba(226, 232, 240, 0.86); font-size: 0.8rem; line-height: 1.45; }
.ip-intelligence-profile-details li strong { color: #f8fafc; font-family: 'Fira Code', monospace; text-align: left; overflow-wrap: anywhere; }
.ip-intelligence-profile-details section > p { color: rgba(203, 213, 225, 0.8); font-size: 0.8rem; line-height: 1.55; }
.ip-intelligence-map { display: block; width: 100%; height: 290px; border: 0; border-radius: 12px; background: rgba(15, 23, 42, 0.7); }
.ip-intelligence-profile-details li a { color: #a5f3fc; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.ip-intelligence-subheading { margin-top: 18px !important; }
.ip-intelligence-filter-hint { display: block; min-height: 2.8em; margin-top: 0; color: rgba(148, 163, 184, 0.72); font-size: 0.62rem; line-height: 1.4; }
.ip-intelligence-primary-reason { margin: 0 0 12px; color: rgba(226, 232, 240, 0.9) !important; line-height: 1.5; }
.ip-intelligence-reason-list { display: grid; gap: 8px; margin-bottom: 12px; }
.ip-intelligence-reason { min-width: 0; padding: 9px 10px; border-left: 2px solid rgba(103, 232, 249, 0.56); border-radius: 7px; background: rgba(15, 23, 42, 0.45); }
.ip-intelligence-reason-heading { display: flex; justify-content: space-between; gap: 8px; color: #a5f3fc; font-size: 0.68rem; }
.ip-intelligence-reason-heading span { color: rgba(148, 163, 184, 0.8); font: 0.6rem 'Fira Code', monospace; white-space: nowrap; }
.ip-intelligence-profile-details .ip-intelligence-reason p { margin: 5px 0 0; color: rgba(203, 213, 225, 0.86); font-size: 0.78rem; line-height: 1.5; }
.ip-intelligence-abuse-category-pills { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; }
.ip-intelligence-abuse-category-pill { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 9px; border: 1px solid rgba(196, 181, 253, 0.26); border-radius: 999px; background: rgba(124, 58, 237, 0.12); color: rgba(237, 233, 254, 0.94); font-size: 0.7rem; line-height: 1.2; }
.ip-intelligence-abuse-category-pill strong { min-width: 1.4em; padding: 3px 6px; border-radius: 999px; background: rgba(196, 181, 253, 0.2); color: #fff; font: 700 0.65rem 'Fira Code', monospace; text-align: center; }
.ip-intelligence-report-comments { margin-top: 10px; padding: 15px; border: 1px solid rgba(103, 232, 249, 0.2); border-radius: 11px; background: rgba(2, 6, 23, 0.3); }
.ip-intelligence-report-comments h3 { margin: 0 0 8px; color: #a5f3fc; font: 700 0.67rem 'Fira Code', monospace; letter-spacing: 0.07em; }
.ip-intelligence-report-comments > p { margin: 0 0 10px; color: rgba(203, 213, 225, 0.8); font-size: 0.78rem; line-height: 1.5; }
.ip-intelligence-comments-empty { padding: 12px; border-radius: 8px; background: rgba(15, 23, 42, 0.45); }
.ip-intelligence-report-comment-list { display: grid; gap: 8px; }
.ip-intelligence-report-comment { min-width: 0; padding: 12px; border: 1px solid rgba(148, 163, 184, 0.14); border-radius: 9px; background: rgba(15, 23, 42, 0.55); }
.ip-intelligence-report-comment-meta { margin: 0 0 7px; color: #c4b5fd; font: 700 0.62rem 'Fira Code', monospace; }
.ip-intelligence-report-comment-text { margin: 0; color: rgba(226, 232, 240, 0.88); font-size: 0.77rem; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-wrap; }
.ip-intelligence-outbound-links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.ip-intelligence-outbound { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 7px 10px; border: 1px solid rgba(103, 232, 249, 0.25); border-radius: 7px; background: rgba(34, 211, 238, 0.08); color: #a5f3fc; font: 700 0.6rem 'Fira Code', monospace; text-decoration: none; }
.ip-intelligence-outbound:hover { background: rgba(34, 211, 238, 0.16); }
.ip-intelligence-unavailable { max-width: 800px; margin: 30px auto; }

@media (max-width: 900px) {
    .ip-intelligence-filters { grid-template-columns: repeat(3, minmax(120px, 1fr)); }
    .ip-intelligence-profile-facts { grid-template-columns: 1fr; }
    .ip-intelligence-profile-details { grid-template-columns: 1fr; }
    .ip-intelligence-location-network-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .ip-intelligence-home-promo-header { align-items: flex-start; }
    .ip-intelligence-home-promo-title { font-size: 0.58rem; }
    .ip-intelligence-home-promo-body { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 12px; }
    .ip-intelligence-home-prompt { grid-column: 1 / -1; }
    .ip-intelligence-home-promo-hint { grid-column: 1 / -1; text-align: left; }
    .ip-intelligence-home-open { font-size: 0.69rem; }
    .ip-intelligence-header, .ip-intelligence-profile-heading { align-items: flex-start; flex-direction: column; }
    .ip-intelligence-heading-actions { flex-wrap: wrap; }
    .ip-intelligence-map { height: 240px; }
    .ip-intelligence-baseline { min-width: 0; width: 100%; box-sizing: border-box; }
    .ip-intelligence-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ip-intelligence-filters button { grid-column: 1 / -1; margin-top: 0; }
    .ip-intelligence-summary { grid-template-columns: 1fr; }
    .ip-intelligence-fact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ip-intelligence-profile-details { grid-template-columns: 1fr; }
    .ip-intelligence-profile-search > div { flex-direction: column; }
    .ip-intelligence-profile-search button { width: 100%; }
}
body.cat-mode {
    --accent: #fb7185; /* Różowy dla KOTA */
}
body.astro-mode {
    --accent: #22d3ee; /* Cyjan dla ASTRO */
}
html, body {
    height: 100%; width: 100%; margin: 0; padding: 0;
    font-family: 'Inter', sans-serif; color: white; overflow-x: clip; overflow-y: visible;
    min-height: 100vh;
}
body {
    background-color: #0b0e14;
    background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    radial-gradient(at 0% 0%, hsla(253,16%,12%,1) 0, transparent 50%),
    radial-gradient(at 100% 100%, hsla(225,39%,20%,1) 0, transparent 50%);
    /* Symetryczny margines: 100px z lewej (na menu) i 100px z prawej (dla równowagi) */
    display: flex; flex-direction: column; padding: 25px 100px 25px 100px !important; box-sizing: border-box;
    transition: background 0.5s ease;
}
.main-wrapper {
    display: flex; flex-direction: column; min-height: 100vh; width: 100%; z-index: 5;
}
.container {
    display: flex; flex-direction: column; flex: 1; width: 100%; max-width: 1400px;
    margin: 0 auto; gap: 30px;
}
.glass-box {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 28px; padding: 20px 35px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s cubic-bezier(0.03, 0.98, 0.52, 0.99), border-color 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}
.tool-engine-status {
    position: relative;
    z-index: 50;
    display: inline-flex;
    flex: 0 0 auto;
    font: 700 0.7rem 'Fira Code', monospace;
}
.tool-engine-status__trigger {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 5px 10px;
    color: #e2e8f0;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    font: inherit;
    cursor: pointer;
}
.tool-engine-status__trigger:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}
.tool-engine-status__summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.tool-engine-status__summary-service {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.tool-engine-status__summary-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #fbbf24;
    color: #fbbf24;
    box-shadow: 0 0 7px currentColor;
}
.tool-engine-status__summary-service[data-state="online"] .tool-engine-status__summary-dot {
    background: #4ade80;
    color: #4ade80;
}
.tool-engine-status__summary-service[data-state="offline"],
.tool-engine-status__summary-service[data-state="error"] {
    color: #fca5a5;
}
.tool-engine-status__summary-service[data-state="offline"] .tool-engine-status__summary-dot,
.tool-engine-status__summary-service[data-state="error"] .tool-engine-status__summary-dot {
    background: #f87171;
    color: #f87171;
}
.tool-engine-status__summary-service[data-state="warning"] .tool-engine-status__summary-dot {
    background: #fbbf24;
    color: #fbbf24;
}
.tool-engine-status__dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #fbbf24;
    box-shadow: 0 0 8px currentColor;
    color: #fbbf24;
}
.tool-engine-status[data-state="online"] .tool-engine-status__dot {
    background: #4ade80;
    color: #4ade80;
}
.tool-engine-status[data-state="offline"],
.tool-engine-status[data-state="error"] {
    color: #fca5a5;
}
.tool-engine-status[data-state="offline"] .tool-engine-status__dot,
.tool-engine-status[data-state="error"] .tool-engine-status__dot {
    background: #f87171;
    color: #f87171;
}
.tool-engine-status__popup {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 10000;
    width: min(250px, calc(100vw - 32px));
    padding: 13px 15px;
    color: #e2e8f0;
    background: rgba(11, 14, 20, 0.97);
    border: 1px solid rgba(165, 180, 252, 0.3);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    font: 500 0.75rem/1.45 'Inter', sans-serif;
    text-align: left;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}
.tool-engine-status:hover .tool-engine-status__popup,
.tool-engine-status:focus-within .tool-engine-status__popup,
.tool-engine-status.is-open .tool-engine-status__popup {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.tool-engine-status__popup-title {
    display: block;
    margin-bottom: 9px;
    color: #fff;
    font-size: 0.8rem;
}
.tool-engine-status__service + .tool-engine-status__service {
    margin-top: 11px;
    padding-top: 11px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.tool-engine-status__popup-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 3px 0;
    color: #94a3b8;
}
.tool-engine-status__popup-row strong {
    color: #e2e8f0;
    font-family: 'Fira Code', monospace;
    font-size: 0.7rem;
    white-space: nowrap;
}
.tool-engine-status__popup-row[hidden] {
    display: none;
}
.tool-engine-status__message {
    margin: 8px 0 0;
    color: #94a3b8;
    font-size: 0.7rem;
}
.site-toast-container {
    position: fixed; right: 24px; bottom: 24px; z-index: 200000;
    display: flex; flex-direction: column; gap: 10px;
    width: min(420px, calc(100vw - 32px)); pointer-events: none;
}
.site-toast {
    --site-toast-accent: #a5b4fc;
    --site-toast-border: rgba(165,180,252,0.36);
    position: relative; box-sizing: border-box; width: 100%;
    padding: 16px 52px 18px 16px;
    overflow: hidden; border: 1px solid var(--site-toast-border);
    border-left: 4px solid rgba(148,163,184,0.22); border-radius: 14px;
    background: rgba(15,23,42,0.72); color: #e2e8f0;
    box-shadow: 0 18px 45px rgba(0,0,0,0.48);
    backdrop-filter: blur(18px) saturate(1.25); -webkit-backdrop-filter: blur(18px) saturate(1.25);
    font: 600 0.86rem/1.45 'Inter', sans-serif;
    opacity: 0; visibility: hidden; pointer-events: auto;
    transform: translateX(calc(100% + 32px));
    transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.22,1,0.36,1), visibility 0.32s;
}
.site-toast--success { --site-toast-accent: #4ade80; --site-toast-border: rgba(74,222,128,0.38); }
.site-toast--error { --site-toast-accent: #fb7185; --site-toast-border: rgba(251,113,133,0.42); }
.site-toast--warning { --site-toast-accent: #fbbf24; --site-toast-border: rgba(251,191,36,0.42); }
.site-toast--info { --site-toast-accent: #93c5fd; --site-toast-border: rgba(147,197,253,0.4); }
.site-toast--gift { --site-toast-accent: #c084fc; --site-toast-border: rgba(192,132,252,0.42); }
.site-toast--friend_ping { --site-toast-accent: #a5b4fc; --site-toast-border: rgba(165,180,252,0.42); }
.site-toast--points { --site-toast-accent: #facc15; --site-toast-border: rgba(250,204,21,0.42); }
.site-toast--reward { --site-toast-accent: #c084fc; --site-toast-border: rgba(192,132,252,0.42); }
.site-toast--boost { --site-toast-accent: #38bdf8; --site-toast-border: rgba(56,189,248,0.42); }
.site-toast--vip { --site-toast-accent: #fbbf24; --site-toast-border: rgba(251,191,36,0.42); }
.site-toast--security { --site-toast-accent: #60a5fa; --site-toast-border: rgba(96,165,250,0.42); }
.site-toast--friends { --site-toast-accent: #a5b4fc; --site-toast-border: rgba(165,180,252,0.42); }
.site-toast.is-visible { opacity: 1; visibility: visible; transform: translateX(0); }
.site-toast.is-leaving { opacity: 0; visibility: visible; transform: translateX(calc(100% + 32px)); }
.site-toast.is-paused { box-shadow: 0 18px 45px rgba(0,0,0,0.48), 0 0 22px rgba(165,180,252,0.14); }
.site-toast__content { display: flex; align-items: center; gap: 12px; min-width: 0; }
.site-toast__content, .site-toast__close { position: relative; z-index: 3; }
.site-toast__icon { flex: 0 0 auto; color: var(--site-toast-accent); font-size: 1.15rem; }
.site-toast__copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.site-toast__title { color: var(--site-toast-accent); font-size: 0.8rem; font-weight: 800; }
.site-toast__message { min-width: 0; overflow-wrap: anywhere; }
.site-toast__close {
    position: absolute; top: 10px; right: 10px; display: grid; place-items: center;
    width: 30px; height: 30px; padding: 0; border: 1px solid rgba(148,163,184,0.22);
    border-radius: 9px; background: rgba(255,255,255,0.06); color: #cbd5e1;
    font: 500 1.05rem/1 'Inter', sans-serif; cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
.site-toast__close:hover, .site-toast__close:focus-visible { background: rgba(255,255,255,0.14); color: #fff; }
.site-toast__progress { position: absolute; right: -1px; bottom: -1px; left: -4px; z-index: 2; height: 3px; background: rgba(148,163,184,0.14); }
.site-toast__progress span { display: block; width: 100%; height: 100%; background: var(--site-toast-accent); transform: scaleX(0); transform-origin: right center; }
.site-toast__fuse-up { position: absolute; top: -1px; bottom: -1px; left: 0; z-index: 2; width: 4px; overflow: hidden; background: rgba(148,163,184,0.14); }
.site-toast__fuse-up span { position: absolute; right: 0; bottom: 0; left: 0; height: 100%; background: var(--site-toast-accent); transform: scaleY(0); transform-origin: bottom center; }
.site-toast.is-counting .site-toast__progress span { animation: site-toast-fuse-left var(--site-toast-horizontal-duration, 4500ms) linear forwards; }
.site-toast.is-counting .site-toast__fuse-up span { animation: site-toast-fuse-rise var(--site-toast-rise-duration, 900ms) linear var(--site-toast-horizontal-duration, 4500ms) forwards; }
.site-toast.is-paused .site-toast__progress span, .site-toast.is-paused .site-toast__fuse-up span { animation-play-state: paused; }
@keyframes site-toast-fuse-left { to { transform: scaleX(1); } }
@keyframes site-toast-fuse-rise { to { transform: scaleY(1); } }
@media (max-width: 540px) {
    .site-toast-container { right: 16px; bottom: 16px; width: calc(100vw - 32px); }
}
@media (prefers-reduced-motion: reduce) {
    .site-toast, .site-toast__close { transition: none; }
    .site-toast.is-counting .site-toast__progress span, .site-toast.is-counting .site-toast__fuse-up span { animation: none; }
}
/* --- THEMES BAZA --- */
body.cat-mode { background-color: #1a0b10 !important; }
body.cat-mode .glass-box { background: rgba(251, 113, 133, 0.05) !important; border-color: rgba(251, 113, 133, 0.5); box-shadow: 0 10px 40px rgba(251, 113, 133, 0.15); }
body.cat-mode::after {
    content: ""; position: fixed; inset: 0;
    background-image: radial-gradient(#fb7185, rgba(251, 113, 133, 0.2) 1.5px, transparent 2px), radial-gradient(#fb7185, rgba(251, 113, 133, 0.1) 1px, transparent 2px);
    background-size: 100px 100px, 50px 50px; background-position: 10px 10px, 30px 30px;
    opacity: 0.15; z-index: -1; pointer-events: none;
}
body.astro-mode { --astro-bg: #04041a; --astro-accent: #22d3ee; --accent: var(--astro-accent); background-color: #04041a !important; }
body.astro-mode .glass-box { border-color: rgba(34, 211, 238, 0.5); box-shadow: 0 10px 40px rgba(34, 211, 238, 0.15); }
body.astro-mode::after {
    content: ''; position: fixed; inset: 0;
    background-image: radial-gradient(white, rgba(255,255,255,.25) 1.6px, transparent 2.2px), radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 1.8px);
    background-size: 80px 80px, 40px 40px; background-position: 0 0, 20px 20px;
    opacity: 0.15; z-index: -1; pointer-events: none;
}
/* --- 2. NAGŁÓWEK, LOGO I ZEGAR i FAZY KSIEZYCA --- */
@font-face {
    font-family: 'Anton';
    src: url('/assets/fonts/Anton-Regular.ttf') format('truetype');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}
.header {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr;
    align-items: flex-start; width: 100%; gap: 20px;
}
.glitch-wrapper { display: flex; align-items: center; gap: 20px; cursor: pointer; }
.logo-svg { width: 65px; height: 65px; transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); color: #a5b4fc; filter: drop-shadow(0 0 8px rgba(165, 180, 252, 0.4)); opacity: 0.85; }
.glitch-wrapper:hover .logo-svg { opacity: 1; filter: drop-shadow(0 0 15px currentColor); transform: scale(1.05); }
.cat-paw-group { display: none; }
body.cat-mode .cat-paw-group { display: block; }
body.cat-mode .pudding-group { display: none; }
body.cat-mode .logo-svg { transform: rotate(15deg) scale(1.1); color: #fb7185; filter: drop-shadow(0 0 10px rgba(251, 113, 133, 0.5)); opacity: 1; }
.astro-group, .astro-rings-group { opacity: 0; transition: opacity 0.5s ease-in-out; color: #22d3ee; }
body.astro-mode .pudding-group, body.astro-mode .cat-paw-group { opacity: 0; pointer-events: none; }
body.astro-mode .astro-group, body.astro-mode .astro-rings-group { opacity: 1; }
body.astro-mode .logo-svg { color: #22d3ee; }
.logo-text {
    font-family: 'Anton', sans-serif;
    font-size: 3.8em;
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 1;
    position: relative;
    margin: 0;
    background: var(--logo-text-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
.logo-wordmark { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.logo-tagline {
    color: rgba(203, 213, 225, 0.68);
    font: 700 0.66rem/1.2 'Fira Code', monospace;
    letter-spacing: 0.12em;
    white-space: nowrap;
}
.logo-tagline-broom {
    display: inline-block;
    margin-left: 0.25em;
    color: var(--accent);
    transform-origin: 50% 80%;
    animation: logo-broom-sweep 1.8s ease-in-out infinite;
}
@keyframes logo-broom-sweep {
    0%, 100% { transform: rotate(-12deg); }
    50% { transform: rotate(12deg) translateY(-1px); }
}
@media (prefers-reduced-motion: reduce) {
    .logo-tagline-broom { animation: none; }
}
.clock-box { justify-self: start; min-width: 0; position: relative; overflow: hidden; }
.logo-container { justify-self: center; display: flex; justify-content: center; }
/* --- ZEGAR BAZOWY --- */
.horloge {
    font-size: 3.8em; font-family: 'Inter', sans-serif; font-weight: 900; letter-spacing: -4px; line-height: 1; white-space: nowrap;
    background: linear-gradient(180deg, #ffffff 0%, #a5b4fc 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 10px rgba(165, 180, 252, 0.3)); margin-bottom: 5px;
}
/* --- ZEGAR KOT (POPRAWIONE) --- */
body.cat-mode .horloge {
    background: linear-gradient(180deg, #ffffff 0%, #fb7185 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 10px rgba(251, 113, 133, 0.3));
}
/* --- ZEGAR ASTRO (POPRAWIONE) --- */
body.astro-mode .horloge {
    background: linear-gradient(180deg, #ffffff 0%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 15px rgba(34, 211, 238, 0.4)); text-shadow: 0 0 8px rgba(34, 211, 238, 0.2);
}
/* Kontener główny - ograniczamy szerokość, żeby nie wypychał loga */
.clock-astro-wrapper {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important; /* Wszystko do lewej wewnątrz boxa */
    gap: 12px;
    padding: 15px 20px !important;
    width: fit-content !important; /* Box zajmie tylko tyle miejsca, ile potrzebuje */
/* KLUCZOWA ZMIANA: */
    margin: 0 !important; /* Usuwamy auto, żeby nie uciekał do środka strony */
/* Jeśli chcesz go lekko odsunąć od krawędzi ekranu: */
    margin-left: 0px !important;
}
/* Kontener na SVG - pilnujemy wymiarów */
#moon-visual-container {
    position: absolute;
    top: 4px;
    right: 8px;
    width: 100px;
    height: 100px;
    overflow: visible;
    display: block;
    margin: 0;
    transform: none;
    transition: all 0.5s ease-in-out;
    pointer-events: none;
    z-index: 1;
}
#moon-visual-container svg {
    display: block;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.4));
}
/* Naprawa "kresek" i detali */
.clock-details {
    margin-top: 5px;
    font-size: 0.8rem;
    white-space: normal;
}
/* --- SEKCJA ZEGARA I DATY (ZACHOWANE TWOJE STYLE) --- */
.date-info {
    color: #a5b4fc;
    font-weight: 700;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}
body.cat-mode .date-info { color: #ff85a2; }
body.astro-mode .date-info { color: #22d3ee; }
/* --- NAPRAWA KRESKI: PRZENIESIONA POD TEKST --- */
.clock-box::after { display: none !important; } /* Wyłączamy starą kreskę */
.clock-content-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
}
.clock-content-left::after {
    content: "";
    width: 60px; /* Twoja domyślna szerokość */
    height: 3px;
    background: #a5b4fc;
    display: block;
    margin: 15px 0;
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(165, 180, 252, 0.6);
    transition: all 0.5s ease;
}
/* Kreska w trybach (Twoje kolory i szerokość 100%) */
body.cat-mode .clock-content-left::after {
    background: #ff85a2;
    width: 100%;
    box-shadow: 0 0 15px #ff85a2;
}
body.astro-mode .clock-content-left::after {
    background: #22d3ee;
    width: 100%;
    box-shadow: 0 0 15px #22d3ee;
}
/* --- DETALE I WERSJA SYSTEMU --- */
.clock-details {
    font-size: 0.75em;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-family: 'Courier New', monospace;
    white-space: normal;
    margin-bottom: 8px;
}
#extra-clock-data {
    color: #a5b4fc;
    font-weight: bold;
    transition: all 0.3s ease;
}
body.cat-mode #extra-clock-data { color: #ff85a2; }
body.astro-mode #extra-clock-data { color: #22d3ee; }
/* --- UKŁAD FLEXBOX DLA ZEGARA I KSIĘŻYCA --- */
.clock-astro-wrapper {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px;
}
.astro-mini-panel { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; width: 100%; min-width: 0; box-sizing: border-box; border-top: 1px solid rgba(165, 180, 252, 0.15); padding-top: 8px; font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; line-height: 1.4; white-space: normal; }
.astro-mini-item { display: flex; align-items: center; gap: 4px; min-width: 0; white-space: nowrap; }
.astro-sun-times { color: rgba(255, 255, 255, 0.65); }
.astro-moon-times { color: rgba(165, 180, 252, 0.8); }
.astro-mini-separator { display: none; }
#main-weather-box {
    justify-self: end;
    position: relative;
    overflow: hidden !important;
    height: auto !important;
    min-height: var(--header-side-panel-height);
    width: 100%;
    max-width: 350px;
    margin-left: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* To rozsunie elementy pod kreski */
    padding: 15px 20px; /* Lekko mniejszy padding pionowy, by zyskać miejsce */
    box-sizing: border-box;
    cursor: pointer;
    z-index: 1;
}
/* --- KROPKA SYNCHRONIZACJI (WIDOCZNOŚĆ I POZYCJA) --- */
.sync-dot {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 6px;
    height: 6px;
    background-color: #4ade80; /* Twój zielony akcent */
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.6);
    z-index: 50; /* Musi być nad efektami pogodowymi */
    cursor: help;
    opacity: 0.8;
    transition: all 0.3s ease;
}
.sync-dot:hover {
    opacity: 1;
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.9);
}
/* Opcjonalny efekt pulsowania, gdy dane są świeże (do aktywacji w JS) */
.sync-dot.syncing {
    background-color: #ffffff;
    box-shadow: 0 0 15px #ffffff;
}
#pop-sync {
    font-family: 'JetBrains Mono', monospace;
    font-weight: bold;
    color: #4ade80; /* Zielony kolor synchronizacji */
}
/* Górny rząd i Dolny rząd */
.weather-row, .weather-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
    z-index: 10;
    flex-shrink: 0; /* Nie pozwala tekstom się zgniatać */
}
/* Kreski (Separatory) */
.weather-separator {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    margin: 5px 0; /* Małe odstępy, żeby nie marnować miejsca */
    flex-shrink: 0;
}
/* WYKRES - TERAZ JAKO ELEMENT UKŁADU (RELATIVE) */
.weather-graph-container {
    position: relative; /* REZYGNUJEMY Z ABSOLUTE */
    width: 100%;
    height: 55px; /* Sztywna wysokość, żeby góry i doliny były wyraźne */
    flex-grow: 1; /* Wypełni całą przestrzeń między kreskami */
    z-index: 5;
    pointer-events: none;
    opacity: 0.7; /* Trochę wyraźniejszy, skoro ma własne miejsce */
    margin: 2px 0;
}
#temp-chart {
    width: 100% !important;
    height: 100% !important;
    display: block;
}
/* 1. Stan spoczynku - ikona "żyje", ale jest dyskretna */
.wa-click-cursor {
    position: absolute;
    left: 12px;
    top: 12px;
    width: 14px;
    height: 14px;
    color: rgba(255, 255, 255, 0.35); /* Jaśniejsza biel z przezroczystością */
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.2));
/* Subtelny puls, żeby oko wyłapało ruch */
    animation: cursor-idle-pulse 4s infinite ease-in-out;
}
/* 2. Reakcja na najechanie na cały boks pogody */
#main-weather-box:hover .wa-click-cursor {
    opacity: 1 !important;
    color: #a5b4fc !important; /* Twoje indygo */
    transform: scale(1.3) rotate(-10deg) translate(2px, 2px); /* Powiększenie i lekki obrót */
    filter: drop-shadow(0 0 8px rgba(165, 180, 252, 0.7));
    animation: none; /* Zatrzymujemy pulsowanie, gdy użytkownik patrzy */
}
/* 3. Reakcja na KLIKNIĘCIE (fizyczne wciśnięcie) */
#main-weather-box:active .wa-click-cursor {
    transform: scale(0.95) translate(1px, 1px);
    filter: drop-shadow(0 0 2px rgba(165, 180, 252, 0.4));
    transition: 0.1s;
}
/* --- ANIMACJE --- */
/* Delikatne pulsowanie, gdy nikt nie najeżdża */
@keyframes cursor-idle-pulse {
0%, 100% {
    transform: scale(1) translate(0, 0);
    opacity: 0.35;
}
50% {
    transform: scale(1.15) translate(1px, 1px);
    opacity: 0.6;
}
}
/* Reszta detali */
.temp { font-size: 2.3rem; font-weight: 800; font-family: 'JetBrains Mono', monospace; }
#weather-icon canvas { filter: drop-shadow(0 0 5px rgba(255,255,255,0.2)); }
.city-container { display: flex; align-items: center; gap: 5px; font-weight: bold; font-size: 0.85rem; }
/* Wygląd kodu kraju (Pigułka) */
/* PANCERNY KOD KRAJU */
.country-badge {
    display: inline-block !important;
    min-width: 25px !important;
    min-height: 18px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    padding: 2px 8px !important;
    border-radius: 12px !important;
    font-size: 0.7rem !important;
    font-weight: 900 !important;
    letter-spacing: 1px !important;
    font-family: 'JetBrains Mono', monospace !important;
    color: #ffffff !important; /* Na sztywno biały na czas testów */
    text-transform: uppercase !important;
    white-space: nowrap !important;
    text-align: center !important;
    box-shadow: 0 0 10px rgba(255,255,255,0.5) !important;
}
.w-value {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    text-align: right;
    min-width: 0; /* To pozwala elementom wewnątrz na skracanie się */
}
/* Dodatkowo, aby opis pod ikonką pogody na górze nie rozwalał układu: */
#weather-desc {
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase; /* Dodaje profesjonalnego wyglądu */
    opacity: 0.8;
}
/* --- MODAL RADARU 4.6 (THE GLASS-BOX FIX) --- */
#radar-modal .glass-box {
/* Nadpisujemy limit 900px i wymuszamy wielkość */
    max-width: 98vw !important;
    width: 98vw !important;
    height: 94vh !important;
/* Zabijamy obrót 3D, który psuje mapę */
    transform: none !important;
/* Układ pod dwa okna obok siebie */
    display: flex;
    flex-direction: column;
    padding: 10px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(165, 180, 252, 0.3);
}
/* Upewniamy się, że mapa i jej kontenery wypełniają glass-box */
#weather-map {
    width: 100%;
    height: 100%;
    flex-grow: 1;
    overflow: hidden;
    border-radius: 12px;
}
/* Przycisk zamknięcia wewnątrz glass-boxa */
#radar-modal .glass-box .close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10001;
}
.close-modal {
    position: absolute;
    top: 10px; /* Przeniesione do środka dla bezpieczeństwa na dużych ekranach */
    right: 15px;
    background: #fb7185;
    color: white;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid #000;
    z-index: 10001;
    font-weight: bold;
    transition: transform 0.2s;
}
.close-modal:hover {
    transform: scale(1.1);
}
/* Nowe reguły dla etykiet wewnątrz okien Windy (Double Vision) */
.windy-label {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    background: rgba(0,0,0,0.8);
    padding: 5px 12px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 12px;
    font-weight: bold;
    pointer-events: none;
}
/* --- FUNDAMENT EFEKTÓW --- */
.weather-effect {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    overflow: visible;
    display: none;
}
/* Wyświetlanie aktywnej warstwy - UWAGA: skrócony, bezpieczniejszy selektor */
.is-raining .weather-effect.rain,
.is-snowing .weather-effect.snow,
.is-foggy .weather-effect.fog,
.is-cloudy .weather-effect.clouds,
.is-sunny .weather-effect.sunshine,
.is-windy .weather-effect.wind,
.is-storming .weather-effect.storm-flash {
    display: block;
    opacity: 1;
}
/* --- BURZA: TŁO (ROZBŁYSK NIEBA) --- */
.weather-effect.storm-flash {
    background: #ffffff !important;
    z-index: 1;
    opacity: 0;
    mix-blend-mode: soft-light;
    transition: none !important;
}
/* --- BURZA: PIORUNY (LINIE SVG) --- */
.lightning-svg {
    position: absolute;
    inset: 0;
    z-index: 9999 !important;
    overflow: visible !important;
    mix-blend-mode: plus-lighter;
    pointer-events: none;
}
.lightning-svg path {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 10px #ffffff) drop-shadow(0 0 20px currentColor);
}
/* --- ANIMACJE CZĄSTECZEK (Deszcz i Śnieg) --- */
.drop, .flake {
    position: absolute;
    top: -20px;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    will-change: transform; /* Poprawia płynność animacji CSS */
}
/* Oddzielne czasy trwania i nazwy animacji (usunąłem duplikat z dołu) */
.drop {
    animation-name: rain-fall-svg;
    animation-duration: 0.8s;
}
.flake {
    animation-name: snow-fall-svg;
    animation-duration: 2.5s; /* Śnieg spada wolniej */
}
@keyframes rain-fall-svg {
0% { transform: translateY(-30px); }
100% { transform: translateY(250px); }
}
@keyframes snow-fall-svg {
0% { transform: translateY(-10px) rotate(0deg); }
100% { transform: translateY(250px) rotate(360deg); }
}
@keyframes fog-drift { 0% { transform: translateX(-25%); } 100% { transform: translateX(25%); } }
@keyframes clouds-drift { 0% { transform: translateX(-15%); } 100% { transform: translateX(15%); } }
/* ==========================================
   SPIS TREŚCI BUDYN.WTF:
   1. BAZA, ZMIENNE I FUNDAMENTY (GLASS BOX)
   2. UKŁAD STRONY (HEADER, ZEGAR, MODALE)
   3. KOMPONENTY (POGODA, CYTATY, TERMINAL, STOPKA)
   4. EFEKTY SPECJALNE I ANIMACJE
   5. THEMES / MOTYWY (CAT, ASTRO, TEDDY)
   6. RWD (MEDIA QUERIES)
========================================== */

/* --- 1. BAZA, ZMIENNE I FUNDAMENTY --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800;900&display=swap');

:root {
    --accent: #a5b4fc; /* Domyślny indygo dla STABLE */
    --alert-color: #a5b4fc;
}

html, body {
    height: 100%; width: 100%; margin: 0; padding: 0;
    font-family: 'Inter', sans-serif; color: white; 
    overflow-x: clip; overflow-y: visible;
    min-height: 100vh;
}

body {
    height: auto;
    background-color: #0b0e14;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        radial-gradient(at 0% 0%, hsla(253,16%,12%,1) 0, transparent 50%),
        radial-gradient(at 100% 100%, hsla(225,39%,20%,1) 0, transparent 50%);
    background-size: 30px 30px, 30px 30px, 100% 100%, 100% 100%;
    background-repeat: repeat, repeat, no-repeat, no-repeat;
    display: flex; flex-direction: column; padding: 25px; box-sizing: border-box;
    transition: background 0.5s ease;
}

.main-wrapper {
    display: flex; flex-direction: column; min-height: 100vh; width: 100%; z-index: 5;
}

.container {
    display: flex; flex-direction: column; flex: 1; width: 100%; max-width: 1400px;
    margin: 0 auto; gap: 30px;
}

.glass-box {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 28px; padding: 20px 35px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s cubic-bezier(0.03, 0.98, 0.52, 0.99), border-color 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}


/* --- 2. UKŁAD STRONY (HEADER, ZEGAR, MODALE) --- */
.header {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr;
    align-items: flex-start; width: 100%; gap: 20px;
}

.glitch-wrapper { display: flex; align-items: center; gap: 20px; cursor: pointer; }
.logo-svg { width: 65px; height: 65px; transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); color: #a5b4fc; filter: drop-shadow(0 0 8px rgba(165, 180, 252, 0.4)); opacity: 0.85; }
.glitch-wrapper:hover .logo-svg { opacity: 1; filter: drop-shadow(0 0 15px currentColor); transform: scale(1.05); }

.logo-container { justify-self: center; display: flex; justify-content: center; }
#main-logo {
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    align-items: center;
    gap: 26px;
    max-width: calc(100vw - 32px);
    padding: 10px 26px;
    --honey-drop-x: 74px;
    --honey-drop-y: 106px;
    --honey-drop-fall: 44px;
}
#main-logo {
    background:
        radial-gradient(circle at 8% 16%, rgba(224, 247, 255, 0.95) 0 1px, transparent 1.6px),
        radial-gradient(circle at 18% 75%, rgba(165, 243, 252, 0.85) 0 1px, transparent 1.7px),
        radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.78) 0 1px, transparent 1.6px),
        radial-gradient(circle at 46% 84%, rgba(199, 210, 254, 0.9) 0 1px, transparent 1.7px),
        radial-gradient(circle at 61% 16%, rgba(224, 247, 255, 0.8) 0 1px, transparent 1.6px),
        radial-gradient(circle at 73% 61%, rgba(255, 255, 255, 0.82) 0 1px, transparent 1.7px),
        radial-gradient(circle at 86% 27%, rgba(165, 243, 252, 0.9) 0 1px, transparent 1.7px),
        radial-gradient(circle at 94% 82%, rgba(224, 247, 255, 0.8) 0 1px, transparent 1.6px),
        radial-gradient(ellipse at 22% 20%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 48%),
        radial-gradient(ellipse at 78% 76%, color-mix(in srgb, var(--accent) 23%, transparent), transparent 55%),
        linear-gradient(135deg, rgba(7, 16, 38, 0.96), rgba(16, 25, 55, 0.92) 52%, rgba(5, 12, 29, 0.97));
    border-color: color-mix(in srgb, var(--accent) 62%, transparent);
    box-shadow:
        0 0 14px color-mix(in srgb, var(--accent) 38%, transparent),
        0 0 48px color-mix(in srgb, var(--accent) 36%, transparent),
        inset 0 0 32px color-mix(in srgb, var(--accent) 14%, transparent);
}
#main-logo .logo-starfield {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    border-radius: inherit;
    pointer-events: none;
}
#main-logo .logo-starfield::before,
#main-logo .logo-starfield::after {
    position: absolute;
    pointer-events: none;
    content: "";
}
#main-logo .logo-starfield::before {
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(112deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .06) 5%, transparent 28%, transparent 74%, rgba(125, 211, 252, .08)),
        radial-gradient(ellipse at 20% 0%, rgba(255, 255, 255, .18), transparent 52%);
}
#main-logo .logo-starfield::after {
    inset: 1px;
    z-index: 2;
    border: 1px solid rgba(226, 242, 255, .17);
    border-radius: inherit;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 -14px 28px rgba(2, 8, 23, .25), 0 0 20px rgba(125, 211, 252, .06);
}
#main-logo .logo-star {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: #e0f7ff;
    opacity: 0.2;
    box-shadow: 0 0 4px rgba(165, 243, 252, 0.9);
    animation: logo-star-twinkle 4.8s ease-in-out infinite;
}
#main-logo .logo-star--flare {
    width: 3px;
    height: 3px;
    animation-name: logo-star-flare;
    box-shadow: 0 0 6px rgba(224, 247, 255, 0.95);
}
#main-logo .logo-star--flare::before,
#main-logo .logo-star--flare::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    background: linear-gradient(transparent, rgba(224, 247, 255, 0.95), transparent);
    opacity: 0.75;
    transform: translate(-50%, -50%);
}
#main-logo .logo-star--flare::before { width: 1px; height: 12px; }
#main-logo .logo-star--flare::after { width: 12px; height: 1px; }
#main-logo .logo-star--glow {
    width: 3px;
    height: 3px;
    animation-name: logo-star-glow;
}
#main-logo .logo-star:nth-child(1) { left: 8%; top: 16%; animation-duration: 4.7s; animation-delay: -2.1s; }
#main-logo .logo-star:nth-child(2) { left: 18%; top: 75%; animation-duration: 5.4s; animation-delay: -3.2s; }
#main-logo .logo-star:nth-child(3) { left: 32%; top: 22%; animation-duration: 6.2s; animation-delay: -1.6s; }
#main-logo .logo-star:nth-child(4) { left: 46%; top: 84%; animation-duration: 4.3s; animation-delay: -3.7s; }
#main-logo .logo-star:nth-child(5) { left: 61%; top: 16%; animation-duration: 5.8s; animation-delay: -2.8s; }
#main-logo .logo-star:nth-child(6) { left: 73%; top: 61%; animation-duration: 6.5s; animation-delay: -4.1s; }
#main-logo .logo-star:nth-child(7) { left: 86%; top: 27%; animation-duration: 5.1s; animation-delay: -1.3s; }
#main-logo .logo-star:nth-child(8) { left: 94%; top: 82%; animation-duration: 6.8s; animation-delay: -3.5s; }
#main-logo .logo-svg,
#main-logo .logo-wordmark {
    position: relative;
    z-index: 1;
}
#main-logo .logo-svg {
    width: 148px;
    height: 148px;
    max-width: none;
    flex: 0 0 148px;
    margin: 0 0 0 -5px;
    overflow: visible;
}
#main-logo .logo-text {
    font-size: 4em;
    white-space: nowrap;
}
#logo-eye-spark {
    opacity: 0;
    animation: logo-eye-sparkle 8s linear infinite;
}
.logo-eye-flash-core {
    fill: rgba(255, 255, 255, 0.55);
    stroke: #ffffff;
    stroke-width: 0.35;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.9));
}
.logo-eye-spark-core {
    fill: #ffffff;
    filter: drop-shadow(0 0 1px #ffffff);
}
@keyframes logo-eye-sparkle {
    0%, 64%, 100% { opacity: 0; }
    66% { opacity: 0.95; }
    68% { opacity: 0.3; }
    70% { opacity: 1; }
    76% { opacity: 0.82; }
    84% { opacity: 0.9; }
    90% { opacity: 0.45; }
    94% { opacity: 0; }
}
@keyframes logo-star-twinkle {
    0%, 100% { opacity: 0.16; transform: scale(0.65); }
    38% { opacity: 0.88; transform: scale(1.2); }
    52% { opacity: 0.35; transform: scale(0.8); }
}
@keyframes logo-star-flare {
    0%, 100% { opacity: 0.16; transform: scale(0.55); }
    31%, 43% { opacity: 0.92; transform: scale(1.05); }
    37% { opacity: 1; transform: scale(1.45); }
}
@keyframes logo-star-glow {
    0%, 100% { opacity: 0.14; transform: scale(0.55); filter: drop-shadow(0 0 1px rgba(165, 243, 252, 0.5)); }
    50% { opacity: 0.95; transform: scale(1.4); filter: drop-shadow(0 0 7px rgba(165, 243, 252, 0.95)); }
}
#main-logo::before,
#main-logo::after {
    content: "";
    position: absolute;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(180deg, #fef3c7 0%, #fbbf24 48%, #d97706 100%);
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.75);
}
#main-logo::before {
    top: var(--honey-drop-y);
    left: var(--honey-drop-x);
    width: 8px;
    height: 11px;
    clip-path: polygon(50% 0, 100% 62%, 92% 84%, 72% 98%, 50% 100%, 28% 98%, 8% 84%, 0 62%);
    opacity: 0;
    animation: logo-honey-drip 3.4s ease-in infinite;
}
#main-logo::after {
    bottom: 2px;
    left: calc(var(--honey-drop-x) - 5px);
    width: 18px;
    height: 4px;
    border-radius: 50%;
    opacity: 0;
    transform: scaleX(0.25);
    animation: logo-honey-splash 3.4s ease-out infinite;
}
@keyframes logo-honey-drip {
    0%, 24% { opacity: 0; transform: translateY(0) scale(0.55, 0.35); }
    30% { opacity: 1; transform: translateY(0) scale(0.8, 1); }
    57% { opacity: 1; transform: translateY(var(--honey-drop-fall)) scale(0.9, 1.1); }
    61% { opacity: 1; transform: translateY(calc(var(--honey-drop-fall) + 2px)) scale(1.6, 0.45); }
    67% { opacity: 1; transform: translateY(calc(var(--honey-drop-fall) - 7px)) scale(0.75, 0.8); }
    76% { opacity: 0.65; transform: translateY(calc(var(--honey-drop-fall) + 1px)) scale(0.55, 0.55); }
    100% { opacity: 0; transform: translateY(calc(var(--honey-drop-fall) + 2px)) scale(0.2, 0.2); }
}
@keyframes logo-honey-splash {
    0%, 56% { opacity: 0; transform: scaleX(0.25); }
    60% { opacity: 0.85; transform: scaleX(1); }
    66% { opacity: 0.55; transform: scaleX(1.45); }
    78%, 100% { opacity: 0; transform: scaleX(0.25); }
}
body.cat-mode #main-logo::before,
body.cat-mode #main-logo::after,
body.astro-mode #main-logo::before,
body.astro-mode #main-logo::after,
body.teddy-mode #main-logo::before,
body.teddy-mode #main-logo::after,
body.raccoon-mode #main-logo::before,
body.raccoon-mode #main-logo::after,
body.monkey-mode #main-logo::before,
body.monkey-mode #main-logo::after {
    display: none;
}
body.cat-mode #logo-eye-spark,
body.astro-mode #logo-eye-spark,
body.teddy-mode #logo-eye-spark,
body.raccoon-mode #logo-eye-spark,
body.monkey-mode #logo-eye-spark {
    display: none;
}
@media (prefers-reduced-motion: reduce) {
    #main-logo::before,
    #main-logo::after,
    #logo-eye-spark {
        display: none;
        animation: none;
    }
    #main-logo .logo-star,
    #main-logo .logo-star::before,
    #main-logo .logo-star::after {
        animation: none;
    }
    #main-logo .logo-star { opacity: 0.72; }
}
.clock-box { justify-self: start; min-width: 0; position: relative; overflow: hidden; }
.clock-content-left {
    position: relative;
    z-index: 11;
}
.clock-box::after { display: none !important; }

.horloge {
    font-size: 3.8em; font-family: 'Inter', sans-serif; font-weight: 900; letter-spacing: -4px; line-height: 1; white-space: nowrap;
    background: linear-gradient(180deg, #ffffff 0%, #a5b4fc 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 10px rgba(165, 180, 252, 0.3)); margin-bottom: 5px;
}

.date-info { color: #a5b4fc; font-weight: 700; font-size: 0.85em; text-transform: uppercase; letter-spacing: 1px; opacity: 0.9; }

.clock-content-left { display: flex; flex-direction: column; align-items: flex-start; flex: 1 1 auto; min-width: 0; text-align: left; }
.clock-content-left::after {
    content: ""; width: 60px; height: 3px; background: #a5b4fc; display: block;
    margin: 15px 0; border-radius: 2px; box-shadow: 0 0 12px rgba(165, 180, 252, 0.6); transition: all 0.5s ease;
}

.clock-details { font-size: 0.75em; color: rgba(255, 255, 255, 0.4); display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-family: 'Courier New', monospace; margin-top: 5px; margin-bottom: 8px; white-space: normal; }
#extra-clock-data { color: #a5b4fc; font-weight: bold; transition: all 0.3s ease; }

.clock-astro-wrapper {
    display: flex !important; flex-direction: row !important; align-items: center !important;
    justify-content: flex-start !important; padding: 15px 20px !important;
    width: fit-content !important; margin: 0 !important; gap: 12px;
}

#moon-visual-container { position: absolute; top: 4px; right: 8px; width: 100px; height: 100px; overflow: visible; display: block; margin: 0; transform: none; transition: all 0.5s ease-in-out; pointer-events: none; z-index: 10; }
#moon-visual-container svg { display: block; width: 100%; height: 100%; flex-shrink: 0; filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.4)); }


/* --- 3. KOMPONENTY (POGODA, CYTATY, TERMINAL, STOPKA) --- */
#main-weather-box {
    justify-self: end; position: relative; overflow: hidden !important;
    height: auto !important; min-height: var(--header-side-panel-height); width: 100%; max-width: 350px; margin-left: auto;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 15px 20px; box-sizing: border-box; cursor: pointer; z-index: 1;
}

.sync-dot {
    position: absolute; top: 10px; right: 10px; width: 6px; height: 6px;
    background-color: #4ade80; border-radius: 50%; box-shadow: 0 0 10px rgba(74, 222, 128, 0.6);
    z-index: 50; cursor: help; opacity: 0.8; transition: all 0.3s ease;
}
.sync-dot:hover { opacity: 1; transform: scale(1.3); box-shadow: 0 0 15px rgba(74, 222, 128, 0.9); }
.sync-dot.syncing { background-color: #ffffff; box-shadow: 0 0 15px #ffffff; }
#pop-sync { font-family: 'JetBrains Mono', monospace; font-weight: bold; color: #4ade80; }

#main-weather-box .weather-row,
#main-weather-box .weather-details { display: flex; align-items: center; justify-content: space-between; width: 100%; position: relative; z-index: 10; flex-shrink: 0; }
#main-weather-box .weather-row { min-height: 64px; gap: 10px; padding: 0 8px; box-sizing: border-box; }
#main-weather-box .weather-details { flex-wrap: wrap; gap: 8px; padding: 0 8px; box-sizing: border-box; line-height: 1.3; }
.weather-separator { width: 100%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent); margin: 5px 0; flex-shrink: 0; }
#main-weather-box .weather-graph-container { position: relative; width: 100%; height: 55px; min-height: 55px; flex: 1 1 55px; z-index: 5; pointer-events: auto; opacity: 0.7; margin: 4px 0; }
#temp-chart { width: 100% !important; height: 100% !important; display: block; }

#main-weather-box .temp {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 900;
    letter-spacing: -0.08em;
    background: linear-gradient(180deg, #ffffff 0%, var(--accent, #a5b4fc) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 10px rgba(165, 180, 252, 0.3));
    filter: drop-shadow(0 4px 10px color-mix(in srgb, var(--accent, #a5b4fc) 35%, transparent));
}
#main-weather-box #weather-icon canvas { width: 60px; height: 60px; filter: drop-shadow(0 0 5px rgba(255,255,255,0.2)); }
#main-weather-box .city-container { display: flex; align-items: center; gap: 6px; padding: 2px 6px; border-radius: 4px; transition: background 0.2s ease; cursor: pointer; flex: 1 1 120px; min-width: 0; max-width: none; font-weight: bold; font-size: 0.9rem; color: var(--accent, #a5b4fc); }
#main-weather-box .country-badge {
    background: rgba(165, 180, 252, 0.12) !important;
    background: color-mix(in srgb, var(--accent, #a5b4fc) 12%, transparent) !important;
    border-color: rgba(165, 180, 252, 0.4) !important;
    border-color: color-mix(in srgb, var(--accent, #a5b4fc) 40%, transparent) !important;
    color: var(--accent, #a5b4fc) !important;
    font-family: 'Inter', sans-serif !important;
    box-shadow: 0 0 10px rgba(165, 180, 252, 0.3) !important;
    box-shadow: 0 0 10px color-mix(in srgb, var(--accent, #a5b4fc) 30%, transparent) !important;
}
.country-badge {
    display: inline-block !important; min-width: 25px !important; min-height: 18px !important;
    background: rgba(255, 255, 255, 0.2) !important; border: 1px solid rgba(255, 255, 255, 0.4) !important;
    padding: 2px 8px !important; border-radius: 12px !important; font-size: 0.7rem !important;
    font-weight: 900 !important; letter-spacing: 1px !important; font-family: 'JetBrains Mono', monospace !important;
    color: #ffffff !important; text-transform: uppercase !important; white-space: nowrap !important;
    text-align: center !important; box-shadow: 0 0 10px rgba(255,255,255,0.5) !important;
}
.w-value { display: flex; align-items: center; justify-content: flex-end; gap: 5px; text-align: right; min-width: 0; }
#main-weather-box #weather-desc { flex: 1 1 80px; min-width: 0; overflow: hidden; text-align: right; text-overflow: ellipsis; white-space: nowrap; font-size: 0.8rem; letter-spacing: 1px; text-transform: uppercase; opacity: 0.8; color: var(--accent, #a5b4fc); }

/* Cytaty i kot */
.quote-container { flex-grow: 0; display: flex; justify-content: center; align-items: center; }
.quote-container--before-ip-intelligence { margin-bottom: 0; }
.quote-box { max-width: 650px; width: 100%; text-align: center; position: relative; padding: 44px 36px 28px 36px !important; }
.quote-header-decorator {
    position: absolute; top: -20px; left: 40px; background: linear-gradient(135deg, #818cf8, #a5b4fc);
    width: 45px; height: 45px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: white; z-index: 10; transition: background 0.3s ease, opacity 0.3s ease;
}
.quote-text { font-size: 1.45em; font-style: italic; display: block; margin-bottom: 10px; color: rgba(255,255,255,0.9); }
.quote-author { font-size: 1em; font-weight: 700; color: #a5b4fc; text-transform: uppercase; }
.quote-controls { position: absolute; top: 20px; right: 25px; display: flex; align-items: center; gap: 10px; }
.ctrl-btn { background: rgba(255,255,255,0.1); border: none; color: white; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; }

.honeypot-showcase-wrap { position: relative; margin: 32px 0 28px; }
.honeypot-showcase {
    position: relative; width: 100%; max-width: none; margin: 0; padding: clamp(20px, 3vw, 36px);
    box-sizing: border-box; overflow: hidden; border-color: rgba(34, 211, 238, 0.22);
    background: linear-gradient(135deg, rgba(18, 32, 50, 0.8), rgba(15, 20, 34, 0.82));
}
.honeypot-heading { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.honeypot-heading-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 12px; border-bottom: 1px dashed rgba(103, 232, 249, 0.35); }
.honeypot-eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #67e8f9; font: 700 0.72rem 'Fira Code', monospace; letter-spacing: 0.12em; }
.honeypot-heading h2 { margin: 0 0 8px; max-width: 760px; font-size: clamp(1.2rem, 1.8vw, 1.6rem); line-height: 1.25; text-wrap: balance; animation: honeypot-title-print 2.2s steps(52, end) both; }
.honeypot-heading h2::after { display: inline-block; width: 2px; height: 0.9em; margin-left: 0.12em; background: #67e8f9; content: ""; vertical-align: -0.08em; animation: honeypot-title-caret 0.75s step-end 2.2s 4; }
.honeypot-heading-content > p { font-size: 0.78rem; line-height: 1.55; }
@keyframes honeypot-title-print {
    from { clip-path: inset(0 100% 0 0); }
    to { clip-path: inset(0); }
}
@keyframes honeypot-title-caret {
    0%, 50% { opacity: 1; }
    50.01%, 100% { opacity: 0; }
}
.honeypot-demo-shell { margin-bottom: 16px; }
.honeypot-demo-callout { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0; padding: 16px 18px; border: 1px solid rgba(74, 222, 128, 0.26); border-radius: 14px; background: linear-gradient(115deg, rgba(20, 83, 45, 0.18), rgba(7, 14, 25, 0.58)); }
.honeypot-demo-callout[hidden], .honeypot-demo-restore[hidden] { display: none; }
.honeypot-demo-copy { min-width: 0; }
.honeypot-demo-copy h3 { margin: 0 0 6px; color: #bbf7d0; font: 700 0.78rem 'Fira Code', monospace; letter-spacing: 0.05em; }
.honeypot-demo-copy > p { margin: 0; color: rgba(226, 232, 240, 0.78); font-size: 0.75rem; line-height: 1.55; }
.honeypot-demo-copy > p + p { margin-top: 5px; }
.honeypot-demo-copy > .honeypot-demo-note { margin-top: 6px; color: rgba(148, 163, 184, 0.78);
}
.honeypot-trend-compass {
display: inline-flex;
flex: 0 0 auto;
width: 2.65rem;
height: 2.65rem;
align-items: center;
justify-content: center;
margin-left: .35rem;
font-size: 2.45rem;
line-height: 1;
vertical-align: middle;
}
.honeypot-value-row { display: flex; min-height: 2.8rem; align-items: center; gap: 4px; }
.honeypot-kpi .honeypot-value-row strong { margin: 9px 0 4px; }
.honeypot-activity-stat .honeypot-value-row strong { margin: 0; }
.honeypot-activity-stat .honeypot-trend-compass { width: 1.9rem; height: 1.9rem; font-size: 1.75rem; }
.public-discord-status {
display: inline-flex;
align-items: center;
gap: 8px;
margin: 0;
padding: 7px 11px;
border: 1px solid rgba(148, 163, 184, .24);
border-radius: 999px;
color: #cbd5e1;
background: rgba(15, 23, 42, .55);
font-size: .72rem;
text-transform: none;
white-space: nowrap;
}
.public-discord-status__icon { color: #a5b4fc; font-size: .9rem; }
.public-discord-status[data-state="online"] { color: #86efac; border-color: rgba(74, 222, 128, .42); }
.public-discord-status[data-state="offline"] { color: #fca5a5; border-color: rgba(248, 113, 113, .45); }
.public-discord-status[data-state="maintenance"] { color: #fcd34d; border-color: rgba(251, 191, 36, .4); }
.public-discord-status[data-state="unknown"] { color: #fcd34d; border-color: rgba(251, 191, 36, .4); }
.public-discord-status__indicator {
width: 8px;
height: 8px;
flex: 0 0 8px;
border-radius: 50%;
background: currentColor; font: 0.66rem 'Fira Code', monospace; }
.honeypot-demo-inline-link { color: #86efac; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.honeypot-demo-inline-link:hover, .honeypot-demo-inline-link:focus-visible { color: #bbf7d0; }
.honeypot-demo-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 8px; }
.honeypot-demo-link { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 8px 11px; border: 1px solid rgba(74, 222, 128, 0.42); border-radius: 8px; background: rgba(74, 222, 128, 0.1); color: #bbf7d0; font: 700 0.67rem 'Fira Code', monospace; text-decoration: none; transition: background 0.16s ease, border-color 0.16s ease; }
.honeypot-demo-link:hover, .honeypot-demo-link:focus-visible { border-color: rgba(74, 222, 128, 0.78); background: rgba(74, 222, 128, 0.2); outline: none; }
.honeypot-demo-visibility { display: inline-flex; flex: 0 0 36px; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 1px solid rgba(148, 163, 184, 0.32); border-radius: 8px; background: rgba(148, 163, 184, 0.08); color: rgba(203, 213, 225, 0.86); cursor: pointer; transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease; }
.honeypot-demo-visibility:hover, .honeypot-demo-visibility:focus-visible { border-color: rgba(103, 232, 249, 0.65); background: rgba(34, 211, 238, 0.12); color: #a5f3fc; outline: none; }
.honeypot-demo-restore { display: flex; justify-content: flex-end; }
@media (prefers-reduced-motion: reduce) {
    .honeypot-heading h2 { animation: none; clip-path: none; }
    .honeypot-heading h2::after { display: none; animation: none; }
}
.honeypot-update-stack { display: flex; flex: 0 0 auto; flex-direction: column; align-items: flex-end; }
.honeypot-refresh-frame { position: relative; display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 5px 7px 5px 13px; border: 1px solid rgba(34, 211, 238, 0.24); border-radius: 999px; background: rgba(7, 14, 25, 0.58); }
.honeypot-countdown { margin: 0; color: #86efac !important; font: 600 0.68rem 'Fira Code', monospace; text-align: left; white-space: nowrap; }
.honeypot-updated-trigger { position: relative; display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 30px; height: 30px; border: 1px solid rgba(103, 232, 249, 0.35); border-radius: 50%; background: rgba(34, 211, 238, 0.1); color: #a5f3fc; cursor: help; outline: none; }
.honeypot-updated-trigger:hover, .honeypot-updated-trigger:focus-visible { border-color: rgba(103, 232, 249, 0.8); background: rgba(34, 211, 238, 0.2); box-shadow: 0 0 14px rgba(34, 211, 238, 0.22); }
.honeypot-custom-tooltip { position: absolute; z-index: 30; top: calc(100% + 10px); right: 0; width: max-content; max-width: min(280px, 80vw); padding: 10px 12px; border: 1px solid rgba(103, 232, 249, 0.35); border-radius: 10px; background: rgba(7, 14, 25, 0.97); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.38); color: #e2e8f0; font: 600 0.68rem 'Fira Code', monospace; line-height: 1.5; white-space: normal; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease; }
.honeypot-updated-trigger:hover .honeypot-custom-tooltip, .honeypot-updated-trigger:focus-visible .honeypot-custom-tooltip { opacity: 1; visibility: visible; transform: translateY(0); }
.honeypot-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.honeypot-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.honeypot-kpi { min-width: 0; padding: 18px 20px; border: 1px solid rgba(148, 163, 184, 0.16); border-radius: 16px; background: rgba(7, 14, 25, 0.58); }
.honeypot-kpi-label { display: block; color: rgba(203, 213, 225, 0.78); font: 700 0.68rem 'Fira Code', monospace; letter-spacing: 0.09em; }
.honeypot-kpi-label span { color: #67e8f9; }
.honeypot-kpi strong { display: block; margin: 9px 0 4px; color: #f8fafc; font: 800 clamp(1.8rem, 3.5vw, 2.55rem) 'Fira Code', monospace; line-height: 1.1; }
.honeypot-kpi-detail { color: rgba(148, 163, 184, 0.78); font-size: 0.78rem; }
.honeypot-kpi-trend { display: block; margin-top: 7px; font-size: 0.66rem; }
.honeypot-totals { margin-bottom: 16px; padding: 18px 20px; border: 1px solid rgba(148, 163, 184, 0.16); border-radius: 16px; background: rgba(7, 14, 25, 0.42); }
.honeypot-totals-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.honeypot-totals-heading h3 { margin: 0; font-size: 0.92rem; }
.honeypot-totals-heading p { margin: 0; color: rgba(148, 163, 184, 0.72); font-size: 0.7rem; }
.honeypot-total-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.honeypot-total { min-width: 0; padding: 13px 15px; border: 1px solid rgba(148, 163, 184, 0.12); border-radius: 12px; background: rgba(15, 23, 42, 0.55); }
.honeypot-total-label { display: block; overflow: hidden; color: rgba(203, 213, 225, 0.72); font: 700 0.64rem 'Fira Code', monospace; letter-spacing: 0.06em; text-overflow: ellipsis; white-space: nowrap; }
.honeypot-total-value { display: block; margin-top: 7px; color: #e2e8f0; font: 700 clamp(1rem, 1.6vw, 1.35rem) 'Fira Code', monospace; line-height: 1.2; overflow-wrap: anywhere; }
.honeypot-rankings { margin-bottom: 16px; }
.honeypot-rankings-heading { margin-bottom: 12px; }
.honeypot-rankings-heading h3 { margin: 0; font-size: 0.92rem; }
.honeypot-rankings-heading p { margin: 5px 0 0; color: rgba(148, 163, 184, 0.72); font-size: 0.72rem; }
.honeypot-rankings-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.honeypot-ranking-card { min-width: 0; min-height: 340px; padding: 16px; border: 1px solid rgba(148, 163, 184, 0.16); border-radius: 15px; background: rgba(7, 14, 25, 0.48); }
.honeypot-ranking-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px dashed rgba(103, 232, 249, 0.32); }
.honeypot-ranking-heading > div { min-width: 0; }
.honeypot-ranking-heading h4 { margin: 0; color: #a5f3fc; font: 700 0.68rem 'Fira Code', monospace; letter-spacing: 0.06em; }
.honeypot-ranking-heading p { margin: 5px 0 0; color: rgba(148, 163, 184, 0.72); font-size: 0.68rem; }
.honeypot-ranking-icon { flex: 0 0 auto; margin-top: 1px; font-size: 0.92rem; }
.honeypot-ranking-icon--isp { color: #67e8f9; }
.honeypot-ranking-icon--countries { color: #60a5fa; }
.honeypot-ranking-icon--paths { color: #fbbf24; }
.honeypot-ranking-icon--ssh { color: #c084fc; }
.honeypot-ranking-icon--attacks { color: #fb7185; }
.honeypot-ranking-icon--threat { color: #4ade80; }
.honeypot-top-list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.honeypot-top-list li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-width: 0; }
.honeypot-top-list li + li { padding-top: 8px; border-top: 1px dashed rgba(103, 232, 249, 0.32); }
.honeypot-rank-position { color: rgba(103, 232, 249, 0.8); font: 700 0.7rem 'Fira Code', monospace; }
.honeypot-rank-details { display: flex; flex-direction: column; min-width: 0; gap: 3px; }
.honeypot-rank-link { display: block; min-width: 0; color: inherit; text-decoration: none; }
.honeypot-link-indicator { display: inline-block; margin-left: 5px; color: rgba(103, 232, 249, 0.82); font-size: 0.62rem; transition: color 0.18s ease, transform 0.18s ease; }
.honeypot-rank-link:hover .honeypot-link-indicator, .honeypot-rank-link:focus-visible .honeypot-link-indicator, .honeypot-country-popover-link:hover .honeypot-link-indicator, .honeypot-country-popover-link:focus-visible .honeypot-link-indicator { color: #67e8f9; transform: translate(2px, -2px); }
.honeypot-rank-link:hover .honeypot-rank-name, .honeypot-rank-link:focus-visible .honeypot-rank-name { color: #67e8f9; text-decoration: underline; text-underline-offset: 3px; }
.honeypot-rank-link:focus-visible { border-radius: 3px; outline: 2px solid rgba(103, 232, 249, 0.42); outline-offset: 2px; }
.honeypot-rank-name { overflow-wrap: anywhere; color: #e2e8f0; font-size: 0.76rem; }
.honeypot-rank-period { color: rgba(148, 163, 184, 0.72); font: 0.64rem 'Fira Code', monospace; }
.honeypot-rank-count { color: #f8fafc; font: 700 0.75rem 'Fira Code', monospace; }
.honeypot-top-empty { grid-column: 1 / -1; color: rgba(148, 163, 184, 0.72); font-size: 0.72rem; }
.honeypot-threat-today { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 12px; margin: 2px 0 16px; }
.honeypot-threat-today strong { color: #f8fafc; font: 800 1.5rem 'Fira Code', monospace; }
.honeypot-threat-today span { color: rgba(148, 163, 184, 0.78); font: 0.68rem 'Fira Code', monospace; }
.honeypot-threat-card h5 { margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px dashed rgba(103, 232, 249, 0.32); color: rgba(203, 213, 225, 0.8); font: 700 0.65rem 'Fira Code', monospace; letter-spacing: 0.06em; }
.honeypot-threat-top-list li { grid-template-columns: 24px minmax(0, 1fr) auto; }
.honeypot-visuals { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 16px; }
.honeypot-panel { min-width: 0; padding: 20px; border: 1px solid rgba(148, 163, 184, 0.16); border-radius: 18px; background: rgba(7, 14, 25, 0.52); }
.honeypot-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.honeypot-panel-heading h3 { margin: 0; font-size: 1rem; }
.honeypot-panel-heading p { margin: 5px 0 0; color: rgba(148, 163, 184, 0.8); font-size: 0.76rem; }
.honeypot-panel-heading > i { color: #67e8f9; font-size: 1.1rem; }
.honeypot-country-map-controls { display: inline-flex; gap: 5px; margin: 0 0 10px; padding: 3px; border: 1px solid rgba(148, 163, 184, 0.18); border-radius: 9px; background: rgba(7, 14, 25, 0.62); }
.honeypot-country-map-controls button { padding: 6px 10px; border: 0; border-radius: 6px; background: transparent; color: rgba(203, 213, 225, 0.72); font-size: 0.68rem; cursor: pointer; transition: background 0.18s ease, color 0.18s ease; }
.honeypot-country-map-controls button:hover, .honeypot-country-map-controls button:focus-visible { color: #e2e8f0; outline: 2px solid rgba(103, 232, 249, 0.48); outline-offset: 1px; }
.honeypot-country-map-controls button.is-active { background: rgba(34, 211, 238, 0.16); color: #67e8f9; }
.honeypot-map-summary { margin: 9px 0 0; padding: 9px 11px; border: 1px solid rgba(148, 163, 184, 0.2); border-radius: 9px; background: rgba(7, 14, 25, 0.42); color: rgba(203, 213, 225, 0.78); font-size: 0.66rem; line-height: 1.45; }
.honeypot-activity-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-bottom: 12px; }
.honeypot-activity-stat { display: flex; min-width: 0; flex-direction: column; gap: 4px; padding: 10px 12px; border: 1px solid rgba(148, 163, 184, 0.16); border-radius: 11px; background: rgba(7, 14, 25, 0.52); }
.honeypot-activity-stat-label { overflow: hidden; color: rgba(203, 213, 225, 0.72); font: 700 0.58rem 'Fira Code', monospace; letter-spacing: 0.06em; text-overflow: ellipsis; white-space: nowrap; }
.honeypot-activity-stat strong { font: 800 1.05rem 'Fira Code', monospace; line-height: 1.1; }
.honeypot-activity-stat-detail { overflow: hidden; color: rgba(148, 163, 184, 0.78); font-size: 0.62rem; text-overflow: ellipsis; white-space: nowrap; }
.honeypot-activity-trend { overflow: hidden; font: 700 0.56rem 'Fira Code', monospace; text-overflow: ellipsis; white-space: nowrap; }
.honeypot-kpi-trend { font-family: 'Fira Code', monospace; font-weight: 700; white-space: nowrap; }
.honeypot-activity-trend--up { color: #f87171; }
.honeypot-activity-trend--down { color: #4ade80; }
.honeypot-activity-trend--steady, .honeypot-activity-trend--unavailable { color: rgba(148, 163, 184, 0.78); }
.honeypot-activity-stat--cyan { border-color: rgba(103, 232, 249, 0.26); }
.honeypot-activity-stat--cyan strong { color: #67e8f9; }
.honeypot-activity-stat--violet { border-color: rgba(192, 132, 252, 0.28); }
.honeypot-activity-stat--violet strong { color: #c084fc; }
.honeypot-activity-stat--amber { border-color: rgba(251, 191, 36, 0.28); }
.honeypot-activity-stat--amber strong { color: #fbbf24; }
.honeypot-chart-wrap { position: relative; width: 100%; height: 300px; }
#honeypot-chart { display: block; width: 100% !important; height: 100% !important; }
.honeypot-globe-stage { position: relative; min-height: 380px; height: 400px; overflow: hidden; border-radius: 14px; background: radial-gradient(ellipse at center, rgba(30, 41, 75, 0.48), rgba(7, 14, 25, 0.08) 68%); }
.honeypot-globe { width: 100%; height: 400px; }
.honeypot-flat-map { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; }
.honeypot-flat-map[hidden], .honeypot-globe[hidden] { display: none !important; }
.honeypot-world-map-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.honeypot-world-map-content { transform-box: view-box; }
.honeypot-country-shape { stroke: rgba(148, 163, 184, 0.34); stroke-width: 0.65; vector-effect: non-scaling-stroke; transition: fill 0.2s ease, stroke 0.2s ease; }
.honeypot-country-shape { cursor: pointer; }
.honeypot-country-shape:hover { stroke: #e2e8f0; stroke-width: 1.2; }
.honeypot-country-popover { position: absolute; z-index: 4; left: 14px; bottom: 14px; width: min(300px, calc(100% - 28px)); padding: 16px 44px 16px 16px; border: 1px solid rgba(148, 163, 184, 0.32); border-radius: 16px; background: linear-gradient(135deg, rgba(15, 23, 42, 0.86), rgba(7, 14, 25, 0.72)); box-shadow: 0 16px 42px rgba(2, 6, 23, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.12); -webkit-backdrop-filter: blur(18px) saturate(145%); backdrop-filter: blur(18px) saturate(145%); color: #e2e8f0; animation: honeypot-country-popover-in 0.18s ease-out; }
.honeypot-country-popover[hidden] { display: none !important; }
.honeypot-country-popover-close { position: absolute; top: 10px; right: 10px; display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid rgba(148, 163, 184, 0.24); border-radius: 8px; background: rgba(15, 23, 42, 0.52); color: rgba(226, 232, 240, 0.82); cursor: pointer; }
.honeypot-country-popover-close:hover, .honeypot-country-popover-close:focus-visible { border-color: rgba(103, 232, 249, 0.62); color: #67e8f9; outline: 2px solid rgba(103, 232, 249, 0.3); outline-offset: 1px; }
.honeypot-country-popover-kicker { display: flex; align-items: center; gap: 7px; margin: 0 0 8px; color: #67e8f9; font: 700 0.6rem 'Fira Code', monospace; letter-spacing: 0.1em; }
.honeypot-country-popover h4 { margin: 0; color: #f8fafc; font-size: 1rem; }
.honeypot-country-popover-count { margin: 7px 0 0; color: rgba(203, 213, 225, 0.82); font-size: 0.76rem; line-height: 1.45; }
.honeypot-country-popover-code { position: absolute; right: 14px; bottom: 12px; color: rgba(103, 232, 249, 0.48); font: 700 0.62rem 'Fira Code', monospace; letter-spacing: 0.08em; }
.honeypot-country-popover-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 7px 9px; border: 1px solid rgba(103, 232, 249, 0.25); border-radius: 7px; background: rgba(34, 211, 238, 0.08); color: #a5f3fc; font: 700 0.58rem 'Fira Code', monospace; text-decoration: none; }
.honeypot-country-popover-link .honeypot-link-indicator { margin-left: 0; font-size: 0.62rem; }
.honeypot-country-popover-link:hover, .honeypot-country-popover-link:focus-visible { background: rgba(34, 211, 238, 0.16); outline: 2px solid rgba(103, 232, 249, 0.3); outline-offset: 2px; }
@keyframes honeypot-country-popover-in { from { opacity: 0; transform: translateY(6px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.honeypot-country-flow { fill: none; stroke: rgba(251, 113, 133, 0.82); stroke-width: 1.7; stroke-dasharray: 6 5; stroke-dashoffset: 0; vector-effect: non-scaling-stroke; pointer-events: stroke; animation: honeypot-flow-dash 1.4s linear infinite; }
.honeypot-flow-pulse { fill: #fff1f2; stroke: #fb7185; stroke-width: 1.3; vector-effect: non-scaling-stroke; pointer-events: none; }
@keyframes honeypot-flow-dash { to { stroke-dashoffset: -22; } }
.honeypot-map-target { fill: #10b981; stroke: #d1fae5; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.honeypot-map-target-label { fill: #d1fae5; font: 700 11px 'Fira Code', monospace; paint-order: stroke; stroke: rgba(7, 14, 25, 0.9); stroke-width: 3px; stroke-linejoin: round; pointer-events: none; }
.honeypot-map-zoom-overlay { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(2, 6, 23, 0.62); color: #e2e8f0; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.18s ease, visibility 0.18s ease; }
.honeypot-map-zoom-overlay span { padding: 10px 13px; border: 1px solid rgba(148, 163, 184, 0.28); border-radius: 10px; background: rgba(7, 14, 25, 0.92); font-size: 0.72rem; text-align: center; }
.honeypot-globe-stage[data-map-mode="flat"][data-scroll-hint="true"] .honeypot-map-zoom-overlay,
.honeypot-globe-stage[data-map-mode="flat"]:focus-within .honeypot-map-zoom-overlay { opacity: 1; visibility: visible; }
.honeypot-globe-stage[data-map-mode="globe"] .honeypot-map-zoom-controls { display: none; }
.honeypot-map-zoom-controls { position: absolute; z-index: 3; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 5px; }
.honeypot-map-zoom-controls button { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(148, 163, 184, 0.28); border-radius: 8px; background: rgba(7, 14, 25, 0.84); color: #e2e8f0; cursor: pointer; }
.honeypot-map-zoom-controls button:hover:not(:disabled), .honeypot-map-zoom-controls button:focus-visible { border-color: rgba(103, 232, 249, 0.72); color: #67e8f9; outline: 2px solid rgba(103, 232, 249, 0.42); outline-offset: 1px; }
.honeypot-map-zoom-controls button:disabled { cursor: not-allowed; opacity: 0.42; }
.honeypot-world-map-svg { cursor: grab; }
.honeypot-world-map-svg.is-dragging { cursor: grabbing; }
.honeypot-visual-note { margin: 12px 0 0; color: rgba(148, 163, 184, 0.72); font-size: 0.7rem; line-height: 1.5; }
@media (prefers-reduced-motion: reduce) {
    .honeypot-country-flow { animation: none; }
    .honeypot-flow-pulse { display: none; }
    .honeypot-country-popover { animation: none; }
}

.timer-wrapper { position: relative; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; }
.timer-svg { width: 24px; height: 24px; transform: rotate(-90deg); }
.timer-bar { fill: none; stroke: #a5b4fc; stroke-width: 3; stroke-dasharray: 88; stroke-dashoffset: 88; transition: stroke-dashoffset 0.1s linear, stroke 0.5s ease; }
.timer-bg { fill: none; stroke: rgba(255,255,255,0.1); stroke-width: 3; }
#timer-status-icon { position: absolute; font-size: 8px; color: #a5b4fc; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
#timer-status-icon.active { opacity: 1; }

/* FIX: Kot przytwierdzony absolutnie do stopki - zawsze na rogu! */
.cat-wrapper { position: absolute; top: -65px; right: -48px; z-index: 1000; }
.cat-container { cursor: pointer; transition: 0.6s; transform: rotate(35deg); }
.cat-container img { width: 100px; height: 100px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%; }
.cat-bubble {
    margin-right: 40px; position: absolute; top: -60px; right: 50%; transform: translateX(50%) scale(0);
    background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2); color: #a5b4fc; padding: 10px 20px; border-radius: 20px;
    font-size: 13px; font-weight: 700; transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); white-space: nowrap; z-index: 1001;
}
.cat-bubble.active { transform: translateX(50%) scale(1); animation: bubbleGlow 2s infinite alternate ease-in-out; }

/* Stopka */
.footer-stack { width: 100%; margin-top: auto; display: flex; flex-direction: column; }
.footer-partners {
    display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center; gap: 24px;
    width: 100%; box-sizing: border-box; margin: 24px 0 12px; padding: 12px 18px;
    border: 1px solid rgba(148, 163, 184, 0.16); border-radius: 14px;
    background: rgba(7, 14, 25, 0.48);
}
.footer-partners-heading {
    grid-column: 1; display: flex; align-items: center; justify-content: flex-start; gap: 9px; min-width: 0;
    color: rgba(203, 213, 225, 0.72); font: 700 0.64rem 'Fira Code', monospace;
    letter-spacing: 0.08em;
}
.footer-partners-heading i { color: #c084fc; font-size: 0.9rem; }
.footer-partners-heading span { animation: contributor-heading-pulse 3s ease-in-out infinite; }
@keyframes contributor-heading-pulse {
    0%, 100% { color: rgba(203, 213, 225, 0.72); text-shadow: 0 0 0 rgba(192, 132, 252, 0); }
    50% { color: #f3e8ff; text-shadow: 0 0 8px rgba(192, 132, 252, 0.55); }
}
.footer-partner-badges { grid-column: 2; justify-self: center; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; }
.footer-partner-badge { display: inline-flex; max-width: 100%; align-items: center; opacity: 0.85; transition: opacity 0.2s ease; }
.footer-partner-badge:hover, .footer-partner-badge:focus-visible { opacity: 1; }
.footer-partner-badge img { display: block; max-width: 100%; object-fit: contain; }
@media (prefers-reduced-motion: reduce) {
    .footer-partners-heading span { animation: none; }
}
.footer {
    margin-top: 0; display: grid; grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "controls" "links"; align-items: center;
    padding: 12px 30px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px 20px 0 0; font-size: 10px; color: rgba(255, 255, 255, 0.4); text-transform: uppercase;
    width: 100%; box-sizing: border-box; gap: 12px 18px;
}
.footer-left { grid-area: controls; display: flex !important; flex-wrap: wrap; align-items: center; min-width: 0; gap: 6px; }
.footer-left > button[title="Astronomic Data"], .footer-left > button[title="Bio Allergens Scanner"] {
    box-sizing: border-box !important; width: 33px !important; min-width: 33px; height: 33px !important;
    margin: 0 !important; padding: 0 !important; font-size: 0 !important; line-height: 1 !important;
}
.footer-left > button[title="Astronomic Data"] i, .footer-left > button[title="Bio Allergens Scanner"] i { font-size: 13px; }
.footer-astro-icon { transform-origin: 50% 50%; }
.footer-astro-icon.is-shaking { animation: footer-meteor-shake 0.65s ease-in-out; }
@keyframes footer-meteor-shake {
    0%, 100% { transform: rotate(0deg); }
    15% { transform: rotate(-16deg); }
    30% { transform: rotate(14deg); }
    45% { transform: rotate(-12deg); }
    60% { transform: rotate(10deg); }
    75% { transform: rotate(-6deg); }
    90% { transform: rotate(3deg); }
}
.footer-bio-icon { transform-origin: 50% 50%; animation: footer-leaf-turn 8s ease-in-out infinite; }
@keyframes footer-leaf-turn {
    0%, 78% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
    .footer-astro-icon, .footer-astro-icon.is-shaking, .footer-bio-icon { animation: none !important; }
}
.footer-left > .footer-tool-btn { width: 33px; height: 33px; margin: 0; }
.status-indicator { display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.05); padding: 5px 12px; border-radius: 15px; margin-right: 12px !important; }
.status-dot { width: 6px; height: 6px; background: #a5b4fc; border-radius: 50%; box-shadow: 0 0 8px #a5b4fc; }

.footer-left .footer-term-btn, .footer-left .footer-cat-btn, .footer-left .footer-astro-btn, .footer-left .footer-teddy-btn, .footer-left .footer-raccoon-btn, .footer-left .footer-monkey-btn {
    display: inline-flex !important; align-items: center; justify-content: center; width: 33px; height: 33px;
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px;
    color: #a5b4fc; transition: all 0.3s ease; cursor: pointer; text-decoration: none; padding: 0; margin: 0 !important; outline: none;
}
.footer-terminal-prompt { display: inline-flex; align-items: center; font: 700 14px/1 'Fira Code', monospace; letter-spacing: -0.08em; }
.footer-terminal-cursor { animation: footer-terminal-blink 1s steps(1, end) infinite; }
@keyframes footer-terminal-blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .footer-terminal-cursor { animation: none; }
}
.footer-left .footer-term-btn:hover, .footer-left .footer-cat-btn:hover, .footer-left .footer-astro-btn:hover, .footer-left .footer-teddy-btn:hover, .footer-left .footer-raccoon-btn:hover, .footer-left .footer-monkey-btn:hover {
    background: rgba(255, 255, 255, 0.1); border-color: rgba(165, 180, 252, 0.5); box-shadow: 0 0 10px rgba(165, 180, 252, 0.2);
}
.footer-right { grid-area: links; display: flex; align-items: center; min-width: 0; width: 100%; gap: 8px 14px; flex-wrap: wrap; justify-content: flex-start; container-name: footer-links; container-type: inline-size; }
.footer-right > .separator-v { display: none; }
.footer-right > #myTicketsFooterBtn:not([style*="display: flex"]) + .footer-ticket-separator { display: none; }
.footer-right > a, .footer-right > button, .footer-right > .api-status, .footer-right > .meow-counter-wrapper, .footer-right > .copyright { flex: 0 0 auto; white-space: nowrap; }
@container footer-links (min-width: 800px) {
    .footer-right > .separator-v { display: inline-flex; align-items: center; flex: 0 0 auto; }
}
@media (min-width: 1800px) {
    .footer { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "controls links"; column-gap: 24px; }
    .footer-left { flex-wrap: nowrap; }
    .footer-right { justify-content: flex-end; }
    .footer-right > .separator-v { display: inline-flex; align-items: center; flex: 0 0 auto; }
}
.api-status { display: flex; align-items: center; gap: 10px; }
.white-text { color: rgba(255, 255, 255, 0.8); }
.copyright { font-weight: 400; }
.footer-tool-btn {
    background: transparent; border: 1px solid rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.5);
    border-radius: 4px; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.2s ease; padding: 0; margin-right: 5px;
}
.footer-tool-btn:hover { background: rgba(165, 180, 252, 0.1); color: #a5b4fc; border-color: rgba(165, 180, 252, 0.4); box-shadow: 0 0 10px rgba(165, 180, 252, 0.2); }

/* Terminal */
.terminal-overlay {
    position: fixed; top: -100%; left: 10%; width: 80%; height: 45vh; z-index: 30000;
    transition: top 0.4s cubic-bezier(0.16, 1, 0.3, 1); padding: 0;
}
.terminal-overlay.is-open { top: 0; }
.terminal-wrapper {
    height: 100%; border-radius: 0 0 15px 15px !important; border: 1px solid rgba(165, 180, 252, 0.2) !important;
    border-top: none !important; display: flex; flex-direction: column; background: rgba(10, 10, 15, 0.95) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6); padding: 15px !important;
}
span[style*="color: green"], span[style*="color: yellow"] { transition: all 0.3s ease; }
.terminal-header { display: flex; justify-content: space-between; align-items: center; padding: 0 5px 10px 5px; font-size: 0.75rem; color: #a5b4fc; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.close-term-btn { background: none; border: none; color: #fb7185; cursor: pointer; font-size: 1.5rem; line-height: 1; padding: 0 5px; transition: 0.2s; }
.close-term-btn:hover { transform: scale(1.2); }
.logs-content { flex-grow: 1; overflow-y: auto; font-family: 'Fira Code', monospace; font-size: 0.85rem; margin: 10px 0; padding-right: 10px; color: rgba(255,255,255,0.4); scrollbar-width: none; scroll-behavior: smooth; }
.logs-content::-webkit-scrollbar { width: 4px; }
.logs-content::-webkit-scrollbar-thumb { background: #a5b4fc; border-radius: 10px; }

@media print {
    .terminal-overlay { display: none !important; }
}
.log-entry { margin-bottom: 2px; animation: log-in 0.3s ease-out; word-wrap: break-word; overflow-wrap: anywhere; word-break: break-word; white-space: normal; max-width: 100%; }
.log-activity-source { color: #93c5fd; font-weight: 700; }
.log-activity-status { font-weight: 700; }
.log-activity-status--start { color: #60a5fa; }
.log-activity-status--success { color: #4ade80; }
.log-activity-status--error { color: #f87171; }
.log-activity-status--warning { color: #fbbf24; }
.log-activity-status--info { color: #c4b5fd; }
.log-activity-message { color: rgba(255, 255, 255, 0.78); }
.log-cache-status { font-weight: 700; }
.log-cache-status--hit { color: #4ade80; }
.log-cache-status--miss { color: #f87171; }
.docs-code-copy-wrap { position: relative; width: 100%; }
.docs-code-copy-wrap > .docs-code-copy-button,
.threat-intel-view .docs-code-copy-wrap > .docs-code-copy-button {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    padding: 7px 10px;
    border: 1px solid rgba(56, 189, 248, .4);
    border-radius: 8px;
    background: rgba(15, 23, 42, .94);
    color: #bae6fd;
    font: 700 .7rem 'Fira Code', monospace;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .24);
    transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.docs-code-copy-wrap > .docs-code-copy-button:hover,
.docs-code-copy-wrap > .docs-code-copy-button:focus-visible,
.threat-intel-view .docs-code-copy-wrap > .docs-code-copy-button:hover,
.threat-intel-view .docs-code-copy-wrap > .docs-code-copy-button:focus-visible {
    border-color: rgba(56, 189, 248, .8);
    background: rgba(8, 47, 73, .96);
    color: #fff;
    outline: none;
    box-shadow: 0 0 16px rgba(56, 189, 248, .2);
}
.docs-code-copy-wrap > .docs-code-copy-button.is-copied,
.threat-intel-view .docs-code-copy-wrap > .docs-code-copy-button.is-copied {
    border-color: rgba(74, 222, 128, .7);
    background: rgba(20, 83, 45, .94);
    color: #4ade80;
    animation: docs-copy-confirm .42s ease;
}
.docs-code-copy-wrap > .docs-code-copy-button.is-error,
.threat-intel-view .docs-code-copy-wrap > .docs-code-copy-button.is-error {
    border-color: rgba(248, 113, 113, .7);
    background: rgba(127, 29, 29, .92);
    color: #fca5a5;
}
@keyframes docs-copy-confirm {
    45% { transform: scale(1.08); box-shadow: 0 0 20px rgba(74, 222, 128, .3); }
}
@media (prefers-reduced-motion: reduce) {
    .docs-code-copy-wrap > .docs-code-copy-button,
    .threat-intel-view .docs-code-copy-wrap > .docs-code-copy-button { transition: none; animation: none !important; }
}
.terminal-input-wrapper { display: flex; align-items: center; gap: 8px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.05); margin-top: 5px; }
.terminal-prompt { color: #a5b4fc; font-weight: bold; }
#terminal-input { background: transparent; border: none; color: white; font-family: 'Courier New', monospace; font-size: 0.75rem; width: 100%; outline: none; }
.terminal-cursor { display: inline-block; width: 8px; height: 14px; background-color: currentColor; margin: 0 4px; vertical-align: middle; animation: cursor-blink 1s step-end infinite; }

/* Modale */
.weather-modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(8px); z-index: 20000; justify-content: center; align-items: center; }
.weather-modal-content { width: 90%; max-width: 350px; padding: 25px !important; border: 1px solid rgba(165, 180, 252, 0.3) !important; box-sizing: border-box; }
#weather-modal .glass-box.is-storming {
    background: rgba(10, 10, 15, 0.7) !important; backdrop-filter: blur(12px) brightness(0.4); border-color: rgba(165, 180, 252, 0.4);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8), inset 0 0 15px rgba(255, 255, 255, 0.05); transition: all 0.5s ease;
}
.w-detail-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.w-label { font-size: 0.85rem; opacity: 0.6; display: flex; align-items: center; gap: 8px; }

#radar-modal .glass-box { max-width: 98vw !important; width: 98vw !important; height: 94vh !important; transform: none !important; display: flex; flex-direction: column; padding: 10px; background: rgba(0, 0, 0, 0.9); border: 1px solid rgba(165, 180, 252, 0.3); }
#weather-map { width: 100%; height: 100%; flex-grow: 1; overflow: hidden; border-radius: 12px; }
#radar-modal .glass-box .close-modal { position: absolute; top: 15px; right: 15px; z-index: 10001; }
.close-modal { position: absolute; top: 10px; right: 15px; background: #fb7185; color: white; border-radius: 50%; width: 35px; height: 35px; display: flex; align-items: center; justify-content: center; cursor: pointer; border: 2px solid #000; z-index: 10001; font-weight: bold; transition: transform 0.2s; }
.close-modal:hover { transform: scale(1.1); }
.windy-label { position: absolute; top: 10px; left: 10px; z-index: 10; background: rgba(0,0,0,0.8); padding: 5px 12px; border-radius: 6px; font-family: monospace; font-size: 12px; font-weight: bold; pointer-events: none; }

.contact-input { background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(255, 255, 255, 0.15); color: white; padding: 12px 15px; border-radius: 12px; outline: none; transition: 0.3s ease; box-sizing: border-box; width: 100%; }
.contact-input:focus { border-color: #a5b4fc; box-shadow: 0 0 10px rgba(165, 180, 252, 0.3); }
.contact-btn { background: linear-gradient(135deg, #818cf8, #a5b4fc); border: none; color: white; padding: 14px; border-radius: 12px; font-weight: 800; cursor: pointer; transition: 0.3s; font-size: 1rem; box-shadow: 0 4px 15px rgba(165, 180, 252, 0.4); box-sizing: border-box; width: 100%; }
.contact-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(165, 180, 252, 0.6); }
.contact-btn:disabled { cursor: not-allowed; }

/* Alert Modals (wa-banner) */
#wa-banner {
    position: relative; margin: -25px auto 15px auto; width: 90%; height: 45px; display: flex; align-items: center; padding: 0 35px; z-index: 9999; box-sizing: border-box; will-change: transform;
    background: rgba(255, 255, 255, 0.07); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); border: 1px solid var(--alert-color); border-top: none; border-radius: 0 0 28px 28px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3); transition: transform 0.2s cubic-bezier(0.03, 0.98, 0.52, 0.99), border-color 0.3s ease;
}
#wa-modal { position: fixed; inset: 0; width: 100%; height: 100%; background: rgba(2, 6, 23, 0.46); backdrop-filter: blur(12px) saturate(1.15); -webkit-backdrop-filter: blur(12px) saturate(1.15); z-index: 10000; display: none; justify-content: center; align-items: center; opacity: 1; transition: opacity 0.3s ease; padding: 18px; box-sizing: border-box; }
.wa-modal-hidden { opacity: 0 !important; pointer-events: none; }
.wa-modal-content {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(15, 23, 42, 0.78) 58%, rgba(15, 23, 42, 0.88)) !important;
    backdrop-filter: blur(28px) saturate(1.35) !important; -webkit-backdrop-filter: blur(28px) saturate(1.35);
    border: 1px solid rgba(255, 255, 255, 0.2) !important; border-top: 4px solid var(--alert-color) !important; border-radius: 24px !important;
    width: min(92vw, 760px); box-sizing: border-box; padding: 0 24px 24px; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255,255,255,0.12); max-height: 90vh; overflow-y: auto !important; position: relative; color: #fff; scroll-behavior: smooth;
}
.wa-modal-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; padding: 22px 24px 16px; margin-left: -24px; margin-right: -24px; border-bottom: 1px dashed rgba(255,255,255,0.18); position: sticky !important; top: 0; z-index: 1001; background: rgba(15, 23, 42, 0.72); backdrop-filter: blur(20px) saturate(1.2); -webkit-backdrop-filter: blur(20px) saturate(1.2); }
.wa-modal-header h2 { margin: 0; color: var(--alert-color); font-size: clamp(1.05rem, 3vw, 1.4rem); text-transform: uppercase; font-weight: 800; line-height: 1.25; text-shadow: 0 0 18px color-mix(in srgb, var(--alert-color) 45%, transparent); }
.wa-modal-header h2 > i { margin-right: 9px; }
#wa-modal-close { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 38px; height: 38px; padding: 0; color: rgba(255, 255, 255, 0.72); background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15); border-radius: 12px; font-size: 1.05rem; cursor: pointer; transition: color 0.2s, background 0.2s, border-color 0.2s; }
#wa-modal-close:hover { color: #fff; background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.28); }
.wa-modal-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; padding: 10px 12px; color: rgba(226,232,240,0.72); background: rgba(255,255,255,0.045); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; font-size: 0.78rem; }
.wa-modal-meta > i { color: var(--alert-color); }
.wa-modal-meta strong { margin-left: auto; color: #fff; font-weight: 700; }
.wa-modal-desc { display: flex; flex-direction: column; gap: 12px; line-height: 1.6; font-size: 0.92rem; color: #e4e4e7; }
.wa-alert-card { --wa-alert-card-color: #a5b4fc; margin: 0; padding: 16px; background: linear-gradient(135deg, rgba(255,255,255,0.085), rgba(2,6,23,0.25)); border: 1px solid rgba(255,255,255,0.12); border-left: 3px solid var(--wa-alert-card-color); border-radius: 14px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 8px 20px rgba(0,0,0,0.12); }
.wa-alert-card--compact { margin-bottom: 9px; padding: 11px 12px; border-radius: 11px; }
.wa-alert-card__topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--wa-alert-card-color); }
.wa-alert-card__event { font-size: 0.85rem; font-weight: 800; letter-spacing: 0.045em; text-transform: uppercase; }
.wa-alert-card__topline > i { flex: 0 0 auto; color: var(--wa-alert-card-color); filter: drop-shadow(0 0 6px var(--wa-alert-card-color)); }
.wa-alert-card__badge { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; padding: 4px 8px; color: var(--wa-alert-card-color); background: color-mix(in srgb, var(--wa-alert-card-color) 12%, transparent); border: 1px solid color-mix(in srgb, var(--wa-alert-card-color) 38%, transparent); border-radius: 999px; font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.wa-alert-card__badge > i { font-size: 0.72rem; transform-origin: center; animation: wa-active-icon-pulse 2.4s ease-in-out infinite; }
@keyframes wa-active-icon-pulse { 0%, 100% { transform: scale(1); opacity: 0.82; } 50% { transform: scale(1.12); opacity: 1; filter: drop-shadow(0 0 4px currentColor); } }
.wa-alert-card__headline { margin-top: 8px; color: #fff; font-weight: 700; }
.wa-alert-card__description { margin-top: 10px; padding: 11px 12px; color: rgba(241,245,249,0.88); background: rgba(2,6,23,0.24); border: 1px solid rgba(255,255,255,0.075); border-radius: 10px; font-size: 0.88rem; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.wa-alert-card__expires { display: flex; align-items: center; gap: 7px; margin-top: 10px; color: rgba(203,213,225,0.68); font-size: 0.73rem; }
.wa-alert-card__expires i { color: var(--wa-alert-card-color); }
.wa-alert-link { color: #93c5fd; text-decoration: underline; text-decoration-color: rgba(147,197,253,0.55); text-underline-offset: 3px; overflow-wrap: anywhere; }
.wa-alert-link:hover { color: #dbeafe; text-decoration-color: currentColor; }
.wa-alert-link:focus-visible { outline: 2px solid #bfdbfe; outline-offset: 2px; border-radius: 2px; }
.wa-alert-legend { margin-top: 8px; padding: 16px; background: linear-gradient(145deg, rgba(255,255,255,0.065), rgba(15,23,42,0.22)); border: 1px solid rgba(255,255,255,0.12); border-radius: 16px; color: rgba(226,232,240,0.86); }
.wa-alert-legend__heading { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: #c4b5fd; }
.wa-alert-legend__heading > i { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: 0 0 auto; background: rgba(196,181,253,0.1); border: 1px solid rgba(196,181,253,0.22); border-radius: 11px; }
.wa-alert-legend__heading div { display: flex; flex-direction: column; gap: 2px; }
.wa-alert-legend__heading strong { color: #fff; font-size: 0.83rem; letter-spacing: 0.04em; text-transform: uppercase; }
.wa-alert-legend__heading span { color: rgba(203,213,225,0.58); font-size: 0.68rem; }
.wa-alert-legend__group + .wa-alert-legend__group { margin-top: 13px; padding-top: 12px; border-top: 1px dashed rgba(255,255,255,0.13); }
.wa-alert-legend__group h3 { margin: 0 0 8px; color: rgba(226,232,240,0.62); font-size: 0.64rem; font-weight: 800; letter-spacing: 0.11em; text-transform: uppercase; }
.wa-alert-legend__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 7px; }
.wa-alert-legend__item { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 9px; color: rgba(241,245,249,0.84); background: rgba(2,6,23,0.2); border: 1px solid rgba(255,255,255,0.075); border-radius: 9px; font-size: 0.72rem; }
.wa-alert-legend__swatch { width: 9px; height: 9px; flex: 0 0 auto; background: var(--wa-legend-color); border-radius: 50%; box-shadow: 0 0 9px var(--wa-legend-color); }
.wa-alert-legend__note { margin: 12px 0 0; padding-top: 10px; color: rgba(203,213,225,0.55); border-top: 1px dashed rgba(255,255,255,0.12); font-size: 0.67rem; line-height: 1.5; }
@media screen and (max-width: 540px) {
    #wa-modal { padding: 10px; }
    .wa-modal-content { width: 100%; max-height: 92vh; padding: 0 14px 14px; border-radius: 19px !important; }
    .wa-modal-header { gap: 10px; margin-left: -14px; margin-right: -14px; padding: 16px 14px 12px; }
    .wa-modal-meta { gap: 6px; font-size: 0.72rem; }
    .wa-modal-meta strong { margin-left: 0; }
    .wa-alert-card { padding: 12px; }
    .wa-alert-legend { padding: 12px; }
    .wa-alert-legend__grid { grid-template-columns: minmax(0, 1fr); }
}
.wa-icon { color: var(--alert-color); margin-right: 15px; position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; }
.wa-pulse-ring { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; background: var(--alert-color); animation: wa-pulse 2s infinite ease-out; z-index: -1; pointer-events: none; }
.wa-actions { display: flex; align-items: center; gap: 15px; }
#wa-btn { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--alert-color); color: #fff; padding: 4px 15px; border-radius: 20px; cursor: pointer; font-weight: bold; font-size: 0.75rem; text-transform: uppercase; transition: all 0.2s ease; }
#wa-btn:hover { background: var(--alert-color); color: #111; }
#wa-banner-close { color: rgba(255, 255, 255, 0.3); font-size: 1.5rem; cursor: pointer; line-height: 1; }
.wa-marquee-container { flex-grow: 1; overflow: hidden; white-space: nowrap; height: 100%; display: flex; align-items: center; }
.wa-marquee-text { display: inline-block; padding-left: 100%; color: #fff; font-weight: 600; animation: wa-scroll 25s linear infinite; }
#wa-banner:hover .wa-marquee-text { animation-play-state: paused; }
#wa-banner.wa-hidden, .wa-hidden { display: none !important; }

/* Search / Misc */
.suggestions-list { position: absolute; top: 100%; left: 0; width: 100%; background: rgba(20, 20, 35, 0.95); backdrop-filter: blur(10px); border: 1px solid rgba(165,180,252,0.3); z-index: 9999; list-style: none; padding: 0; margin: 5px 0 0 0; border-radius: 5px; max-height: 220px; overflow-y: auto; box-shadow: 0 10px 25px rgba(0,0,0,0.7); scrollbar-width: thin; scrollbar-color: rgba(165, 180, 252, 0.3) transparent; }
.suggestions-list li { padding: 10px 15px; color: #fff; cursor: pointer; border-bottom: 1px dashed rgba(165,180,252,0.1); font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; transition: background 0.2s ease; }
.suggestions-list li:hover { background: rgba(165,180,252,0.2); }
.suggestions-list li:last-child { border-bottom: none; }
#manual-city-input:focus { border-color: #a5b4fc !important; box-shadow: 0 0 10px rgba(165, 180, 252, 0.5); background: rgba(0, 0, 0, 0.5) !important; }


/* --- 4. EFEKTY SPECJALNE I ANIMACJE --- */
.wa-click-cursor { position: absolute; left: 12px; top: 12px; width: 14px; height: 14px; color: rgba(255, 255, 255, 0.35); z-index: 10; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.2)); animation: cursor-idle-pulse 4s infinite ease-in-out; }
#main-weather-box:hover .wa-click-cursor { opacity: 1 !important; color: #a5b4fc !important; transform: scale(1.3) rotate(-10deg) translate(2px, 2px); filter: drop-shadow(0 0 8px rgba(165, 180, 252, 0.7)); animation: none; }
#main-weather-box:active .wa-click-cursor { transform: scale(0.95) translate(1px, 1px); filter: drop-shadow(0 0 2px rgba(165, 180, 252, 0.4)); transition: 0.1s; }

.clock-box,
#main-weather-box,
#weather-modal .weather-box {
    border-color: rgba(224, 242, 254, .2);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 -18px 34px rgba(2, 8, 23, .24);
    backdrop-filter: blur(25px) saturate(1.3);
    -webkit-backdrop-filter: blur(25px) saturate(1.3);
}
.weather-glass-layer {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    border-radius: inherit;
    pointer-events: none;
    background:
        radial-gradient(130% 90% at 10% -15%, rgba(226, 245, 255, .22), rgba(153, 211, 239, .08) 28%, transparent 58%),
        linear-gradient(135deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .015) 28%, transparent 55%, rgba(94, 234, 212, .035)),
        linear-gradient(180deg, rgba(22, 39, 58, .28), rgba(4, 12, 24, .56));
}
.weather-glass-layer::before,
.weather-glass-layer::after {
    position: absolute;
    pointer-events: none;
    content: "";
}
.weather-glass-layer::before {
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    background:
        linear-gradient(112deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .08) 4%, transparent 24%, transparent 72%, rgba(125, 211, 252, .06)),
        radial-gradient(ellipse at 24% 0%, rgba(255, 255, 255, .16), transparent 48%);
}
.weather-glass-layer::after {
    inset: 1px;
    z-index: 3;
    border: 1px solid rgba(226, 242, 255, .15);
    border-radius: inherit;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), inset 0 -18px 34px rgba(2, 8, 23, .28), 0 0 22px rgba(56, 189, 248, .07);
}
.weather-glass-frame { position: absolute; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; border: 0; pointer-events: none; }
.clock-box .clock-content-left { position: relative; z-index: 20; }
.weather-effect { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; opacity: 0; overflow: visible; display: none; }
.is-raining .weather-effect.rain, .is-snowing .weather-effect.snow, .is-foggy .weather-effect.fog, .is-cloudy .weather-effect.clouds, .is-sunny .weather-effect.sunshine, .is-windy .weather-effect.wind, .is-storming .weather-effect.storm-flash { display: block; opacity: 1; }
.weather-effect.fog, .weather-effect.clouds { overflow: hidden; }
.weather-effect.snow { overflow: hidden; }
.weather-effect.fog svg, .weather-effect.clouds svg, .weather-effect.sunshine svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.weather-effect:not(.storm-flash) { z-index: 1; }
.weather-effect.sunshine { z-index: 1; overflow: hidden; mix-blend-mode: screen; }
.weather-effect.wind { z-index: 1; overflow: hidden; }
.wind-field { position: absolute; inset: 0; overflow: hidden; }
.wind-streak { position: absolute; height: 1px; border-radius: 50%; background: linear-gradient(90deg, transparent, rgba(186, 230, 253, 0.75), transparent); opacity: 0.18; animation: wind-streak-blow linear infinite; will-change: transform, opacity; }
.sun-glow { animation: sun-glow-breathe 9s ease-in-out infinite alternate; }
.snow-field { position: absolute; inset: 0; overflow: hidden; }
.snow-flake { position: absolute; top: -24px; display: block; overflow: visible; filter: drop-shadow(0 0 2px rgba(186, 230, 253, 0.65)); animation-name: snow-fall-svg; animation-timing-function: linear; animation-iteration-count: infinite; will-change: top, transform; }
#main-weather-box #main-aqi-icon { position: relative; z-index: 30; }
.weather-box .aqi-container { position: relative; z-index: 20; }
.weather-box .aqi-container svg, .weather-box .aqi-container img { position: relative; z-index: 21; }
.fog-layer, .cloud-bank { transform-box: fill-box; transform-origin: center; will-change: transform; }
.fog-layer--back { animation: fog-bank-drift 28s ease-in-out infinite alternate; }
.fog-layer--front { animation: fog-bank-drift-reverse 21s ease-in-out infinite alternate; }
.fog-layer--high { animation: fog-bank-drift 36s ease-in-out infinite alternate-reverse; }
.cloud-bank--back { animation: cloud-bank-drift 42s ease-in-out infinite alternate; }
.cloud-bank--front { animation: cloud-bank-drift-reverse 34s ease-in-out infinite alternate; }
.weather-effect.storm-flash { background: var(--storm-flash-color, #ffffff) !important; z-index: 1; opacity: 0; mix-blend-mode: soft-light; transition: none !important; }
.lightning-svg { position: absolute; inset: 0; z-index: 9999 !important; overflow: hidden !important; mix-blend-mode: screen; pointer-events: none; animation: lightning-flicker 320ms steps(1, end) forwards; }
.lightning-svg path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.lightning-bolt-glow { filter: drop-shadow(0 0 4px currentColor) drop-shadow(0 0 10px currentColor); }
.lightning-bolt-core { filter: drop-shadow(0 0 3px #ffffff); }
.drop, .flake { position: absolute; top: -20px; animation-timing-function: linear; animation-iteration-count: infinite; will-change: transform; }
.drop { animation-name: rain-fall-svg; animation-duration: 0.8s; }
.flake { animation-name: snow-fall-svg; animation-duration: 2.5s; }

.blink { animation: blink 1.5s infinite; }
.confetti-burst { position: fixed; width: 10px; height: 10px; z-index: 100000; pointer-events: none; border-radius: 2px; will-change: transform; animation: burst-anim 5s cubic-bezier(0.1, 0.8, 0.3, 1) forwards; }
.falling-icon { position: fixed; top: -50px; z-index: 99999; pointer-events: none; user-select: none; color: #fb7185; text-shadow: 0 0 10px rgba(251, 113, 133, 0.5); animation: fall-anim linear forwards; }
.comet { position: fixed; pointer-events: none; z-index: 9999; height: 4px; width: 150px; background: linear-gradient(to right, rgba(34, 211, 238, 0) 0%, rgba(34, 211, 238, 0.8) 100%); border-radius: 4px; display: flex; align-items: center; justify-content: flex-end; filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.6)); }
.comet i { color: #ffffff !important; font-size: 16px !important; margin-right: -5px; text-shadow: 0 0 10px #fff; }

@keyframes cursor-idle-pulse { 0%, 100% { transform: scale(1) translate(0, 0); opacity: 0.35; } 50% { transform: scale(1.15) translate(1px, 1px); opacity: 0.6; } }
@keyframes rain-fall-svg { 0% { transform: translateY(-30px); } 100% { transform: translateY(250px); } }
@keyframes snow-fall-svg { 0% { top: -24px; transform: translateX(0) rotate(0deg); } 100% { top: calc(100% + 24px); transform: translateX(var(--snow-drift)) rotate(360deg); } }
@keyframes fog-drift { 0% { transform: translateX(-25%); } 100% { transform: translateX(25%); } }
@keyframes clouds-drift { 0% { transform: translateX(-15%); } 100% { transform: translateX(15%); } }
@keyframes fog-bank-drift { from { transform: translate3d(-7px, 1px, 0); } to { transform: translate3d(7px, -1px, 0); } }
@keyframes fog-bank-drift-reverse { from { transform: translate3d(8px, -1px, 0); } to { transform: translate3d(-8px, 1px, 0); } }
@keyframes cloud-bank-drift { from { transform: translate3d(-4px, 0, 0); } to { transform: translate3d(4px, 1px, 0); } }
@keyframes cloud-bank-drift-reverse { from { transform: translate3d(5px, 1px, 0); } to { transform: translate3d(-5px, 0, 0); } }
@keyframes wind-streak-blow {
    0% { transform: translate(var(--wind-start-x), var(--wind-start-y)) rotate(var(--wind-angle)); opacity: 0; }
    15% { opacity: var(--wind-opacity); }
    85% { opacity: var(--wind-opacity); }
    100% { transform: translate(var(--wind-end-x), var(--wind-end-y)) rotate(var(--wind-angle)); opacity: 0; }
}
@keyframes sun-glow-breathe { from { opacity: 0.72; } to { opacity: 1; } }
@keyframes lightning-flicker { 0% { opacity: 0; } 12% { opacity: 1; } 28% { opacity: 0.3; } 43% { opacity: 0.95; } 58% { opacity: 0.15; } 72% { opacity: 0.75; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
    .fog-layer, .cloud-bank, .snow-flake, .lightning-svg, .wind-streak, .sun-glow, .wa-alert-card__badge > i { animation: none !important; }
}
@keyframes bubbleGlow { 0% { box-shadow: 0 0 5px rgba(165,180,252, 0.3); } 50% { box-shadow: 0 0 15px rgba(165,180,252, 0.7); } 100% { box-shadow: 0 0 5px rgba(165,180,252, 0.3); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes burst-anim { 0% { transform: translate(0, 0) scale(1); opacity: 1; } 100% { transform: translate(var(--x), var(--y)) rotate(1440deg) scale(0); opacity: 0; } }
@keyframes fall-anim { 0% { transform: translateY(0) rotate(0deg); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateY(110vh) rotate(360deg); opacity: 0; } }
@keyframes rocket-pulse { 0% { transform: translateY(0); } 50% { transform: translateY(-3px); } 100% { transform: translateY(0); } }
@keyframes barGlow { 0% { opacity: 0.8; } 50% { opacity: 1; text-shadow: 0 0 10px currentColor; } 100% { opacity: 0.8; } }
@keyframes log-in { from { opacity: 0; transform: translateX(-5px); } to { opacity: 1; transform: translateX(0); } }
@keyframes cursor-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes wa-pulse { 0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.6; } 100% { transform: translate(-50%, -50%) scale(2.2); opacity: 0; } }
@keyframes wa-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }


/* ==========================================
   5. THEMES / MOTYWY (CAT, ASTRO, TEDDY, RACCOON, MONKEY)
   Wszystkie nadpisania kolorów z całego pliku znajdują się tutaj!
========================================== */

/* --- A) CAT MODE (Różowy) --- */
body.cat-mode { background-color: #1a0b10 !important; --accent: #fb7185; }
body.cat-mode .glass-box { background: rgba(251, 113, 133, 0.05) !important; border-color: rgba(251, 113, 133, 0.5); box-shadow: 0 10px 40px rgba(251, 113, 133, 0.15); }
body.cat-mode::after { content: ""; position: fixed; inset: 0; background-image: radial-gradient(#fb7185, rgba(251, 113, 133, 0.2) 1.5px, transparent 2px), radial-gradient(#fb7185, rgba(251, 113, 133, 0.1) 1px, transparent 2px); background-size: 100px 100px, 50px 50px; background-position: 10px 10px, 30px 30px; opacity: 0.15; z-index: -1; pointer-events: none; }
body.cat-mode .logo-svg { color: #fb7185; filter: drop-shadow(0 0 10px rgba(251, 113, 133, 0.5)); transform: rotate(15deg) scale(1.1); opacity: 1; }
body.cat-mode .horloge { background: linear-gradient(180deg, #ffffff 0%, #fb7185 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 4px 10px rgba(251, 113, 133, 0.3)); }
body.cat-mode .clock-content-left::after { background: #ff85a2; width: 100%; box-shadow: 0 0 15px #ff85a2; }
body.cat-mode .date-info, body.cat-mode #extra-clock-data, body.cat-mode .terminal-header, body.cat-mode .terminal-prompt { color: #ff85a2; }
body.cat-mode .quote-header-decorator { background: linear-gradient(135deg, #f43f5e, #fb7185); box-shadow: 0 0 15px rgba(251, 113, 133, 0.4); }
body.cat-mode .quote-header-decorator i { text-shadow: 0 0 5px rgba(255, 255, 255, 0.8); }
body.cat-mode .quote-author { color: #ff85a2; }
body.cat-mode .timer-bar { stroke: #ff85a2; }
body.cat-mode #timer-status-icon { color: #ff85a2; text-shadow: 0 0 10px #ff85a2; }
body.cat-mode .cat-bubble { color: #fb7185; border-color: rgba(251, 113, 133, 0.3); }
body.cat-mode .status-dot { background: #ff85a2; box-shadow: 0 0 10px #ff85a2; }
body.cat-mode #status-text { color: #fb7185 !important; text-shadow: 0 0 10px rgba(251, 113, 133, 0.5); }
body.cat-mode .footer-cat-btn { color: #fb7185; border-color: rgba(251, 113, 133, 0.3); background: rgba(251, 113, 133, 0.1); }
body.cat-mode .w-detail-row { border-color: rgba(251, 113, 133, 0.1) !important; }
body.cat-mode .contact-btn { background: linear-gradient(135deg, #fb7185, #ff85a2); box-shadow: 0 4px 15px rgba(251, 113, 133, 0.4); }
body.cat-mode .contact-input:focus { border-color: #fb7185; box-shadow: 0 0 10px rgba(251, 113, 133, 0.3); }
body.cat-mode #wa-banner { background: rgba(251, 113, 133, 0.05) !important; border-color: rgba(251, 113, 133, 0.5); box-shadow: 0 10px 40px rgba(251, 113, 133, 0.15); }
body.cat-mode .pudding-group, 
body.cat-mode .astro-group, 
body.cat-mode .astro-rings-group,
body.cat-mode .teddy-group,
body.cat-mode .raccoon-group,
body.cat-mode .monkey-group { 
    display: none !important; 
    opacity: 0 !important; 
    pointer-events: none; 
}
body.cat-mode .cat-paw-group { 
    display: block !important; 
    opacity: 1 !important; 
}


/* --- B) ASTRO MODE (Cyjan) --- */
body.astro-mode { background-color: #04041a !important; --astro-accent: #22d3ee; --accent: var(--astro-accent); }
body.astro-mode .glass-box { border-color: rgba(34, 211, 238, 0.5); box-shadow: 0 10px 40px rgba(34, 211, 238, 0.15); }
body.astro-mode::after { content: ''; position: fixed; inset: 0; background-image: radial-gradient(white, rgba(255,255,255,.25) 1.6px, transparent 2.2px), radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 1.8px); background-size: 80px 80px, 40px 40px; background-position: 0 0, 20px 20px; opacity: 0.15; z-index: -1; pointer-events: none; }
body.astro-mode .logo-svg { color: #22d3ee; }
body.astro-mode .horloge { background: linear-gradient(180deg, #ffffff 0%, #22d3ee 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 4px 15px rgba(34, 211, 238, 0.4)); text-shadow: 0 0 8px rgba(34, 211, 238, 0.2); }
body.astro-mode .clock-content-left::after { background: #22d3ee; width: 100%; box-shadow: 0 0 15px #22d3ee; }
body.astro-mode .date-info, body.astro-mode #extra-clock-data, body.astro-mode .terminal-header, body.astro-mode .terminal-prompt { color: #22d3ee; }
body.astro-mode .quote-header-decorator { background: linear-gradient(135deg, #0891b2, #22d3ee); box-shadow: 0 0 15px rgba(34, 211, 238, 0.4); color: white; }
body.astro-mode .quote-header-decorator i { color: white; text-shadow: 0 0 5px rgba(34, 211, 238, 0.8); }
body.astro-mode .quote-author { color: #22d3ee; }
body.astro-mode .timer-bar { stroke: #22d3ee; }
body.astro-mode #timer-status-icon { color: #22d3ee; text-shadow: 0 0 10px #22d3ee; }
body.astro-mode .status-dot { background: #22d3ee; box-shadow: 0 0 10px #22d3ee; }
body.astro-mode #status-text { color: #22d3ee !important; text-shadow: 0 0 10px rgba(34, 211, 238, 0.5); }
body.astro-mode .footer-astro-btn { color: #22d3ee; border-color: rgba(34, 211, 238, 0.3); background: rgba(34, 211, 238, 0.1); }
body.astro-mode .footer-astro-btn i { animation: rocket-pulse 1.5s infinite; }
body.astro-mode .pudding-group, 
body.astro-mode .cat-paw-group, 
body.astro-mode .teddy-group,
body.astro-mode .raccoon-group,
body.astro-mode .monkey-group { 
    display: none !important; 
    opacity: 0 !important; 
    pointer-events: none; 
}
body.astro-mode .astro-group, 
body.astro-mode .astro-rings-group { 
    display: block !important;
    opacity: 1 !important; 
}


/* --- C) TEDDY MODE (Miodowy / Bursztynowy) --- */
body.teddy-mode { background-color: #1a1005 !important; --accent: #f59e0b; }
body.teddy-mode .glass-box { background: rgba(245, 158, 11, 0.05) !important; border-color: rgba(245, 158, 11, 0.5); box-shadow: 0 10px 40px rgba(245, 158, 11, 0.15); }
body.teddy-mode::after { content: ""; position: fixed; inset: 0; background-image: radial-gradient(#f59e0b, rgba(245, 158, 11, 0.2) 1.5px, transparent 2px), radial-gradient(#f59e0b, rgba(245, 158, 11, 0.1) 1px, transparent 2px); background-size: 100px 100px, 50px 50px; background-position: 10px 10px, 30px 30px; opacity: 0.15; z-index: -1; pointer-events: none; }
body.teddy-mode .logo-svg { color: #f59e0b; filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.5)); opacity: 1; }
body.teddy-mode .horloge { background: linear-gradient(180deg, #ffffff 0%, #f59e0b 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 4px 10px rgba(245, 158, 11, 0.3)); }
body.teddy-mode .clock-content-left::after { background: #f59e0b; width: 100%; box-shadow: 0 0 15px #f59e0b; }
body.teddy-mode .date-info, body.teddy-mode #extra-clock-data, body.teddy-mode .terminal-header, body.teddy-mode .terminal-prompt { color: #f59e0b; }
body.teddy-mode .quote-header-decorator { background: linear-gradient(135deg, #b45309, #f59e0b); box-shadow: 0 0 15px rgba(245, 158, 11, 0.4); }
body.teddy-mode .quote-header-decorator i { text-shadow: 0 0 5px rgba(255, 255, 255, 0.8); }
body.teddy-mode .quote-author { color: #fbbf24; }
body.teddy-mode .timer-bar { stroke: #f59e0b; }
body.teddy-mode #timer-status-icon { color: #f59e0b; text-shadow: 0 0 10px #f59e0b; }
body.teddy-mode .cat-bubble { color: #f59e0b; border-color: rgba(245, 158, 11, 0.3); }
body.teddy-mode .status-dot { background: #f59e0b; box-shadow: 0 0 10px #f59e0b; }
body.teddy-mode #status-text { color: #f59e0b !important; text-shadow: 0 0 10px rgba(245, 158, 11, 0.5); }
body.teddy-mode .footer-teddy-btn { color: #f59e0b; border-color: rgba(245, 158, 11, 0.3); background: rgba(245, 158, 11, 0.1); }
body.teddy-mode .w-detail-row { border-color: rgba(245, 158, 11, 0.1) !important; }
body.teddy-mode .contact-btn { background: linear-gradient(135deg, #d97706, #fbbf24); box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4); }
body.teddy-mode .contact-input:focus { border-color: #f59e0b; box-shadow: 0 0 10px rgba(245, 158, 11, 0.3); }
body.teddy-mode #wa-banner { background: rgba(245, 158, 11, 0.05) !important; border-color: rgba(245, 158, 11, 0.5); box-shadow: 0 10px 40px rgba(245, 158, 11, 0.15); }
body.teddy-mode .pudding-group, 
body.teddy-mode .cat-paw-group, 
body.teddy-mode .astro-group, 
body.teddy-mode .astro-rings-group,
body.teddy-mode .raccoon-group,
body.teddy-mode .monkey-group { 
    display: none !important; 
    opacity: 0 !important; 
    pointer-events: none; 
}
body.teddy-mode .teddy-group { 
    display: block !important; 
    opacity: 1 !important; 
}

/* --- D) RACCOON MODE (Szop - Czarno-Biały/Srebrny) --- */
body.raccoon-mode { background-color: #050505 !important; --accent: #e2e8f0; }
body.raccoon-mode .glass-box { background: rgba(226, 232, 240, 0.05) !important; border-color: rgba(226, 232, 240, 0.5); box-shadow: 0 10px 40px rgba(226, 232, 240, 0.15); }
body.raccoon-mode::after { content: ""; position: fixed; inset: 0; background-image: radial-gradient(#e2e8f0, rgba(226, 232, 240, 0.2) 1.5px, transparent 2px), radial-gradient(#e2e8f0, rgba(226, 232, 240, 0.1) 1px, transparent 2px); background-size: 100px 100px, 50px 50px; background-position: 10px 10px, 30px 30px; opacity: 0.15; z-index: -1; pointer-events: none; }
body.raccoon-mode .logo-svg { color: #e2e8f0; filter: drop-shadow(0 0 10px rgba(226, 232, 240, 0.5)); opacity: 1; }
body.raccoon-mode .horloge { background: linear-gradient(180deg, #ffffff 0%, #e2e8f0 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 4px 10px rgba(226, 232, 240, 0.3)); }
body.raccoon-mode .clock-content-left::after { background: #e2e8f0; width: 100%; box-shadow: 0 0 15px #e2e8f0; }
body.raccoon-mode .date-info, body.raccoon-mode #extra-clock-data, body.raccoon-mode .terminal-header, body.raccoon-mode .terminal-prompt { color: #e2e8f0; }
body.raccoon-mode .quote-header-decorator { background: linear-gradient(135deg, #94a3b8, #e2e8f0); box-shadow: 0 0 15px rgba(226, 232, 240, 0.4); }
body.raccoon-mode .quote-header-decorator i { text-shadow: 0 0 5px rgba(255, 255, 255, 0.8); }
body.raccoon-mode .quote-author { color: #f8fafc; }
body.raccoon-mode .timer-bar { stroke: #e2e8f0; }
body.raccoon-mode #timer-status-icon { color: #e2e8f0; text-shadow: 0 0 10px #e2e8f0; }
body.raccoon-mode .cat-bubble { color: #e2e8f0; border-color: rgba(226, 232, 240, 0.3); }
body.raccoon-mode .status-dot { background: #e2e8f0; box-shadow: 0 0 10px #e2e8f0; }
body.raccoon-mode #status-text { color: #e2e8f0 !important; text-shadow: 0 0 10px rgba(226, 232, 240, 0.5); }
body.raccoon-mode .footer-raccoon-btn { color: #e2e8f0; border-color: rgba(226, 232, 240, 0.3); background: rgba(226, 232, 240, 0.1); }
body.raccoon-mode .w-detail-row { border-color: rgba(226, 232, 240, 0.1) !important; }
body.raccoon-mode .contact-btn { background: linear-gradient(135deg, #94a3b8, #e2e8f0); box-shadow: 0 4px 15px rgba(226, 232, 240, 0.4); color: #050505; }
body.raccoon-mode .contact-input:focus { border-color: #e2e8f0; box-shadow: 0 0 10px rgba(226, 232, 240, 0.3); }
body.raccoon-mode #wa-banner { background: rgba(226, 232, 240, 0.05) !important; border-color: rgba(226, 232, 240, 0.5); box-shadow: 0 10px 40px rgba(226, 232, 240, 0.15); }
body.raccoon-mode .pudding-group, 
body.raccoon-mode .cat-paw-group, 
body.raccoon-mode .astro-group, 
body.raccoon-mode .astro-rings-group,
body.raccoon-mode .teddy-group,
body.raccoon-mode .monkey-group { 
    display: none !important; 
    opacity: 0 !important; 
    pointer-events: none; 
}
body.raccoon-mode .raccoon-group { 
    display: block !important; 
    opacity: 1 !important; 
}
body.raccoon-mode #main-logo { overflow: visible; }
body.raccoon-mode #logo-raccoon { transform: translateY(33.25px); }

/* --- E) MONKEY MODE (Małpka - Bananowy/Dżungla) --- */
body.monkey-mode { background-color: #061c0f !important; --accent: #facc15; }
body.monkey-mode .glass-box { background: rgba(250, 204, 21, 0.05) !important; border-color: rgba(250, 204, 21, 0.5); box-shadow: 0 10px 40px rgba(250, 204, 21, 0.15); }
body.monkey-mode::after { content: ""; position: fixed; inset: 0; background-image: radial-gradient(#facc15, rgba(250, 204, 21, 0.2) 1.5px, transparent 2px), radial-gradient(#facc15, rgba(250, 204, 21, 0.1) 1px, transparent 2px); background-size: 100px 100px, 50px 50px; background-position: 10px 10px, 30px 30px; opacity: 0.15; z-index: -1; pointer-events: none; }
body.monkey-mode .logo-svg { color: #facc15; filter: drop-shadow(0 0 10px rgba(250, 204, 21, 0.5)); opacity: 1; }
body.monkey-mode .horloge { background: linear-gradient(180deg, #ffffff 0%, #facc15 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 4px 10px rgba(250, 204, 21, 0.3)); }
body.monkey-mode .clock-content-left::after { background: #facc15; width: 100%; box-shadow: 0 0 15px #facc15; }
body.monkey-mode .date-info, body.monkey-mode #extra-clock-data, body.monkey-mode .terminal-header, body.monkey-mode .terminal-prompt { color: #facc15; }
body.monkey-mode .quote-header-decorator { background: linear-gradient(135deg, #ca8a04, #facc15); box-shadow: 0 0 15px rgba(250, 204, 21, 0.4); }
body.monkey-mode .quote-header-decorator i { text-shadow: 0 0 5px rgba(255, 255, 255, 0.8); }
body.monkey-mode .quote-author { color: #fef08a; }
body.monkey-mode .timer-bar { stroke: #facc15; }
body.monkey-mode .monkey-bubble { color: #facc15; border-color: rgba(250, 204, 21, 0.3); }
body.monkey-mode #timer-status-icon { color: #facc15; text-shadow: 0 0 10px #facc15; }
body.monkey-mode .status-dot { background: #facc15; box-shadow: 0 0 10px #facc15; }
body.monkey-mode #status-text { color: #facc15 !important; text-shadow: 0 0 10px rgba(250, 204, 21, 0.5); }
body.monkey-mode .footer-monkey-btn { color: #facc15; border-color: rgba(250, 204, 21, 0.3); background: rgba(250, 204, 21, 0.1); }
body.monkey-mode .w-detail-row { border-color: rgba(250, 204, 21, 0.1) !important; }
body.monkey-mode .contact-btn { background: linear-gradient(135deg, #ca8a04, #facc15); box-shadow: 0 4px 15px rgba(250, 204, 21, 0.4); color: #061c0f; }
body.monkey-mode .contact-input:focus { border-color: #facc15; box-shadow: 0 0 10px rgba(250, 204, 21, 0.3); }
body.monkey-mode #wa-banner { background: rgba(250, 204, 21, 0.05) !important; border-color: rgba(250, 204, 21, 0.5); box-shadow: 0 10px 40px rgba(250, 204, 21, 0.15); }
body.monkey-mode .pudding-group, 
body.monkey-mode .cat-paw-group, 
body.monkey-mode .astro-group, 
body.monkey-mode .astro-rings-group,
body.monkey-mode .teddy-group,
body.monkey-mode .raccoon-group { 
    display: none !important; 
    opacity: 0 !important; 
    pointer-events: none; 
}
body.monkey-mode .monkey-group { 
    display: block !important; 
    opacity: 1 !important; 
}
body.monkey-mode #main-logo { overflow: visible; }
body.monkey-mode #logo-monkey { transform: translateY(18px); }

/* dodane bo fontawesome nie ma bezpłatnych ikon dla raccoon i monkey */
.custom-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    background-color: #a5b4fc; /* To jest Twój docelowy kolor */
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

/* Definiujemy konkretne ikony */
.icon-raccoon {
    -webkit-mask-image: url('/assets/img/svg/raccoon_logo.svg');
    mask-image: url('/assets/img/svg/raccoon_logo.svg');
    width: 1.9em;
    height: 2.5em;
}

.icon-monkey {
    -webkit-mask-image: url('/assets/img/svg/monkey_logo.svg');
    mask-image: url('/assets/img/svg/monkey_logo.svg');
}
/* Tarcza na znikające menu podczas ZOOMU na telefonach (w tym tryb stacjonarny) */
.noc-sidebar {
    will-change: transform !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
}

/* ==========================================
   6. RWD (MEDIA QUERIES) - ZAWSZE NA DOLE
   ========================================== */
.wa-modal-content::-webkit-scrollbar, #pop-hourly-list::-webkit-scrollbar { width: 4px; height: 4px; }
.wa-modal-content::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.1); }
.wa-modal-content::-webkit-scrollbar-thumb, #pop-hourly-list::-webkit-scrollbar-thumb { background: var(--alert-color, #a5b4fc); border-radius: 10px; box-shadow: 0 0 5px var(--alert-color); }

.clock-astro-wrapper,
#main-weather-box {
    box-sizing: border-box !important;
    width: var(--header-side-panel-width) !important;
    height: auto !important;
    min-height: var(--header-side-panel-height);
    max-width: var(--header-side-panel-width);
    padding: 15px 20px !important;
}

.header {
    width: min(90vw, 100%);
    margin-inline: auto;
    box-sizing: border-box;
}

/* --- TABLETY I MNIEJSZE EKRANY (do 1024px) --- */
@media (max-width: 1024px) {
    /* 1. Zmieniony margines dla paska bocznego (na dole telefonu) */
    body { padding: 25px 15px 100px 15px !important; }
    
    /* 2. Zegary w rzędzie na tabletach */
    .clock-astro-wrapper { flex-direction: row; max-width: 100%; }
    
    .terminal-overlay { width: 90%; left: 5%; }
    header, .header { display: flex !important; flex-direction: column !important; height: auto !important; padding: 30px 0 !important; gap: 20px !important; align-items: center !important; box-sizing: border-box !important; width: min(90vw, 100%) !important; margin-inline: auto !important; }
    
    /* FIX: Wymuszamy centrowanie i zabijamy marginesy rozpychające moduły na boki */
    .logo-container { order: 1; margin: 0 auto !important; }
    .clock-box { order: 2; width: 100% !important; max-width: none !important; box-sizing: border-box; margin: 0 auto !important; }
    .main-weather-box, #main-weather-box { order: 3; width: 100% !important; max-width: none !important; box-sizing: border-box; margin: 0 auto !important; }
    
    .horloge { font-size: 3.2rem !important; text-align: center; }
    #city-display { font-size: 1.2rem !important; white-space: normal !important; }
    
    /* 3. NOC Smart Sidebar na dole (Pancerne !important przeciwko stylowaniu z header.php) */
    .noc-sidebar {
        top: auto !important;
        /* Użycie 'safe-area' chroni pasek przed schowaniem się pod systemowymi przyciskami telefonu */
        bottom: max(20px, env(safe-area-inset-bottom)) !important;
        left: 50% !important;
        /* Dodatkowe translateZ(0) dla pewności przy zoomowaniu */
        transform: translateX(-50%) translateZ(0) !important;
        flex-direction: row !important;
        width: auto !important;
        max-width: 90% !important;
        border-radius: 30px !important;
        padding: 10px 15px !important;
        gap: 10px !important;
        height: auto !important;
        z-index: 9999 !important;
        
        /* ODBLOKOWANIE PRZEWIJANIA (SWIPE) - Wszystkie ikony widoczne! */
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        overscroll-behavior-x: contain !important;
        justify-content: flex-start !important;
    }

    /* Ukrycie brzydkiego suwaka przewijania dla menu na urządzeniach mobilnych */
    .noc-sidebar::-webkit-scrollbar {
        display: none !important;
    }
    .noc-brand-sidebar { display: none !important; }
    .noc-brand-sidebar span, .noc-link span { display: none !important; }
    .noc-link { padding: 10px !important; margin: 0 !important; }
    .noc-link.active { box-shadow: inset 0 -3px 0 var(--accent) !important; }
}

/* --- MNIEJSZE TABLETY (do 850px) --- */
@media screen and (max-width: 850px) {
    .glitch-wrapper { justify-content: center; }
    #main-logo {
        gap: 20px;
        padding: 10px 18px;
        --honey-drop-x: 51px;
        --honey-drop-y: 76px;
        --honey-drop-fall: 29px;
    }
    #main-logo .logo-svg { width: 100px; height: 100px; flex-basis: 100px; }
    #main-logo .logo-text { font-size: clamp(2rem, 5vw, 2.7em); }
    
    /* FIX: Poprawne wyśrodkowanie okna z cytatami */
    .quote-box { padding: 40px 20px 20px 20px !important; margin: 20px auto !important; box-sizing: border-box; width: 100%; max-width: 100%; }
    .quote-container--before-ip-intelligence .quote-box { margin-bottom: 0 !important; }
    
    .quote-text { font-size: 1.2em; }
    .quote-controls { top: 10px; right: 10px; }
    /* FIX: Koteł w wersji "mikro" na telefonie - wymuszamy powrót do rogu ekranu */
    .cat-wrapper { position: fixed !important; top: auto !important; bottom: 5px; right: 5px; transform: scale(0.35); transform-origin: bottom right; z-index: 10000; }
    .footer-partners { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 10px; text-align: center; }
    .footer-partners-heading { grid-column: 1; justify-content: center; }
    .footer-partner-badges { grid-column: 1; justify-content: center; width: 100%; }
    .footer { grid-template-columns: minmax(0, 1fr); grid-template-areas: "controls" "links"; justify-items: center; gap: 12px; padding: 16px 12px; text-align: center; margin-top: 30px; box-sizing: border-box; width: 100%; }
    .footer-left, .footer-right { flex-wrap: wrap; justify-content: center; width: 100%; gap: 8px 12px; }
    .footer-left .status-indicator { margin-right: 0 !important; }
    .separator-v, .footer-right > .separator-v { display: none; }
}

/* --- TELEFONY (do 768px) --- */
@media screen and (max-width: 768px) {
    /* Zegary pod sobą na telefonach */
    .clock-astro-wrapper { flex-direction: column !important; align-items: stretch !important; gap: 10px !important; }
    .clock-content-left { width: 100%; }
    #moon-visual-container { top: 12px; right: 12px; width: 72px; height: 72px; }
    .terminal-overlay { width: 100% !important; left: 0 !important; height: 70vh !important; padding: 0 10px !important; box-sizing: border-box !important; }
    .terminal-wrapper { border-radius: 0 !important; border-left: none !important; border-right: none !important; }
}

@media screen and (max-width: 540px) {
    .footer-partner-badges { flex-direction: column; }
    #main-logo {
        gap: 14px;
        padding: 8px 14px;
        --honey-drop-x: 42px;
        --honey-drop-y: 65px;
        --honey-drop-fall: 24px;
    }
    #main-logo .logo-svg { width: 86px; height: 86px; flex-basis: 86px; }
    #main-logo .logo-text { font-size: clamp(1.7rem, 8.8vw, 2.2em); }
    #main-logo .logo-wordmark { min-width: 0; }
    #main-logo .logo-tagline {
        max-width: 100%;
        font-size: clamp(0.52rem, 2.4vw, 0.62rem);
        letter-spacing: 0.04em;
        line-height: 1.35;
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

@media screen and (max-width: 850px) {
    .honeypot-showcase { padding: 20px; }
    .honeypot-heading-topline { align-items: flex-start; flex-direction: column; gap: 10px; }
    .honeypot-update-stack { align-items: flex-start; }
    .honeypot-refresh-frame { max-width: 100%; }
    .honeypot-countdown { white-space: normal; }
    .honeypot-demo-callout { align-items: flex-start; flex-direction: column; }
    .honeypot-total-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .honeypot-rankings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .honeypot-visuals { grid-template-columns: minmax(0, 1fr); }
    .honeypot-chart-wrap { height: 260px; }
    .honeypot-globe-stage { min-height: 340px; height: 360px; }
    .honeypot-globe { height: 360px; }
}

@media screen and (max-width: 540px) {
    .honeypot-kpis { grid-template-columns: minmax(0, 1fr); }
    .honeypot-kpi { padding: 16px; }
    .honeypot-panel { padding: 15px; }
    .honeypot-rankings-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Keep the clock and weather text aligned with the main logo across themes. */
#clock,
#date,
html body .clock-astro-wrapper #extra-clock-data,
html body .clock-astro-wrapper #extra-clock-data .blink,
#main-sunrise,
#main-sunset,
#main-moon-rise,
#main-moon-set,
#main-weather-box #temp,
#city-display,
#main-weather-box #weather-desc {
    background: var(--logo-text-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

#main-weather-box #country-code {
    color: #67e8f9 !important;
    -webkit-text-fill-color: #67e8f9;
}

#main-content:not(.main-content--qr),
.footer-stack:not(.footer-stack--qr) {
    width: min(90vw, 100%);
    margin-inline: auto;
    box-sizing: border-box;
}
