html { scroll-behavior: smooth; }

        /* ── Tool Card ────────────────────────────────────────── */
        .tool-card {
            padding: 36px;
            margin-bottom: 48px;
            margin-top: 48px;
        }

        .input-group {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
        }
        .input-wrap {
            flex: 1;
            min-width: 240px;
            position: relative;
        }
        .input-wrap::before {
            content: '🌐';
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 1rem;
            pointer-events: none;
        }
        input[type="text"] {
            width: 100%;
            border: 1px solid var(--border-color);
            border-radius: 10px;
            padding: 8px 16px 8px 44px;
            color: var(--text-main);
            font-size:1rem;
            outline: none;
            transition: border-color 0.2s, box-shadow 0.2s;
        }
        input[type="text"]::placeholder { color: var(--text-main); }
        input[type="text"]:focus {
            border-color: #1d273b;
        }

        /* ── Error ────────────────────────────────────────────── */
        .error-box {
            margin-top: 16px;
            background: rgba(255,95,126,0.1);
            border: 1px solid rgba(255,95,126,0.25);
            color: var(--btn-warning);
            padding: 12px 16px;
            border-radius: 8px;
            font-size: 0.9rem;
        }

        /* ── Progress ─────────────────────────────────────────── */
        .progress-wrap {
            display: none;
            margin-top: 24px;
        }
        .progress-bar-track {
            background: var(--bg-light);
            border-radius: 100px;
            height: 6px;
            overflow: hidden;
        }
        .progress-bar-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--primary-color), var(--accent2));
            border-radius: 100px;
            width: 0%;
            transition: width 0.3s ease;
        }
        .progress-label {
            margin-top: 10px;
            font-size: 0.85rem;
            color: var(--text-muted);
            text-align: center;
        }

        /* ── Results Header ───────────────────────────────────── */
        .results-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 24px;
            flex-wrap: wrap;
            gap: 12px;
        }
        .results-title {
            font-weight: 700;
            font-size: 1.3rem;
        }
        .results-count {
            font-size: 0.85rem;
            color: var(--text-muted);
            margin-top: 2px;
        }
        .results-count strong { color: var(--accent); }

        .action-buttons {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }
        .btn-action {
            display: flex;
            align-items: center;
            gap: 7px;
            background: var(--bg-light);
            border: 1px solid var(--border-color);
            color: var(--primary-color);
            font-size: 0.85rem;
            font-weight: 600;
            padding: 5px 12px;
            border-radius: 50px;
            cursor: pointer;
            transition: border-color 0.2s, background 0.2s;
        }
        .btn-action:hover {
            border-color: var(--border-color);
            background: #D2E1F3;
            color: var(--primary-color);
        }
        .btn-action svg { width: 15px; height: 15px; }

        /* ── Category Tabs ────────────────────────────────────── */
        .category-tabs {
            display: flex;
            gap: 8px;
            margin-bottom: 24px;
            flex-wrap: wrap;
        }
        .cat-tab {
            background: var(--bg-light);
            border: 1px solid var(--border-color);
            color: var(--text-main);
            font-size: 0.82rem;
            font-weight: 500;
            padding: 7px 14px;
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.2s;
        }
        .cat-tab.active, .cat-tab:hover {
            border-color: var(--border-color);
            color: var(--primary-color);
        }

        /* ── Category Section ─────────────────────────────────── */
        .category-section { display: none; }
        .category-section.active { display: block; }

        .category-heading {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 16px;
        }
        .cat-badge {
            font-size: 0.72rem;
            font-weight: 600;
            color: var(--text-main);
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        .cat-count {
            margin-left: auto;
            background: var(--bg-light));
            color: var(--text-muted);
            font-size: 0.75rem;
            padding: 2px 10px;
            border-radius: 20px;
            border: 1px solid var(--border-color);
        }

        /* ── Backlink Table ───────────────────────────────────── */
        .backlink-table {
            width: 100%;
            border-collapse: collapse;
        }
        .backlink-table thead tr {
            border-bottom: 1px solid var(--border);
        }
        .backlink-table th {
            text-align: left;
            font-size: 0.72rem;
            font-weight: 600;
            color: var(--text-main);
            text-transform: uppercase;
            letter-spacing: 0.8px;
            padding: 8px 12px;
        }
        .backlink-table tbody tr {
            border-bottom: 1px solid rgba(255,255,255,0.03);
            animation: fadeSlide 0.3s ease both;
        }
        .backlink-table tbody tr:hover {
            background: rgba(255,255,255,0.02);
        }
        @keyframes fadeSlide {
            from { opacity: 0; transform: translateY(6px); }
            to   { opacity: 1; transform: translateY(0); }
        }
        .backlink-table td {
            padding: 12px 12px;
            font-size: 0.88rem;
            vertical-align: middle;
        }
        .site-name {
            font-weight: 500;
            white-space: nowrap;
        }
        .da-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 30px;
            height: 22px;
            border-radius: 4px;
            font-size: 0.75rem;
            font-weight: 700;
        }
        .da-high  { background: #2fb3444a; color: #2FB344; }
        .da-mid   { background: rgba(0,122,255,0.15); color: var(--accent2); }
        .da-low   { background: rgba(255,200,0,0.12); color: #ffc800; }

        .backlink-url {
            color: var(--text-muted);
            font-size: 0.8rem;
            word-break: break-all;
        }
        .backlink-url a {
            color: var(--text-main);
            text-decoration: none;
            transition: color 0.15s;
        }
        .backlink-url a:hover { color: var(--primary-color); text-decoration: underline; }

        .btn-submit {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            background: rgba(0,122,255,0.1);
            border: 1px solid rgba(0,122,255,0.25);
            color: var(--accent2);
            font-size: 0.78rem;
            font-weight: 500;
            padding: 5px 12px;
            border-radius: 6px;
            text-decoration: none;
            transition: background 0.2s;
            white-space: nowrap;
        }
        .btn-submit:hover {
            background: rgba(0,122,255,0.2);
        }

        /* ── Info Section ─────────────────────────────────────── */
        .info-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
            padding: 0 20px;
            margin-bottom: 60px;
        }
        .info-card {
            background: var(--bg-light);
            border: 1px solid var(--border-color);
            border-radius: 5px;
            padding: 1rem;
            box-shadow: var(--shadow1);
            text-align: center;
        }
        .info-icon {
            font-size: 1.6rem;
            margin-bottom: 14px;
        }
        .icon-bg {
            background: #2fb34438;
            padding: 12px;
            border-radius: 5px;
            color: #2FB344;
        }
        .info-card h2 {
            font-size: 1rem;
            font-weight: 700;
            margin-bottom: 8px;
        }
        .info-card p {
            color: var(--text-main);
            font-size: 13px;
        }

        /* ── How It Works ─────────────────────────────────────── */
        .section-head {
            text-align: center;
            margin-bottom: 36px;
        }
        .section-head h2 {
            font-weight: 700;
            font-size: 1.5rem;
            margin-bottom: 8px;
        }
        .section-head p { color: var(--text-main); }

        .steps-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
            gap: 1rem;
            margin-bottom: 60px;
            padding: 0 20px;
        }
        .step-card {
            border: 1px solid var(--border-color);
            text-align: center;
            position: relative;
            padding: 1rem;
            box-shadow: var(--shadow1);
        }
        .step-num {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 36px; height: 36px;
            background: #206bc459;
            border: 1px solid #206bc452;
            color: var(--primary-color);
            font-weight: 800;
            font-size: 1rem;
            border-radius: 50%;
            margin-bottom: 14px;
        }
        .step-card h3 {
            font-size: 0.9rem;
            font-weight: 600;
            margin-bottom: 8px;
        }
        .step-card p { font-size: 0.85rem; color: var(--text-main); }

        /* ── FAQ ──────────────────────────────────────────────── */
        .faq-list {
            padding: 0 20px;
        }
        .faq-item {
            background: var(--bg-light);
            border: 1px solid var(--border-color);
            border-radius: 5px;
            margin-bottom: 8px;
            overflow: hidden;
        }
        .faq-question {
            width: 100%;
            background: none;
            border: none;
            color: var(--text-main);
            font-size: 0.95rem;
            font-weight: 500;
            text-align: left;
            padding: 18px 20px;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: color 0.2s;
        }
        .faq-question:hover { color: var(--primary-color); }
        .faq-question .arrow {
            transition: transform 0.25s;
            color: var(--primary-color);
            font-size: 0.7rem;
        }
        .faq-question.open .arrow { transform: rotate(180deg); color: var(--primary-color); }
        .faq-answer {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease;
        }
        .faq-answer-inner {
            padding: 0 20px 18px;
            color: var(--text-main);
            font-size: 14px;
            line-height: 1.7;
        }

        /* ── Toast ────────────────────────────────────────────── */
        #toast {
            position: fixed;
            bottom: 24px;
            left: 50%;
            transform: translateX(-50%) translateY(80px);
            background: var(--primary-color);
            color: var(--bg-light);
            font-weight: 600;
            font-size: 0.9rem;
            padding: 12px 24px;
            border-radius: 100px;
            z-index: 9999;
            transition: transform 0.3s ease;
            white-space: nowrap;
        }
        #toast.show { transform: translateX(-50%) translateY(0); }

        /* ── Responsive ───────────────────────────────────────── */
        @media (max-width: 600px) {
            .hero { padding: 48px 0 32px; }
            .tool-card { padding: 24px 18px; }
            .input-group { flex-direction: column; }
            .btn-generate { width: 100%; justify-content: center; }
            .backlink-table th:nth-child(3),
            .backlink-table td:nth-child(3) { display: none; }
            h1 { font-size: 1.9rem; }
        }