/* Wyniesione z HTML do pliku (2026-10-13), zeby przegladarka trzymala je w cache zamiast pobierac przy kazdej odslonie.
   Zrodlo: resources/views/livewire/public/pages.blade.php (design system strony narzedzia) */

        /* =========================================
           1. DESIGN SYSTEM (SPÓJNY Z HOME)
           ========================================= */
        :root {
            --primary: #6366f1;       /* Indigo */
            --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #d946ef 100%);
            --text-main: #0f172a;     /* Slate 900 */
            --text-muted: #64748b;    /* Slate 500 */
            --bg-base: #ffffff;
            --border-color: #e2e8f0;
        }

        .tool-page-wrapper {
            background-color: transparent;
            position: relative;
            width: 100%;
            overflow-x: hidden;
        }
        /* Redesign 2026: globalne tło premium; ukryj lokalną siatkę i ozdobne okno 3D (czystsze + lepiej dla SEO/LCP) */
        .tech-grid-bg { display: none !important; }
        .window-3d-container { display: none !important; }
        #tool-hero { padding: 2.5rem 0 2.5rem 0 !important; }

        /* TŁO: Techniczna siatka */
        .tech-grid-bg {
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background-image: 
                linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
            background-size: 40px 40px;
            mask-image: radial-gradient(ellipse at center, black 50%, transparent 90%);
            z-index: 0;
            pointer-events: none;
        }

        /* =========================================
           2. TOOL HERO SECTION
           ========================================= */
        #tool-hero {
            position: relative;
            z-index: 10;
            padding: 4rem 0 5rem 0;
        }

        /* Baner partnerski sprytneokazje.pl (nad breadcrumbs) */
        .sp-banner { display:block; max-width:900px; margin:1.25rem auto 1.5rem; line-height:0; border-radius:12px; overflow:hidden; box-shadow:0 2px 10px rgba(0,0,0,.08); transition:box-shadow .15s, transform .15s; }
        .sp-banner:hover { box-shadow:0 6px 18px rgba(0,0,0,.16); transform:translateY(-1px); }
        .sp-banner img { width:100%; height:auto; aspect-ratio:1774/887; display:block; }

        /* Badge nad tytułem */
        .tool-breadcrumb {
            font-size: .85rem;
            color: #64748b;
            margin-bottom: 1.25rem;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: .4rem;
        }
        .tool-breadcrumb a { color: #64748b; text-decoration: none; }
        .tool-breadcrumb a:hover { color: #2563eb; text-decoration: underline; }
        .tool-breadcrumb .sep { color: #cbd5e1; }
        .tool-breadcrumb .current { color: #0f172a; font-weight: 600; }
        .tool-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 6px 12px;
            background: #fff;
            border: 1px solid var(--border-color);
            border-radius: 99px;
            font-size: 0.75rem;
            font-weight: 700;
            color: var(--primary);
            box-shadow: 0 2px 4px rgba(0,0,0,0.02);
            margin-bottom: 1.5rem;
        }

        .tool-title {
            font-size: clamp(2rem, 5vw, 3.5rem);
            font-weight: 800;
            color: var(--text-main);
            line-height: 1.1;
            letter-spacing: -0.03em;
            margin-bottom: 1rem;
        }

        .tool-desc {
            font-size: 1.1rem;
            line-height: 1.6;
            color: var(--text-muted);
            max-width: 600px;
        }

        /* Sekcja KPI (Ikony pod opisem) */
        .tool-kpis {
            display: flex;
            flex-wrap: wrap;
            gap: 1.5rem;
            margin-top: 2rem;
        }
        
        .kpi-item {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 0.9rem;
            font-weight: 600;
            color: var(--text-muted);
        }
        .kpi-icon {
            width: 36px; height: 36px;
            background: #eff6ff;
            border-radius: 8px;
            display: flex; align-items: center; justify-content: center;
            color: var(--primary);
        }

        /* =========================================
           3. HERO RIGHT: 3D WINDOW (Floating)
           ========================================= */
        .window-3d-container {
            perspective: 1000px;
            padding: 1rem;
        }

        .window-3d {
            background: #fff;
            border-radius: 16px;
            border: 1px solid rgba(255,255,255,0.5);
            box-shadow: 
                0 25px 50px -12px rgba(0, 0, 0, 0.1),
                0 0 0 1px rgba(0,0,0,0.05);
            transform: rotateY(-5deg) rotateX(3deg);
            transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
            overflow: hidden;
        }

        .window-3d:hover {
            transform: rotateY(0deg) rotateX(0deg) scale(1.02);
            box-shadow: 0 30px 60px -15px rgba(37, 99, 235, 0.15);
        }

        .window-header {
            background: #f8fafc;
            border-bottom: 1px solid var(--border-color);
            padding: 12px 16px;
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        .dots { display: flex; gap: 6px; }
        .dot { width: 10px; height: 10px; border-radius: 50%; }

        .window-body {
            padding: 2rem;
        }

        /* Lista kroków w oknie */
        .steps-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        .step-item {
            display: flex;
            gap: 1rem;
            margin-bottom: 1.5rem;
            align-items: flex-start;
        }
        .step-num {
            width: 24px; height: 24px;
            background: var(--primary-gradient);
            color: #fff;
            border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            font-size: 0.75rem;
            font-weight: 700;
            flex-shrink: 0;
            margin-top: 2px;
            box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
        }
        .step-text {
            font-size: 0.9rem;
            color: var(--text-main);
            line-height: 1.4;
        }

        /* Code Snippet Look */
        .code-block {
            background: #0f172a;
            border-radius: 8px;
            padding: 1rem;
            font-family: monospace;
            font-size: 0.8rem;
            color: #e2e8f0;
            position: relative;
            overflow: hidden;
            margin-top: 1rem;
        }
        .code-block::after {
            content: "";
            position: absolute;
            top: 0; left: -100%; width: 50%; height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
            transform: skewX(-20deg);
            animation: codeShine 4s infinite;
        }
        @keyframes codeShine { 0% { left: -100%; } 50% { left: 200%; } 100% { left: 200%; } }
        
        .cmd-accent { color: #38bdf8; }

        /* =========================================
           4. TOOL CONTAINER & RELATED
           ========================================= */
        
        /* Kontener samego narzędzia */
        #tool-container {
            position: relative;
            z-index: 20;
            background: #fff;
            border-radius: 16px;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 10px 15px -3px rgba(0, 0, 0, 0.05);
            border: 1px solid var(--border-color);
            overflow: hidden;
            margin-bottom: 5rem;
        }
        /* Bez podwojnej ramki: gdy narzedzie ma wlasna karte/wrapper, kontener jest przezroczysty */
        #tool-container:has(.card),
        #tool-container:has(.tool-card),
        #tool-container:has(.tool-wrapper),
        #tool-container:has(.saas-shell),
        #tool-container:has([class$="-tool"]) {
            background: transparent;
            border: none;
            box-shadow: none;
            border-radius: 0;
            overflow: visible;
        }

        /* Karty powiązanych (Ten sam styl co Home) */
        .related-card {
            display: block;
            background: #fff;
            border: 1px solid var(--border-color);
            border-radius: 16px;
            padding: 1.5rem;
            height: 100%;
            position: relative;
            text-decoration: none !important;
            color: inherit;
            overflow: hidden;
            transition: all 0.3s;
        }

        .bg-number {
            position: absolute;
            top: -20px; right: -10px;
            font-size: 5rem;
            font-weight: 900;
            color: #f1f5f9;
            z-index: 0;
            transition: transform 0.3s;
        }
        
        .related-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.1);
            border-color: transparent;
        }

        /* Gradient border on hover */
        .related-card::after {
            content: "";
            position: absolute;
            inset: 0;
            border-radius: 16px;
            padding: 2px;
            background: var(--primary-gradient);
            -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            opacity: 0;
            transition: opacity 0.3s;
        }
        .related-card:hover::after { opacity: 1; }

        .related-card:hover .bg-number {
            transform: translate(-10px, 10px) scale(1.1);
            color: #eff6ff;
        }

        .card-content { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; }
        
        .related-title { font-weight: 700; font-size: 1.1rem; color: var(--text-main); margin-bottom: 0.5rem; }
        .related-action {
            margin-top: auto;
            padding-top: 1rem;
            color: var(--primary);
            font-weight: 700;
            font-size: 0.85rem;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        /* RWD */
        @media(max-width: 991px) {
            #tool-hero { text-align: center; }
            .tool-desc { margin: 0 auto; }
            .tool-kpis { justify-content: center; }
            .window-3d-container { margin-top: 3rem; }
        }
    