        /* ============================================================ */
        /* HERO INTRO - Headline + CSS Animation Demo                   */
        /* Könnyen eltávolítható: töröld ezt a blokkot + a hero-intro   */
        /* section-t a markup-ban, majd állítsd vissza a hero-description-t */
        /* ============================================================ */
        .hero-intro {
            position: relative;
            background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(79,70,229,0.08));
            border: 1px solid rgba(99,102,241,0.25);
            border-radius: 16px;
            padding: 24px 28px 20px;
            margin: 20px auto 30px;
            max-width: 900px;
        }
        .hero-intro-title {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 15px;
            font-weight: 700;
            color: var(--accent);
            text-transform: uppercase;
            letter-spacing: 0.08em;
            margin: 0 48px 12px 0;
        }
        .hero-intro-title::before {
            content: "📺";
            font-size: 20px;
        }
        .hero-intro-close {
            position: absolute;
            top: 10px;
            right: 10px;
            background: var(--bg-tertiary);
            border: 1px solid var(--border-color);
            color: var(--text-primary);
            font-size: 20px;
            font-weight: 700;
            cursor: pointer;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            line-height: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 8px var(--shadow-color);
        }
        .hero-intro-close:hover {
            background: var(--btn-danger);
            color: #fff;
            border-color: var(--btn-danger);
            transform: scale(1.05);
        }
        .hero-intro-close:active {
            transform: scale(0.95);
        }
        .hero-headline {
            font-size: 17px;
            font-weight: 600;
            line-height: 1.5;
            color: var(--text-primary);
            margin: 0 20px 18px 0;
            text-align: center;
        }
        .hero-headline .accent {
            color: var(--accent);
        }

        /* Animation stage */
        .hero-demo {
            background: var(--bg-primary);
            border: 1px solid var(--border-color);
            border-radius: 10px;
            padding: 18px;
            min-height: 260px;
            position: relative;
            overflow: hidden;
            font-family: 'Segoe UI', system-ui, sans-serif;
        }
        .hero-demo-stage {
            position: relative;
            width: 100%;
            height: 340px;
            overflow: hidden;
        }
        .hero-demo-scene {
            position: absolute;
            inset: 0;
            opacity: 0;
            transform: translateY(8px);
            transition: opacity 0.5s ease, transform 0.5s ease;
            pointer-events: none;
        }
        .hero-demo-scene.active {
            opacity: 1;
            transform: translateY(0);
            pointer-events: auto;
        }

        /* Playback controls */
        .hero-demo-controls {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 14px;
            margin-top: 12px;
            padding-top: 10px;
            border-top: 1px solid var(--border-color);
        }
        .hero-ctrl-btn {
            background: transparent;
            border: 1px solid var(--border-color);
            color: var(--text-primary);
            width: 34px;
            height: 34px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 14px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: background 0.15s, border-color 0.15s;
        }
        .hero-ctrl-btn:hover {
            background: rgba(99,102,241,0.12);
            border-color: var(--accent);
        }
        .hero-ctrl-btn.play {
            background: var(--accent);
            color: #fff;
            border-color: var(--accent);
            width: 40px;
            height: 40px;
            font-size: 16px;
        }
        .hero-ctrl-btn.play:hover {
            background: var(--accent);
            filter: brightness(1.1);
        }
        .hero-ctrl-dots {
            display: inline-flex;
            gap: 6px;
            margin: 0 8px;
        }
        .hero-ctrl-dot {
            width: 9px;
            height: 9px;
            border-radius: 50%;
            background: var(--border-color);
            cursor: pointer;
            transition: background 0.2s, transform 0.2s;
            border: none;
            padding: 0;
        }
        .hero-ctrl-dot.active {
            background: var(--accent);
            transform: scale(1.3);
        }
        .hero-ctrl-dot:hover {
            background: var(--accent);
            opacity: 0.7;
        }
        .hero-ctrl-progress {
            font-size: 15px;
            font-weight: 700;
            color: var(--accent);
            background: rgba(99,102,241,0.12);
            border: 1px solid rgba(99,102,241,0.35);
            padding: 5px 12px;
            border-radius: 14px;
            min-width: 78px;
            text-align: center;
            font-variant-numeric: tabular-nums;
            letter-spacing: 0.3px;
        }
        .hero-ctrl-progress .countdown {
            font-size: 17px;
            color: #ef4444;
        }
        body.dark-mode .hero-ctrl-progress .countdown {
            color: #fca5a5;
        }
        .hero-progress-bar {
            height: 3px;
            background: var(--border-color);
            border-radius: 2px;
            overflow: hidden;
            margin-top: 10px;
        }
        .hero-progress-fill {
            height: 100%;
            width: 0;
            background: var(--accent);
            border-radius: 2px;
            transition: width 0.1s linear;
        }

        .hero-demo-title {
            font-size: 15px;
            font-weight: 700;
            color: var(--accent);
            margin-bottom: 12px;
            letter-spacing: 0.3px;
            text-transform: uppercase;
        }
        .hero-demo-box {
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 6px;
            padding: 12px 14px;
            font-size: 15px;
            line-height: 1.6;
            color: var(--text-primary);
            font-family: 'Consolas', 'Monaco', monospace;
            margin-bottom: 10px;
        }
        .hero-demo-box.chatgpt {
            background: #f7f7f8;
            border-color: #10a37f;
            color: #202123;
        }
        body.dark-mode .hero-demo-box.chatgpt {
            background: #2d2d30;
            color: #ececf1;
        }
        .hero-demo-label {
            font-size: 14px;
            color: var(--text-secondary);
            margin-bottom: 5px;
            font-weight: 500;
        }
        .hero-demo-arrow {
            text-align: center;
            font-size: 20px;
            color: var(--accent);
            margin: 6px 0;
            font-weight: 600;
            animation: hero-arrow-pulse 1.5s ease-in-out infinite;
        }
        @keyframes hero-arrow-pulse {
            0%, 100% { transform: translateY(0); opacity: 0.6; }
            50%      { transform: translateY(3px); opacity: 1; }
        }

        /* Highlight animations inside scenes */
        .hl-sensitive {
            background: rgba(239, 68, 68, 0.22);
            border-bottom: 2px solid #ef4444;
            padding: 0 2px;
            border-radius: 2px;
            animation: hl-flash 1.2s ease-in-out;
        }
        .hl-selected {
            background: rgba(59, 130, 246, 0.28);
            outline: 2px dashed #3b82f6;
            padding: 0 2px;
            border-radius: 2px;
        }
        .hl-token {
            background: rgba(34, 197, 94, 0.18);
            color: #16a34a;
            padding: 0 3px;
            border-radius: 3px;
            font-weight: 600;
        }
        body.dark-mode .hl-token {
            color: #4ade80;
        }
        @keyframes hl-flash {
            0%   { background: rgba(239,68,68,0); }
            30%  { background: rgba(239,68,68,0.4); }
            100% { background: rgba(239,68,68,0.22); }
        }

        .dict-badge {
            display: inline-block;
            background: var(--accent);
            color: #fff;
            font-size: 11px;
            padding: 3px 8px;
            border-radius: 10px;
            margin-left: 6px;
            font-weight: 600;
        }
        .hero-btn-mock {
            display: inline-block;
            background: var(--accent);
            color: #fff;
            font-size: 12px;
            padding: 5px 12px;
            border-radius: 5px;
            font-weight: 600;
            margin-top: 4px;
            animation: hero-btn-pulse 1.4s ease-in-out infinite;
        }
        @keyframes hero-btn-pulse {
            0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(99,102,241,0.4); }
            50%      { transform: scale(1.04); box-shadow: 0 0 0 8px rgba(99,102,241,0); }
        }

        @media (max-width: 600px) {
            .hero-intro { padding: 18px 14px 14px; }
            .hero-headline { font-size: 15px; margin-right: 28px; }
            .hero-demo { padding: 12px; }
            .hero-demo-stage { height: 380px; }
            .hero-demo-box { font-size: 13px; padding: 10px 12px; }
            .hero-demo-label { font-size: 13px; }
            .hero-demo-title { font-size: 13px; }
        }

        /* Usage statistics grid */
        .usage-stats { margin-top: 25px; margin-bottom: 15px; }
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
            gap: 12px;
        }
        .stat-card {
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 10px;
            padding: 16px 12px;
            text-align: center;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }
        .stat-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
        .stat-icon { font-size: 26px; margin-bottom: 6px; line-height: 1; }
        .stat-value {
            font-size: 26px;
            font-weight: 800;
            color: var(--accent, #6366f1);
            font-variant-numeric: tabular-nums;
            line-height: 1.1;
            margin-bottom: 4px;
        }
        .stat-label { font-size: 12px; color: var(--text-secondary); line-height: 1.3; }
        @media (max-width: 600px) {
            .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
            .stat-card { padding: 12px 8px; }
            .stat-value { font-size: 20px; }
            .stat-icon { font-size: 22px; }
            .stat-label { font-size: 11px; }
        }

        .form-group {
            margin-bottom: 20px;
        }
        label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: var(--text-primary);
        }
        textarea {
            width: 100%;
            min-height: 180px;
            padding: 14px;
            border: 1.5px solid var(--border-color);
            border-radius: 10px;
            font-family: 'JetBrains Mono', 'Consolas', 'Monaco', monospace;
            font-size: 14px;
            line-height: 1.5;
            resize: vertical;
            box-sizing: border-box;
            background-color: var(--bg-tertiary);
            color: var(--text-primary);
            transition: border-color 0.2s, box-shadow 0.2s;
        }
        textarea::placeholder {
            color: var(--text-secondary);
            opacity: 0.7;
        }
        textarea:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 0 4px var(--accent-glow);
        }

        /* Character Counter Styles */
        .char-counter-wrapper {
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 12px;
            color: var(--text-secondary);
        }
        .char-count {
            font-weight: bold;
            color: var(--text-primary);
        }
        .char-count.warning {
            color: orange;
        }
        .char-count.danger {
            color: red;
        }
        .char-limit {
            color: var(--text-secondary);
        }
        .size-warning {
            color: orange;
            font-weight: bold;
        }
        .input-error {
            border-color: red !important;
        }

        .button-group {
            display: flex;
            gap: 8px;
            margin: 18px 0;
            flex-wrap: wrap;
            align-items: stretch;
        }
        .button-group > button { flex: 1 1 auto; }
        @media (max-width: 600px) {
            .button-group > button { flex: 1 1 calc(50% - 4px); }
            .button-group > .btn-primary { flex: 1 1 100%; }
        }
        button {
            padding: 11px 16px;
            border: 1px solid var(--border-color);
            background: var(--bg-tertiary);
            color: var(--text-primary);
            border-radius: 10px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            min-height: 44px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }
        button:hover {
            border-color: var(--accent);
            transform: translateY(-1px);
        }
        button:active { transform: translateY(0); }

        .btn-primary {
            background: linear-gradient(135deg, var(--accent), var(--accent-2));
            color: white;
            font-weight: 600;
            border: none;
            padding: 14px 22px;
            font-size: 15px;
            box-shadow: 0 4px 16px var(--accent-glow);
            flex: 1 1 100%;
        }
        .btn-primary:hover {
            background: linear-gradient(135deg, var(--accent-2), var(--accent));
            box-shadow: 0 8px 28px var(--accent-glow);
            transform: translateY(-2px);
        }
        .btn-primary:active { transform: translateY(0); }

        @media (min-width: 600px) {
            .btn-primary { flex: 0 1 auto; padding: 14px 28px; }
        }

        .btn-secondary {
            background: var(--bg-tertiary);
            color: var(--text-primary);
            border: 1px solid var(--border-color);
        }
        .btn-secondary:hover {
            border-color: var(--accent);
            color: var(--accent);
        }
        .btn-success {
            background: var(--bg-tertiary);
            color: var(--output-accent);
            border: 1px solid var(--output-accent);
        }
        .btn-success:hover {
            background: var(--output-accent);
            color: #fff;
            border-color: var(--output-accent);
        }
        .btn-danger {
            background: var(--bg-tertiary);
            color: var(--btn-danger);
            border: 1px solid var(--btn-danger);
        }
        .btn-danger:hover {
            background: var(--btn-danger);
            color: #fff;
            border-color: var(--btn-danger);
        }
        .btn-donate {
            background: linear-gradient(135deg, #e91e63, #ff6090);
            color: white;
            border: none;
            font-weight: 600;
        }
        .btn-donate:hover {
            background: linear-gradient(135deg, #c2185b, #e91e63);
            box-shadow: 0 6px 20px rgba(233,30,99,0.4);
        }
        .status {
            padding: 10px;
            border-radius: 4px;
            margin: 10px 0;
            min-height: 42px;
            display: flex;
            align-items: center;
            visibility: visible;
            background-color: var(--success-bg);
            color: var(--success-text);
            border: 1px solid var(--success-border);
        }
        .status.success {
            background-color: var(--success-bg);
            color: var(--success-text);
            border: 1px solid var(--success-border);
        }
        .status.error {
            background-color: var(--error-bg);
            color: var(--error-text);
            border: 1px solid var(--error-border);
        }
        .status.info {
            background-color: var(--info-bg);
            color: var(--info-text);
            border: 1px solid var(--info-border);
        }
        .footer {
            margin-top: 30px;
            padding-top: 20px;
            border-top: 1px solid var(--border-color);
            color: var(--text-secondary);
            font-size: 14px;
        }
        .footer code {
            background-color: var(--examples-code-bg);
            padding: 2px 4px;
            border-radius: 3px;
            color: var(--text-primary);
        }
        /* Info Tabs System */
        .info-tabs {
            margin: 20px 0;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            overflow: hidden;
        }
        .tab-buttons {
            display: flex;
            background: var(--bg-secondary);
            border-bottom: 2px solid var(--border-color);
        }
        .tab-btn {
            flex: 1;
            padding: 12px 20px;
            border: none;
            background: transparent;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.2s;
            border-bottom: 3px solid transparent;
            color: var(--text-primary);
            font-size: 14px;
        }
        .tab-btn:hover {
            background: var(--bg-hover);
        }
        .tab-btn.active {
            background: var(--bg-primary);
            border-bottom-color: var(--btn-primary);
            font-weight: 600;
        }
        .tab-content {
            padding: 20px;
            background-color: var(--examples-bg);
            color: var(--text-primary);
            max-width: 100%;
            overflow-x: hidden;
            word-break: break-word;
            overflow-wrap: anywhere;
        }
        .tab-content p {
            overflow-wrap: anywhere;
            word-break: break-word;
        }
        .tab-content h3 {
            margin-top: 0;
            color: var(--text-primary);
        }
        .tab-content ol {
            padding-left: 20px;
        }
        .tab-content ol li {
            margin-bottom: 12px;
            line-height: 1.6;
        }
        .tab-content p {
            color: var(--text-primary);
        }
        .tab-content code {
            background-color: var(--examples-code-bg);
            padding: 2px 4px;
            border-radius: 3px;
            font-family: 'Consolas', 'Monaco', monospace;
            color: var(--text-primary);
            display: inline-block;
            max-width: 100%;
            word-break: break-all;
            overflow-wrap: anywhere;
            white-space: normal;
        }

        /* AdSense placeholders */
        .adsense-placeholder {
            background: linear-gradient(135deg, #f0f0f0 25%, transparent 25%, transparent 50%, #f0f0f0 50%, #f0f0f0 75%, transparent 75%, transparent);
            background-size: 20px 20px;
            border: 2px dashed var(--border-color);
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-secondary);
            font-size: 14px;
            font-weight: 600;
            margin: 20px auto;
            opacity: 0.6;
        }

        /* Privacy notice box */
        .privacy-notice {
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-left: 4px solid var(--info-text, #3b82f6);
            border-radius: 16px;
            padding: 20px;
            margin: 20px 0;
            position: relative;
            color: var(--text-primary);
            font-size: 15px;
            line-height: 1.6;
            box-shadow: 0 2px 8px var(--shadow-color);
        }
        .privacy-notice h3 {
            margin-top: 0;
            margin-bottom: 12px;
            color: var(--info-text, #3b82f6);
            font-size: 18px;
        }
        .privacy-notice ul {
            margin: 10px 0;
            padding-left: 25px;
        }
        .privacy-notice li {
            margin: 6px 0;
        }
        .privacy-notice .close-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            background: var(--btn-primary);
            color: white;
            border: none;
            border-radius: 50%;
            width: 28px;
            height: 28px;
            cursor: pointer;
            font-size: 16px;
            font-weight: bold;
            line-height: 1;
        }
        .privacy-notice .close-btn:hover {
            background: var(--btn-primary-hover);
        }

        /* Footer links styling */
        .footer-links {
            margin-top: 15px;
            text-align: center;
        }
        .footer-links a {
            color: var(--text-secondary);
            text-decoration: none;
            margin: 0 10px;
        }

        /* Auth UI styles */
        .auth-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding: 10px 0;
            border-bottom: 1px solid var(--border-color);
        }
        .anonymous-notice {
            background: var(--info-bg);
            color: var(--info-text);
            padding: 12px 18px;
            border-radius: 8px;
            font-size: 14px;
            line-height: 1.6;
            display: block;
            margin-bottom: 15px;
        }
        .anonymous-notice a {
            color: var(--btn-primary);
            text-decoration: underline;
            cursor: pointer;
        }
        /* Button-like link for auth login */
        .auth-login-btn {
            display: inline-block;
            padding: 6px 14px;
            background: linear-gradient(135deg, var(--btn-primary) 0%, #4f46e5 100%);
            color: white !important;
            text-decoration: none !important;
            border-radius: 6px;
            font-weight: 600;
            font-size: 14px;
            transition: all 0.2s ease;
            box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
            cursor: pointer;
            white-space: nowrap;
        }
        .auth-login-btn:hover {
            background: linear-gradient(135deg, #4f46e5 0%, var(--btn-primary) 100%);
            box-shadow: 0 4px 10px rgba(99, 102, 241, 0.4);
            transform: translateY(-1px);
        }
        .auth-login-btn:active {
            transform: translateY(0);
            box-shadow: 0 2px 4px rgba(99, 102, 241, 0.3);
        }
        .user-menu {
            display: none;
            align-items: center;
            gap: 15px;
            padding: 8px 15px;
            background: var(--bg-tertiary);
            border-radius: 6px;
        }
        .user-email {
            font-weight: 500;
            color: var(--text-primary);
        }
        .logout-btn {
            background: var(--btn-danger);
            color: white;
            border: none;
            padding: 6px 12px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 14px;
        }
        .logout-btn:hover {
            background: var(--btn-danger-hover);
        }

        /* Auth modal */
        .auth-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }
        .auth-modal-content {
            background: var(--bg-secondary);
            border-radius: 8px;
            padding: 30px;
            width: 90%;
            max-width: 400px;
            box-shadow: 0 4px 20px var(--shadow-color);
        }
        .auth-modal h2 {
            margin-top: 0;
            margin-bottom: 20px;
            color: var(--text-primary);
        }
        .auth-input {
            width: 100%;
            padding: 12px;
            margin-bottom: 15px;
            border: 1px solid var(--input-border);
            border-radius: 4px;
            background: var(--input-bg);
            color: var(--text-primary);
            font-size: 14px;
            box-sizing: border-box;
        }
        .auth-input:focus {
            outline: none;
            border-color: var(--input-focus);
        }
        .auth-button {
            width: 100%;
            padding: 12px;
            background: var(--btn-primary);
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 16px;
            font-weight: 500;
            margin-bottom: 10px;
        }
        .auth-button:hover {
            background: var(--btn-primary-hover);
        }
        /* Loading spinner for async buttons */
        .btn-loading {
            opacity: 0.75;
            cursor: wait !important;
            pointer-events: none;
            position: relative;
        }
        .btn-loading::after {
            content: '';
            display: inline-block;
            width: 14px;
            height: 14px;
            margin-left: 8px;
            vertical-align: middle;
            border: 2px solid rgba(255,255,255,0.4);
            border-top-color: #fff;
            border-radius: 50%;
            animation: btn-spin 0.7s linear infinite;
        }
        @keyframes btn-spin {
            to { transform: rotate(360deg); }
        }
        .auth-toggle {
            text-align: center;
            color: var(--text-secondary);
            font-size: 14px;
            margin-top: 15px;
        }
        .auth-toggle a {
            color: var(--btn-primary);
            text-decoration: none;
            cursor: pointer;
        }
        .auth-toggle a:hover {
            text-decoration: underline;
        }
        .auth-close {
            background: var(--btn-secondary);
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 14px;
            margin-top: 10px;
            width: 100%;
        }
        .auth-close:hover {
            background: var(--btn-secondary-hover);
        }

        /* Auth Message (Error/Success) */
        .auth-message {
            padding: 12px;
            margin-bottom: 15px;
            border-radius: 4px;
            font-size: 14px;
            font-weight: 500;
        }
        .auth-message.error {
            background: #fee;
            color: #c33;
            border: 1px solid #fcc;
        }
        .auth-message.success {
            background: #efe;
            color: #3c3;
            border: 1px solid #cfc;
        }

        /* Privacy Policy Modal */
        .privacy-policy-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            z-index: 2000;
            justify-content: center;
            align-items: center;
            overflow-y: auto;
        }
        .privacy-policy-modal-content {
            background: var(--bg-primary);
            border-radius: 8px;
            width: 90%;
            max-width: 900px;
            max-height: 90vh;
            margin: 50px auto;
            position: relative;
            box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
        }
        .privacy-policy-close {
            position: absolute;
            top: 15px;
            right: 15px;
            background: var(--btn-danger);
            color: white;
            border: none;
            border-radius: 50%;
            width: 35px;
            height: 35px;
            cursor: pointer;
            font-size: 20px;
            font-weight: bold;
            z-index: 10;
        }
        .privacy-policy-close:hover {
            background: var(--btn-danger-hover);
        }
        .privacy-policy-body {
            padding: 50px 40px 40px 40px;
            overflow-y: auto;
            max-height: 80vh;
            color: var(--text-primary);
            line-height: 1.8;
        }
        .privacy-policy-body h1 {
            color: var(--btn-primary);
            border-bottom: 2px solid var(--border-color);
            padding-bottom: 10px;
            margin-bottom: 20px;
        }
        .privacy-policy-body h2 {
            color: var(--text-primary);
            margin-top: 30px;
            margin-bottom: 15px;
            border-bottom: 1px solid var(--border-color);
            padding-bottom: 8px;
        }
        .privacy-policy-body h3 {
            color: var(--text-secondary);
            margin-top: 20px;
            margin-bottom: 10px;
        }
        .privacy-policy-body p {
            margin-bottom: 15px;
        }
        .privacy-policy-body ul, .privacy-policy-body ol {
            margin-left: 20px;
            margin-bottom: 15px;
        }
        .privacy-policy-body li {
            margin-bottom: 8px;
        }
        .privacy-policy-body table {
            width: 100%;
            border-collapse: collapse;
            margin: 20px 0;
        }
        .privacy-policy-body th, .privacy-policy-body td {
            border: 1px solid var(--border-color);
            padding: 10px;
            text-align: left;
        }
        .privacy-policy-body th {
            background: var(--bg-secondary);
            font-weight: bold;
        }
        .privacy-policy-body code {
            background: var(--examples-code-bg);
            padding: 2px 6px;
            border-radius: 3px;
            font-family: 'Courier New', monospace;
        }
        .privacy-policy-body strong {
            color: var(--btn-primary);
        }
        .privacy-policy-body hr {
            border: none;
            border-top: 1px solid var(--border-color);
            margin: 30px 0;
        }

        .message-box {
            display: none;
            padding: 12px;
            margin-bottom: 15px;
            border-radius: 4px;
            font-size: 14px;
        }
        .message-info {
            background: var(--info-bg);
            color: var(--info-text);
            border: 1px solid var(--info-border);
        }
        .message-success {
            background: var(--success-bg);
            color: var(--success-text);
            border: 1px solid var(--success-border);
        }
        .message-error {
            background: var(--error-bg);
            color: var(--error-text);
            border: 1px solid var(--error-border);
        }
        .footer-links a:hover {
            text-decoration: underline;
            color: var(--text-primary);
        }


        /* ============================================================ */
        /* IO CARDS — Input/Output card-style panelek (preview design)  */
        /* ============================================================ */
        .io-card {
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            padding: 16px 18px;
            margin-bottom: 16px;
            box-shadow: 0 2px 8px var(--shadow-color);
            position: relative;
            transition: box-shadow 0.25s ease, border-color 0.25s ease;
        }
        .io-card.input-card {
            border-left: 4px solid var(--input-accent);
        }
        .io-card.output-card {
            border-left: 4px solid var(--output-accent);
        }
        .io-card.input-card:focus-within {
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15), 0 4px 16px var(--shadow-color);
            border-color: var(--input-accent);
        }
        .io-card.output-card:focus-within {
            box-shadow: 0 0 0 3px var(--success-glow), 0 4px 16px var(--shadow-color);
            border-color: var(--output-accent);
        }
        .io-card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
            gap: 10px;
            flex-wrap: wrap;
        }
        .io-card-header label {
            font-weight: 600;
            color: var(--text-primary);
            margin: 0;
            font-size: 15px;
        }
        .io-card.input-card .io-card-header label {
            color: var(--input-accent);
        }
        .io-card.output-card .io-card-header label {
            color: var(--output-accent);
        }
        .io-meta {
            font-size: 12px;
            color: var(--text-secondary);
            font-variant-numeric: tabular-nums;
            opacity: 0.85;
        }
        .io-card textarea {
            margin-top: 0;
        }

        /* Stat row chips (anonymize után) */
        .stat-row {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            align-items: center;
            margin-top: 8px;
        }

        /* Dict actions - egyseges outline gombok (preview design) */
        .dict-actions {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 8px;
            width: 100%;
        }
        @media (min-width: 600px) {
            .dict-actions {
                grid-template-columns: repeat(4, auto);
                width: auto;
            }
        }
        .btn-dict {
            border: 1px solid var(--border-color);
            background: var(--bg-tertiary);
            color: var(--text-primary);
            padding: 10px;
            border-radius: 10px;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            white-space: nowrap;
            flex: none;
        }
        .btn-dict:hover {
            border-color: var(--btn-primary);
            transform: translateY(-1px);
        }
        .btn-dict:active { transform: translateY(0); }
        .btn-dict-success {
            color: var(--success, #10b981);
            border-color: rgba(16,185,129,0.4);
        }
        .btn-dict-danger {
            color: var(--danger, #ef4444);
            border-color: rgba(239,68,68,0.4);
        }
        .stat-chip {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 3px 10px;
            background: var(--bg-tertiary);
            border: 1px solid var(--border-color);
            border-radius: 999px;
            font-size: 12px;
            font-weight: 600;
            color: var(--text-secondary);
            white-space: nowrap;
        }
        .stat-chip.email { color: #3b82f6; border-color: rgba(59,130,246,0.3); }
        .stat-chip.ip    { color: #10b981; border-color: rgba(16,185,129,0.3); }
        .stat-chip.host  { color: #f59e0b; border-color: rgba(245,158,11,0.3); }
        .stat-chip.name  { color: #8b5cf6; border-color: rgba(139,92,246,0.3); }
        .stat-chip.phone { color: #ec4899; border-color: rgba(236,72,153,0.3); }
        .stat-chip.other { color: var(--text-secondary); }

        @media (max-width: 600px) {
            .io-card { padding: 12px 14px; }
            .io-card-header { flex-direction: column; align-items: flex-start; }
            .stat-chip { font-size: 11px; padding: 2px 8px; }
        }

        /* Text search toggle button */
        .text-search-toggle {
            background: none;
            border: none;
            cursor: pointer;
            font-size: 14px;
            padding: 2px 6px;
            border-radius: 4px;
            color: var(--text-secondary);
            transition: all 0.15s;
            opacity: 0.7;
        }
        .text-search-toggle:hover {
            opacity: 1;
            background: var(--bg-secondary);
        }

        /* Text search bar (F6) */
        .text-search-bar {
            margin-bottom: 6px;
        }
        .text-search-inner {
            display: flex;
            align-items: center;
            gap: 4px;
            padding: 4px 8px;
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 8px;
        }
        .text-search-input {
            flex: 1;
            min-width: 0;
            padding: 5px 8px;
            border: none;
            background: transparent;
            color: var(--text-primary);
            font-size: 13px;
            outline: none;
        }
        .text-search-input::placeholder {
            color: var(--text-secondary);
            opacity: 0.7;
        }
        .text-search-info {
            font-size: 12px;
            color: var(--text-secondary);
            min-width: 36px;
            text-align: center;
            font-variant-numeric: tabular-nums;
            white-space: nowrap;
        }
        .text-search-info.no-results {
            color: #ef4444;
        }
        .text-search-btn {
            background: none;
            border: 1px solid transparent;
            color: var(--text-secondary);
            cursor: pointer;
            padding: 2px 6px;
            border-radius: 4px;
            font-size: 12px;
            line-height: 1;
            transition: all 0.15s;
        }
        .text-search-btn:hover {
            background: var(--bg-primary);
            color: var(--text-primary);
            border-color: var(--border-color);
        }
        .text-search-case.active,
        .text-search-accent.active {
            background: var(--accent);
            color: #fff;
            border-color: var(--accent);
        }
        .text-search-close {
            font-size: 14px;
        }
        @media (max-width: 600px) {
            .text-search-inner { padding: 3px 6px; gap: 2px; }
            .text-search-input { font-size: 12px; padding: 4px 6px; }
            .text-search-btn { padding: 2px 4px; font-size: 11px; }
        }

        /* Search overlay highlight */
        .search-highlight-wrapper {
            position: relative;
        }
        .search-highlight-backdrop {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            overflow: hidden;
            pointer-events: none;
            border: 1.5px solid transparent;
            border-radius: 10px;
            padding: 14px;
            box-sizing: border-box;
            z-index: 1;
        }
        .search-highlight-content {
            font-family: 'JetBrains Mono', 'Consolas', 'Monaco', monospace;
            font-size: 14px;
            line-height: 1.5;
            white-space: pre-wrap;
            word-wrap: break-word;
            overflow-wrap: break-word;
            color: transparent;
        }
        .search-highlight-wrapper textarea {
            position: relative;
            z-index: 2;
            background: transparent !important;
        }
        mark.search-hl {
            background: rgba(250, 204, 21, 0.4);
            color: transparent;
            border-radius: 2px;
        }
        mark.search-hl-active {
            background: rgba(249, 115, 22, 0.6);
            color: transparent;
            border-radius: 2px;
        }

        /* Flow arrow input → output */
        .flow-arrow {
            text-align: center;
            margin: -4px 0 -2px;
            font-size: 26px;
            color: var(--accent);
            opacity: 0.55;
            font-weight: 300;
            line-height: 1;
        }

        /* Mappings panel buttons mobilon 2x2 grid override */
        @media (max-width: 600px) {
            .mappings-panel > div:first-child {
                flex-direction: column;
                align-items: stretch !important;
            }
            .mappings-panel > div:first-child > div:last-child {
                display: grid !important;
                grid-template-columns: 1fr 1fr;
                gap: 8px !important;
                width: 100%;
            }
            .mappings-panel > div:first-child > div:last-child > button {
                padding: 10px !important;
                font-size: 13px !important;
                margin: 0;
                width: 100%;
            }
            /* Új mapping űrlap mobilon egymás alá */
            .mappings-panel > div[style*="grid-template-columns: 2fr 1fr auto"] {
                grid-template-columns: 1fr !important;
            }
        }

        /* Mappings panel desktop design refresh */
        .mappings-panel {
            border-radius: 14px !important;
            border-width: 1px !important;
            border-left-width: 5px !important;
            border-left-color: var(--accent) !important;
        }
        .mappings-panel input[type="text"],
        .mappings-panel select {
            border-radius: 8px !important;
            border-width: 1.5px !important;
            min-height: 44px;
        }
        .mappings-panel input[type="text"]:focus,
        .mappings-panel select:focus {
            outline: none;
            border-color: var(--accent) !important;
            box-shadow: 0 0 0 3px var(--accent-glow);
        }

/* ============================================================ */
/* F8: Detect Preview - Smart Detect modal                      */
/* ============================================================ */
.btn-detect-preview {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s;
}
.btn-detect-preview:hover {
    background: var(--btn-primary);
    color: #fff;
    border-color: var(--btn-primary);
}

.detect-preview-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.detect-preview-modal {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    max-width: 640px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.detect-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}
.detect-preview-header h2 {
    margin: 0;
    font-size: 18px;
}
.detect-preview-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 4px 8px;
    border-radius: 4px;
}
.detect-preview-close:hover {
    background: var(--bg-secondary);
}
.detect-preview-body {
    padding: 16px 20px;
    overflow-y: auto;
    flex: 1;
}
.detect-preview-section {
    margin-bottom: 16px;
}
.detect-preview-section-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
}
.detect-preview-divider {
    border: none;
    border-top: 1px dashed var(--border);
    margin: 16px 0;
}
.detect-preview-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 14px;
    transition: background 0.1s;
}
.detect-preview-item:hover {
    background: var(--bg-secondary);
}
.detect-preview-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    flex-shrink: 0;
}
.detect-preview-item .dp-text {
    flex: 1;
    font-family: monospace;
    word-break: break-all;
}
.detect-preview-item .dp-type {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-weight: 600;
    white-space: nowrap;
}
.detect-preview-item .dp-type.certain {
    background: rgba(34,197,94,0.15);
    color: #16a34a;
}
.detect-preview-item .dp-type.suspicious {
    background: rgba(250,204,21,0.15);
    color: #ca8a04;
}
.detect-preview-item .dp-hint {
    font-size: 11px;
    color: var(--text-secondary);
}
.detect-preview-item .dp-edit {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 2px 4px;
    border-radius: 4px;
    opacity: 0.5;
}
.detect-preview-item .dp-edit:hover {
    opacity: 1;
    background: var(--bg-secondary);
}
.detect-preview-empty {
    text-align: center;
    color: var(--text-secondary);
    padding: 20px;
    font-size: 14px;
}
.detect-preview-add {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    align-items: center;
}
.detect-preview-add input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 13px;
}
.detect-preview-add select {
    padding: 6px 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 13px;
}
.detect-preview-add button {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 13px;
}
.detect-preview-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.detect-preview-footer .dp-btn-apply {
    padding: 8px 20px;
    border-radius: 6px;
    border: none;
    background: var(--btn-primary);
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}
.detect-preview-footer .dp-btn-apply:hover {
    opacity: 0.9;
}
.detect-preview-footer .dp-btn-cancel {
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 14px;
}

/* Edit mode inline */
.detect-preview-item.editing .dp-text {
    display: none;
}
.detect-preview-item.editing .dp-edit-input {
    display: block;
    flex: 1;
    padding: 3px 6px;
    border: 1px solid var(--accent);
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
    background: var(--bg-primary);
    color: var(--text-primary);
}
.detect-preview-item .dp-edit-input {
    display: none;
}
