    .kcp-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;
    }

    .kcp-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; }
    .kcp-content { position: relative; z-index: 1; }

    /* ---------- CONTROL BAR & MODE TABS ---------- */
    .kcp-control-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 18px;
        margin-bottom: 20px;
        border-bottom: 1px solid var(--border-color);
        flex-wrap: wrap;
        gap: 12px;
    }
    .kcp-cb-left { display: flex; align-items: center; gap: 10px; }
    .kcp-cb-right { display: flex; align-items: center; gap: 10px; }

    .mode-tabs {
        display: flex;
        align-items: center;
        gap: 6px;
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        padding: 4px;
        border-radius: 14px;
    }
    .mode-tab-btn {
        background: transparent;
        border: none;
        padding: 8px 16px;
        border-radius: 10px;
        font-size: 13px;
        font-weight: 700;
        color: var(--text-muted);
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 8px;
        transition: 0.2s;
    }
    .mode-tab-btn:hover { color: var(--text-main); }
    .mode-tab-btn.active {
        background: var(--primary-light);
        color: var(--primary-color);
    }

    /* Custom Dropdown (GeoService) */
    .custom-dropdown { position: relative; }
    .cd-header {
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 8px 14px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        font-size: 13.5px;
        font-weight: 700;
        color: var(--text-main);
        transition: 0.2s;
        user-select: none;
        gap: 8px;
    }
    .cd-header:hover { border-color: var(--primary-color); }
    .cd-current { display: flex; align-items: center; gap: 8px; }
    .cd-chevron { transition: transform 0.25s ease; color: var(--text-muted); }
    .custom-dropdown.active .cd-chevron { transform: rotate(180deg); }
    
    .cd-body {
        display: none;
        position: absolute;
        top: calc(100% + 6px);
        right: 0;
        min-width: 200px;
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: 14px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        z-index: 100;
        overflow: hidden;
    }
    .custom-dropdown.active .cd-body {
        display: flex;
        flex-direction: column;
        animation: slideInDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .cd-search { padding: 8px 10px; border-bottom: 1px solid var(--border-color); background: var(--bg-body); }
    .cd-search input {
        width: 100%;
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 6px 10px;
        font-size: 12px;
        color: var(--text-main);
        outline: none;
    }
    .cd-list { max-height: 200px; overflow-y: auto; padding: 6px; }
    .cd-group-label { font-size: 11px; font-weight: 800; color: var(--text-muted); padding: 4px 8px; text-transform: uppercase; letter-spacing: 0.5px; }
    .cd-divider { height: 1px; background: var(--border-color); margin: 4px 0; }
    .cd-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 7px 10px;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 600;
        color: var(--text-main);
        cursor: pointer;
        transition: 0.15s;
    }
    .cd-item:hover { background: var(--primary-light); color: var(--primary-color); }
    .cd-item.selected { background: var(--primary-light); color: var(--primary-color); font-weight: 800; }
    .cd-code { font-size: 10.5px; font-family: 'Space Mono', monospace; opacity: 0.6; font-weight: 700; }

    /* RTL / LTR Toggle Button */
    .btn-icon-toggle {
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 8px 12px;
        font-size: 12.5px;
        font-weight: 800;
        color: var(--text-muted);
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        transition: 0.2s;
    }
    .btn-icon-toggle:hover { border-color: var(--primary-color); color: var(--primary-color); }

    /* ---------- INPUT AREA ---------- */
    .kcp-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: 0 auto 30px;
        max-width: 900px;
        box-shadow: 0 12px 30px rgba(0,0,0,0.03);
    }
    .kcp-app-container:focus-within { border-color: var(--primary-color); box-shadow: 0 12px 40px var(--primary-shadow); }
    
    .compare-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
    @media (max-width: 768px) { .compare-inputs { grid-template-columns: 1fr; } }
    
    .input-group { display: flex; flex-direction: column; gap: 8px; }
    .input-label { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 800; color: var(--text-main); }
    
    .c-input { width: 100%; height: 52px; border: 1px solid var(--border-color); border-radius: 14px; background: var(--card-bg); padding: 0 16px; font-size: 15px; color: var(--text-main); outline: none; transition: 0.2s; font-weight: 500; font-family: 'Space Mono', monospace; }
    .c-input:focus { border-color: var(--primary-color); background: var(--bg-body); }
    .c-input::placeholder { color: var(--text-muted); opacity: 0.6; }
    .input-wrap.required-border .c-input, .input-wrap.required-border .c-textarea { border-color: rgba(239, 68, 68, 0.4); }
    .input-wrap.required-border .c-input:focus, .input-wrap.required-border .c-textarea:focus { border-color: var(--primary-color); }

    .c-textarea {
        width: 100%;
        min-height: 140px;
        border: 1px solid var(--border-color);
        border-radius: 14px;
        background: var(--card-bg);
        padding: 14px 16px;
        font-size: 14.5px;
        color: var(--text-main);
        outline: none;
        transition: 0.2s;
        font-weight: 500;
        line-height: 1.6;
        resize: vertical;
        font-family: inherit;
    }
    .c-textarea:focus { border-color: var(--primary-color); background: var(--bg-body); }
    .c-textarea::placeholder { color: var(--text-muted); opacity: 0.6; }

    .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: 10px; 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 ---------- */
    .kcp-history-section { background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 20px; padding: 24px; margin-bottom: 30px; }
    .kcp-history-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; }
    .kcp-history-title { font-size: 15px; font-weight: 800; color: var(--text-main); display: flex; align-items: center; gap: 8px; margin: 0; }
    .kcp-history-list { display: flex; flex-direction: column; gap: 10px; }
    .kcp-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; }
    .kcp-history-item:hover { border-color: var(--primary-color); transform: translateY(-1px); }
    .kcp-history-info { display: flex; align-items: center; gap: 10px; overflow: hidden; flex: 1; }
    .kcp-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; }
    .kcp-history-url { font-size: 13.5px; font-weight: 700; color: var(--text-main); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .kcp-mode-tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 100px; background: rgba(59, 130, 246, 0.1); color: #3b82f6; white-space: nowrap; }
    .kcp-history-meta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
    .kcp-history-score { font-size: 12px; font-weight: 800; padding: 2px 6px; border-radius: 4px; font-family: 'Space Mono', monospace; }
    .kcp-history-time { font-size: 12px; color: var(--text-muted); }
    .kcp-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; }
    .kcp-history-del:hover { color: #ef4444; background: rgba(239, 68, 68, 0.1); }
    .kcp-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; }
    .kcp-btn-ghost:hover { border-color: var(--primary-color); color: var(--primary-color); }

    /* ---------- LOADING STATE ---------- */
    .kcp-loading { text-align: center; padding: 40px 0; }
    .kcp-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; }
    
    .kcp-thinking-log { list-style: none; margin: 0; padding: 0 10px; display: flex; flex-direction: column; gap: 12px; max-width: 420px; margin: 0 auto; }
    .kcp-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; }
    .kcp-thinking-log li.active { color: var(--text-main); font-weight: 700; }
    .kcp-thinking-log li.done { color: var(--text-muted); opacity: 0.6; }
    .kcp-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); }
    .kcp-thinking-log li.active .kcp-log-dot { border-color: var(--primary-color); color: var(--primary-color); }
    .kcp-thinking-log li.done .kcp-log-dot { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }

    /* ---------- RESULTS DASHBOARD ---------- */
    .kcp-result { animation: fadeIn 0.5s ease; }
    .kcp-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
    .kcp-top-actions { display: flex; align-items: center; gap: 10px; }

    .stats-strip { 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; }

    .ws-panel { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 20px; overflow: hidden; margin-bottom: 30px; }
    .tabs-header { display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-bottom: 1px solid var(--border-color); background: var(--bg-body); overflow-x: auto; }
    .tab-btn-tool { background: transparent; border: none; padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 700; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; gap: 8px; transition: 0.2s; white-space: nowrap; }
    .tab-btn-tool:hover { color: var(--text-main); }
    .tab-btn-tool.active { background: var(--card-bg); color: var(--primary-color); box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
    .act-btn { color: var(--text-muted);background: var(--card-bg); border: 1px solid var(--border-color); padding: 8px 16px; border-radius: 10px; font-size: 13.5px; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: 0.2s; }
    .act-btn:hover { border-color: var(--primary-color); color: var(--primary-color); }

    /* Score Ring */
    .score-container { display: flex; flex-direction: column; align-items: center; padding: 36px 20px 24px; border-bottom: 1px solid var(--border-color); background: var(--bg-body); }
    .score-ring { position: relative; width: 180px; height: 180px; }
    .score-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
    .score-bg { fill: none; stroke: var(--border-color); stroke-width: 10; }
    .score-fill { fill: none; stroke-width: 10; stroke-linecap: round; stroke-dasharray: 565.48; transition: stroke-dashoffset 1s ease-out, stroke 0.5s; }
    .score-text { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
    .score-num { font-size: 48px; font-weight: 900; line-height: 1; font-family: 'Space Mono', monospace; transition: color 0.5s; }
    .score-lbl { font-size: 11px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }
    .kw-badge { margin-top: -15px; background: var(--card-bg); border: 1px solid var(--border-color); padding: 6px 18px; border-radius: 100px; font-size: 14px; font-weight: 800; color: var(--text-main); z-index: 2; font-family: 'Space Mono', monospace; }

    /* Google SERP Snippet Preview Card */
    .serp-preview-section {
        padding: 24px;
        background: var(--card-bg);
        border-bottom: 1px solid var(--border-color);
    }
    .sps-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; flex-wrap: wrap; gap: 10px; }
    .sps-title { font-size: 14px; font-weight: 800; color: var(--text-main); display: flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
    .serp-device-toggle { display: flex; background: var(--bg-body); border: 1px solid var(--border-color); padding: 3px; border-radius: 10px; gap: 4px; }
    .sdt-btn { background: transparent; border: none; padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 700; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; gap: 6px; transition: 0.2s; }
    .sdt-btn.active { background: var(--card-bg); color: var(--text-main); box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
    
    .serp-box {
        background: var(--bg-body);
        border: 1px solid var(--border-color);
        border-radius: 16px;
        padding: 20px;
        transition: 0.3s;
        max-width: 650px;
    }
    .serp-box.mobile { max-width: 400px; border-radius: 20px; }
    .serp-topline { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
    .serp-favicon { width: 24px; height: 24px; border-radius: 50%; background: var(--card-bg); border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
    .serp-domain-wrap { display: flex; flex-direction: column; font-size: 12px; line-height: 1.3; overflow: hidden; }
    .serp-domain { font-weight: 700; color: var(--text-main); }
    .serp-breadcrumb { color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .serp-headline { font-size: 18px; font-weight: 700; color: #1a0dab; line-height: 1.3; margin-bottom: 6px; cursor: pointer; }
    .dark-mode .serp-headline { color: #8ab4f8; }
    .serp-snippet { font-size: 13.5px; color: var(--text-muted); line-height: 1.55; }
    :deep(.kw-hl) { background: rgba(255, 0, 51, 0.15); color: var(--primary-color); font-weight: 900; padding: 2px 4px; border-radius: 4px; }

    /* Content Placement Timeline / Heatmap */
    .heatmap-section {
        padding: 24px;
        background: var(--card-bg);
        border-bottom: 1px solid var(--border-color);
    }
    .hm-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
    .hm-title { font-size: 14px; font-weight: 800; color: var(--text-main); display: flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
    .hm-verdict { font-size: 12.5px; font-weight: 800; color: var(--primary-color); background: var(--primary-light); padding: 4px 12px; border-radius: 100px; }
    
    .hm-zones-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
    @media (max-width: 768px) { .hm-zones-grid { grid-template-columns: repeat(2, 1fr); } }
    .hm-zone-card { background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
    .hm-zone-lbl { font-size: 12px; font-weight: 700; color: var(--text-muted); }
    .hm-zone-val { font-size: 18px; font-weight: 900; color: var(--text-main); font-family: 'Space Mono', monospace; }
    .hm-zone-bar { width: 100%; height: 6px; background: var(--border-color); border-radius: 10px; overflow: hidden; }
    .hm-zb-fill { height: 100%; background: linear-gradient(90deg, var(--primary-color), var(--primary-gradient-end)); border-radius: 10px; transition: width 0.8s ease; }

    /* Charts Section */
    .b-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; padding: 24px; background: var(--card-bg); }
    .i-card { display: flex; flex-direction: column; background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 16px; padding: 20px; }
    .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; }

    /* Filter & Search Bar in Details */
    .detail-filter-bar {
        padding: 16px 24px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid var(--border-color);
        background: var(--bg-body);
        flex-wrap: wrap;
        gap: 12px;
    }
    .filter-pills { display: flex; align-items: center; gap: 6px; background: var(--card-bg); padding: 4px; border-radius: 10px; border: 1px solid var(--border-color); flex-wrap: wrap; }
    .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); }

    .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; }

    /* Audit Grid */
    .results-grid { display: flex; flex-direction: column; gap: 12px; padding: 24px; background: var(--card-bg); }
    .audit-item { background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 16px; overflow: hidden; transition: 0.3s; }
    .audit-item:hover { border-color: var(--primary-color); }
    .audit-header { display: flex; align-items: flex-start; gap: 16px; padding: 20px; cursor: pointer; user-select: none; }
    .ai-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; margin-top: 2px; }
    .ai-icon.pass { background: #22c55e; box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3); }
    .ai-icon.warn { background: #f59e0b; box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3); }
    .ai-icon.fail { background: #ef4444; box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3); }
    .ai-icon.info { background: #3b82f6; box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); }
    .ai-title-wrap { flex: 1; }
    .ai-title { font-size: 16px; font-weight: 800; color: var(--text-main); display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
    .ai-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
    .ai-chevron { transition: transform 0.3s; color: var(--text-muted); }
    .audit-item.expanded .ai-chevron { transform: rotate(180deg); }
    
    .ai-details { padding: 0 20px 20px 80px; display: none; }
    .audit-item.expanded .ai-details { display: block; animation: fadeIn 0.4s ease; }
    
    .detail-block { background: var(--card-bg); border-radius: 12px; padding: 16px; border: 1px solid var(--border-color); }
    .db-title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
    .code-box { background: rgba(0,0,0,0.03); border-radius: 8px; padding: 12px; font-family: 'Space Mono', monospace; font-size: 13px; color: var(--text-main); line-height: 1.6; word-break: break-word; border: 1px solid rgba(0,0,0,0.05); margin-bottom: 8px; }
    .dark-mode .code-box { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.05); }
    .code-box.c-red { border-left: 3px solid #ef4444; }

    /* Secondary Keywords Table */
    .secondary-table-wrap { overflow-x: auto; padding: 24px; background: var(--card-bg); }
    .data-table { width: 100%; border-collapse: collapse; text-align: left; }
    .data-table th { padding: 14px 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); }
    .data-table td { padding: 14px 16px; border-bottom: 1px solid var(--border-color); font-size: 14px; 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); }
    
    .badge-status { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 800; font-family: 'Space Mono', monospace; }
    .badge-status.pass { background: rgba(16, 185, 129, 0.1); color: #10b981; }
    .badge-status.warn { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
    .badge-status.fail { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
    .badge-status.neutral { background: rgba(148, 163, 184, 0.1); color: var(--text-muted); }

    /* Recommendations Tab */
    .recs-container { padding: 24px; display: flex; flex-direction: column; gap: 24px; background: var(--card-bg); }
    .recs-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
    .recs-title { font-size: 16px; font-weight: 800; color: var(--text-main); margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
    .recs-desc { font-size: 13.5px; color: var(--text-muted); margin: 0; }
    
    .rec-group { display: flex; flex-direction: column; gap: 12px; }
    .rec-group-title { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; display: flex; align-items: center; gap: 6px; }
    .rec-group-title.high { color: #ef4444; }
    .rec-group-title.medium { color: #f59e0b; }
    .rec-group-title.good { color: #10b981; }

    .rec-card { background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
    .rec-card.high { border-left: 4px solid #ef4444; }
    .rec-card.medium { border-left: 4px solid #f59e0b; }
    .rec-card.good { border-left: 4px solid #10b981; }
    
    .rc-top { display: flex; justify-content: space-between; align-items: center; }
    .rc-title { font-size: 15px; font-weight: 800; color: var(--text-main); }
    .rc-badge { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 6px; text-transform: uppercase; }
    .rc-badge.high { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
    .rc-badge.medium { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
    .rc-badge.good { background: rgba(16, 185, 129, 0.1); color: #10b981; }
    .rc-desc { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; margin: 0; }
    .rc-action { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--primary-color); background: var(--primary-light); padding: 8px 12px; border-radius: 10px; margin-top: 4px; }

    .empty-state-box {
        padding: 40px 20px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    /* RTL Mode Adjustments */
    .rtl-mode { direction: rtl; text-align: right; }
    .rtl-mode .kcp-cb-left, .rtl-mode .kcp-cb-right { flex-direction: row-reverse; }
    .rtl-mode .cd-body { right: auto; left: 0; }
    .rtl-mode .ai-details { padding: 0 80px 20px 20px; }
    .rtl-mode .code-box.c-red { border-left: none; border-right: 3px solid #ef4444; }
    .rtl-mode .rec-card.high { border-left: 1px solid var(--border-color); border-right: 4px solid #ef4444; }
    .rtl-mode .rec-card.medium { border-left: 1px solid var(--border-color); border-right: 4px solid #f59e0b; }
    .rtl-mode .rec-card.good { border-left: 1px solid var(--border-color); border-right: 4px solid #10b981; }

    /* ---------- 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-target::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"><circle cx="12" cy="12" r="10"/><circle cx="12" cy="12" r="6"/><circle cx="12" cy="12" r="2"/></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-hl::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="m9 11-6 6v3h3l6-6"/><path d="m22 2-7.5 7.5a2.12 2.12 0 0 1-3 0l-3-3a2.12 2.12 0 0 1 0-3L16 2z"/></svg>'); }
    .feat-icon-image::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"><rect width="18" height="18" x="3" y="3" rx="2" ry="2"/><circle cx="9" cy="9" r="2"/><path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"/></svg>'); }
    .feat-icon-activity::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"><polyline points="22 12 18 12 15 21 9 3 6 12 2 12"/></svg>'); }
    .feat-icon-shield::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="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/><path d="m9 12 2 2 4-4"/></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); }
    }

    @media (max-width: 900px) {
        .bento-features-cluster { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 600px) {
        .bento-features-cluster { grid-template-columns: 1fr; }
    }

    /* Zero-Inline Enhancements */
    .custom-dropdown.lang-dd { min-width: 170px; }
    .cd-current i { color: var(--primary-color); }
    .input-label i.text-info { color: var(--info, #3b82f6); }
    .input-label i.text-primary { color: var(--primary-color); }
    .input-label i.text-success { color: #10b981; }
    .input-label i.text-purple { color: #8b5cf6; }
    .input-group.mb-sm { margin-bottom: 14px; }
    .secondary-input-row.mb-md { margin-bottom: 20px; }
    .kcp-history-title i { color: var(--primary-color); }
    .kcp-btn-ghost.btn-xs { padding: 4px 10px; font-size: 12px; }
    .kcp-btn-ghost.btn-xs i { width: 12px; height: 12px; }
    .kcp-history-del i { width: 14px; height: 14px; }
    .kcp-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; }
    .api-err .error-hint { font-size: 13px; color: var(--text-muted); text-align: center; }
    .sc-lbl i.text-indigo { color: #6366f1; }
    .sc-lbl i.text-purple { color: #a855f7; }
    .sc-lbl i.text-success { color: var(--success, #10b981); }
    .score-msg { margin-top: 20px; color: var(--text-muted); text-align: center; max-width: 600px; font-size: 15px; line-height: 1.6; }
    .sps-title i { color: #4285f4; }
    .sdt-btn i { width: 13px; height: 13px; }
    .serp-favicon i { width: 12px; height: 12px; color: #4285f4; }
    .hm-title i { color: var(--primary-color); }
    .ic-title i.text-indigo { color: #6366f1; }
    .ic-title i.text-green { color: #22c55e; }
    .dir-search-wrap i { width: 13px; height: 13px; color: var(--text-muted); }
    .db-title i { width: 12px; height: 12px; }
    .snippets-list { display: flex; flex-direction: column; gap: 8px; }
    .empty-state-box i { width: 32px; height: 32px; color: var(--text-muted); margin-bottom: 10px; }
    .empty-state-box p { color: var(--text-muted); font-weight: 600; font-size: 14px; }
    td.td-idx { font-family: 'Space Mono', monospace; font-size: 12px; color: var(--text-muted); }
    td.td-count { font-weight: 800; font-family: 'Space Mono', monospace; }
    td.td-density { font-weight: 700; font-family: 'Space Mono', monospace; }
    .badge-status i { width: 12px; height: 12px; }
    .recs-title i { color: var(--primary-color); }