
    .smg-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;
    }

    .smg-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; }
    .smg-content { position: relative; z-index: 1; }

    /* ---------- INPUT AREA ---------- */
    .search-box-start { background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 20px; padding: 12px; display: flex; flex-direction: column; gap: 12px; max-width: 800px; margin: 0 auto; position: relative; z-index: 10; box-shadow: 0 12px 30px rgba(0,0,0,0.03); transition: all 0.3s; }
    .search-box-start:focus-within { border-color: var(--primary-color); box-shadow: 0 12px 40px var(--primary-shadow); }
    
    .search-input-wrap { display: flex; align-items: center; gap: 12px; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 14px; padding: 0 20px; height: 60px; transition: 0.2s; }
    .search-input-wrap:focus-within { border-color: var(--primary-color); background: var(--bg-body); }
    .search-input { flex: 1; height: 100%; border: none; background: transparent; font-size: 16px; color: var(--text-main); font-weight: 500; font-family: 'Space Mono', monospace; outline: none; }
    .search-input::placeholder { color: var(--text-muted); opacity: 0.6; }
    
    .search-btn { height: 60px; border-radius: 14px; 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); display: flex; align-items: center; justify-content: center; gap: 8px; position: relative; overflow: hidden; }
    .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; }
    
    .scratch-btn { background: transparent; border: 1px solid var(--border-color); color: var(--text-main); height: 60px; border-radius: 14px; padding: 0 24px; font-size: 15px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: 0.2s; white-space: nowrap; }
    .scratch-btn:hover { background: var(--bg-body); border-color: var(--primary-color); color: var(--primary-color); }
    
    @media(min-width: 768px) {
        .search-box-start { flex-direction: row; padding: 12px; border-radius: 100px; align-items: center; max-width: 1000px; }
        .search-input-wrap { flex: 1; border: none; background: transparent; height: 50px; padding: 0 16px; }
        .search-input-wrap:focus-within { border: none; background: transparent; }
        .search-btn { height: 50px; padding: 0 32px; border-radius: 100px; min-width: 160px; }
        .scratch-btn { height: 50px; border-radius: 100px; }
    }

    /* Segmented Mode Selector Bar */
    .smg-mode-selector {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: var(--bg-body);
        border: 1px solid var(--border-color);
        border-radius: 100px;
        padding: 5px;
        flex-wrap: wrap;
        justify-content: center;
        box-shadow: inset 0 2px 4px rgba(0,0,0,0.03);
    }
    .smg-mode-btn {
        background: transparent;
        border: 1px solid transparent;
        border-radius: 100px;
        padding: 8px 18px;
        font-size: 13.5px;
        font-weight: 700;
        color: var(--text-muted);
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        transition: all 0.25s var(--ease-out);
    }
    .smg-mode-btn:hover {
        color: var(--text-main);
    }
    .smg-mode-btn.active {
        background: var(--card-bg);
        color: var(--text-main);
        border-color: var(--border-color);
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    }
    .dark-mode .smg-mode-btn.active {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.15);
    }
    .smg-mode-badge {
        font-size: 11.5px;
        font-weight: 800;
        padding: 3px 10px;
        border-radius: 100px;
        background: var(--primary-light);
        color: var(--primary-color);
        font-family: 'Space Mono', monospace;
    }
    .smg-mode-badge.highlight {
        background: rgba(99, 102, 241, 0.12);
        color: #6366f1;
    }

    /* ---------- LOADING STATE ---------- */
    .smg-loading { text-align: center; padding: 40px 0; }
    .smg-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); } }
    
    .smg-thinking-log { list-style: none; margin: 0; padding: 0 10px; display: flex; flex-direction: column; gap: 14px; max-width: 400px; margin: 0 auto; }
    .smg-thinking-log li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--text-muted); animation: slideInUp 0.4s ease forwards; }
    .smg-thinking-log li.active { color: var(--text-main); font-weight: 700; }
    .smg-thinking-log li.done { color: var(--text-muted); opacity: 0.7; }
    .smg-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; }
    .smg-log-dot span { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
    .smg-thinking-log li.active .smg-log-dot { border-color: var(--primary-color); color: var(--primary-color); background: rgba(99, 102, 241, 0.08); }
    .smg-thinking-log li.done .smg-log-dot { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }

    /* ---------- RESULTS DASHBOARD ---------- */
    .smg-result { animation: fadeIn 0.5s ease; }
    .smg-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 30px; flex-wrap: wrap; }
    .smg-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; }
    .smg-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; }

    .act-btn { background: var(--bg-body); color: var(--text-main); border: 1px solid var(--border-color); border-radius: 8px; padding: 8px 16px; font-size: 13.5px; font-weight: 700; cursor: pointer; display: 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(-2px); box-shadow: 0 4px 12px var(--primary-shadow); }

    /* Workspace Panel */
    .ws-panel { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 20px; overflow: visible; display: flex; flex-direction: column; }
    .panel-body { padding: 24px; }

    /* Form Controls inside Table */
    .c-input { width: 100%; background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 8px; padding: 10px 12px; font-size: 14px; color: var(--text-main); transition: 0.2s; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
    .c-input:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 4px var(--primary-light); }
    
    .btn-icon { background: rgba(239, 68, 68, 0.1); color: var(--danger, #ef4444); border: none; border-radius: 8px; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.2s; }
    .btn-icon:hover { background: var(--danger, #ef4444); color: #fff; }

    /* Data Table */
    .data-table-wrap { overflow-x: auto; margin-bottom: 24px; overflow-y: visible; min-height: 200px; }
    .data-table { width: 100%; border-collapse: collapse; text-align: left; min-width: 800px; }
    .data-table th, .data-table td { padding: 12px; border-bottom: 1px solid var(--border-color); position: relative; }
    .data-table th { font-size: 13px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; background: var(--bg-body); }
    .data-table td { vertical-align: middle; }

    /* Custom Dropdown */
    .custom-dropdown { position: relative; width: 100%; user-select: none; }
    .cd-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--text-main); cursor: pointer; transition: all 0.2s ease; gap: 8px; }
    .cd-header:hover { border-color: var(--primary-color); }
    .custom-dropdown.active .cd-header { border-color: var(--primary-color); box-shadow: 0 0 0 3px var(--primary-light); }
    .cd-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .cd-body { display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 10px; box-shadow: 0 10px 25px rgba(0,0,0,0.15); z-index: 100; overflow: hidden; }
    .custom-dropdown.active .cd-body { display: block; animation: slideInDown 0.2s cubic-bezier(0.16, 1, 0.3, 1); }
    .cd-list { max-height: 180px; overflow-y: auto; padding: 4px; }
    .cd-item { padding: 8px 12px; border-radius: 6px; 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; }

    /* Code Output */
    .code-box-wrapper { background: #1e1e24; border-radius: 12px; overflow: hidden; margin-top: 24px; }
    .code-box { color: #a9b7c6; font-family: 'Space Mono', monospace; font-size: 14px; padding: 24px; overflow-x: auto; white-space: pre-wrap; line-height: 1.6; tab-size: 4; }
    .dark-mode .code-box-wrapper { background: rgba(0,0,0,0.3); }

    /* ---------- HISTORY SECTION ---------- */
    .smg-history-section { background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 20px; padding: 24px; margin-top: 30px; }
    .smg-history-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; }
    .smg-history-title { font-size: 15px; font-weight: 800; color: var(--text-main); display: flex; align-items: center; gap: 8px; margin: 0; }
    .smg-history-list { display: flex; flex-direction: column; gap: 10px; }
    .smg-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; }
    .smg-history-item:hover { border-color: var(--primary-color); transform: translateY(-1px); }
    .smg-history-info { display: flex; align-items: center; gap: 10px; overflow: hidden; flex: 1; }
    .smg-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; }
    .smg-history-url { font-size: 13.5px; font-weight: 700; color: var(--text-main); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .smg-history-meta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
    .smg-history-time { font-size: 12px; color: var(--text-muted); }
    .smg-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; }
    .smg-history-del:hover { color: #ef4444; background: rgba(239, 68, 68, 0.1); }

    /* ---------- 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; }
    
    .feat-icon-shuffle::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 3 21 3 21 8"/><line x1="4" y1="20" x2="21" y2="3"/><polyline points="21 16 21 21 16 21"/><line x1="15" y1="15" x2="21" y2="21"/><line x1="4" y1="4" x2="9" y2="9"/></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-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-sliders::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="4" y1="21" x2="4" y2="14"/><line x1="4" y1="10" x2="4" y2="3"/><line x1="12" y1="21" x2="12" y2="12"/><line x1="12" y1="8" x2="12" y2="3"/><line x1="20" y1="21" x2="20" y2="16"/><line x1="20" y1="12" x2="20" y2="3"/><line x1="1" y1="14" x2="7" y2="14"/><line x1="9" y1="8" x2="15" y2="8"/><line x1="17" y1="16" x2="23" y2="16"/></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-eye::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.88 9.88a3 3 0 1 0 4.24 4.24"/><path d="M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68"/><path d="M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61"/><line x1="2" y1="2" x2="22" y2="22"/></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; }
    }

    /* Workspace Tabs */
    .ws-tabs {
        display: flex;
        align-items: center;
        gap: 8px;
        background: var(--card-bg);
        padding: 4px;
        border-radius: 12px;
        border: 1px solid var(--border-color);
    }
    .ws-tab-btn {
        background: transparent;
        border: 1px solid transparent;
        border-radius: 8px;
        padding: 7px 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 ease;
        outline: none;
    }
    .ws-tab-btn:hover {
        color: var(--text-main);
    }
    .ws-tab-btn.active {
        background: var(--bg-body);
        color: var(--primary-color);
        border-color: var(--border-color);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    /* Pagination Controls */
    .ws-pagination {
        user-select: none;
    }
    .page-btn {
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 6px 14px;
        font-size: 13px;
        font-weight: 700;
        color: var(--text-main);
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        transition: all 0.2s ease;
        outline: none;
    }
    .page-btn:hover:not(:disabled) {
        border-color: var(--primary-color);
        color: var(--primary-color);
        transform: translateY(-1px);
        box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    }
    .page-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }

    /* Custom Page Size Dropdown */
    .page-size-dropdown {
        position: relative;
        display: inline-block;
        user-select: none;
    }
    .psd-trigger {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 5px 12px;
        font-size: 13px;
        font-weight: 700;
        color: var(--text-main);
        cursor: pointer;
        transition: all 0.2s ease;
        outline: none;
    }
    .psd-trigger:hover {
        border-color: var(--primary-color);
        color: var(--primary-color);
    }
    .page-size-dropdown.active .psd-trigger {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px var(--primary-light);
    }
    .page-size-dropdown.active .psd-trigger i {
        transform: rotate(180deg);
    }
    .psd-menu {
        display: none;
        position: absolute;
        bottom: calc(100% + 6px);
        left: 0;
        min-width: 140px;
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
        z-index: 100;
        overflow: hidden;
        animation: slideInUp 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .page-size-dropdown.active .psd-menu {
        display: block;
    }
    .psd-list {
        max-height: 220px;
        overflow-y: auto;
        padding: 6px;
    }
    .psd-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 7px 10px;
        border-radius: 6px;
        font-size: 12.5px;
        font-weight: 700;
        color: var(--text-main);
        cursor: pointer;
        transition: all 0.15s ease;
        gap: 8px;
    }
    .psd-item:hover {
        background: var(--primary-light);
        color: var(--primary-color);
    }
    .psd-item.active {
        background: var(--primary-color);
        color: #ffffff;
    }
    .psd-item.active i {
        color: #ffffff;
    }

    /* Floating Scroll-to-Top Button */
    .smg-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);
    }
    .smg-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));
    }
    .smg-scroll-top-btn:active {
        transform: translateY(-1px) scale(0.96);
    }

    /* Smooth Scrolling on Content Containers */
    #page-content, .page-content, .smg-wrapper, html {
        scroll-behavior: smooth;
    }

    /* Duplicate Detection Styles */
    .tab-dup-badge {
        background: rgba(245, 158, 11, 0.18);
        color: #f59e0b;
        border: 1px solid rgba(245, 158, 11, 0.35);
        border-radius: 20px;
        padding: 2px 7px;
        font-size: 11px;
        font-weight: 800;
        margin-left: 6px;
    }

    .duplicate-alert-banner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 16px;
        background: rgba(245, 158, 11, 0.08);
        border: 1px solid rgba(245, 158, 11, 0.25);
        border-radius: 12px;
        padding: 14px 20px;
        margin: 16px 20px;
        animation: fadeIn 0.25s ease;
    }
    .dab-info {
        display: flex;
        align-items: center;
        gap: 14px;
    }
    .dab-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        background: rgba(245, 158, 11, 0.15);
        color: #f59e0b;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    .dab-title {
        font-size: 14px;
        font-weight: 800;
        color: var(--text-main);
        margin-bottom: 2px;
    }
    .dab-desc {
        font-size: 12.5px;
        color: var(--text-muted);
    }
    .dab-actions {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }
    .dab-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 7px 14px;
        border-radius: 8px;
        font-size: 12.5px;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.2s ease;
        outline: none;
    }
    .dab-btn.ghost {
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        color: var(--text-main);
    }
    .dab-btn.ghost:hover {
        border-color: #f59e0b;
        color: #f59e0b;
    }
    .dab-btn.danger {
        background: #ef4444;
        border: 1px solid #ef4444;
        color: #ffffff;
    }
    .dab-btn.danger:hover {
        background: #dc2626;
        border-color: #dc2626;
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    }

    .url-input-container {
        position: relative;
        display: flex;
        align-items: center;
        width: 100%;
    }
    .input-duplicate {
        border-color: #f59e0b !important;
        background: rgba(245, 158, 11, 0.04) !important;
        padding-right: 96px !important;
    }
    .duplicate-badge {
        position: absolute;
        right: 8px;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        background: rgba(245, 158, 11, 0.15);
        color: #f59e0b;
        border: 1px solid rgba(245, 158, 11, 0.3);
        border-radius: 6px;
        padding: 2px 7px;
        font-size: 11px;
        font-weight: 800;
        pointer-events: none;
    }
    .row-duplicate {
        background: rgba(245, 158, 11, 0.03);
    }

    /* Zero-Inline Enhancements */
    .smg-mode-wrapper { display: flex; justify-content: center; margin-bottom: 24px; }
    .smg-mode-btn i { width: 14px; height: 14px; }
    .search-input-wrap i { width: 20px; height: 20px; color: var(--primary-color); }
    .search-btn i, .scratch-btn i { width: 18px; height: 18px; }
    .smg-history-title i { color: var(--primary-color); }
    .smg-btn-ghost.btn-xs { padding: 4px 10px; font-size: 12px; }
    .smg-btn-ghost.btn-xs i { width: 12px; height: 12px; }
    .smg-history-del i { width: 14px; height: 14px; }
    .smg-log-dot i { width: 13px; height: 13px; }
    .smg-log-dot i.spinner { animation: spin 2s linear infinite; }
    .smg-log-dot i.dot { width: 8px; height: 8px; }
    .smg-thinking-log li span { line-height: 24px; }
    .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; }
    .ws-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--border-color); background: var(--bg-body); }
    .ws-tab-btn i { width: 16px; height: 16px; }
    .ws-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
    .act-btn i { width: 16px; height: 16px; }
    .panel-body.p-0 { padding: 0; }
    .dab-icon i { width: 20px; height: 20px; }
    .dab-btn i { width: 14px; height: 14px; }
    th.col-freq { width: 170px; }
    th.col-priority { width: 130px; }
    th.col-lastmod { width: 170px; }
    th.col-action { width: 60px; text-align: center; }
    td.empty-table-msg { text-align: center; padding: 40px; color: var(--text-muted); }
    td.text-center { text-align: center; }
    .duplicate-badge i { width: 11px; height: 11px; }
    .cd-header i { width: 14px; height: 14px; }
    .btn-icon i { width: 16px; height: 16px; }
    .ws-pagination { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding: 16px 24px; border-top: 1px solid var(--border-color); background: var(--bg-body); }
    .pagination-info-wrap { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--text-muted); font-weight: 700; }
    span.pagination-separator { opacity: 0.4; }
    span.page-size-wrap { display: flex; align-items: center; gap: 8px; }
    .psd-trigger i { width: 13px; height: 13px; transition: transform 0.2s ease; }
    .psd-item i { width: 12px; height: 12px; }
    .pagination-nav { display: flex; align-items: center; gap: 8px; }
    .page-btn i { width: 16px; height: 16px; }
    .page-indicator { font-size: 13px; font-weight: 800; color: var(--text-main); padding: 0 8px; }
    .tab-xml-body { padding: 24px; }
    .code-box-wrapper.mt-0 { margin-top: 0; }
    .smg-scroll-top-btn span, .smg-scroll-top-btn i { pointer-events: none; width: 22px; height: 22px; }