﻿
    .sct-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;
    }

    .sct-panel {
        position: relative;                
        width: 100%;
        max-width: 1200px;
        border-radius: 28px;
        padding: clamp(28px, 5vw, 56px);
        overflow: hidden;
    }
    
    #bgCanvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.5; z-index: 0; }
    .sct-content { position: relative; z-index: 1; }

    /* ---------- HERO ---------- */
    .sct-hero { text-align: center; max-width: 760px; margin: 0 auto; padding: clamp(10px, 4vw, 30px) 0; }
    .sct-hero-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; letter-spacing: 0.3px; color: var(--primary-color); background: var(--primary-light); padding: 7px 16px; border-radius: 100px; margin-bottom: 22px; }
    .sct-hero-title { font-size: clamp(30px, 4.4vw, 44px); font-weight: 900; line-height: 1.15; letter-spacing: -0.025em; color: var(--text-main); margin-bottom: 16px; }
    .sct-hero-title em { font-style: normal; background: linear-gradient(120deg, var(--primary-color), var(--primary-gradient-end)); -webkit-background-clip: text; background-clip: text; color: transparent; }
    .sct-hero-desc { font-size: 16.5px; color: var(--text-muted); line-height: 1.7; margin-bottom: 36px; }

    /* ---------- INPUT AREA ---------- */
    .sct-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);
    }
    .sct-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 auto 1fr; gap: 20px; align-items: center; margin-bottom: 20px; }
    @media (max-width: 768px) { .compare-inputs { grid-template-columns: 1fr; } .vs-badge { margin: 10px auto; } }
    
    .input-group { display: flex; flex-direction: column; gap: 10px; width: 100%; }
    .input-label { display: flex; align-items: center; gap: 8px; font-size: 14px; 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-family: 'Space Mono', monospace; }
    .c-input:focus { border-color: var(--primary-color); background: var(--bg-body); }
    
    .vs-badge { background: var(--card-bg); border: 1px solid var(--border-color); color: var(--text-muted); width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 900; font-size: 14px; z-index: 2; margin-top: 24px; font-family: 'Space Mono', monospace; }

    .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); margin-top: 20px; }
    .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 ---------- */
    .sct-history-section { background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 20px; padding: 24px; margin-bottom: 30px; }
    .sct-history-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; }
    .sct-history-title { font-size: 15px; font-weight: 800; color: var(--text-main); display: flex; align-items: center; gap: 8px; margin: 0; }
    .sct-history-list { display: flex; flex-direction: column; gap: 10px; }
    .sct-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; }
    .sct-history-item:hover { border-color: var(--primary-color); transform: translateY(-1px); }
    .sct-history-info { display: flex; align-items: center; gap: 10px; overflow: hidden; flex: 1; }
    .sct-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; }
    .sct-history-url { font-size: 13.5px; font-weight: 700; color: var(--text-main); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .sct-history-meta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
    .sct-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; }
    .sct-history-time { font-size: 12px; color: var(--text-muted); }
    .sct-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; }
    .sct-history-del:hover { color: #ef4444; background: rgba(239, 68, 68, 0.1); }
    .sct-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; }
    .sct-btn-ghost:hover { border-color: var(--primary-color); color: var(--primary-color); }

    /* ---------- LOADING STATE ---------- */
    .sct-loading { text-align: center; padding: 40px 0; }
    .sct-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; }
    
    .sct-thinking-log { list-style: none; margin: 0; padding: 0 10px; display: flex; flex-direction: column; gap: 12px; max-width: 420px; margin: 0 auto; }
    .sct-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; }
    .sct-thinking-log li.active { color: var(--text-main); font-weight: 700; }
    .sct-thinking-log li.done { color: var(--text-muted); opacity: 0.6; }
    .sct-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); }
    .sct-thinking-log li.active .sct-log-dot { border-color: var(--primary-color); color: var(--primary-color); }
    .sct-thinking-log li.done .sct-log-dot { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }

    /* ---------- RESULTS DASHBOARD ---------- */
    .sct-result { animation: fadeIn 0.5s ease; }
    .sct-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }

    /* Winner Banner */
    .winner-banner { background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05)); border: 1px solid rgba(34, 197, 94, 0.2); border-radius: 20px; padding: 24px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
    .winner-banner.tie-banner { background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05)); border-color: rgba(59, 130, 246, 0.2); }
    .wb-title { font-size: 18px; font-weight: 900; color: var(--text-main); display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
    .wb-url { font-size: 14.5px; color: var(--text-muted); font-family: 'Space Mono', monospace; }
    .wb-score { font-size: 32px; font-weight: 900; color: var(--success, #10b981); font-family: 'Space Mono', monospace; }
    .tie-banner .wb-score { color: var(--info, #3b82f6); }
    @media (max-width: 600px) { .winner-banner { flex-direction: column; text-align: center; gap: 16px; } }

    /* Stats Strip (VS Pattern) */
    .stats-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 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: center; text-align: center; }
    .sc-lbl { font-size: 13px; font-weight: 700; color: var(--text-muted); display: flex; align-items: center; gap: 8px; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
    .sc-vs-row { display: flex; align-items: center; gap: 16px; width: 100%; justify-content: space-between; }
    .sc-val-box { display: flex; flex-direction: column; align-items: center; flex: 1; }
    .sc-val { font-size: 24px; font-weight: 900; color: var(--text-main); line-height: 1; transition: 0.3s; padding: 6px 14px; border-radius: 10px; font-family: 'Space Mono', monospace; }
    .sc-val.winner { background: rgba(34, 197, 94, 0.15); color: #16a34a; }
    .sc-val.loser { background: rgba(239, 68, 68, 0.1); color: #dc2626; opacity: 0.6; }
    .sc-sub { font-size: 11px; font-weight: 800; color: var(--text-muted); margin-top: 8px; text-transform: uppercase; letter-spacing: 1px; }
    .sc-divider { width: 1px; height: 30px; background: var(--border-color); }

    /* Tabs Panel */
    .ws-panel { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 20px; overflow: hidden; margin-bottom: 30px; }
    .tabs-header-tool { 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); }
    .tab-content { padding: 24px; }

    /* VS Rows Layout */
    .vs-container { display: flex; flex-direction: column; gap: 16px; }
    .vs-row { background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
    .vs-header { background: var(--card-bg); padding: 14px 20px; font-size: 13px; font-weight: 800; color: var(--text-main); border-bottom: 1px solid var(--border-color); display: flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
    .vs-cols { display: flex; }
    .vs-col { flex: 1; padding: 20px; }
    .vs-col:first-child { border-right: 1px solid var(--border-color); }
    @media (max-width: 600px) { .vs-cols { flex-direction: column; } .vs-col:first-child { border-right: none; border-bottom: 1px solid var(--border-color); } }
    .vs-col-title { font-size: 12px; font-weight: 800; color: var(--text-muted); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px; display: flex; align-items: center; justify-content: space-between; }
    .vs-val { font-size: 14.5px; color: var(--text-main); line-height: 1.6; word-break: break-word; }
    .vs-val.code { font-family: 'Space Mono', monospace; font-size: 13px; background: var(--card-bg); padding: 12px; border-radius: 10px; border: 1px solid var(--border-color); }

    .status-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 6px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }
    .status-badge.pass { background: rgba(34, 197, 94, 0.15); color: #16a34a; }
    .status-badge.warn { background: rgba(245, 158, 11, 0.15); color: #d97706; }
    .status-badge.fail { background: rgba(239, 68, 68, 0.15); color: #dc2626; }

    /* Keyword Bars */
    .kw-bar-wrap { width: 100%; height: 6px; background: var(--border-color); border-radius: 10px; overflow: hidden; margin-top: 6px; }
    .kw-bar-fill { height: 100%; background: var(--primary-color); border-radius: 10px; transition: width 0.5s ease; }

    /* ---------- 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-compare::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="18" cy="18" r="3"/><circle cx="6" cy="6" r="3"/><path d="M13 6h3a2 2 0 0 1 2 2v7"/><path d="M11 18H8a2 2 0 0 1-2-2V9"/></svg>'); }
    .feat-icon-key::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 2-2 2m-1.5 1.5L14 9l-3-3L8 9l-4 4v5h5l4-4 3-3 3.5-3.5z"/></svg>'); }
    .feat-icon-trophy::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="M6 9H4.5a2.5 2.5 0 0 1 0-5H6"/><path d="M18 9h1.5a2.5 2.5 0 0 0 0-5H18"/><path d="M4 22h16"/><path d="M10 14.66V17c0 .55-.45 1-1 1H7c-.55 0-1 .45-1 1v1h12v-1c0-.55-.45-1-1-1h-2c-.55 0-1-.45-1-1v-2.34"/><path d="M18 2H6v7a6 6 0 0 0 12 0V2z"/></svg>'); }
    .feat-icon-side::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"/><path d="M12 3v18"/></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-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; }
    
    @media (max-width: 900px) {
        .bento-features-cluster { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 600px) {
        .bento-features-cluster { grid-template-columns: 1fr; }
    }

    /* ---------- CONTROL BAR & DROPDOWN ---------- */
    .sct-control-bar {
        max-width: 800px;
        margin: 0 auto 16px auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
        z-index: 50;
        flex-wrap: wrap;
        gap: 12px;
    }
    .sct-ctrl-left { display: flex; align-items: center; gap: 8px; }
    .sct-badge-tool { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
    .sct-ctrl-right { display: flex; align-items: center; gap: 10px; }

    .dir-toggle-btn {
        display: flex;
        align-items: center;
        gap: 6px;
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 6px 10px;
        font-size: 11.5px;
        font-weight: 800;
        color: var(--text-main);
        cursor: pointer;
        transition: 0.2s;
    }
    .dir-toggle-btn:hover { border-color: var(--primary-color); color: var(--primary-color); }

    /* ---------- CUSTOM DROPDOWN ---------- */
    .custom-dropdown { position: relative; display: inline-block; user-select: none; }
    .cd-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        padding: 7px 14px;
        border-radius: 10px;
        font-size: 12.5px;
        font-weight: 800;
        color: var(--text-main);
        cursor: pointer;
        transition: all 0.2s;
        min-width: 130px;
    }
    .cd-header:hover, .custom-dropdown.active .cd-header { border-color: var(--primary-color); box-shadow: 0 0 0 2px var(--primary-light); }
    .cd-value { display: flex; align-items: center; gap: 8px; }
    .cd-body {
        position: absolute;
        top: calc(100% + 6px);
        right: 0;
        width: 220px;
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: 14px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.12);
        padding: 8px;
        z-index: 100;
        opacity: 0;
        visibility: hidden;
        transition: all 0.2s;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    .custom-dropdown.active .cd-body { opacity: 1; visibility: visible; }
    .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; }
    .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: 7px 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); }

    .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;
    }

    .badge-cms {
        background: var(--primary-light);
        color: var(--primary-color);
        padding: 3px 8px;
        border-radius: 6px;
        font-size: 12px;
        font-weight: 800;
        font-family: 'Space Mono', monospace;
    }

    /* Floating Scroll to Top */
    .sct-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);
    }
    .sct-scroll-top-btn:hover {
        transform: translateY(-4px);
        background: var(--primary-color);
        color: #fff;
        border-color: var(--primary-color);
    }

    /* ---------- COMPETITIVE INSIGHTS SUMMARY ---------- */
    .insights-summary-grid {
        display: grid;
        grid-template-columns: 1fr 0.8fr 1fr;
        gap: 16px;
        margin-bottom: 24px;
    }
    @media (max-width: 900px) {
        .insights-summary-grid { grid-template-columns: 1fr; }
    }
    .insight-box {
        background: var(--bg-body);
        border: 1px solid var(--border-color);
        border-radius: 16px;
        padding: 20px;
        display: flex;
        flex-direction: column;
    }
    .insight-box.win-a { border-left: 4px solid var(--success, #10b981); }
    .insight-box.win-b { border-left: 4px solid var(--primary-color); }
    .insight-box.ties { border-left: 4px solid var(--border-color); }
    .ib-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
    .ib-header h4 { margin: 0; font-size: 15px; font-weight: 800; color: var(--text-main); }
    .ib-badge {
        font-size: 11px;
        font-weight: 900;
        padding: 3px 8px;
        border-radius: 6px;
        background: rgba(16, 185, 129, 0.15);
        color: var(--success, #10b981);
        font-family: 'Space Mono', monospace;
    }
    .ib-badge.competitor {
        background: var(--primary-light);
        color: var(--primary-color);
    }
    .ib-badge.neutral {
        background: rgba(150, 150, 150, 0.12);
        color: var(--text-muted);
    }
    .ib-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--text-main); }
    .ib-list li { display: flex; align-items: center; gap: 8px; line-height: 1.4; }
    .ib-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin: 0; }
    .ib-empty { font-size: 12.5px; color: var(--text-muted); font-style: italic; padding: 8px 0; }

    /* ---------- SOCIAL PREVIEW MOCKUP ---------- */
    .social-preview-card {
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        overflow: hidden;
        margin-top: 6px;
        max-width: 480px;
    }
    .sp-img-box {
        width: 100%;
        height: 160px;
        background: var(--bg-body);
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }
    .sp-img-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .sp-img-box.empty {
        color: var(--text-muted);
        font-size: 12px;
        gap: 6px;
    }
    .sp-content { padding: 12px 14px; }
    .sp-domain { font-size: 11px; text-transform: uppercase; color: var(--text-muted); font-weight: 700; margin-bottom: 4px; }
    .sp-title { font-size: 14px; font-weight: 800; color: var(--text-main); line-height: 1.3; margin-bottom: 4px; }
    .sp-desc { font-size: 12px; color: var(--text-muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

    /* ---------- HEADINGS HIERARCHY TREE ---------- */
    .headings-tree-list {
        max-height: 380px;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        gap: 6px;
        padding-right: 6px;
    }
    .tree-node {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 6px 10px;
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        font-size: 12.5px;
        transition: 0.15s;
    }
    .tree-node:hover { border-color: var(--primary-color); }
    .tree-node.level-h1 { border-left: 3px solid var(--primary-color); font-weight: 800; }
    .tree-node.level-h2 { margin-left: 12px; border-left: 3px solid #3b82f6; font-weight: 700; }
    .tree-node.level-h3 { margin-left: 24px; border-left: 3px solid #f59e0b; font-size: 12px; color: var(--text-muted); }
    .tree-node.level-h4 { margin-left: 36px; border-left: 3px solid #8b5cf6; font-size: 11.5px; color: var(--text-muted); }
    .tree-tag {
        font-size: 10px;
        font-weight: 900;
        padding: 2px 6px;
        border-radius: 4px;
        background: var(--bg-body);
        color: var(--text-muted);
        font-family: 'Space Mono', monospace;
    }
    .tree-text {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex: 1;
        color: var(--text-main);
    }

    /* ---------- KEYWORD GAP ENGINE ---------- */
    .kg-section { display: flex; flex-direction: column; gap: 16px; }
    .kg-card {
        background: var(--bg-body);
        border: 1px solid var(--border-color);
        border-radius: 16px;
        padding: 20px;
    }
    .kg-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
    .kg-header h4 { font-size: 15px; font-weight: 800; color: var(--text-main); margin: 0 0 4px 0; }
    .kg-header p { font-size: 12.5px; color: var(--text-muted); margin: 0; }
    .kg-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--card-bg); border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
    .kg-chips-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
    .kg-chip {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 6px 12px;
        border-radius: 10px;
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        font-size: 12.5px;
        font-weight: 700;
        color: var(--text-main);
    }
    .kg-chip.gap {
        border-color: rgba(239, 68, 68, 0.3);
        background: rgba(239, 68, 68, 0.05);
    }
    .chip-count {
        font-size: 11px;
        padding: 2px 6px;
        border-radius: 4px;
        background: rgba(239, 68, 68, 0.15);
        color: #ef4444;
        font-family: 'Space Mono', monospace;
    }

    .kg-table-wrap { overflow-x: auto; }
    .kg-table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; }
    .kg-table th { background: var(--card-bg); padding: 10px 14px; font-size: 11.5px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid var(--border-color); }
    .kg-table td { padding: 12px 14px; border-bottom: 1px solid var(--border-color); color: var(--text-main); }
    .kg-table tr:last-child td { border-bottom: none; }

    /* ---------- DOMAIN PILLS & SCHEMAS ---------- */
    .domain-pills-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
    .domain-pills-list li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-family: 'Space Mono', monospace; padding: 6px 10px; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-main); }
    .schema-tags-wrap { display: flex; flex-wrap: wrap; gap: 6px; }
    .schema-pill { font-size: 11.5px; font-weight: 800; padding: 4px 10px; border-radius: 6px; background: rgba(59, 130, 246, 0.1); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.2); font-family: 'Space Mono', monospace; }
    .hreflang-list { display: flex; flex-wrap: wrap; gap: 6px; }

    /* 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); }