
    .kwe-wrapper {
        --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
        --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
        display: flex;
        justify-content: center;
        padding: clamp(0px, 5vw, 0px) 20px;
    }

    .kwe-panel {
        position: relative;                
        width: 100%;
        max-width: 1200px;
        border-radius: 28px;
        padding: clamp(28px, 5vw, 56px);
    }
    
    #bgCanvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.5; z-index: 0; }
    .kwe-content { position: relative; z-index: 1; }

    /* ---------- CONTROL BAR ---------- */
    .kwe-control-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 16px;
        flex-wrap: wrap;
        gap: 12px;
    }
    .kwe-ctrl-left { display: flex; align-items: center; gap: 10px; }
    .kwe-badge-tool {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 13px;
        font-weight: 800;
        color: var(--text-muted);
        background: var(--bg-body);
        border: 1px solid var(--border-color);
        padding: 6px 14px;
        border-radius: 10px;
    }
    .kwe-ctrl-right { display: flex; align-items: center; gap: 8px; }

    .dir-toggle-btn {
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        color: var(--text-main);
        padding: 6px 12px;
        border-radius: 8px;
        font-size: 12px;
        font-weight: 800;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 6px;
        transition: 0.2s;
    }
    .dir-toggle-btn:hover { border-color: var(--primary-color); color: var(--primary-color); }

    /* ---------- CUSTOM DROPDOWN (GeoService & N-Grams) ---------- */
    .custom-dropdown { position: relative; min-width: 140px; user-select: none; }
    .cd-header {
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 6px 12px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        font-size: 12px;
        font-weight: 700;
        color: var(--text-main);
        cursor: pointer;
        transition: 0.2s;
    }
    .cd-header:hover { border-color: var(--primary-color); }
    .custom-dropdown.active .cd-header { border-color: var(--primary-color); box-shadow: 0 0 0 3px var(--primary-light); }
    .cd-value { display: flex; align-items: center; gap: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    
    .cd-body {
        display: none;
        position: absolute;
        top: calc(100% + 4px);
        right: 0;
        width: 200px;
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
        padding: 8px;
        z-index: 100;
    }
    .custom-dropdown.active .cd-body { display: flex; flex-direction: column; gap: 6px; animation: slideInDown 0.2s cubic-bezier(0.16, 1, 0.3, 1); }
    
    .cd-search input { width: 100%; background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 8px; padding: 7px 10px; font-size: 12px; color: var(--text-main); outline: none; }
    .cd-search input:focus { border-color: var(--primary-color); }
    .cd-list { max-height: 200px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; list-style: none; margin: 0; padding: 0; }
    .cd-group-lbl { padding: 6px 10px 4px; font-size: 10px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; background: var(--bg-body); border-radius: 4px; margin-top: 4px; }
    .cd-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; font-size: 12px; font-weight: 700; color: var(--text-main); cursor: pointer; transition: background 0.2s; }
    .cd-item:hover { background: var(--bg-body); }
    .cd-item.active { background: var(--primary-light); color: var(--primary-color); }

    /* Filters Grid N-Gram Dropdown override */
    .filters-grid .custom-dropdown { width: 100%; }
    .filters-grid .cd-header { padding: 14px 16px; border-radius: 14px; font-size: 14px; }
    .filters-grid .cd-body { width: 100%; right: auto; left: 0; }

    /* ---------- INPUT AREA ---------- */
    .kwe-app-container {
        background: var(--bg-body);
        border: 1px solid var(--border-color);
        border-radius: 24px;
        padding: 24px;
        transition: all 0.3s var(--ease-out);
        margin-bottom: 24px;
        box-shadow: 0 12px 30px rgba(0,0,0,0.03);
    }
    .kwe-app-container:focus-within { border-color: var(--primary-color); box-shadow: 0 12px 40px var(--primary-shadow); }
    
    .mode-toggles { display: flex; gap: 8px; margin-bottom: 20px; background: var(--card-bg); padding: 6px; border-radius: 12px; border: 1px solid var(--border-color); display: inline-flex; }
    .mode-btn { background: transparent; border: none; padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 700; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; gap: 8px; transition: 0.2s; }
    .mode-btn:hover { color: var(--text-main); }
    .mode-btn.active { background: var(--bg-body); color: var(--primary-color); box-shadow: 0 2px 8px rgba(0,0,0,0.05); }

    .input-group { margin-bottom: 20px; display: flex; flex-direction: column; gap: 10px; }
    .input-label { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; color: var(--text-main); }
    .c-input { width: 100%; border: 1px solid var(--border-color); border-radius: 14px; background: var(--card-bg); padding: 16px; font-size: 15px; color: var(--text-main); outline: none; transition: 0.2s; font-family: 'Space Mono', monospace; }
    .c-input:focus { border-color: var(--primary-color); background: var(--bg-body); }
    textarea.c-input { min-height: 140px; resize: vertical; font-family: inherit; }

    .filters-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
    @media (max-width: 768px) { .filters-grid { grid-template-columns: 1fr; } }
    
    .search-btn { width: 100%; height: 56px; border-radius: 14px; border: none; color: #fff; background: linear-gradient(135deg, var(--primary-color), var(--primary-gradient-end)); display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 15.5px; font-weight: 800; cursor: pointer; transition: all 0.25s var(--ease-out); }
    .search-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 22px var(--primary-shadow); }
    .search-btn:disabled { opacity: 0.5; cursor: not-allowed; }

    /* ---------- HISTORY SECTION ---------- */
    .kwe-history-section { background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 20px; padding: 24px; margin-bottom: 30px; }
    .kwe-history-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; }
    .kwe-history-title { font-size: 15px; font-weight: 800; color: var(--text-main); display: flex; align-items: center; gap: 8px; margin: 0; }
    .kwe-history-list { display: flex; flex-direction: column; gap: 10px; }
    .kwe-history-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px; cursor: pointer; transition: 0.2s; gap: 12px; }
    .kwe-history-item:hover { border-color: var(--primary-color); transform: translateY(-1px); }
    .kwe-history-info { display: flex; align-items: center; gap: 10px; overflow: hidden; flex: 1; }
    .kwe-history-badge { font-size: 12px; font-weight: 800; padding: 4px 8px; border-radius: 6px; font-family: 'Space Mono', monospace; background: var(--primary-light); color: var(--primary-color); white-space: nowrap; }
    .kwe-history-url { font-size: 13.5px; font-weight: 700; color: var(--text-main); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .kwe-history-meta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
    .kwe-history-score { font-size: 12px; font-weight: 800; padding: 2px 6px; border-radius: 4px; font-family: 'Space Mono', monospace; background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
    .kwe-history-time { font-size: 12px; color: var(--text-muted); }
    .kwe-history-del { background: transparent; border: none; color: var(--text-muted); cursor: pointer; padding: 4px; border-radius: 6px; transition: 0.2s; display: flex; align-items: center; }
    .kwe-history-del:hover { color: #ef4444; background: rgba(239, 68, 68, 0.1); }
    
    .kwe-btn-ghost { background: transparent; border: 1px solid var(--border-color); border-radius: 10px; padding: 8px 16px; font-size: 13.5px; font-weight: 700; color: var(--text-muted); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s; }
    .kwe-btn-ghost:hover { border-color: var(--primary-color); color: var(--primary-color); }

    /* Results Topbar Actions */
    .kwe-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
    .kwe-topbar-actions { display: flex; align-items: center; gap: 10px; }
    .act-btn { background: var(--card-bg); border: 1px solid var(--border-color); color: var(--text-main); padding: 8px 16px; border-radius: 10px; font-size: 13.5px; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: 0.2s; }
    .act-btn:hover { border-color: var(--primary-color); color: var(--primary-color); }
    .act-btn.primary { background: var(--primary-light); border-color: var(--primary-color); color: var(--primary-color); }
    .act-btn.primary:hover { background: var(--primary-color); color: #fff; }

    /* ---------- LOADING STATE ---------- */
    .kwe-loading { text-align: center; padding: 40px 0; }
    .kwe-orb { width: 80px; height: 80px; border-radius: 50%; background: var(--bg-body); border: 2px solid var(--primary-light); margin: 0 auto 24px auto; display: flex; align-items: center; justify-content: center; color: var(--primary-color); font-size: 32px; box-shadow: 0 0 0 16px var(--primary-light); transition: all 0.3s; animation: pulse 2s infinite ease-in-out; }
    
    .kwe-thinking-log { list-style: none; margin: 0; padding: 0 10px; display: flex; flex-direction: column; gap: 12px; max-width: 420px; margin: 0 auto; }
    .kwe-thinking-log li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--text-muted); animation: slideInUp 0.4s ease forwards; }
    .kwe-thinking-log li.active { color: var(--text-main); font-weight: 700; }
    .kwe-thinking-log li.done { color: var(--text-muted); opacity: 0.6; }
    .kwe-log-dot { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border-color); display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
    .kwe-thinking-log li.active .kwe-log-dot { border-color: var(--primary-color); color: var(--primary-color); }
    .kwe-thinking-log li.done .kwe-log-dot { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }

    /* ---------- RESULTS DASHBOARD ---------- */
    .kwe-result { animation: fadeIn 0.5s ease; }
    
    .stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
    .sc { background: var(--bg-body); border-radius: 16px; padding: 20px; border: 1px solid var(--border-color); display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 10px; }
    .sc-lbl { font-size: 13px; font-weight: 700; color: var(--text-muted); display: flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
    .sc-val { font-size: 26px; font-weight: 900; color: var(--text-main); font-family: 'Space Mono', monospace; line-height: 1.2; }
    
    .b-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-bottom: 24px; }
    .i-card { background: var(--card-bg); border-radius: 20px; padding: 24px; border: 1px solid var(--border-color); display: flex; flex-direction: column; }
    .ic-title { font-size: 13.5px; font-weight: 800; color: var(--text-main); display: flex; align-items: center; gap: 8px; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 0.5px; }
    .chart-wrapper { position: relative; min-height: 250px; width: 100%; margin-top: auto; }

    /* Bulk Selection Bar */
    .kwe-bulk-bar {
        background: var(--bg-body);
        border: 1px solid var(--primary-color);
        border-radius: 14px;
        padding: 12px 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 16px;
        animation: fadeIn 0.2s ease;
        flex-wrap: wrap;
        gap: 12px;
    }
    .kbb-count { font-size: 14px; font-weight: 800; color: var(--primary-color); }
    .kbb-right { display: flex; align-items: center; gap: 8px; }

    /* Data Table Section */
    .results-section { background: var(--card-bg); border-radius: 20px; border: 1px solid var(--border-color); overflow: hidden; }
    .results-header { padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-color); background: var(--bg-body); flex-wrap: wrap; gap: 16px; }
    .rh-left { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
    .results-title { font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 8px; margin: 0; }
    
    .filter-pills { display: flex; align-items: center; gap: 6px; background: var(--card-bg); padding: 4px; border-radius: 10px; border: 1px solid var(--border-color); }
    .fp-btn { background: transparent; border: none; padding: 5px 12px; border-radius: 6px; font-size: 12px; font-weight: 700; color: var(--text-muted); cursor: pointer; transition: 0.2s; }
    .fp-btn:hover { color: var(--text-main); }
    .fp-btn.active { background: var(--primary-light); color: var(--primary-color); }

    .rh-right { display: flex; align-items: center; gap: 10px; }
    .dir-search-wrap { display: flex; align-items: center; gap: 6px; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 8px; padding: 6px 12px; }
    .dir-search-wrap input { background: transparent; border: none; outline: none; font-size: 12.5px; color: var(--text-main); width: 160px; }
    
    .data-table-wrap { overflow-x: auto; min-height: 220px; }
    .data-table { width: 100%; border-collapse: collapse; text-align: left; }
    .data-table th { padding: 16px; font-size: 12px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid var(--border-color); background: var(--bg-body); user-select: none; }
    .data-table td { padding: 14px 16px; border-bottom: 1px solid var(--border-color); font-size: 14px; font-weight: 600; vertical-align: middle; }
    .data-table tr:hover td { background: rgba(0,0,0,0.015); }
    .dark-mode .data-table tr:hover td { background: rgba(255,255,255,0.02); }
    .data-table tr.row-selected td { background: var(--primary-light); }
    .data-table tr:last-child td { border-bottom: none; }
    
    .data-table input[type="checkbox"], input[type="checkbox"] {
        accent-color: var(--primary-color);
        width: 16px;
        height: 16px;
        cursor: pointer;
        border-radius: 4px;
        vertical-align: middle;
    }
    
    .kw-badge { background: var(--bg-body); border: 1px solid var(--border-color); padding: 6px 12px; border-radius: 8px; display: inline-block; font-size: 13.5px; font-weight: 700; color: var(--text-main); font-family: 'Space Mono', monospace; }
    
    .density-bar-wrap { width: 100%; height: 6px; background: var(--bg-body); border-radius: 10px; overflow: hidden; margin-left: 12px; flex: 1; min-width: 60px; }
    .density-bar-fill { height: 100%; border-radius: 10px; transition: width 0.5s; }
    .density-bar-fill.good { background: #22c55e; }
    .density-bar-fill.warn { background: #f59e0b; }
    .density-bar-fill.bad { background: #ef4444; }

    .status-pill { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 6px; font-family: 'Space Mono', monospace; display: inline-block; }
    .status-pill.good { background: rgba(34,197,94,0.1); color: #22c55e; }
    .status-pill.warn { background: rgba(245,158,11,0.1); color: #f59e0b; }
    .status-pill.bad { background: rgba(239,68,68,0.1); color: #ef4444; }

    .btn-copy-kw {
        background: var(--bg-body);
        border: 1px solid var(--border-color);
        color: var(--text-muted);
        border-radius: 8px;
        width: 32px;
        height: 32px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: 0.2s;
    }
    .btn-copy-kw:hover {
        border-color: var(--primary-color);
        color: var(--primary-color);
        background: var(--card-bg);
    }

    /* ---------- PAGINATION CONTROLS (Sitemap Generator pattern) ---------- */
    .ws-pagination {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 16px;
        padding: 16px 24px;
        border-top: 1px solid var(--border-color);
        background: var(--bg-body);
        user-select: none;
    }
    .ws-pagination-left {
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: 13.5px;
        color: var(--text-muted);
        font-weight: 700;
    }
    .ws-page-size-wrap {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .page-size-dropdown {
        position: relative;
        display: inline-block;
        user-select: none;
    }
    .psd-trigger {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 5px 12px;
        font-size: 13px;
        font-weight: 700;
        color: var(--text-main);
        cursor: pointer;
        transition: all 0.2s ease;
        outline: none;
    }
    .psd-trigger:hover {
        border-color: var(--primary-color);
        color: var(--primary-color);
    }
    .page-size-dropdown.active .psd-trigger {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px var(--primary-light);
    }
    .psd-menu {
        display: none;
        position: absolute;
        bottom: calc(100% + 6px);
        left: 0;
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: 10px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
        z-index: 100;
        min-width: 140px;
        overflow: hidden;
    }
    .page-size-dropdown.active .psd-menu {
        display: block;
        animation: slideInUp 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .psd-list {
        max-height: 180px;
        overflow-y: auto;
        padding: 4px;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    .psd-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 7px 10px;
        border-radius: 6px;
        font-size: 12.5px;
        font-weight: 600;
        color: var(--text-main);
        cursor: pointer;
        transition: 0.15s;
    }
    .psd-item:hover {
        background: var(--primary-light);
        color: var(--primary-color);
    }
    .psd-item.active {
        background: var(--primary-color);
        color: #fff;
    }

    .ws-pagination-right {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .page-btn {
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 6px 14px;
        font-size: 13px;
        font-weight: 700;
        color: var(--text-main);
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        transition: all 0.2s ease;
        outline: none;
    }
    .page-btn:hover:not(:disabled) {
        border-color: var(--primary-color);
        color: var(--primary-color);
        transform: translateY(-1px);
        box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    }
    .page-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }
    .ws-page-indicator {
        font-size: 13px;
        font-weight: 800;
        color: var(--text-main);
        padding: 0 8px;
    }

    /* Floating Scroll to Top */
    .kwe-scroll-top-btn {
        position: fixed;
        bottom: 30px;
        right: 30px;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        color: var(--primary-color);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 6px 20px rgba(0,0,0,0.15);
        z-index: 999;
        transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .kwe-scroll-top-btn:hover {
        transform: translateY(-4px);
        background: var(--primary-color);
        color: #fff;
        border-color: var(--primary-color);
    }

    /* RTL Support */
    .rtl-mode { direction: rtl; text-align: right; }
    .rtl-mode .c-input { text-align: left; direction: ltr; }
    .rtl-mode textarea.c-input { text-align: right; direction: rtl; }
    .rtl-mode .kwe-ctrl-left { flex-direction: row-reverse; }
    .rtl-mode .cd-body { right: auto; left: 0; }
    .rtl-mode .density-bar-wrap { margin-left: 0; margin-right: 12px; }
    .rtl-mode .data-table { text-align: right; }
    .rtl-mode .psd-menu { left: auto; right: 0; }

    /* Custom Scrollbar */
    .custom-scroll::-webkit-scrollbar { width: 5px; height: 5px; }
    .custom-scroll::-webkit-scrollbar-track { background: transparent; }
    .custom-scroll::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }
    .custom-scroll::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

    /* ---------- BENTO BOX FEATURES ---------- */
    .console-features { margin-top: 40px; width: 100%; }
    .bento-features-cluster { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(130px, auto); gap: 20px; width: 100%; position: relative; z-index: 2; }
    .bento-card { background: rgba(255, 255, 255, 0.015); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--border-color); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; align-items: flex-start; position: relative; overflow: hidden; transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: 0 4px 20px rgba(0,0,0,0.02); }
    
    .bento-card::before {
        content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
        width: 150px; height: 150px; background-size: contain; background-repeat: no-repeat; background-position: center;
        opacity: 0.03; transition: all 0.5s ease; pointer-events: none; z-index: 0;
    }
    .bento-card:hover::before { opacity: 0.08; transform: translate(-50%, -50%) scale(1.1); }
    .dark-mode .bento-card::before { filter: invert(1); opacity: 0.05; }
    
    .feat-icon-layers::before { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="12 2 2 7 12 12 22 7 12 2"/><polyline points="2 17 12 22 22 17"/><polyline points="2 12 12 17 22 12"/></svg>'); }
    .feat-icon-filter::before { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"/></svg>'); }
    .feat-icon-link::before { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"/><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/></svg>'); }
    .feat-icon-percent::before { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="19" y1="5" x2="5" y2="19"/><circle cx="6.5" cy="6.5" r="2.5"/><circle cx="17.5" cy="17.5" r="2.5"/></svg>'); }
    .feat-icon-chart::before { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="20" x2="18" y2="10"/><line x1="12" y1="20" x2="12" y2="4"/><line x1="6" y1="20" x2="6" y2="14"/></svg>'); }
    .feat-icon-download::before { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" y1="15" x2="12" y2="3"/></svg>'); }

    .bento-card::after { content: ''; position: absolute; inset: 0; border-radius: 24px; background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 100%); pointer-events: none; }
    .bento-card:hover { transform: translateY(-4px) scale(1.01); border-color: var(--primary-color); box-shadow: 0 12px 30px rgba(0,0,0,0.06); }
    .bento-card-content { position: relative; z-index: 1; display: flex; flex-direction: column; height: 100%; gap: 12px; }
    
    .dashed-ring-wrapper { position: relative; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px; width: 44px; height: 44px; }
    .dashed-ring-wrapper::after { content: ''; position: absolute; top: -5px; left: -5px; right: -5px; bottom: -5px; border: 1px dashed var(--border-color); border-radius: 16px; opacity: 0.5; transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); z-index: 0; transform-origin: center center; }
    .bento-card:hover .dashed-ring-wrapper::after { opacity: 1; transform: scale(1.1) rotate(180deg); border-color: var(--primary-color); }
    .bc-icon-wrapper { width: 44px; height: 44px; border-radius: 12px; background: var(--bg-body); border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: all 0.4s ease; margin-bottom: 0; position: relative; z-index: 1; }
    .bento-card:hover .bc-icon-wrapper { background: linear-gradient(135deg, var(--primary-color), var(--border-color)); color: white; border-color: transparent; transform: scale(1.1) rotate(4deg); }
    .bc-title { font-size: 16px; font-weight: 800; color: var(--text-main); margin: 0; }
    .bc-desc { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; margin: 0; font-weight: 500; }
    
    @keyframes slideInDown {
        from { opacity: 0; transform: translateY(-8px); }
        to { opacity: 1; transform: translateY(0); }
    }
    @keyframes slideInUp {
        from { opacity: 0; transform: translateY(8px); }
        to { opacity: 1; transform: translateY(0); }
    }

    @media (max-width: 900px) {
        .bento-features-cluster { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 600px) {
        .bento-features-cluster { grid-template-columns: 1fr; }
        .rh-left, .rh-right { width: 100%; justify-content: space-between; }
        .dir-search-wrap { width: 100%; }
        .dir-search-wrap input { width: 100%; }
        .ws-pagination { flex-direction: column; align-items: flex-start; }
    }

    /* Zero-Inline Enhancements */
    .dir-toggle-btn i { width: 13px; height: 13px; }
    .cd-value i, .cd-item i { width: 14px; height: 14px; color: var(--text-muted); }
    .cd-header i { width: 13px; height: 13px; }
    .input-label i.text-info { color: var(--info, #3b82f6); }
    .input-label i.text-primary { color: var(--primary-color); }
    .input-label i.text-warning { color: var(--warning, #f59e0b); }
    .input-hint { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
    .kwe-history-title i { color: var(--primary-color); }
    .kwe-btn-ghost.btn-xs { padding: 4px 10px; font-size: 12px; }
    .kwe-btn-ghost.btn-xs i { width: 12px; height: 12px; }
    .kwe-btn-ghost.btn-sm { padding: 6px 12px; font-size: 12px; }
    .kwe-history-del i { width: 14px; height: 14px; }
    .kwe-log-dot i.spinner { animation: spin 2s linear infinite; }
    .api-err { text-align: center; }
    .api-err .ae-icon-wrap { width: 64px; height: 64px; border-radius: 16px; background: rgba(239, 68, 68, 0.1); color: #ef4444; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
    .api-err .ae-icon-wrap i { width: 30px; height: 30px; }
    .api-err h3 { font-size: 24px; font-weight: 900; text-align: center; color: var(--text-main); margin-bottom: 12px; }
    .api-err p { font-size: 15px; color: var(--text-muted); line-height: 1.6; max-width: 500px; margin: 0 auto 24px; text-align: center; }
    .sc-lbl i.text-primary { color: var(--primary-color); }
    .sc-lbl i.text-blue { color: #3b82f6; }
    .sc-lbl i.text-green { color: #10b981; }
    .sc-lbl i.text-amber { color: #f59e0b; }
    .sc-val.val-sm { font-size: 18px; word-break: break-all; }
    .ic-title i.text-blue { color: #3b82f6; }
    .ic-title i.text-green { color: #10b981; }
    .act-btn i { width: 13px; height: 13px; }
    .results-title i { color: var(--info, #3b82f6); }
    .dir-search-wrap i { width: 14px; height: 14px; color: var(--text-muted); }
    .dir-clear-btn { background: transparent; border: none; cursor: pointer; color: var(--text-muted); display: flex; align-items: center; }
    .dir-clear-btn i { width: 12px; height: 12px; }
    th.th-cb { width: 40px; text-align: center; }
    th.th-idx { width: 60px; text-align: center; }
    th.th-sort { cursor: pointer; }
    th.th-center { text-align: center; }
    th.th-sort .th-inner { display: flex; align-items: center; gap: 6px; }
    th.th-center .th-inner { display: flex; align-items: center; justify-content: center; gap: 6px; }
    th.th-sort i { width: 12px; height: 12px; }
    th.th-act { text-align: center; width: 70px; }
    td.td-cb { text-align: center; }
    td.td-idx { text-align: center; font-family: 'Space Mono', monospace; font-size: 12px; color: var(--text-muted); }
    td.td-len { text-align: center; font-weight: 700; color: var(--text-muted); }
    td.td-count { text-align: center; font-family: 'Space Mono', monospace; font-size: 15px; font-weight: 800; }
    td.td-center { text-align: center; }
    td.td-act { text-align: center; }
    .dens-row { display: flex; align-items: center; }
    .dens-val { font-family: 'Space Mono', monospace; font-weight: 800; width: 50px; }
    .btn-copy-kw i { width: 14px; height: 14px; }
    .empty-data-box { padding: 40px; text-align: center; color: var(--text-muted); font-weight: 700; }
    .empty-data-box i { width: 40px; height: 40px; margin-bottom: 12px; opacity: 0.5; }
    .ws-dot { opacity: 0.4; }
    .psd-trigger i { width: 13px; height: 13px; transition: transform 0.2s ease; }
    .psd-item i { width: 12px; height: 12px; }
    .page-btn i { width: 16px; height: 16px; }
    .kwe-scroll-top-btn i { width: 20px; height: 20px; }