﻿    .ppt-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, 4vw, 0px) 20px;
    }

    .ppt-panel {
        position: relative;                
        width: 100%;
        max-width: 1180px;
        border-radius: 28px;
        padding: clamp(24px, 4vw, 48px);
        overflow: hidden;
    }

    /* ---------- HERO SECTION ---------- */
    .ppt-hero { text-align: center; position: relative; z-index: 2; margin-bottom: 32px; padding: 10px 0; }
    .hero-ambient-glow {
        position: absolute; top: -60px; left: 50%; transform: translateX(-50%);
        width: 650px; height: 280px;
        background: radial-gradient(circle, color-mix(in srgb, var(--primary-color) 22%, transparent) 0%, var(--primary-glow) 45%, transparent 75%);
        filter: blur(55px); pointer-events: none; z-index: -1; border-radius: 50%;
    }
    .ppt-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: 7px 18px; border-radius: 100px; margin-bottom: 20px;
        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; } }

    .ppt-hero-title { font-size: clamp(34px, 5vw, 56px); font-weight: 900; line-height: 1.1; letter-spacing: -0.035em; color: var(--text-main); margin-bottom: 16px; }
    .ppt-hero-title em { font-style: normal; background: linear-gradient(135deg, var(--primary-color), var(--primary-gradient-end)); -webkit-background-clip: text; background-clip: text; color: transparent; }
    .ppt-hero-desc { font-size: 16px; color: var(--text-muted); font-weight: 500; max-width: 620px; margin: 0 auto; line-height: 1.6; }

    /* ---------- MODE SELECTION TILES DOCK ---------- */
    .ppt-modes-deck {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 12px;
        margin-bottom: 24px;
        position: relative;
        z-index: 2;
    }
    @media (max-width: 900px) {
        .ppt-modes-deck { display: flex; overflow-x: auto; padding-bottom: 6px; }
        .ppt-mode-tile { min-width: 170px; flex-shrink: 0; }
    }

    .ppt-mode-tile {
        position: relative;
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: 16px;
        padding: 14px 16px;
        display: flex;
        align-items: center;
        gap: 12px;
        cursor: pointer;
        transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        user-select: none;
    }
    .ppt-mode-tile:hover {
        border-color: var(--primary-color);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.04);
    }
    .ppt-mode-tile.selected {
        background: var(--card-bg);
        border-color: var(--primary-color);
        box-shadow: 0 8px 25px var(--primary-shadow, rgba(99, 102, 241, 0.15));
    }
    .ppt-mode-tile.selected .pmt-indicator {
        position: absolute; bottom: 0; left: 16px; right: 16px; height: 3px;
        background: linear-gradient(90deg, var(--primary-color), var(--primary-gradient-end));
        border-radius: 3px 3px 0 0;
    }
    .pmt-icon-box {
        width: 38px; height: 38px; border-radius: 10px;
        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.25s; flex-shrink: 0;
    }
    .ppt-mode-tile.selected .pmt-icon-box {
        background: var(--primary-light); color: var(--primary-color);
        border-color: color-mix(in srgb, var(--primary-color) 40%, transparent);
    }
    .pmt-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
    .pmt-label { font-size: 13.5px; font-weight: 800; color: var(--text-main); white-space: nowrap; }
    .pmt-desc { font-size: 11px; color: var(--text-muted); font-weight: 500; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

    /* ---------- CONTROL BAR ---------- */
    .ppt-controls-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 16px;
        padding: 12px 20px;
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: 16px;
        margin-bottom: 24px;
        box-shadow: 0 4px 16px rgba(0,0,0,0.02);
    }
    .ctrl-group { display: flex; align-items: center; gap: 10px; }
    .ctrl-label { font-size: 12px; font-weight: 800; color: var(--text-muted); display: flex; align-items: center; gap: 5px; text-transform: uppercase; letter-spacing: 0.4px; }

    .syn-segmented { display: flex; background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 8px; padding: 2px; gap: 2px; }
    .syn-seg-btn {
        background: transparent; border: none; font-size: 11.5px; font-weight: 700; color: var(--text-muted);
        padding: 5px 12px; border-radius: 6px; cursor: pointer; transition: all 0.2s;
    }
    .syn-seg-btn:hover { color: var(--text-main); }
    .syn-seg-btn.active { background: var(--card-bg); color: var(--primary-color); font-weight: 800; box-shadow: 0 2px 6px rgba(0,0,0,0.06); }

    /* Custom Dropdowns (Matching GuinRank standard) */
    .custom-dropdown { position: relative; }
    .cd-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        background: var(--bg-body);
        border: 1px solid var(--border-color);
        border-radius: 10px;
        padding: 6px 12px;
        font-size: 12.5px;
        font-weight: 700;
        color: var(--text-main);
        cursor: pointer;
        transition: all 0.2s;
        min-width: 155px;
    }
    .cd-header:hover { border-color: var(--primary-color); }
    .custom-dropdown.active .cd-header { border-color: var(--primary-color); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 15%, transparent); }
    .cd-value { display: flex; align-items: center; gap: 8px; }
    .cd-current-name { font-weight: 700; color: var(--text-main); }
    .cd-chevron { color: var(--text-muted); transition: transform 0.2s; }
    .custom-dropdown.active .cd-chevron { transform: rotate(180deg); }

    .cd-body {
        position: absolute;
        top: calc(100% + 6px);
        right: 0;
        width: 250px;
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: 14px;
        box-shadow: 0 14px 35px rgba(0,0,0,0.12);
        z-index: 100;
        animation: cdSlideDown 0.18s ease;
        overflow: hidden;
    }
    @keyframes cdSlideDown {
        from { opacity: 0; transform: translateY(-6px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .cd-search {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 12px;
        border-bottom: 1px solid var(--border-color);
        background: var(--bg-body);
    }
    .cd-search input {
        width: 100%; border: none; background: transparent;
        color: var(--text-main); font-size: 12.5px; font-weight: 600;
        outline: none;
    }
    .cd-list { max-height: 250px; overflow-y: auto; padding: 6px; }
    .cd-group-lbl {
        font-size: 10px; font-weight: 800; text-transform: uppercase;
        color: var(--text-muted); padding: 8px 10px 4px; letter-spacing: 0.5px;
    }
    .cd-divider { height: 1px; background: var(--border-color); margin: 6px 4px; }
    .cd-item {
        display: flex; align-items: center; justify-content: space-between; gap: 8px;
        padding: 7px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 600;
        color: var(--text-main); cursor: pointer; transition: all 0.15s;
    }
    .cd-item:hover { background: var(--bg-body); }
    .cd-item.active { background: var(--primary-light); color: var(--primary-color); font-weight: 700; }
    .cd-item-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
    .cd-lang-code {
        font-family: monospace; font-size: 10px; font-weight: 800;
        color: var(--text-muted); background: var(--bg-body);
        padding: 2px 5px; border-radius: 4px; border: 1px solid var(--border-color);
        flex-shrink: 0;
    }
    .cd-item.active .cd-lang-code {
        color: var(--primary-color); border-color: color-mix(in srgb, var(--primary-color) 40%, transparent);
        background: var(--card-bg);
    }
    .cd-item-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .cd-check { width: 14px; height: 14px; color: var(--primary-color); flex-shrink: 0; }
    .cd-no-results {
        padding: 20px 14px; text-align: center; font-size: 12px; color: var(--text-muted);
        display: flex; flex-direction: column; align-items: center; gap: 6px;
    }

    .dir-toggle-btn {
        display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
        background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 10px;
        font-size: 12px; font-weight: 800; color: var(--text-muted); cursor: pointer; transition: all 0.2s;
    }
    .dir-toggle-btn:hover { border-color: var(--primary-color); color: var(--primary-color); }

    /* ---------- WORKSPACE DUAL CARDS GRID ---------- */
    .ppt-workspace-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        margin-bottom: 32px;
    }
    @media (max-width: 860px) {
        .ppt-workspace-grid { grid-template-columns: 1fr; }
    }

    .ppt-card {
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: 20px;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0,0,0,0.02);
        transition: border-color 0.25s;
    }
    .ppt-card:focus-within { border-color: color-mix(in srgb, var(--primary-color) 60%, transparent); }

    .card-glass-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 18px;
        background: var(--bg-body);
        border-bottom: 1px solid var(--border-color);
        gap: 10px;
        flex-wrap: wrap;
    }
    .cgh-left { display: flex; align-items: center; gap: 8px; }
    .cgh-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary-color); }
    .cgh-title { font-size: 13.5px; font-weight: 800; color: var(--text-main); display: flex; align-items: center; gap: 6px; }

    .cgh-actions { display: flex; align-items: center; gap: 6px; }
    .cgh-btn {
        display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px;
        background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 8px;
        font-size: 11.5px; font-weight: 700; color: var(--text-muted); cursor: pointer; transition: all 0.2s;
    }
    .cgh-btn:hover { border-color: var(--primary-color); color: var(--primary-color); }
    .cgh-btn.danger:hover { border-color: #ef4444; color: #ef4444; }

    .ppt-view-switch { display: flex; background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 8px; padding: 2px; gap: 2px; }
    .pvs-btn { background: transparent; border: none; font-size: 11px; font-weight: 700; color: var(--text-muted); padding: 3px 8px; border-radius: 6px; cursor: pointer; }
    .pvs-btn.active { background: var(--card-bg); color: var(--primary-color); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }

    .ppt-var-group { display: flex; gap: 3px; }
    .pvg-btn { background: var(--bg-body); border: 1px solid var(--border-color); font-size: 10.5px; font-weight: 800; color: var(--text-muted); padding: 3px 7px; border-radius: 6px; cursor: pointer; }
    .pvg-btn.active { background: var(--primary-light); color: var(--primary-color); border-color: var(--primary-color); }

    .card-editor-wrap { flex: 1; display: flex; flex-direction: column; min-height: 300px; position: relative; }

    .p-textarea {
        flex: 1; width: 100%; padding: 18px 20px; border: none; background: transparent;
        font-size: 15px; color: var(--text-main); line-height: 1.7; resize: none; outline: none; font-family: inherit;
    }
    .p-textarea::placeholder { color: var(--text-muted); opacity: 0.45; }

    .output-board {
        flex: 1; min-height: 300px; padding: 18px 20px; overflow-y: auto; line-height: 1.75; font-size: 15px; color: var(--text-main);
        background: var(--bg-body);
    }
    .output-rendered-text { white-space: pre-wrap; word-wrap: break-word; }

    /* Visual Diff Highlights View */
    .output-diff-view { white-space: pre-wrap; word-wrap: break-word; line-height: 1.85; }
    .diff-add { background: color-mix(in srgb, var(--primary-color) 18%, transparent); color: var(--primary-color); padding: 2px 6px; border-radius: 4px; font-weight: 700; border-bottom: 2px solid var(--primary-color); }
    .diff-same { opacity: 0.9; }

    /* Direction Rules */
    .p-textarea[dir="rtl"], .p-textarea.rtl, .output-board[dir="rtl"], .output-board.rtl,
    .output-rendered-text.rtl, .output-diff-view.rtl, [dir="rtl"] .output-rendered-text, [dir="rtl"] .output-diff-view {
        direction: rtl !important;
        text-align: right !important;
        unicode-bidi: plaintext !important;
    }

    /* Quick Samples Box */
    .ppt-sample-presets {
        padding: 10px 18px 14px;
        border-top: 1px dashed var(--border-color);
        background: rgba(255, 255, 255, 0.01);
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .psp-title { font-size: 11px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; display: flex; align-items: center; gap: 5px; }
    .psp-list { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
    .psp-chip {
        display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px;
        background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 100px;
        color: var(--text-main); font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s;
    }
    .psp-chip:hover { border-color: var(--primary-color); background: var(--card-bg); transform: translateY(-1px); }

    /* Empty State */
    .ppt-empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; min-height: 240px; text-align: center; padding: 24px; position: relative; }
    .pes-glow { position: absolute; width: 140px; height: 140px; background: radial-gradient(circle, color-mix(in srgb, var(--primary-color) 15%, transparent) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
    .pes-icon { width: 50px; height: 50px; border-radius: 16px; background: var(--bg-body); border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; color: var(--primary-color); margin-bottom: 12px; position: relative; z-index: 1; }
    .pes-title { font-size: 14.5px; font-weight: 800; color: var(--text-main); margin-bottom: 5px; position: relative; z-index: 1; }
    .pes-desc { font-size: 12.5px; color: var(--text-muted); max-width: 290px; line-height: 1.5; position: relative; z-index: 1; }

    /* Card Footer & Action Button */
    .card-glass-footer {
        display: flex; align-items: center; justify-content: space-between;
        padding: 12px 18px; border-top: 1px solid var(--border-color); background: var(--bg-body);
        gap: 10px; flex-wrap: wrap;
    }
    .cgf-stats { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
    .cgf-pill { display: inline-flex; align-items: center; gap: 4px; font-family: monospace; font-size: 11px; font-weight: 700; color: var(--text-muted); background: var(--card-bg); border: 1px solid var(--border-color); padding: 4px 8px; border-radius: 6px; }
    .cgf-pill.over { color: #ef4444; border-color: rgba(239,68,68,0.3); background: rgba(239,68,68,0.06); }
    .stream-status-badge { font-size: 11.5px; font-weight: 800; color: var(--primary-color); }

    .ppt-action-btn {
        display: inline-flex; align-items: center; gap: 8px; padding: 8px 20px;
        background: linear-gradient(135deg, var(--primary-color), var(--primary-gradient-end));
        color: #fff !important; border: none; border-radius: 100px; font-size: 13px; font-weight: 800;
        cursor: pointer; transition: all 0.25s; box-shadow: 0 4px 14px var(--primary-shadow, rgba(99,102,241,0.3));
    }
    .ppt-action-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 20px var(--primary-shadow, rgba(99,102,241,0.4)); }
    .ppt-action-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
    .ppt-action-btn.loading .spin-icon { animation: spin 1.5s linear infinite; }
    @keyframes spin { to { transform: rotate(360deg); } }

    /* Streaming Cursor */
    .streaming-cursor { display: inline-block; width: 7px; height: 15px; background: var(--primary-color); margin-left: 4px; animation: blink 1s infinite; vertical-align: middle; }
    [dir="rtl"] .streaming-cursor { margin-left: 0; margin-right: 4px; }
    @keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

    /* ---------- DIAGNOSTICS DECK ---------- */
    .ppt-diagnostics-deck {
        background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 24px;
        padding: 24px; margin-bottom: 32px; box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    }
    .diag-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
    .dh-left { display: flex; align-items: center; gap: 8px; }
    .dh-title { font-size: 15px; font-weight: 800; color: var(--text-main); }
    .dh-badge { font-size: 11.5px; font-weight: 800; padding: 5px 12px; border-radius: 100px; background: var(--primary-light); color: var(--primary-color); border: 1px solid color-mix(in srgb, var(--primary-color) 30%, transparent); }

    .diag-cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
    .diag-metric-card {
        background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 16px;
        padding: 18px; display: flex; flex-direction: column; gap: 10px;
    }
    .dmc-top { display: flex; justify-content: space-between; align-items: center; }
    .dmc-label { font-size: 12px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; }
    .dmc-badge { font-size: 10.5px; font-weight: 800; padding: 3px 8px; border-radius: 6px; }
    .dmc-badge.primary { background: var(--primary-light); color: var(--primary-color); }
    .dmc-badge.increased { background: var(--primary-light); color: var(--primary-color); }
    .dmc-badge.decreased { background: rgba(236, 72, 153, 0.12); color: #ec4899; }
    .dmc-badge.equal { background: var(--card-bg); color: var(--text-muted); }

    .dmc-val { font-size: 26px; font-weight: 900; color: var(--text-main); line-height: 1; }
    .dmc-val small { font-size: 14px; font-weight: 600; color: var(--text-muted); }

    .dmc-bar-bg { width: 100%; height: 7px; background: var(--border-color); border-radius: 100px; overflow: hidden; }
    .dmc-bar-fill { height: 100%; background: var(--primary-color); border-radius: 100px; transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
    .dmc-bar-fill.primary { background: linear-gradient(90deg, var(--primary-color), var(--primary-gradient-end)); }
    .dmc-footer-note { font-size: 11px; color: var(--text-muted); font-weight: 500; }

    /* ---------- STATS COUNTER STRIP ---------- */
    .ppt-stats-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 32px; }
    .pss-card { background: var(--card-bg); border-radius: 16px; padding: 20px; border: 1px solid var(--border-color); display: flex; flex-direction: column; align-items: center; text-align: center; transition: transform 0.2s; }
    .pss-card:hover { transform: translateY(-2px); }
    .pss-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
    .pss-icon.cr { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
    .pss-icon.cb { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
    .pss-icon.cg { background: var(--primary-light); color: var(--primary-color); }
    .pss-icon.cp { background: rgba(168, 85, 247, 0.1); color: #a855f7; }
    .pss-num { font-size: 28px; font-weight: 900; color: var(--text-main); line-height: 1; margin-bottom: 4px; transition: transform 0.3s; }
    .pss-num.popped { transform: scale(1.2); color: var(--primary-color); }
    .pss-lbl { font-size: 13px; font-weight: 700; color: var(--text-muted); }

    /* ---------- UPGRADE / LIMIT BANNER ---------- */
    .banner-container { margin-bottom: 24px; display: flex; flex-direction: column; gap: 10px; }
    .upgrade-banner {
        display: none; align-items: center; gap: 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--primary-color) 12%, transparent), var(--primary-glow));
        border: 1px solid var(--primary-light); border-radius: 16px; padding: 16px 24px; position: relative;
    }
    .upgrade-banner.show { display: flex; animation: slideInUp 0.4s ease; }
    .ub-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--primary-color); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
    .ub-text { flex: 1; }
    .ub-title { font-size: 15px; font-weight: 800; color: var(--text-main); margin-bottom: 4px; }
    .ub-sub { font-size: 13px; color: var(--text-muted); }
    .ub-cta {
        background: var(--primary-color); color: #fff !important; font-size: 13px; font-weight: 700;
        padding: 9px 18px; border-radius: 100px; display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
    }
    .ub-cta:hover { transform: translateY(-2px); box-shadow: 0 4px 12px var(--primary-shadow); }
    .ub-close { background: transparent; border: none; color: var(--text-muted); cursor: pointer; padding: 8px; border-radius: 8px; transition: all 0.2s; display: flex; align-items: center; justify-content: center; position: absolute; top: 12px; right: 12px; }
    .ub-close:hover { background: var(--bg-body); color: var(--text-main); }
    
    .limit-warning { display: none; align-items: center; gap: 12px; background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.2); border-radius: 12px; padding: 12px 16px; color: #ef4444; }
    .limit-warning.show { display: flex; animation: slideInUp 0.4s ease; }
    .lw-text { font-size: 13.5px; line-height: 1.5; }
    .lw-text strong { font-weight: 800; }
    .lw-link { display: inline-flex; align-items: center; gap: 6px; color: #ef4444; font-weight: 700; text-decoration: underline; margin-top: 4px; }

    /* ---------- HISTORY SECTION ---------- */
    .ppt-history-section { margin-top: 36px; animation: fadeIn 0.4s ease; }
    .ppt-history-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
    .ppt-history-title { font-size: 14px; font-weight: 800; color: var(--text-main); display: flex; align-items: center; gap: 8px; margin: 0; }
    .ppt-clear-btn { background: transparent; border: none; font-size: 12px; font-weight: 700; color: #ef4444; cursor: pointer; padding: 4px 8px; border-radius: 6px; transition: background 0.2s; }
    .ppt-clear-btn:hover { background: rgba(239,68,68,0.1); }
    .ppt-history-list { display: flex; flex-direction: column; gap: 8px; max-height: 250px; overflow-y: auto; padding-right: 4px; }
    .ppt-history-item { display: flex; align-items: center; justify-content: space-between; background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 12px; padding: 10px 14px; transition: all 0.2s; }
    .ppt-history-item:hover { border-color: var(--primary-color); transform: translateX(4px); box-shadow: 0 4px 12px rgba(0,0,0,0.02); }
    .ppt-history-info { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; cursor: pointer; }
    .ppt-history-domain { font-size: 13.5px; font-weight: 700; color: var(--text-main); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .ppt-history-meta { display: flex; align-items: center; gap: 10px; }
    .ppt-history-badge { background: var(--primary-light); color: var(--primary-color); padding: 3px 7px; border-radius: 6px; font-size: 10.5px; font-weight: 800; text-transform: uppercase; }
    .ppt-history-date { font-size: 11.5px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
    .ppt-history-del-btn { background: transparent; border: none; color: var(--text-muted); cursor: pointer; padding: 6px; border-radius: 8px; transition: all 0.2s; display: flex; align-items: center; }
    .ppt-history-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%; }
    }

    @keyframes slideInUp { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
    @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }