        :root {
            --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            --glass-bg: rgba(255, 255, 255, 0.9);
            --text-dark: #1e293b;
            --accent-color: #f59e0b;
        }

        body {
            font-family: 'Outfit', sans-serif;
            background: #f8fafc;
            background-image: url('../img/bg_lapki.svg');
            background-repeat: repeat;
            background-size: 200px;
            color: var(--text-dark);
            min-height: 100vh;
            margin: 0;
            display: flex;
            flex-direction: column;
        }

        .search-hero {
            background: var(--primary-gradient);
            padding: 120px 20px 140px;
            color: white;
            text-align: center;
            position: relative;
            overflow: hidden;
            clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
        }

        .search-hero::before {
            content: "";
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            background-image: url('../img/bg_lapki.svg');
            opacity: 0.1;
            z-index: 0;
        }

        .search-hero .container { position: relative; z-index: 1; }

        h1 { font-weight: 800; font-size: 3rem; margin-bottom: 20px; text-shadow: 0 2px 10px rgba(0,0,0,0.1); }
        .subtitle { font-size: 1.2rem; opacity: 0.9; max-width: 600px; margin: 0 auto 40px; }

        .search-card {
            background: var(--glass-bg);
            backdrop-filter: blur(20px);
            border-radius: 30px;
            padding: 40px;
            box-shadow: 0 40px 80px rgba(0,0,0,0.1);
            max-width: 700px;
            margin: -80px auto 60px;
            position: relative;
            z-index: 10;
            border: 1px solid rgba(255,255,255,0.5);
        }

        .search-input-group {
            display: flex;
            background: #f1f5f9;
            border-radius: 20px;
            padding: 5px;
            margin-bottom: 25px;
            border: 2px solid transparent;
            transition: all 0.3s;
        }

        .search-input-group:focus-within {
            border-color: #667eea;
            box-shadow: 0 0 15px rgba(102, 126, 234, 0.2);
            background: white;
        }

        .search-input-group input {
            flex-grow: 1;
            border: none;
            background: transparent;
            padding: 15px 25px;
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--text-dark);
            outline: none;
        }

        .search-input-group button {
            background: var(--primary-gradient);
            color: white;
            border: none;
            padding: 0 35px;
            border-radius: 16px;
            font-weight: 800;
            letter-spacing: 1px;
            transition: transform 0.2s;
        }

        .search-input-group button:hover {
            transform: scale(1.02);
        }

        .toggle-container {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 15px;
            font-weight: 600;
        }

        .switch {
            position: relative;
            display: inline-block;
            width: 50px;
            height: 26px;
        }

        .switch input { opacity: 0; width: 0; height: 0; }

        .slider {
            position: absolute;
            cursor: pointer;
            top: 0; left: 0; right: 0; bottom: 0;
            background-color: #cbd5e1;
            transition: .4s;
            border-radius: 34px;
        }

        .slider:before {
            position: absolute;
            content: "";
            height: 18px; width: 18px;
            left: 4px; bottom: 4px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }

        input:checked + .slider { background-color: #764ba2; }
        input:checked + .slider:before { transform: translateX(24px); }

        .results-area { padding-bottom: 100px; }

        .result-card {
            background: white;
            border-radius: 20px;
            padding: 25px;
            display: flex;
            align-items: center;
            gap: 25px;
            margin-bottom: 20px;
            border-left: 8px solid #10b981;
            box-shadow: 0 10px 30px rgba(0,0,0,0.05);
            animation: slideUp 0.5s ease-out;
        }

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

        .result-pet-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
        .result-info h3 { margin: 0; font-weight: 800; color: var(--text-dark); }
        .result-info p { margin: 0; color: #64748b; font-size: 0.95rem; }

        .external-search-section {
            background: #fff;
            border-radius: 25px;
            padding: 40px;
            margin-top: 50px;
            border: 1px solid #e2e8f0;
        }

        .external-btn {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 15px 25px;
            border-radius: 15px;
            text-decoration: none;
            font-weight: 700;
            transition: all 0.3s;
            margin-bottom: 15px;
            border: 2px solid #e2e8f0;
            color: #475569;
        }

        .external-btn:hover {
            border-color: #667eea;
            background: #f8fafc;
            color: #667eea;
            transform: translateX(5px);
        }

        .external-btn i { font-size: 1.2rem; }

        .empty-state {
            text-align: center;
            padding: 40px;
            color: #94a3b8;
        }

        .empty-state i { font-size: 3rem; margin-bottom: 15px; opacity: 0.3; }

        footer { margin-top: auto; background: white; padding: 40px 20px; border-top: 1px solid #e2e8f0; }

        @media (max-width: 768px) {
            h1 { font-size: 2rem; }
            .search-card { padding: 25px; margin-top: -60px; }
            .search-input-group { flex-direction: column; background: transparent; gap: 10px; }
            .search-input-group input { background: white; border-radius: 15px; border: 1px solid #e2e8f0; }
            .search-input-group button { padding: 15px; border-radius: 15px; }
            .result-card { flex-direction: column; text-align: center; }
        }

        /* Dodatkowo wydzielone wewnętrzne style formy i modalów: */
        .db-selector { text-align: left; }
        .db-checkbox { width: 100%; cursor: pointer; }
        .db-checkbox input { display: none; }
        .db-box {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            padding: 15px;
            background: #f8fafc;
            border-radius: 15px;
            border: 2px solid #e2e8f0;
            transition: all 0.3s;
            color: #94a3b8;
            position: relative;
        }
        .check-icon {
            position: absolute;
            top: 8px;
            right: 8px;
            color: #10b981;
            font-size: 1rem;
            opacity: 0;
            transition: opacity 0.3s;
        }
        .db-checkbox input:checked + .db-box {
            background: white;
            border-color: #10b981;
            color: #1e293b;
            box-shadow: 0 10px 25px rgba(16, 185, 129, 0.1);
        }
        .db-checkbox input:checked + .db-box .check-icon {
            opacity: 1;
        }
        .db-box i { font-size: 1.2rem; }
        .db-box span { font-size: 0.8rem; font-weight: 700; width: 100%; text-align: center; }

        .transition-hover { transition: all 0.3s ease; }
        .transition-hover:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important; }
        .modal-xl { max-width: 1140px; }
        @media (max-width: 991px) { .modal-xl { max-width: 95%; } }
