﻿
    .lc-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;
    }

    .lc-panel {
        position: relative;                
        width: 100%;
        max-width: 1100px;
        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; }
    .lc-content { position: relative; z-index: 1; }

    /* ---------- HERO ---------- */
    .lc-hero { text-align: center; max-width: 700px; margin: 0 auto; padding: clamp(10px, 4vw, 30px) 0; }
    .lc-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; }
    .lc-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; }
    .lc-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; }
    .lc-hero-desc { font-size: 16.5px; color: var(--text-muted); line-height: 1.7; margin-bottom: 36px; }

    /* ---------- INPUT AREA ---------- */
    .lc-app-container {
        background: var(--bg-body);
        border: 2px solid var(--border-color);
        border-radius: 24px;
        padding: 24px;
        transition: all 0.3s var(--ease-out);
        margin-bottom: 24px;
    }
    .lc-app-container:focus-within { border-color: var(--primary-color); background: var(--card-bg); box-shadow: 0 0 0 6px var(--primary-light); }
    
    .search-box-start { display: flex; gap: 16px; }
    @media (max-width: 768px) { .search-box-start { flex-direction: column; } }
    
    .search-input-wrap { flex: 1; position: relative; display: flex; align-items: center; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px; padding: 0 20px; transition: 0.2s; }
    .search-input-wrap:focus-within { border-color: var(--primary-color); box-shadow: 0 0 0 4px var(--primary-light); }
    .search-input { width: 100%; height: 56px; border: none; background: transparent; padding-left: 12px; font-size: 16px; color: var(--text-main); outline: none; }
    .search-btn { height: 56px; padding: 0 32px; border-radius: 12px; border: none; color: #fff; background: linear-gradient(135deg, var(--primary-color), var(--primary-gradient-end)); font-size: 16px; font-weight: 800; cursor: pointer; transition: all 0.25s var(--ease-out); white-space: nowrap; display: flex; align-items: center; justify-content: center; gap: 8px; }
    .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; }

    /* ---------- LOADING STATE ---------- */
    .lc-loading { text-align: center; padding: 40px 0; }
    .lc-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; }
    @keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--primary-light); } 70% { box-shadow: 0 0 0 20px rgba(0,0,0,0); } 100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); } }
    
    .lc-thinking-log { list-style: none; margin: 0; padding: 0 10px; display: flex; flex-direction: column; gap: 14px; max-width: 400px; margin: 0 auto; }
    .lc-thinking-log li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--text-muted); animation: slideInUp 0.4s ease forwards; }
    .lc-thinking-log li.active { color: var(--text-main); font-weight: 700; }
    .lc-thinking-log li.done { color: var(--text-muted); opacity: 0.7; }
    .lc-log-dot { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--border-color); display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: all 0.3s; }
    .lc-log-dot span { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
    .lc-thinking-log li.active .lc-log-dot { border-color: var(--primary-color); color: var(--primary-color); background: rgba(99, 102, 241, 0.08); }
    .lc-thinking-log li.done .lc-log-dot { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }

    /* ---------- RESULTS DASHBOARD ---------- */
    .lc-result { animation: fadeIn 0.5s ease; }
    .lc-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 30px; flex-wrap: wrap; }
    .lc-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; }
    .lc-btn-ghost:hover { border-color: var(--primary-color); color: var(--primary-color); }

    /* Stats Strip */
    .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: center; text-align: center; }
    .sc.c-indigo .sc-lbl i { color: #6366f1; }
    .sc.c-blue .sc-lbl i { color: var(--info); }
    .sc.c-purple .sc-lbl i { color: #a855f7; }
    .sc.c-red .sc-lbl i { color: var(--primary-color); }
    .sc-val { font-size: 20px; font-weight: 900; color: var(--text-main); line-height: 1.2; margin-top: 12px; transition: transform 0.3s; }
    .sc-lbl { font-size: 14px; font-weight: 700; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }

    /* Charts Grid & Panels */
    .charts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-bottom: 24px; }
    .glass-panel { background: var(--card-bg); border-radius: 20px; padding: 24px; border: 1px solid var(--border-color); }
    .panel-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
    .panel-title { font-size: 15px; font-weight: 800; color: var(--text-main); display: flex; align-items: center; gap: 8px; }
    .chart-wrapper { position: relative; height: 250px; width: 100%; display: flex; align-items: center; justify-content: center; }

    /* Filter Tabs */
    .filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
    .f-tab { background: transparent; border: 1px solid var(--border-color); color: var(--text-muted); padding: 8px 16px; border-radius: 10px; font-size: 13px; font-weight: 700; cursor: pointer; transition: 0.2s; white-space: nowrap; }
    .f-tab:hover { border-color: var(--primary-color); color: var(--primary-color); }
    .f-tab.active { background: var(--primary-color); border-color: var(--primary-color); color: white; }

    /* Data Table */
    .table-container { background: rgba(0,0,0,0.015); border-radius: 12px; border: 1px solid var(--border-color); overflow-x: auto; max-height: 500px; }
    .dark-mode .table-container { background: rgba(255,255,255,0.015); }
    .custom-scroll::-webkit-scrollbar { width: 6px; height: 6px; }
    .custom-scroll::-webkit-scrollbar-track { background: transparent; }
    .custom-scroll::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 10px; }
    
    .data-table { width: 100%; border-collapse: collapse; text-align: left; }
    .data-table th { position: sticky; top: 0; background: var(--card-bg); font-size: 12px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; padding: 12px 16px; border-bottom: 1px solid var(--border-color); z-index: 10; }
    .data-table td { padding: 12px 16px; font-size: 14px; border-bottom: 1px solid var(--border-color); color: var(--text-main); vertical-align: top; }
    .data-table tbody tr:hover { background: rgba(0,0,0,0.01); }
    .dark-mode .data-table tbody tr:hover { background: rgba(255,255,255,0.02); }
    
    /* Badges */
    .badge { display: inline-block; padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }
    .badge.internal { background: rgba(59, 130, 246, 0.1); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.2); }
    .badge.external { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; border: 1px solid rgba(139, 92, 246, 0.2); }
    .badge.warning { background: rgba(245, 158, 11, 0.1); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.2); }
    .badge.error { background: rgba(239, 68, 68, 0.1); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.2); }
    .badge.dofollow { background: rgba(16, 185, 129, 0.1); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.2); }
    .badge.nofollow { background: rgba(239, 68, 68, 0.1); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.2); }

    .link-text { font-weight: 700; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
    .link-text.empty-text { font-style: italic; color: #ef4444; }
    .link-url { font-family: 'Space Mono', monospace; font-size: 12px; color: var(--text-muted); display: block; word-break: break-all; text-decoration: none; }
    .link-url:hover { color: var(--primary-color); }

    /* ---------- HISTORY SECTION ---------- */
    .lc-history-section { background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 20px; padding: 24px; margin-top: 30px; }
    .lc-history-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; }
    .lc-history-title { font-size: 15px; font-weight: 800; color: var(--text-main); display: flex; align-items: center; gap: 8px; margin: 0; }
    .lc-history-list { display: flex; flex-direction: column; gap: 10px; }
    .lc-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; }
    .lc-history-item:hover { border-color: var(--primary-color); transform: translateY(-1px); }
    .lc-history-info { display: flex; align-items: center; gap: 10px; overflow: hidden; flex: 1; }
    .lc-history-badge { font-size: 12px; font-weight: 800; padding: 4px 8px; border-radius: 6px; font-family: 'Space Mono', monospace; white-space: nowrap; }
    .lc-history-url { font-size: 13.5px; font-weight: 700; color: var(--text-main); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .lc-history-meta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
    .lc-history-time { font-size: 12px; color: var(--text-muted); }
    .lc-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; }
    .lc-history-del:hover { color: #ef4444; background: rgba(239, 68, 68, 0.1); }

    /* Modal Overlay */
    .overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); z-index: 1000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s; padding: 20px; }
    .overlay.show { opacity: 1; pointer-events: auto; }
    .dialog { background: var(--card-bg); width: 100%; max-width: 600px; border-radius: 20px; border: 1px solid var(--border-color); box-shadow: 0 20px 40px rgba(0,0,0,0.2); transform: translateY(20px); transition: transform 0.3s; display: flex; flex-direction: column; max-height: 90vh; }
    .overlay.show .dialog { transform: translateY(0); }
    .dialog-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border-color); }
    .dialog-title { font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 8px; margin: 0; }
    .dialog-content { padding: 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 20px; }
    
    .code-box { position: relative; background: rgba(0,0,0,0.03); border: 1px solid var(--border-color); padding: 16px; border-radius: 12px; font-family: 'Space Mono', monospace; font-size: 13px; line-height: 1.6; word-break: break-all; }
    .dark-mode .code-box { background: rgba(255,255,255,0.03); }
    .copy-btn { position: absolute; top: 12px; right: 12px; background: var(--card-bg); border: 1px solid var(--border-color); color: var(--text-muted); padding: 6px; border-radius: 6px; cursor: pointer; transition: 0.2s; display: flex; align-items: center; justify-content: center; }
    .copy-btn:hover { color: var(--primary-color); border-color: var(--primary-color); }

    /* ---------- BENTO BOX FEATURES ---------- */
    .console-features { margin-top: 50px; 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; }
    
    .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; }
    }