/* =====================================================================
   WEBP.PL — PREMIUM DESIGN SYSTEM (port z toolsti / MonsterTools canvas)
   Ładowane globalnie po main.min.css. Nadpisuje Tabler.
   Kolory: indigo #6366f1 / fuchsia #d946ef. Fonty: Inter + Plus Jakarta Sans.
   ===================================================================== */

/* ---------- TOKENS ---------- */
:root,
[theme-mode="light"] {
    --bs-primary: #6366f1;
    --primary: #6366f1;
    --primary-2: #4f46e5;
    --accent: #d946ef;
    --bs-secondary: #0f172a;
    --bs-success: #10b981;
    --bs-info: #0ea5e9;
    --bs-warning: #f59e0b;
    --bs-danger: #e11d48;
    --bs-body-bg: #f8fafc;
    --bs-body-color: #334155;
    --bs-body-emphasis: #0f172a;
    --bs-border-color: #e2e8f0;
    --bs-secondary-color: #64748b;
    --bs-tertiary-color: #64748b;
}

[theme-mode="dark"] {
    --bs-primary: #6366f1;
    --primary: #818cf8;
    --bs-secondary: #e2e8f0;
    --bs-body-bg: #020617;
    --bs-body-color: #cbd5e1;
    --bs-body-emphasis: #f1f5f9;
    --bs-border-color: #1e293b;
    --bs-secondary-color: #94a3b8;
    --bs-tertiary-color: #94a3b8;
}

/* ---------- BASE ---------- */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bs-body-bg) !important;
    color: var(--bs-body-color) !important;
}

h1, h2, h3, h4, h5, h6, .hero-title {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    letter-spacing: -0.02em;
    color: var(--bs-body-emphasis);
}

.text-gradient {
    background: linear-gradient(135deg, #4f46e5 0%, #d946ef 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

a { color: var(--primary-2); }

/* ---------- FORMS ---------- */
.form-control,
.form-select {
    border-radius: 12px !important;
    border: 1px solid rgba(128, 128, 128, 0.2) !important;
    background: rgba(255, 255, 255, 0.6) !important;
    padding: 0.8rem 1.2rem !important;
    color: var(--bs-body-color) !important;
    transition: all 0.2s ease;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.02);
}
.form-control:focus,
.form-select:focus {
    background: #ffffff !important;
    border-color: var(--bs-primary) !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15) !important;
}
[theme-mode="dark"] .form-control,
[theme-mode="dark"] .form-select {
    background: rgba(15, 23, 42, 0.5) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #cbd5e1 !important;
}
[theme-mode="dark"] .form-control:focus,
[theme-mode="dark"] .form-select:focus {
    background: rgba(15, 23, 42, 0.8) !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.25) !important;
}

