﻿
    .sdc-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;
    }

    .sdc-panel {
        position: relative;                
        width: 100%;
        max-width: 1350px;
        border-radius: 28px;
        padding: clamp(28px, 5vw, 56px);
        overflow: hidden;
    }
    
    #bgCv {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        opacity: 0.45;
        z-index: 0;
    }
    
    .sdc-content { position: relative; z-index: 1; }

    /* ---------- HERO ---------- */
    .sdc-hero { text-align: center; max-width: 780px; margin: 0 auto 30px; position: relative; }
    .hero-ambient-glow {
        position: absolute; top: -60px; left: 50%; transform: translateX(-50%);
        width: 600px; height: 300px; background: radial-gradient(circle, color-mix(in srgb, var(--primary-color) 20%, transparent) 0%, var(--primary-glow) 40%, transparent 70%);
        filter: blur(50px); pointer-events: none; z-index: -1; border-radius: 50%;
    }
    .sdc-hero-badge {
        display: inline-flex; align-items: center; gap: 8px;
        font-size: 12px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase;
        color: var(--primary-color); background: var(--primary-light);
        padding: 8px 20px; border-radius: 100px; margin-bottom: 24px;
        border: 1px solid color-mix(in srgb, var(--primary-color) 30%, transparent);
        box-shadow: 0 4px 16px color-mix(in srgb, var(--primary-color) 12%, transparent);
        backdrop-filter: blur(8px);
    }
    .badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary-color); box-shadow: 0 0 10px var(--primary-color); animation: pulseDot 2s infinite; }
    @keyframes pulseDot { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.4); opacity: 0.6; } }

    .sdc-hero-title { font-size: clamp(30px, 4.4vw, 46px); font-weight: 900; line-height: 1.15; letter-spacing: -0.025em; color: var(--text-main); margin-bottom: 16px; }
    .sdc-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; }
    .sdc-hero-desc { font-size: 16.5px; color: var(--text-muted); line-height: 1.7; margin-bottom: 24px; }

    /* ---------- STUDIO WORKSPACE ---------- */
    .studio-workspace { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 30px; }
    @media (max-width: 1000px) { .studio-workspace { grid-template-columns: 1fr; } }
    
    .command-center { background: var(--bg-body); border-radius: 24px; border: 1px solid var(--border-color); padding: 24px; display: flex; flex-direction: column; position: relative; box-shadow: 0 4px 20px rgba(0,0,0,0.02); }
    
    .cc-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border-color); }
    .cc-header-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; color: var(--text-main); }
    .cc-lang-box { display: flex; align-items: center; gap: 8px; }

    .custom-dropdown { position: relative; }
    .cd-header { display: flex; align-items: center; gap: 8px; background: var(--card-bg); border: 1px solid var(--border-color); padding: 6px 12px; border-radius: 8px; font-size: 12.5px; font-weight: 700; color: var(--text-main); cursor: pointer; transition: 0.2s; }
    .cd-header:hover { border-color: var(--primary-color); }
    .cd-body { position: absolute; top: calc(100% + 6px); right: 0; width: 220px; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); z-index: 100; display: none; overflow: hidden; }
    .custom-dropdown.active .cd-body { display: block; }
    .cd-search { padding: 8px; border-bottom: 1px solid var(--border-color); }
    .cd-search input { width: 100%; background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 6px; padding: 6px 10px; font-size: 12px; color: var(--text-main); outline: none; }
    .cd-list { max-height: 200px; overflow-y: auto; padding: 4px; }
    .cd-group-lbl { font-size: 10px; font-weight: 800; text-transform: uppercase; color: var(--text-muted); padding: 6px 8px 2px; }
    .cd-item { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 6px; font-size: 12.5px; font-weight: 600; color: var(--text-main); cursor: pointer; transition: 0.15s; }
    .cd-item:hover { background: var(--bg-body); }
    .cd-item.active { background: var(--primary-light); color: var(--primary-color); }

    .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: 12px; font-weight: 800; cursor: pointer; color: var(--text-main); transition: 0.2s; }
    .dir-toggle-btn:hover { border-color: var(--primary-color); color: var(--primary-color); }

    .cc-tabs { display: flex; gap: 10px; margin-bottom: 20px; }
    .cct-btn { display: flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 12px; border: 1px solid var(--border-color); background: var(--card-bg); font-weight: 700; font-size: 14px; color: var(--text-muted); cursor: pointer; transition: 0.2s; flex: 1; justify-content: center; }
    .cct-btn.active { background: var(--primary-light); color: var(--primary-color); border-color: var(--primary-light); }
    
    .cc-mode-manual { display: flex; flex-direction: column; gap: 16px; flex: 1; }
    
    .extracted-details-bar { display: flex; align-items: center; justify-content: space-between; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px; padding: 10px 14px; margin-bottom: 4px; }
    .edb-info { display: flex; align-items: center; gap: 10px; overflow: hidden; }
    .edb-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; color: #10b981; background: rgba(16,185,129,0.1); padding: 4px 8px; border-radius: 6px; white-space: nowrap; }
    .edb-url { font-size: 12px; color: var(--text-muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
    .edb-btn { background: transparent; border: none; color: var(--text-muted); font-size: 12px; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 6px; }
    .edb-btn:hover { background: var(--bg-body); color: var(--text-main); }

    .main-desc-input { width: 100%; min-height: 110px; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 16px; padding: 16px 18px; font-size: 15.5px; font-weight: 600; color: var(--text-main); outline: none; resize: vertical; line-height: 1.6; transition: 0.2s; font-family: inherit; }
    .main-desc-input:focus { border-color: var(--primary-color); box-shadow: 0 0 0 4px var(--primary-light); }
    .main-desc-input::placeholder { color: var(--text-muted); opacity: 0.5; font-weight: 500; }
    
    .pixel-trackpad { background: var(--card-bg); border-radius: 14px; padding: 16px; border: 1px solid var(--border-color); }
    .pt-bar { height: 10px; background: var(--bg-body); border-radius: 100px; border: 1px solid var(--border-color); position: relative; overflow: hidden; margin-bottom: 12px; }
    .pt-fill { height: 100%; width: 0%; transition: 0.3s; border-radius: 100px; }
    .pt-markers { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
    .pt-mark { position: absolute; top: 0; height: 100%; width: 2px; transform: translateX(-50%); z-index: 2; }
    .m-mob { left: 64.7%; background: #f59e0b; }
    .m-desk { left: 91.4%; background: var(--primary-color); }
    .pt-labels { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--text-muted); }
    .pt-val { color: var(--text-main); font-weight: 900; font-family: monospace; }
    
    .kw-wrap { display: flex; align-items: center; gap: 10px; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px; padding: 0 16px; height: 48px; }
    .kw-input { border: none; background: transparent; outline: none; flex: 1; font-size: 14px; font-weight: 600; color: var(--text-main); }
    
    .editor-tools { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
    .ep-btn { background: var(--card-bg); border: 1px solid var(--border-color); color: var(--text-main); border-radius: 8px; padding: 6px 12px; font-weight: 700; font-size: 12px; cursor: pointer; display: flex; align-items: center; gap: 6px; transition: 0.2s; }
    .ep-btn:hover { background: var(--primary-light); color: var(--primary-color); }

    .snippet-sub-inputs { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
    .ss-row { display: flex; flex-direction: column; gap: 6px; }
    .ss-lbl { font-size: 11.5px; font-weight: 800; color: var(--text-muted); display: flex; align-items: center; gap: 6px; text-transform: uppercase; }
    .ss-input { background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 8px; padding: 8px 12px; font-size: 13px; color: var(--text-main); outline: none; }
    .ss-input:focus { border-color: var(--primary-color); }

    .cc-mode-url { display: flex; flex-direction: column; gap: 16px; flex: 1; justify-content: center; text-align: center; padding: 30px 10px; }
    .url-search-box { display: flex; align-items: center; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 16px; padding: 6px 6px 6px 16px; width: 100%; margin-top: 12px; }
    .url-input { flex: 1; border: none; background: transparent; outline: none; font-size: 15px; color: var(--text-main); font-family: monospace; }
    .url-btn { background: linear-gradient(135deg, var(--primary-color), var(--primary-gradient-end)); color: white; border: none; border-radius: 10px; padding: 12px 20px; font-weight: 800; cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 8px; }
    .url-btn:disabled { opacity: 0.5; cursor: not-allowed; }
    
    .fetch-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); border-radius: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 20; color: #fff; gap: 12px; }

    /* ---------- OMNI-PREVIEW DECK ---------- */
    .omni-deck { background: var(--bg-body); border-radius: 24px; border: 1px solid var(--border-color); padding: 24px; display: flex; flex-direction: column; }
    .omni-headers { display: flex; gap: 8px; border-bottom: 1px solid var(--border-color); padding-bottom: 16px; margin-bottom: 20px; flex-wrap: wrap; }
    .omni-tab { display: flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--text-muted); font-size: 13px; font-weight: 700; cursor: pointer; transition: 0.2s; }
    .omni-tab:hover { background: var(--card-bg); color: var(--text-main); }
    .omni-tab.active { background: var(--card-bg); color: var(--primary-color); border-color: var(--border-color); box-shadow: 0 2px 8px rgba(0,0,0,0.04); }

    .preview-wrap { flex: 1; display: flex; flex-direction: column; justify-content: center; }
    .omni-empty-box { text-align: center; padding: 40px 20px; border: 2px dashed var(--border-color); border-radius: 18px; }
    .oeb-icon { color: var(--text-muted); opacity: 0.4; margin-bottom: 12px; }
    .oeb-title { font-size: 16px; font-weight: 800; color: var(--text-main); margin-bottom: 6px; }
    .oeb-desc { font-size: 13px; color: var(--text-muted); max-width: 320px; margin: 0 auto; line-height: 1.5; }

    .mock-g-desk { background: var(--card-bg); border-radius: 16px; padding: 20px; border: 1px solid var(--border-color); font-family: Arial, sans-serif; text-align: left; }
    .mg-cite { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-main); margin-bottom: 6px; }
    .mg-cite img { width: 20px; height: 20px; border-radius: 50%; }
    .mg-title { font-size: 19px; color: #1a0dab; text-decoration: none; line-height: 1.3; display: block; margin-bottom: 6px; font-weight: 500; word-break: break-word; }
    .mg-title:hover { text-decoration: underline; }
    .mg-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; word-break: break-word; }
    .mg-desc b { color: var(--text-main); font-weight: 900; }
    .g-rating-wrap { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #f59e0b; margin-bottom: 4px; }
    .g-rating-num { color: var(--text-muted); font-size: 12px; }

    .mock-g-mob { background: var(--card-bg); border-radius: 16px; padding: 18px; border: 1px solid var(--border-color); font-family: Arial, sans-serif; max-width: 380px; margin: 0 auto; text-align: left; }
    .mgm-cite { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-main); margin-bottom: 6px; }
    .mgm-cite img { width: 18px; height: 18px; border-radius: 50%; }
    .mgm-title { font-size: 17px; color: #1a0dab; text-decoration: none; line-height: 1.3; display: block; margin-bottom: 6px; font-weight: 500; }
    .mgm-desc { font-size: 13.5px; color: var(--text-muted); line-height: 1.5; word-break: break-word; }
    .mgm-desc b { color: var(--text-main); font-weight: 900; }

    .mock-social { background: var(--card-bg); border-radius: 16px; border: 1px solid var(--border-color); overflow: hidden; max-width: 480px; margin: 0 auto; }
    .ms-img { height: 160px; background: var(--bg-body); display: flex; align-items: center; justify-content: center; color: var(--text-muted); opacity: 0.6; }
    .ms-body { padding: 16px; text-align: left; }
    .ms-domain { font-size: 11px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
    .ms-title { font-size: 15px; font-weight: 800; color: var(--text-main); margin-bottom: 6px; line-height: 1.3; }
    .ms-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

    /* ---------- MATRIX & TELEMETRY DECK ---------- */
    .matrix-grid { display: grid; grid-template-columns: 280px 1fr; gap: 24px; margin-bottom: 30px; animation: fadeIn 0.4s ease; }
    @media (max-width: 900px) { .matrix-grid { grid-template-columns: 1fr; } }
    
    .score-panel { background: var(--bg-body); border-radius: 24px; border: 1px solid var(--border-color); padding: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
    .score-ring { width: 140px; height: 140px; border-radius: 50%; display: flex; align-items: center; justify-content: center; position: relative; margin-bottom: 16px; transition: all 0.5s ease; }
    .score-ring::before { content: ''; position: absolute; width: 116px; height: 116px; background: var(--card-bg); border-radius: 50%; }
    .score-val { position: relative; z-index: 1; text-align: center; }
    .score-val .displayScore { font-size: 40px; font-weight: 900; line-height: 1; font-family: monospace; color: var(--text-main); }
    .score-val span { font-size: 10px; font-weight: 800; color: var(--text-muted); letter-spacing: 1px; }

    .telemetry-deck { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
    .tc-card { background: var(--bg-body); border-radius: 16px; border: 1px solid var(--border-color); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
    .tc-header { display: flex; align-items: center; justify-content: space-between; }
    .tc-title { font-size: 13px; font-weight: 800; color: var(--text-main); display: flex; align-items: center; gap: 8px; }
    .tc-status { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 100px; text-transform: uppercase; }
    .tc-status.pass { background: rgba(16,185,129,0.1); color: #10b981; }
    .tc-status.fail { background: rgba(239,68,68,0.1); color: #ef4444; }
    .tc-status.neutral { background: var(--card-bg); color: var(--text-muted); border: 1px solid var(--border-color); }
    .tc-val { font-size: 13.5px; font-weight: 700; color: var(--text-muted); line-height: 1.4; }

    /* ---------- HISTORY SECTION ---------- */
    .sdc-history-section { background: var(--bg-body); border-radius: 24px; border: 1px solid var(--border-color); padding: 24px; margin-bottom: 30px; }
    .sh-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
    .sh-title { font-size: 15px; font-weight: 800; color: var(--text-main); display: flex; align-items: center; gap: 8px; }
    .sh-clear-btn { background: transparent; border: none; font-size: 12.5px; font-weight: 700; color: #ef4444; cursor: pointer; padding: 4px 8px; border-radius: 6px; }
    .sh-clear-btn:hover { background: rgba(239,68,68,0.1); }
    .sh-list { display: flex; flex-direction: column; gap: 10px; max-height: 240px; overflow-y: auto; }
    .sh-item { display: flex; align-items: center; justify-content: space-between; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px; padding: 12px 16px; gap: 16px; cursor: pointer; transition: 0.2s; }
    .sh-item:hover { border-color: var(--primary-color); transform: translateX(4px); }
    .sh-info { flex: 1; min-width: 0; }
    .sh-desc-text { font-size: 13.5px; font-weight: 700; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
    .sh-meta { font-size: 11.5px; color: var(--text-muted); display: flex; gap: 12px; }
    .sh-del-btn { background: transparent; border: none; color: var(--text-muted); cursor: pointer; padding: 4px; border-radius: 6px; }
    .sh-del-btn:hover { background: rgba(239,68,68,0.1); color: #ef4444; }

    /* ---------- BENTO BOX FEATURES CLUSTER ---------- */
    .console-features { margin-top: 40px; width: 100%; }
    .bento-features-cluster { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; 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::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::before { 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::before { 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-icon-wrapper i, .bc-icon-wrapper svg { width: 18px; height: 18px; }

    .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; }
    
    .bc-wide-top { grid-column: span 2; }
    .bc-tall { grid-row: span 2; }
    .bc-wide-mid { grid-column: span 2; }
    .bc-wide-top .bento-card-content, .bc-wide-mid .bento-card-content { justify-content: center; }
    .bc-wide-top .bc-desc, .bc-wide-mid .bc-desc { max-width: 85%; }

    @media (max-width: 900px) {
        .bento-features-cluster { grid-template-columns: repeat(2, 1fr); }
        .bc-wide-top, .bc-wide-mid { grid-column: span 2; }
        .bc-tall { grid-row: span 1; grid-column: span 1; }
    }
    @media (max-width: 600px) {
        .bento-features-cluster { grid-template-columns: 1fr; }
        .bc-wide-top, .bc-wide-mid, .bc-tall { grid-column: span 1; }
        .bc-wide-top .bc-desc, .bc-wide-mid .bc-desc { max-width: 100%; }
    }

    /* Floating Scroll to Top */
    .sdc-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);
    }
    .sdc-scroll-top-btn:hover {
        transform: translateY(-4px);
        background: var(--primary-color);
        color: #fff;
        box-shadow: 0 10px 25px rgba(var(--primary-color-rgb), 0.35);
    }