﻿
    .llmc-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;
    }

    .llmc-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; }
    .llmc-content { position: relative; z-index: 1; }

    /* ---------- HERO ---------- */
    .llmc-hero { text-align: center; max-width: 760px; margin: 0 auto; padding: clamp(10px, 4vw, 30px) 0; }
    .llmc-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; }
    .llmc-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; }
    .llmc-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; }
    .llmc-hero-desc { font-size: 16.5px; color: var(--text-muted); line-height: 1.7; margin-bottom: 36px; }

    /* ---------- INPUT AREA ---------- */
    .cw-panel { background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 20px; overflow: hidden; margin-bottom: 30px; }
    .tab-headers { display: flex; border-bottom: 1px solid var(--border-color); background: var(--card-bg); padding: 0 12px; }
    .tab-btn-tool { flex: 1; background: transparent; border: none; border-bottom: 2px solid transparent; color: var(--text-muted); font-size: 14px; font-weight: 700; padding: 16px 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: 0.2s; }
    .tab-btn-tool:hover { color: var(--text-main); }
    .tab-btn-tool.active { color: var(--primary-color); border-bottom-color: var(--primary-color); }
    
    .tab-content { display: none; padding: 24px; }
    .tab-content.active { display: block; animation: fadeIn 0.4s ease; }
    
    .input-group { margin-bottom: 16px; }
    .input-lbl { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
    .preset-links { display: flex; gap: 10px; }
    .preset-link { color: var(--primary-color); font-size: 12px; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
    .preset-link:hover { text-decoration: underline; }
    
    .c-input { width: 100%; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px; padding: 14px 16px; font-size: 15px; color: var(--text-main); transition: 0.2s; font-family: 'Space Mono', monospace; }
    .c-input:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 4px var(--primary-light); }
    textarea.c-input { min-height: 160px; resize: vertical; line-height: 1.6; }
    
    .generate-btn { width: 100%; height: 52px; border-radius: 12px; border: none; color: #fff; background: linear-gradient(135deg, var(--primary-color), var(--primary-gradient-end)); font-size: 15px; font-weight: 800; cursor: pointer; transition: all 0.25s var(--ease-out); display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; }
    .generate-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 22px var(--primary-shadow); }
    .generate-btn:disabled { opacity: 0.5; cursor: not-allowed; }

    /* ---------- HISTORY SECTION ---------- */
    .llmc-history-section { background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 20px; padding: 24px; margin-bottom: 30px; }
    .llmc-history-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; }
    .llmc-history-title { font-size: 15px; font-weight: 800; color: var(--text-main); display: flex; align-items: center; gap: 8px; margin: 0; }
    .llmc-history-list { display: flex; flex-direction: column; gap: 10px; }
    .llmc-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; }
    .llmc-history-item:hover { border-color: var(--primary-color); transform: translateY(-1px); }
    .llmc-history-info { display: flex; align-items: center; gap: 10px; overflow: hidden; flex: 1; }
    .llmc-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; }
    .llmc-history-url { font-size: 13.5px; font-weight: 700; color: var(--text-main); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .llmc-history-meta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
    .llmc-history-score { font-size: 12px; font-weight: 800; font-family: 'Space Mono', monospace; padding: 2px 6px; border-radius: 4px; background: rgba(16,185,129,0.1); color: var(--success, #10b981); }
    .llmc-history-time { font-size: 12px; color: var(--text-muted); }
    .llmc-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; }
    .llmc-history-del:hover { color: #ef4444; background: rgba(239, 68, 68, 0.1); }

    /* ---------- LOADING STATE ---------- */
    .llmc-loading { text-align: center; padding: 40px 0; }
    .llmc-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); } }
    
    .llmc-thinking-log { list-style: none; margin: 0; padding: 0 10px; display: flex; flex-direction: column; gap: 12px; max-width: 400px; margin: 0 auto; }
    .llmc-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; }
    .llmc-thinking-log li.active { color: var(--text-main); font-weight: 700; }
    .llmc-thinking-log li.done { color: var(--text-muted); opacity: 0.6; }
    .llmc-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); }
    .llmc-thinking-log li.active .llmc-log-dot { border-color: var(--primary-color); color: var(--primary-color); }
    .llmc-thinking-log li.done .llmc-log-dot { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }

    /* ---------- RESULTS DASHBOARD ---------- */
    .llmc-result { animation: fadeIn 0.5s ease; }
    .llmc-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
    .llmc-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; }
    .llmc-btn-ghost:hover { border-color: var(--primary-color); color: var(--primary-color); }

    /* Result Navigation Tabs */
    .res-nav-tabs { display: flex; border-bottom: 1px solid var(--border-color); margin-bottom: 24px; gap: 8px; overflow-x: auto; }
    .res-nav-btn { background: transparent; border: none; border-bottom: 2px solid transparent; color: var(--text-muted); font-size: 14px; font-weight: 700; padding: 12px 18px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; transition: 0.2s; }
    .res-nav-btn:hover { color: var(--text-main); }
    .res-nav-btn.active { color: var(--primary-color); border-bottom-color: var(--primary-color); }

    /* Scorecard & Summary Banner */
    .scorecard-banner { background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 20px; padding: 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; flex-wrap: wrap; }
    .sb-left { display: flex; align-items: center; gap: 24px; }
    .score-circle { width: 90px; height: 90px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 4px solid var(--primary-color); background: var(--card-bg); flex-shrink: 0; }
    .score-num { font-size: 28px; font-weight: 900; font-family: 'Space Mono', monospace; line-height: 1; }
    .score-max { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; }
    .sb-info { display: flex; flex-direction: column; gap: 6px; }
    .sb-title { font-size: 20px; font-weight: 900; color: var(--text-main); margin: 0; }
    .sb-sub { font-size: 14px; color: var(--text-muted); margin: 0; max-width: 600px; line-height: 1.5; }
    .sb-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; padding: 6px 14px; border-radius: 100px; width: fit-content; }

    /* 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: 1px solid var(--border-color); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 10px; }
    .sc-lbl { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--text-muted); 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; }

    /* Data Table & Filter Dropdown */
    .table-controls { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
    .table-title { font-size: 15px; font-weight: 800; color: var(--text-main); display: flex; align-items: center; gap: 8px; margin: 0; }
    .data-table-wrap { background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 16px; overflow-x: auto; margin-bottom: 24px; }
    .data-table { width: 100%; border-collapse: collapse; text-align: left; }
    .data-table th, .data-table td { padding: 14px 18px; border-bottom: 1px solid var(--border-color); font-size: 14px; }
    .data-table th { font-size: 12.5px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; background: var(--card-bg); }
    .data-table tr:last-child td { border-bottom: none; }
    .link-tag { font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 6px; background: var(--card-bg); border: 1px solid var(--border-color); color: var(--text-main); }
    .target-url { font-family: 'Space Mono', monospace; font-size: 13px; color: var(--primary-color); word-break: break-all; }

    /* Custom Dropdown */
    .custom-dropdown { position: relative; width: 220px; }
    .cd-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 10px; cursor: pointer; transition: 0.2s; font-size: 13.5px; font-weight: 700; color: var(--text-main); }
    .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-body { position: absolute; top: calc(100% + 6px); left: 0; width: 100%; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); z-index: 50; display: none; max-height: 220px; overflow-y: auto; }
    .custom-dropdown.active .cd-body { display: block; animation: slideInDown 0.2s ease; }
    .cd-item { padding: 10px 14px; font-size: 13.5px; 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.active { background: var(--primary-color); color: #fff; font-weight: 700; }

    /* Diagnostic Action Cards */
    .diag-cards { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
    .diag-card { background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 16px; padding: 20px 24px; display: flex; flex-direction: column; gap: 10px; transition: 0.2s; }
    .diag-card:hover { border-color: var(--primary-color); }
    .diag-card.success { border-left: 4px solid var(--success, #10b981); }
    .diag-card.warning { border-left: 4px solid #f59e0b; }
    .diag-card.danger { border-left: 4px solid var(--danger, #ef4444); }
    .diag-card.info { border-left: 4px solid #3b82f6; }
    .diag-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
    .diag-title { font-size: 15.5px; font-weight: 800; color: var(--text-main); display: flex; align-items: center; gap: 8px; margin: 0; }
    .diag-badge { font-size: 11px; font-weight: 800; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; letter-spacing: 0.5px; }
    .diag-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin: 0; }
    .diag-fix { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--text-main); background: var(--card-bg); padding: 10px 14px; border-radius: 8px; border: 1px solid var(--border-color); }

    /* Raw Markdown View */
    .raw-wrapper { background: #1e1e24; border-radius: 16px; overflow: hidden; margin-bottom: 24px; border: 1px solid var(--border-color); }
    .raw-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; background: rgba(255,255,255,0.03); border-bottom: 1px solid rgba(255,255,255,0.08); }
    .raw-title { font-size: 13.5px; font-weight: 800; color: #a9b7c6; display: flex; align-items: center; gap: 8px; margin: 0; font-family: 'Space Mono', monospace; }
    .raw-code { color: #a9b7c6; font-family: 'Space Mono', monospace; font-size: 14px; padding: 20px; overflow-x: auto; white-space: pre-wrap; line-height: 1.7; tab-size: 4; margin: 0; }
    .act-btn { background: var(--bg-body); color: var(--text-main); border: 1px solid var(--border-color); border-radius: 8px; padding: 8px 14px; font-size: 13px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: 0.2s; }
    .act-btn:hover { border-color: var(--primary-color); color: var(--primary-color); }
    .act-btn.primary { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }
    .act-btn.primary:hover { transform: translateY(-1px); }

    /* ---------- 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-cpu::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 x="4" y="4" width="16" height="16" rx="2"/><rect x="9" y="9" width="6" height="6"/><line x1="9" y1="1" x2="9" y2="4"/><line x1="15" y1="1" x2="15" y2="4"/><line x1="9" y1="20" x2="9" y2="23"/><line x1="15" y1="20" x2="15" y2="23"/><line x1="20" y1="9" x2="23" y2="9"/><line x1="20" y1="14" x2="23" y2="14"/><line x1="1" y1="9" x2="4" y2="9"/><line x1="1" y1="14" x2="4" y2="14"/></svg>'); }
    .feat-icon-zap::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="13 2 3 14 12 14 11 22 21 10 12 10 13 2"/></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>'); }
    .feat-icon-code::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="16 18 22 12 16 6"/><polyline points="8 6 2 12 8 18"/></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="M15 7h3a5 5 0 0 1 5 5 5 5 0 0 1-5 5h-3m-6 0H6a5 5 0 0 1-5-5 5 5 0 0 1 5-5h3"/><line x1="8" y1="12" x2="16" y2="12"/></svg>'); }
    .feat-icon-lock::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 x="3" y="11" width="18" height="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/></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; }
        .scorecard-banner { flex-direction: column; align-items: flex-start; }
    }

    /* Floating Scroll-to-Top Button */
    .llmc-scroll-top-btn {
        position: fixed;
        bottom: 30px;
        right: 30px;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: var(--card-bg);
        border: 1.5px solid var(--border-color);
        color: var(--text-main);
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 99999;
        outline: none;
        animation: slideInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .llmc-scroll-top-btn:hover {
        background: var(--primary-color);
        color: #ffffff;
        border-color: var(--primary-color);
        transform: translateY(-4px) scale(1.08);
        box-shadow: 0 16px 32px var(--primary-shadow, rgba(239, 68, 68, 0.35));
    }
    .llmc-scroll-top-btn:active {
        transform: translateY(-1px) scale(0.96);
    }

    /* Smooth Scrolling on Content Containers */
    #page-content, .page-content, .llmc-wrapper, html {
        scroll-behavior: smooth;
    }