/* ---------- BUTTONS ---------- */
.btn {
    border-radius: 12px;
    padding: 0.7rem 1.5rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn:active { transform: scale(0.96) !important; }

.btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #c026d3 100%) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 4px 15px -3px rgba(79, 70, 229, 0.4) !important;
}
.btn-primary:hover {
    box-shadow: 0 8px 25px -5px rgba(192, 38, 211, 0.5) !important;
    transform: translateY(-2px);
    color: #fff !important;
}
.btn-outline-primary {
    border: 1.5px solid rgba(99, 102, 241, 0.5) !important;
    color: var(--primary-2) !important;
    background: transparent !important;
}
.btn-outline-primary:hover {
    background: rgba(99, 102, 241, 0.1) !important;
    color: var(--primary-2) !important;
    border-color: var(--primary-2) !important;
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(15, 23, 42, 0.1) !important;
    color: #334155 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.btn-secondary:hover {
    background: #fff !important;
    border-color: rgba(79, 70, 229, 0.3) !important;
    color: #4f46e5 !important;
    transform: translateY(-2px);
}
[theme-mode="dark"] .btn-secondary {
    background: rgba(30, 41, 59, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #e2e8f0 !important;
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar { width: 12px; height: 12px; background-color: transparent; }
::-webkit-scrollbar-track { background-color: transparent; border-left: 1px solid rgba(128, 128, 128, 0.05); }
::-webkit-scrollbar-thumb {
    background-color: rgba(15, 23, 42, 0.2);
    border-radius: 10px;
    border: 3px solid var(--bs-body-bg);
}
::-webkit-scrollbar-thumb:hover { background-color: rgba(15, 23, 42, 0.4); }
[theme-mode="dark"]::-webkit-scrollbar-thumb { background-color: rgba(255, 255, 255, 0.15); border: 3px solid var(--bs-body-bg); }

/* ---------- ALERTS ---------- */
.alert {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.05);
    color: var(--bs-body-color);
}
.alert-success { background: rgba(16,185,129,.15) !important; border-color: rgba(16,185,129,.3) !important; color: #059669 !important; }
.alert-danger  { background: rgba(225,29,72,.15) !important; border-color: rgba(225,29,72,.3) !important; color: #be123c !important; }
.alert-info    { background: rgba(14,165,233,.15) !important; border-color: rgba(14,165,233,.3) !important; color: #0284c7 !important; }
.alert-warning { background: rgba(245,158,11,.15) !important; border-color: rgba(245,158,11,.3) !important; color: #b45309 !important; }

/* ---------- GLASS CARD ---------- */
.glass-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 24px -6px rgba(15, 23, 42, 0.05);
    border-radius: 20px;
}
[theme-mode="dark"] .glass-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* ---------- GLOBAL PREMIUM BACKGROUND ---------- */
.global-premium-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -999;
    background: var(--bs-body-bg);
    overflow: hidden;
    pointer-events: none;
}
.global-grid {
    position: absolute; inset: 0;
    background-size: 40px 40px;
    background-image: linear-gradient(to right, rgba(99,102,241,.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(99,102,241,.05) 1px, transparent 1px);
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}
[theme-mode="dark"] .global-grid {
    background-image: linear-gradient(to right, rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.03) 1px, transparent 1px);
}
.global-blob { position: absolute; border-radius: 50%; filter: blur(140px); opacity: .5; }
.g-blob-1 {
    top: -15%; left: -10%; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px;
    background: rgba(99,102,241,.25);
    animation: epicFloat 25s infinite alternate ease-in-out;
}
.g-blob-2 {
    top: 25%; right: -15%; width: 50vw; height: 50vw; max-width: 800px; max-height: 800px;
    background: rgba(16,185,129,.15);
    animation: epicFloatReverse 30s infinite alternate ease-in-out;
}
[theme-mode="dark"] .g-blob-1 { background: rgba(99,102,241,.15); }
[theme-mode="dark"] .g-blob-2 { background: rgba(16,185,129,.08); }
@keyframes epicFloat { 0%{transform:translate(0,0) scale(1)} 100%{transform:translate(8%,12%) scale(1.1)} }
@keyframes epicFloatReverse { 0%{transform:translate(0,0) scale(1)} 100%{transform:translate(-12%,8%) scale(.9)} }

/* Tło jest fixed pod treścią — kontenery przezroczyste, żeby było widoczne */
.page, .page-wrapper, .page-content { background: transparent !important; }

/* ---------- ANIMACJE WSPÓŁDZIELONE ---------- */
@keyframes slideUpFade { from{opacity:0;transform:translateY(40px)} to{opacity:1;transform:translateY(0)} }
@keyframes gradientShift { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }
@keyframes shine { 0%{left:-100%} 20%{left:200%} 100%{left:200%} }
@keyframes scrollMarquee { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
@keyframes floatUpDown { 0%,100%{transform:translateY(0) rotate(var(--rot,0deg))} 50%{transform:translateY(-20px) rotate(var(--rot,5deg))} }
@keyframes fadeSlideIn { from{opacity:0} to{opacity:1} }
@keyframes resultPop { 0%{opacity:0;transform:translateY(20px) scale(.98)} 100%{opacity:1;transform:translateY(0) scale(1)} }

/* ---------- WYNIKI NARZĘDZI ---------- */
.tool-results-wrapper, .result-pre {
    background: rgba(255,255,255,.7);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(79,70,229,.2);
    border-radius: 16px;
}
[theme-mode="dark"] .result-pre { background: rgba(15,23,42,.6) !important; border-color: rgba(99,102,241,.25) !important; color: #cbd5e1 !important; }

/* ============ HERO (współdzielony: home + strona narzędzia) ============ */
.hero-fullwidth-breakout {
    width: 100vw;
    position: relative;
    left: 50%; right: 50%;
    margin-left: -50vw; margin-right: -50vw;
    padding: 5rem 0 0 0;
    background: transparent;
    display: flex; flex-direction: column; align-items: center;
    overflow: hidden;
}
.hero-grid-bg {
    position: absolute; inset: 0;
    background-size: 50px 50px;
    background-image: linear-gradient(to right, rgba(128,128,128,.08) 1px, transparent 1px), linear-gradient(to bottom, rgba(128,128,128,.08) 1px, transparent 1px);
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
    z-index: 1;
}
.hero-epic-blob { position: absolute; border-radius: 50%; filter: blur(120px); z-index: 0; pointer-events: none; opacity: .5; }
.blob-primary   { top: -20%; left: -10%; width: 60vw; height: 60vw; max-width: 800px; max-height: 800px; background: rgba(79,70,229,.3);  animation: epicFloat 20s infinite alternate ease-in-out; }
.blob-secondary { bottom: -20%; right: -10%; width: 50vw; height: 50vw; max-width: 700px; max-height: 700px; background: rgba(236,72,153,.2); animation: epicFloatReverse 25s infinite alternate ease-in-out; }
.glass-floater {
    position: absolute;
    background: rgba(255,255,255,.05);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 8px 32px 0 rgba(0,0,0,.1);
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    color: var(--bs-body-color); z-index: 3; opacity: 0;
    animation: fadeSlideIn 1s ease forwards, floatUpDown 6s infinite ease-in-out;
}
.floater-1 { top: 15%; left: 15%; width: 80px; height: 80px; animation-delay: .5s, 0s; transform: rotate(-15deg); }
.floater-2 { top: 40%; right: 15%; width: 100px; height: 100px; animation-delay: .7s, 2s; transform: rotate(10deg); border-radius: 50%; }
.floater-3 { bottom: 30%; left: 20%; width: 70px; height: 70px; animation-delay: .9s, 1s; transform: rotate(25deg); }
@media (max-width:991px) { .glass-floater { display: none; } }

.hero-content-epic { position: relative; z-index: 4; width: 100%; max-width: 900px; margin: 0 auto; padding: 0 1rem; }
.epic-title { font-size: clamp(2.6rem, 7vw, 5.5rem); font-weight: 900; line-height: 1.05; letter-spacing: -0.04em; opacity: 0; animation: slideUpFade 1s ease forwards .4s; }
.text-gradient-epic {
    background: linear-gradient(135deg, #4f46e5 0%, #d946ef 50%, #f43f5e 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    background-size: 200% auto; animation: gradientShift 5s ease infinite;
}
.epic-subtitle { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 400; opacity: 0; animation: slideUpFade 1s ease forwards .6s; }
.epic-actions { opacity: 0; animation: slideUpFade 1s ease forwards .8s; }
.btn-epic { padding: 1.05rem 2.6rem; font-weight: 800; font-size: 1.1rem; border-radius: 16px; transition: all .4s cubic-bezier(.175,.885,.32,1.275); border: 1px solid rgba(255,255,255,.1); position: relative; overflow: hidden; }
.btn-epic-primary { background: linear-gradient(135deg, #4f46e5, #c026d3); color: #fff; box-shadow: 0 10px 25px -5px rgba(79,70,229,.4); }
.btn-epic-primary:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 20px 35px -8px rgba(192,38,211,.5); color: #fff; }
.btn-epic-primary::after { content:''; position:absolute; top:0; left:-100%; width:50%; height:100%; background:linear-gradient(to right,transparent,rgba(255,255,255,.3),transparent); transform:skewX(-20deg); animation:shine 3s infinite; }

/* HERO STATS */
.hero-stats-row { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 2.5rem; opacity: 0; animation: slideUpFade 1s ease forwards .65s; }
.hero-stat-item { text-align: center; padding: 0 2.5rem; }
.hero-stat-item:first-child { padding-left: 0; }
.hero-stat-item:last-child { padding-right: 0; }
.hero-stat-number, .hero-stat-suffix { font-weight: 900; line-height: 1; background: linear-gradient(135deg,#4f46e5,#d946ef); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; letter-spacing: -0.04em; }
.hero-stat-number { display: inline; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.hero-stat-suffix { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }
.hero-stat-label { display: block; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: var(--bs-secondary-color); margin-top: .5rem; }
.hero-stat-divider { width: 1px; height: 50px; flex-shrink: 0; background: linear-gradient(to bottom, transparent, rgba(128,128,128,.3), transparent); }
@media (max-width:576px) { .hero-stats-row { gap: 1rem; } .hero-stat-item { padding: 0 1rem; } .hero-stat-divider { display: none; } }

/* HERO SEARCH */
.hero-search-container { width: 100%; max-width: 620px; margin: 0 auto 2.5rem auto; position: relative; z-index: 10; opacity: 0; animation: slideUpFade 1s ease forwards .7s; }
.hero-search-wrapper {
    background: rgba(255,255,255,.55);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,.5);
    border-radius: 20px; padding: 8px; display: flex; align-items: center;
    transition: all .3s ease; box-shadow: 0 15px 35px rgba(0,0,0,.08);
}
[theme-mode="dark"] .hero-search-wrapper { background: rgba(15,23,42,.5); border-color: rgba(255,255,255,.1); }
.hero-search-wrapper:focus-within { border-color: rgba(79,70,229,.4); box-shadow: 0 0 30px rgba(79,70,229,.2); transform: translateY(-2px); }
.hero-search-wrapper input { background: transparent !important; border: none !important; box-shadow: none !important; color: var(--bs-body-color) !important; font-size: 1.1rem !important; padding: 12px 18px !important; width: 100%; }
.hero-search-wrapper input:focus { outline: none !important; box-shadow: none !important; }
.hero-search-wrapper .search-icon { margin-left: 15px; color: #4f46e5; opacity: .8; display: flex; }

/* MARQUEE */
.marquee-wrapper { width: 100vw; position: relative; overflow: hidden; padding: 1.1rem 0; z-index: 5; border-top: 1px solid rgba(128,128,128,.08); background: linear-gradient(to right, rgba(79,70,229,.015), rgba(217,70,239,.015) 50%, rgba(244,63,94,.015)); }
.marquee-wrapper::before, .marquee-wrapper::after { content:''; position:absolute; top:0; bottom:0; width:160px; z-index:2; pointer-events:none; }
.marquee-wrapper::before { left:0; background:linear-gradient(to right, var(--bs-body-bg) 0%, transparent 100%); }
.marquee-wrapper::after  { right:0; background:linear-gradient(to left, var(--bs-body-bg) 0%, transparent 100%); }
.marquee-track { display: flex; width: max-content; animation: scrollMarquee 40s linear infinite; }
.marquee-content { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; padding-right: .75rem; }
.marquee-wrapper:hover .marquee-track { animation-play-state: paused; }
.mq-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 15px; border-radius: 30px; font-size: .8rem; font-weight: 700; white-space: nowrap; border: 1px solid transparent; letter-spacing: .2px; }
.mq-chip .mq-icon { font-size: .95rem; line-height: 1; }
.mq-indigo  { background: rgba(79,70,229,.10); color:#4f46e5; border-color: rgba(79,70,229,.20); }
.mq-fuchsia { background: rgba(217,70,239,.10); color:#c026d3; border-color: rgba(217,70,239,.20); }
.mq-rose    { background: rgba(244,63,94,.09); color:#e11d48; border-color: rgba(244,63,94,.20); }
.mq-emerald { background: rgba(16,185,129,.09); color:#059669; border-color: rgba(16,185,129,.20); }
.mq-amber   { background: rgba(245,158,11,.10); color:#d97706; border-color: rgba(245,158,11,.22); }
.mq-sep { color: rgba(128,128,128,.25); font-size: .5rem; flex-shrink: 0; }

/* ============ KARTY NARZĘDZI (tool-card-premium) ============ */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; padding: 0; list-style: none; width: 100%; }
.tool-card-premium {
    position: relative;
    background: rgba(255,255,255,.6);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 24px;
    transition: all .4s cubic-bezier(.23,1,.32,1);
    min-height: 210px; overflow: hidden; display: flex; flex-direction: column;
    box-shadow: 0 4px 15px -3px rgba(15,23,42,.03);
}
.tool-card-premium::after { content:''; position:absolute; top:-110%; left:-110%; width:200%; height:200%; background:linear-gradient(45deg,transparent,rgba(255,255,255,.4),transparent); transition:.8s; pointer-events:none; }
.tool-card-premium:hover { transform: translateY(-8px) scale(1.02); background: rgba(255,255,255,.85); border-color: rgba(99,102,241,.5); box-shadow: 0 25px 50px -12px rgba(99,102,241,.25); }
.tool-card-premium:hover::after { top:-20%; left:-20%; }
.tool-card-premium > a { display:flex; flex-direction:column; justify-content:flex-start; padding:2.4rem 2rem; text-decoration:none !important; flex-grow:1; width:100%; z-index:2; position:relative; }
.tool-number-watermark { position:absolute; top:-5px; right:8px; font-size:7.5rem; font-weight:900; color:rgba(128,128,128,.04); z-index:1; pointer-events:none; line-height:1; font-family:'Inter',sans-serif; transition:color .4s ease; }
.tool-card-premium:hover .tool-number-watermark { color: rgba(79,70,229,.07); }
.tool-name-text { font-size: 1.4rem !important; font-weight: 800 !important; color: var(--bs-body-emphasis) !important; margin-bottom: .8rem !important; line-height: 1.2; letter-spacing: -0.02em; }
.tool-description-text { font-size: .95rem; color: var(--bs-secondary-color); margin-bottom: 1.6rem; line-height: 1.55; opacity: .95; }
.tool-action-link { font-size:.85rem; font-weight:700; color:#4f46e5 !important; background:rgba(79,70,229,.08); border:1px solid rgba(79,70,229,.15); text-transform:uppercase; letter-spacing:.5px; margin:auto auto 0 0; display:inline-flex; width:max-content; padding:8px 20px; border-radius:10px; align-items:center; gap:8px; transition:all .3s cubic-bezier(.23,1,.32,1); }
.tool-card-premium:hover .tool-action-link { transform: translateY(-2px); background:#4f46e5 !important; color:#fff !important; border-color:#4f46e5; box-shadow:0 6px 15px rgba(79,70,229,.25); }
.tool-action-link svg { transition: transform .3s ease; }
.tool-card-premium:hover .tool-action-link svg { transform: translateX(4px); }
[theme-mode="dark"] .tool-card-premium { background: rgba(30,41,59,1); border-color: rgba(255,255,255,.05); box-shadow: none; }
[theme-mode="dark"] .tool-card-premium:hover { background: rgba(32,45,65,1); border-color: rgba(255,255,255,.15); }
[theme-mode="dark"] .tool-number-watermark { color: rgba(255,255,255,.04); }

.section-heading { text-align: left; margin-bottom: 2.5rem; padding-left: 1.25rem; border-left: 6px solid #4f46e5; }
.section-heading h2 { font-size: clamp(1.6rem, 3vw, 2.4rem) !important; font-weight: 900 !important; margin: 0; }
.section-heading p { color: var(--bs-secondary-color); margin: .5rem 0 0; }
.section-tool-count { display:inline-flex; align-items:center; justify-content:center; background:rgba(79,70,229,.1); border:1px solid rgba(79,70,229,.2); color:#4f46e5; font-size:.75rem; font-weight:700; padding:3px 10px; border-radius:20px; margin-left:12px; vertical-align:middle; letter-spacing:.5px; }

/* CATEGORY QUICK NAV (sticky) */
.category-quick-nav {
    position: sticky; top: 80px; margin: 0 auto; width: 96%; max-width: 1200px; z-index: 500;
    border-radius: 20px;
    background: rgba(255,255,255,.75);
    backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255,255,255,.5);
    box-shadow: 0 10px 40px -10px rgba(0,0,0,.08);
    display: flex; align-items: center; overflow-x: auto; overflow-y: hidden;
    scrollbar-width: none; -ms-overflow-style: none; gap: 6px;
    max-height: 0; padding: 0; opacity: 0; pointer-events: none; transform: translateY(-10px);
    transition: max-height .4s ease, opacity .35s ease, padding .35s ease, transform .35s ease;
}
.category-quick-nav::-webkit-scrollbar { display: none; }
.category-quick-nav.visible { max-height: 60px; opacity: 1; transform: translateY(0); pointer-events: all; padding: .65rem 1.25rem; }
[theme-mode="dark"] .category-quick-nav { background: rgba(15,23,42,.8); border-color: rgba(255,255,255,.08); }
.cat-nav-chip { display:inline-flex; align-items:center; padding:5px 14px; border-radius:20px; font-size:.79rem; font-weight:600; color:var(--bs-secondary-color); background:transparent; border:1px solid transparent; cursor:pointer; white-space:nowrap; transition:all .22s cubic-bezier(.23,1,.32,1); flex-shrink:0; text-decoration:none; }
.cat-nav-chip:hover { background: rgba(79,70,229,.08); color:#4f46e5; border-color: rgba(79,70,229,.2); transform: translateY(-1px); }
.cat-nav-chip.active { background: rgba(79,70,229,.14); color:#4f46e5; border-color: rgba(79,70,229,.3); font-weight:700; }

/* ============ HERO STRONY NARZĘDZIA (tool-wrapper) ============ */
.tool-page-wrapper { padding-top: 6rem; }
.tool-hero-title { border-left: 5px solid var(--primary-2); padding-left: 1.25rem; }
.tool-hero-title h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -1px; font-weight: 800; margin: 0; }
.tool-hero-title .epic-subtitle { max-width: 950px; font-size: 1.15rem; line-height: 1.6; color: var(--bs-secondary-color); margin: .9rem 0 0; animation: none; opacity: 1; }
.tool-hero-badge { display:inline-flex; align-items:center; gap:8px; padding:6px 14px; background:rgba(16,185,129,.12); border:1px solid rgba(16,185,129,.3); border-radius:99px; font-size:.75rem; font-weight:700; color:#059669; margin-bottom:1.1rem; letter-spacing:.5px; }
.tool-hero-badge .dot { width:8px; height:8px; background:#22c55e; border-radius:50%; display:inline-block; box-shadow:0 0 0 3px rgba(34,197,94,.2); }
.tool-breadcrumb { font-size:.85rem; color:var(--bs-secondary-color); margin-bottom:1rem; display:flex; flex-wrap:wrap; align-items:center; gap:.4rem; }
.tool-breadcrumb a { color:var(--bs-secondary-color); text-decoration:none; }
.tool-breadcrumb a:hover { color:#4f46e5; }
.tool-breadcrumb .sep { color:#cbd5e1; }
.tool-breadcrumb .current { color:var(--bs-body-emphasis); font-weight:600; }
.tool-main-container { position: relative; z-index: 4; }

/* ============ NAVBAR GLASS ============ */
#saas-header.navbar-glass {
    background: transparent !important;
    border: 1px solid transparent !important;
    transition: all .5s cubic-bezier(.175,.885,.32,1.275);
    padding: 1rem 0 !important;
    top: 0; box-shadow: none !important;
}
#saas-header.navbar-glass.scrolled, #saas-header.navbar-glass.is-scrolled {
    background: rgba(255,255,255,.75) !important;
    backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255,255,255,.5) !important;
    border-radius: 20px;
    padding: .5rem 1.25rem !important;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,.08) !important;
    top: 12px; width: 96%; max-width: 1400px;
    margin: 0 auto 1rem auto;
}
[theme-mode="dark"] #saas-header.navbar-glass.scrolled,
[theme-mode="dark"] #saas-header.navbar-glass.is-scrolled {
    background: rgba(15,23,42,.8) !important;
    border: 1px solid rgba(255,255,255,.08) !important;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,.5) !important;
}
#saas-header .navbar-brand .brand-name { font-weight: 800; letter-spacing: -.8px; font-size: 1.35rem; color: var(--bs-body-emphasis); }
#saas-header .navbar-brand .brand-accent { color: var(--primary-2); }
#saas-header .nav-btn {
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    gap: 8px !important; height: 42px !important; padding: 0 18px !important;
    font-size: .9rem !important; font-weight: 700 !important; border-radius: 12px !important;
    transition: all .2s cubic-bezier(.4,0,.2,1) !important; text-decoration: none !important;
    white-space: nowrap !important; border: 1.5px solid transparent !important; line-height: 1 !important;
}
#saas-header .btn-ghost { color: var(--bs-secondary-color) !important; background: transparent !important; }
#saas-header .btn-ghost:hover { color: var(--primary-2) !important; background: rgba(99,102,241,.08) !important; transform: translateY(-1px); }
#saas-header .btn-categories { background: linear-gradient(135deg,#4f46e5 0%,#c026d3 100%) !important; color: #fff !important; border: none !important; box-shadow: 0 4px 15px -3px rgba(79,70,229,.4) !important; }
#saas-header .btn-categories:hover, #saas-header .btn-categories[aria-expanded="true"] { transform: translateY(-2px); box-shadow: 0 8px 22px -5px rgba(192,38,211,.5) !important; color: #fff !important; }
#saas-header .btn-coffee { background: rgba(245,158,11,.12) !important; color: #b45309 !important; border-color: rgba(245,158,11,.25) !important; }
#saas-header .btn-coffee:hover { background: #f59e0b !important; color: #fff !important; border-color: #f59e0b !important; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(245,158,11,.25); }
.dropdown-menu-premium { border:1px solid var(--bs-border-color) !important; box-shadow:0 20px 40px -10px rgba(0,0,0,.12) !important; border-radius:16px !important; padding:10px !important; min-width:280px; margin-top:14px !important; background: rgba(255,255,255,.95) !important; backdrop-filter: blur(16px); }
[theme-mode="dark"] .dropdown-menu-premium { background: rgba(15,23,42,.95) !important; }
.dropdown-item-premium { display:flex !important; align-items:center !important; justify-content:space-between !important; padding:12px 16px !important; border-radius:10px !important; color:var(--bs-body-color) !important; font-weight:600 !important; text-decoration:none !important; transition:all .2s !important; }
.dropdown-item-premium:hover { background: rgba(99,102,241,.1) !important; color: var(--primary-2) !important; padding-left: 20px !important; }
.theme-toggle-btn { background: transparent; border: 1px solid rgba(128,128,128,.2); border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--bs-body-color); transition: all .3s cubic-bezier(.175,.885,.32,1.275); flex-shrink: 0; }
.theme-toggle-btn:hover { background: rgba(79,70,229,.1); border-color: rgba(79,70,229,.4); color: #4f46e5; transform: scale(1.1) rotate(15deg); }
@media (max-width: 991px) {
  #saas-header .navbar-collapse { background: rgba(255,255,255,.98) !important; padding: 1.5rem !important; border-radius: 24px !important; box-shadow: 0 25px 50px rgba(0,0,0,.15) !important; margin-top: 12px !important; }
  [theme-mode="dark"] #saas-header .navbar-collapse { background: rgba(15,23,42,.98) !important; }
  #saas-header .nav-btn { width: 100% !important; margin-bottom: 8px !important; }
  #saas-header .actions-wrapper { margin-top: .5rem !important; border-top: 1px solid var(--bs-border-color) !important; padding-top: 1rem !important; flex-direction: column !important; width: 100%; }
}

/* ============ FOOTER EPIC ============ */
#saas-footer.footer-epic {
    position: relative; margin-top: 3rem;
    background: rgba(255,255,255,.01) !important;
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: none !important; z-index: 10; color: var(--bs-secondary-color);
    padding-top: 4rem; padding-bottom: 1rem; overflow: hidden;
}
#saas-footer.footer-epic::before { content:''; position:absolute; top:0; left:0; right:0; height:1px; background:linear-gradient(90deg,transparent 0%,#4f46e5 30%,#d946ef 70%,transparent 100%); opacity:.5; }
[theme-mode="dark"] #saas-footer.footer-epic { background: rgba(15,23,42,.25) !important; }
#saas-footer .footer-logo-text { font-size: 1.75rem; font-weight: 800; color: var(--bs-body-emphasis); letter-spacing: -.03em; line-height: 1; }
#saas-footer .footer-tagline { margin-top: 1rem; font-size: 1.05rem; color: var(--bs-secondary-color); max-width: 520px; margin-left: auto; margin-right: auto; line-height: 1.6; }
#saas-footer .social-btn { width:46px; height:46px; display:flex; align-items:center; justify-content:center; border-radius:12px; background: rgba(255,255,255,.6); color: var(--bs-secondary-color); border: 1px solid var(--bs-border-color); transition: all .3s; text-decoration: none !important; }
#saas-footer .social-btn:hover { transform: translateY(-4px); border-color: #4f46e5; color: #4f46e5; box-shadow: 0 10px 20px -5px rgba(79,70,229,.2); }
[theme-mode="dark"] #saas-footer .social-btn { background: rgba(30,41,59,.6); }
#saas-footer .footer-widget-area h1, #saas-footer .footer-widget-area h2, #saas-footer .footer-widget-area h3,
#saas-footer .footer-widget-area h4, #saas-footer .footer-widget-area h5, #saas-footer .footer-widget-area strong {
    color: var(--bs-body-emphasis); font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 1.3rem; display: block;
}
#saas-footer .footer-widget-area ul { list-style: none; padding: 0; margin: 0; }
#saas-footer .footer-widget-area li { margin-bottom: .6rem; }
#saas-footer .footer-widget-area a { color: var(--bs-secondary-color); text-decoration: none; transition: all .3s; display: inline-flex; align-items: center; font-size: .92rem; }
#saas-footer .footer-widget-area a:hover { color: #4f46e5; transform: translateX(6px); }
#saas-footer .footer-copyright { border-top: 1px solid rgba(128,128,128,.1); margin-top: 3rem; padding: 1.5rem 0; text-align: center; font-size: .85rem; color: var(--bs-secondary-color); background: transparent; }
