﻿    .aog-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;
    }

    .aog-panel {
        position: relative;                
        width: 100%;
        max-width: 1150px;
        border-radius: 28px;
        padding: clamp(28px, 5vw, 56px);
        overflow: hidden;
    }

    /* ---------- HERO ---------- */
    .aog-hero { text-align: center; max-width: 700px; margin: 0 auto; padding: clamp(10px, 4vw, 30px) 0; }
    .aog-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; text-transform: uppercase; }
    .aog-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; }
    .aog-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; }
    .aog-hero-desc { font-size: 16.5px; color: var(--text-muted); line-height: 1.7; margin-bottom: 36px; }

    /* ---------- OPTIONS BAR (LANG & DIR) ---------- */
    .aog-options-bar { display: flex; justify-content: center; align-items: center; gap: 12px; margin-bottom: 30px; flex-wrap: wrap; }
    
    .custom-dropdown-wrapper { position: relative; }
    .cd-trigger { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 100px; border: 1px solid var(--border-color); background: var(--bg-body); color: var(--text-main); font-size: 13.5px; font-weight: 700; cursor: pointer; transition: all 0.2s; }
    .cd-trigger:hover { border-color: var(--primary-color); }
    .cd-lang-code { font-family: monospace; font-size: 10px; font-weight: 800; color: var(--text-muted); background: var(--card-bg); padding: 2px 5px; border-radius: 4px; border: 1px solid var(--border-color); }
    
    .cd-menu { position: absolute; top: calc(100% + 8px); left: 0; width: 230px; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 16px; box-shadow: 0 16px 40px rgba(0,0,0,0.1); z-index: 200; overflow: hidden; animation: cdSlideDown 0.18s ease; }
    .cd-menu.right-align { left: auto; right: 0; }
    [dir="rtl"] .cd-menu.right-align { right: auto; left: 0; }
    @keyframes cdSlideDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

    .cd-search-box { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--border-color); background: var(--bg-body); }
    .cd-search-box input { flex: 1; border: none; background: transparent; color: var(--text-main); font-size: 13px; font-weight: 600; outline: none; }
    .cd-list { max-height: 220px; overflow-y: auto; padding: 8px; }
    .cd-group-lbl { font-size: 10px; font-weight: 800; text-transform: uppercase; color: var(--text-muted); padding: 6px 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: 10px; padding: 8px 12px; border-radius: 10px; cursor: pointer; transition: background 0.15s; font-size: 13px; font-weight: 600; color: var(--text-main); }
    .cd-item:hover { background: var(--bg-body); }
    .cd-item.selected { 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-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: 18px 12px; text-align: center; font-size: 12px; color: var(--text-muted); display: flex; flex-direction: column; align-items: center; gap: 6px; }
    
    .dir-toggle { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 100px; border: 1px solid var(--border-color); background: var(--bg-body); color: var(--text-main); font-size: 13px; font-weight: 700; cursor: pointer; transition: all 0.2s; }
    .dir-toggle:hover { border-color: var(--primary-color); }
    .dir-toggle.rtl-on .d-rtl { color: var(--primary-color); font-weight: 800; }
    .dir-toggle:not(.rtl-on) .d-ltr { color: var(--primary-color); font-weight: 800; }

    /* Custom Dropdowns */
    .custom-dropdown { position: relative; }
    .cd-header {
        display: inline-flex; align-items: center; justify-content: space-between; gap: 8px;
        background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 12px;
        padding: 8px 14px; font-size: 13px; font-weight: 700; color: var(--text-main); cursor: pointer; transition: all 0.2s; white-space: nowrap;
    }
    .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-body {
        position: absolute; top: calc(100% + 6px); left: 0; width: 260px;
        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: 200; overflow: hidden; animation: cdSlideDown 0.18s ease;
    }
    .cd-item.active { background: var(--primary-light); color: var(--primary-color); font-weight: 700; }

    /* ---------- SEARCH BAR / COMMAND HUB ---------- */
    .aog-prompt-wrapper { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
    
    .aog-prompt {
        display: flex; align-items: center; gap: 10px;
        background: var(--bg-body);
        border: 2px solid var(--border-color);
        border-radius: 999px;
        padding: 8px 8px 8px 22px;
        transition: all 0.3s var(--ease-out);
        width: 100%;
    }
    [dir="rtl"] .aog-prompt { padding: 8px 22px 8px 8px; }
    .aog-prompt:focus-within {
        border-color: var(--primary-color);
        background: var(--card-bg);
        box-shadow: 0 0 0 6px var(--primary-light);
    }
    .aog-prompt-icon { color: var(--primary-color); flex-shrink: 0; width: 18px; height: 18px; }
    .aog-prompt-input { flex: 1; min-width: 0; background: transparent; border: none; outline: none; color: var(--text-main); font-size: 15.5px; padding: 10px 0; font-family: inherit; }
    .aog-prompt-input::placeholder { color: var(--text-muted); }

    .aog-prompt-submit {
        flex-shrink: 0;
        width: 46px; height: 46px;
        border-radius: 50%;
        border: none;
        color: #fff;
        background: linear-gradient(135deg, var(--primary-color), var(--primary-gradient-end));
        display: flex; align-items: center; justify-content: center;
        cursor: pointer;
        transition: transform 0.25s var(--ease-out), filter 0.2s, box-shadow 0.25s;
    }
    .aog-prompt-submit:hover:not(:disabled) { transform: translateY(-2px) scale(1.04); box-shadow: 0 10px 22px var(--primary-shadow); filter: brightness(1.05); }
    .aog-prompt-submit:active:not(:disabled) { transform: translateY(0) scale(0.98); }
    .aog-prompt-submit:disabled { opacity: 0.45; cursor: not-allowed; }
    [dir="rtl"] .aog-prompt-submit i, [dir="rtl"] .aog-prompt-submit svg { transform: scaleX(-1); }

    /* Command Options */
    .cmd-options { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

    /* ---------- HISTORY SECTION ---------- */
    .aog-history-section { max-width: 700px; margin: 30px auto 0; animation: fadeIn 0.4s ease; }
    .dh-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; padding: 0 10px; }
    .dh-title { font-size: 15px; font-weight: 800; color: var(--text-main); display: flex; align-items: center; gap: 8px; margin: 0; }
    .dh-clear-btn { background: transparent; border: none; font-size: 13px; font-weight: 700; color: #ef4444; cursor: pointer; padding: 4px 8px; border-radius: 6px; transition: background 0.2s; }
    .dh-clear-btn:hover { background: rgba(239, 68, 68, 0.1); }
    
    .dh-list { display: flex; flex-direction: column; gap: 8px; max-height: 250px; overflow-y: auto; padding-right: 4px; }
    .dh-list::-webkit-scrollbar { width: 4px; }
    .dh-list::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }
    
    .dh-item { display: flex; align-items: center; justify-content: space-between; background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 12px; padding: 12px 16px; transition: all 0.2s var(--ease-out); cursor: pointer; user-select: none; }
    .dh-item:hover { border-color: var(--primary-color); transform: translateX(4px); box-shadow: 0 4px 12px rgba(0,0,0,0.03); }
    
    .dh-info { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; }
    .dh-domain { font-size: 14.5px; font-weight: 700; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .dh-date { font-size: 12.5px; font-weight: 600; color: var(--text-muted); white-space: nowrap; margin-right: 12px; }
    .dh-badge { font-size: 11px; background: var(--border-color); padding: 4px 8px; border-radius: 6px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; }

    .dh-delete-btn { background: transparent; border: none; color: var(--text-muted); cursor: pointer; padding: 6px; border-radius: 6px; transition: all 0.2s; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
    .dh-delete-btn:hover { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

    /* Limit Warning */
    .limit-warning { display: flex; margin: 24px auto 0; max-width: 700px; padding: 16px 20px; background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.2); border-radius: 16px; align-items: flex-start; gap: 12px; }
    .lw-ico { color: var(--danger, #ef4444); flex-shrink: 0; }
    .lw-text { font-size: 14px; color: var(--danger, #ef4444); line-height: 1.5; font-weight: 500; }
    .lw-link { display: inline-flex; align-items: center; gap: 4px; color: var(--danger, #ef4444); text-decoration: underline; font-weight: 700; margin-top: 4px; }

    /* ---------- LOADING STATE ---------- */
    .aog-loading { text-align: center; padding: 40px 0; }
    .aog-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: aogPulse 2s infinite ease-in-out;
    }
    @keyframes aogPulse { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 16px var(--primary-light); } 50% { transform: scale(1.05); box-shadow: 0 0 0 24px color-mix(in srgb, var(--primary-color) 8%, transparent); } }
    
    .aog-thinking-log {
        list-style: none; margin: 0; padding: 0 10px;
        display: flex; flex-direction: column; gap: 12px;
        max-width: 400px; margin: 0 auto;
    }
    .aog-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;
    }
    .aog-thinking-log li.active { color: var(--text-main); font-weight: 700; }
    .aog-thinking-log li.done { color: var(--text-muted); opacity: 0.6; }
    .aog-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); }
    .aog-thinking-log li.active .aog-log-dot { border-color: var(--primary-color); color: var(--primary-color); }
    .aog-thinking-log li.done .aog-log-dot { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }

    /* ---------- RESULTS STATE ---------- */
    .aog-result { margin-top: 40px; animation: fadeIn 0.5s ease; }
    
    .aog-btn-ghost {
        background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 10px;
        padding: 8px 14px; font-size: 12.5px; font-weight: 700; color: var(--text-main);
        cursor: pointer; display: inline-flex; align-items: center; gap: 7px; transition: all 0.2s;
    }
    .aog-btn-ghost:hover { border-color: var(--primary-color); color: var(--primary-color); background: var(--primary-light); }
    .aog-btn-ghost.primary-ghost { background: var(--primary-light); border-color: color-mix(in srgb, var(--primary-color) 40%, transparent); color: var(--primary-color); font-weight: 800; }
    .aog-btn-ghost.primary-ghost:hover { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }

    .api-err { text-align: center; padding: 40px 20px; }
    .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 h3 { font-size: 24px; font-weight: 900; color: var(--text-main); margin-bottom: 12px; }
    .ae-status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: #ef4444; background: rgba(239, 68, 68, 0.1); padding: 6px 12px; border-radius: 100px; margin-bottom: 16px; }
    .ae-message { font-size: 15px; color: var(--text-muted); line-height: 1.6; max-width: 500px; margin: 0 auto 24px; }
    .ae-hint { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--text-main); background: var(--bg-body); padding: 12px 20px; border-radius: 12px; border: 1px solid var(--border-color); }

    /* Hierarchy Node Tree Styles */
    .hm-container { background: var(--bg-body); border-radius: 20px; padding: 30px; border: 1px solid var(--border-color); position: relative; overflow: hidden; }
    .hm-actions { display: flex; gap: 12px; justify-content: flex-end; margin-bottom: 24px; flex-wrap: wrap; }
    
    .node-tree { display: flex; flex-direction: column; gap: 10px; }
    .node-branch { display: flex; align-items: stretch; position: relative; animation: slideInLeft 0.3s ease forwards; opacity: 0; transform: translateX(-10px); }
    @keyframes slideInLeft { to { opacity: 1; transform: translateX(0); } }

    .node-card { display: flex; align-items: flex-start; gap: 12px; background: var(--card-bg); padding: 12px 16px; border-radius: 12px; border: 1px solid var(--border-color); flex: 1; transition: all 0.2s; box-shadow: 0 2px 8px rgba(0,0,0,0.01); }
    .node-card:hover { border-color: var(--primary-color); box-shadow: 0 4px 12px rgba(99,102,241,0.08); transform: translateX(4px); }
    
    .nc-icon { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0; }
    .nc-icon i, .nc-icon svg { width: 14px; height: 14px; }
    
    .nc-text { font-size: 14.5px; font-weight: 600; color: var(--text-main); line-height: 1.6; }
    
    .node-branch.h1 { margin-left: 0; margin-top: 10px; }
    .node-branch.h1 .node-card { background: var(--primary-light); border-color: var(--primary-color); }
    .node-branch.h1 .nc-icon { background: var(--primary-color); color: #fff; }
    .node-branch.h1 .nc-text { font-size: 16px; font-weight: 800; color: var(--primary-color); }
    
    .node-branch.h2 { margin-left: 30px; }
    [dir="rtl"] .node-branch.h2 { margin-left: 0; margin-right: 30px; }
    .node-branch.h2 .nc-icon { background: rgba(99,102,241,0.1); color: var(--primary-color); }
    .node-branch.h2 .nc-text { font-weight: 700; }
    
    .node-branch.h3 { margin-left: 60px; }
    [dir="rtl"] .node-branch.h3 { margin-left: 0; margin-right: 60px; }
    .node-branch.h3 .nc-icon { background: var(--bg-body); color: var(--text-muted); border: 1px solid var(--border-color); }
    .node-branch.h3 .node-card { padding: 10px 14px; }

    .node-branch.h4 { margin-left: 90px; }
    [dir="rtl"] .node-branch.h4 { margin-left: 0; margin-right: 90px; }
    .node-branch.h4 .nc-icon { background: var(--bg-body); color: var(--text-muted); border: 1px solid var(--border-color); }
    .node-branch.h4 .node-card { padding: 8px 12px; }
    
    .scan-overlay { position: absolute; inset: 0; background: rgba(255,255,255,0.8); backdrop-filter: blur(4px); display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 10; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
    .dark-mode .scan-overlay { background: rgba(15, 23, 42, 0.85); }
    .scan-overlay.active { opacity: 1; pointer-events: all; }
    .so-spinner { width: 40px; height: 40px; border: 3px solid var(--border-color); border-top-color: var(--primary-color); border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 16px; }
    .so-text { font-size: 14px; font-weight: 800; color: var(--primary-color); letter-spacing: 2px; }

    /* Stats Strip */
    .aog-stats-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 30px 0; }
    .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; transition: transform 0.2s; }
    .sc:hover { transform: translateY(-2px); }
    .sc-ico { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
    .sc-ico.blue { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
    .sc-ico.green { background: rgba(34, 197, 94, 0.1); color: #22c55e; }
    .sc-ico.purple { background: rgba(168, 85, 247, 0.1); color: #a855f7; }
    .sc-val { font-size: 28px; font-weight: 900; color: var(--text-main); line-height: 1; margin-bottom: 4px; font-family: 'Space Mono', monospace; }
    .sc-lbl { font-size: 13px; font-weight: 700; color: var(--text-muted); }

    /* ---------- 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::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-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 { grid-column: span 2; }
        .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; }
    }

    .spin-icon { animation: spin 2s linear infinite; }
    @keyframes spin { to { transform: rotate(360deg); } }
    @keyframes slideInUp { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
    @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }