    *::before,
    *::after {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }

    :root {
        --bg: #f4f5f7;
        --surface: #ffffff;
        --surface2: #fafafa;
        --border: #e6e6e6;
        --accent: #fdc400;
        /* Bannerstop Gold */
        --accent-glow: rgba(253, 196, 0, 0.25);
        --accent2: #4d4d4d;
        /* Dark Gray */
        --text: #4d4d4d;
        --text-muted: #888888;
        --error: #e74c3c;
        --success: #2ecc71;
        --radius: 6px;
        --radius-sm: 4px;
    }

    body {
        font-family: 'Inter', sans-serif;
        background: var(--bg);
        color: var(--text);
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    /* ── HEADER ── */
    header {
        background: var(--surface);
        border-bottom: 4px solid var(--accent);
        padding: 0 32px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 70px;
        position: sticky;
        top: 0;
        z-index: 100;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    .logo {
        font-size: 1.2rem;
        font-weight: 700;
        letter-spacing: -0.5px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .logo-dot {
        width: 12px;
        height: 12px;
        background: var(--accent);
        border-radius: 50%;
    }

    @keyframes pulse {

        0%,
        100% {
            opacity: 1;
            transform: scale(1);
        }

        50% {
            opacity: 0.6;
            transform: scale(1.3);
        }
    }

    .status-badge {
        font-size: 0.75rem;
        padding: 4px 10px;
        border-radius: 20px;
        background: var(--surface2);
        border: 1px solid var(--border);
        color: var(--text-muted);
        display: flex;
        align-items: center;
        gap: 6px;
        transition: all 0.3s;
    }

    .status-badge.online {
        border-color: var(--success);
        color: var(--success);
    }

    .status-badge.offline {
        border-color: var(--error);
        color: var(--error);
    }

    .status-dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: currentColor;
    }

    /* ── TABS ── */
    .tabs {
        display: flex;
        gap: 4px;
        padding: 0 32px;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
    }

    .tab-btn {
        padding: 14px 22px;
        font-size: 0.9rem;
        font-weight: 500;
        color: var(--text-muted);
        background: none;
        border: none;
        border-bottom: 2px solid transparent;
        cursor: pointer;
        transition: all 0.2s;
        font-family: inherit;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .tab-btn:hover {
        color: var(--text);
    }

    .tab-btn.active {
        color: var(--accent);
        border-bottom-color: var(--accent);
    }

    /* ── MAIN LAYOUT ── */
    main {
        flex: 1;
        padding: 32px;
        max-width: 1100px;
        width: 100%;
        margin: 0 auto;
    }

    .tab-panel {
        display: none;
        animation: fadeIn 0.25s ease;
    }

    .tab-panel.active {
        display: block;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(8px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* ── SEARCH BOX ── */
    .search-wrap {
        position: relative;
        margin-bottom: 28px;
    }

    .search-box {
        display: flex;
        align-items: center;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        overflow: hidden;
        transition: border-color 0.2s, box-shadow 0.2s;
    }

    .search-box:focus-within {
        border-color: var(--accent);
        box-shadow: 0 0 0 3px var(--accent-glow);
    }

    .search-icon {
        padding: 0 16px;
        color: var(--text-muted);
        font-size: 1.2rem;
        flex-shrink: 0;
    }

    .search-box textarea {
        flex: 1;
        background: none;
        border: none;
        padding: 16px 0;
        font-size: 1rem;
        color: var(--text);
        font-family: inherit;
        outline: none;
        width: 100%;
    }

    .search-box textarea::placeholder {
        color: var(--text-muted);
    }

    .btn {
        padding: 12px 24px;
        border: none;
        border-radius: var(--radius-sm);
        font-size: 0.9rem;
        font-weight: 600;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 8px;
        transition: all 0.2s;
        font-family: inherit;
    }

    .btn-primary {
        background: var(--accent);
        color: #4d4d4d;
        margin: 6px;
    }

    .btn-primary:hover {
        background: #eab400;
        box-shadow: 0 4px 12px var(--accent-glow);
    }

    .btn-primary:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    /* ── CARD ── */
    .card {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 28px;
        margin-bottom: 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    }

    .card-title {
        font-size: 1.4rem;
        font-weight: 700;
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .tag {
        font-size: 0.72rem;
        font-weight: 600;
        padding: 3px 9px;
        border-radius: 20px;
        background: var(--accent-glow);
        color: var(--accent);
        border: 1px solid var(--accent);
        letter-spacing: 0.5px;
        text-transform: uppercase;
    }

    /* ── SKU PAGE ── */
    .product-header {
        display: flex;
        gap: 24px;
        flex-wrap: wrap;
        margin-bottom: 24px;
    }

    .product-img-wrap {
        flex-shrink: 0;
        width: 200px;
        height: 200px;
        border-radius: var(--radius);
        overflow: hidden;
        border: 1px solid var(--border);
        background: var(--surface2);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .product-img-wrap img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 8px;
    }

    .product-meta {
        flex: 1;
        min-width: 200px;
    }

    .product-name {
        font-size: 1.3rem;
        font-weight: 700;
        margin-bottom: 8px;
    }

    .meta-row {
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--text-muted);
        font-size: 0.875rem;
        margin-bottom: 6px;
    }

    .price-tag {
        font-size: 2rem;
        font-weight: 700;
        color: var(--accent2);
        margin: 12px 0;
    }

    .btn-link {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 8px 16px;
        border-radius: var(--radius-sm);
        background: var(--surface2);
        color: var(--text);
        text-decoration: none;
        font-size: 0.85rem;
        font-weight: 500;
        border: 1px solid var(--border);
        margin-top: 8px;
        transition: all 0.2s;
    }

    .btn-link:hover {
        border-color: var(--accent);
        color: var(--accent);
    }

    /* Product Sections */
    .section {
        margin-top: 24px;
    }

    .section-title {
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--text-muted);
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .section-title::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--border);
    }

    .text-block {
        background: var(--surface2);
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        padding: 16px;
        font-size: 0.95rem;
        line-height: 1.7;
        color: var(--text);
        white-space: pre-wrap;
    }

    /* Options table */
    .options-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 0.875rem;
    }

    .options-table th {
        text-align: left;
        padding: 10px 14px;
        background: var(--surface2);
        color: var(--text-muted);
        font-weight: 600;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border-bottom: 1px solid var(--border);
    }

    .options-table td {
        padding: 10px 14px;
        border-bottom: 1px solid var(--border);
        color: var(--text);
    }

    .options-table tr:last-child td {
        border-bottom: none;
    }

    .options-table tr:hover td {
        background: var(--surface2);
    }

    .options-table-wrap {
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        overflow: hidden;
        margin-bottom: 16px;
    }

    .opt-group-name {
        font-size: 0.8rem;
        font-weight: 600;
        color: var(--accent);
        padding: 8px 14px;
        background: var(--surface2);
        border-bottom: 1px solid var(--border);
    }

    /* Pricing */
    .price-tier-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 14px;
        border-bottom: 1px solid var(--border);
        font-size: 0.875rem;
    }

    .price-tier-row:last-child {
        border-bottom: none;
    }

    .price-tier-qty {
        color: var(--text-muted);
    }

    .price-tier-val {
        font-weight: 600;
        color: var(--accent2);
    }

    /* ── CHAT (RAG) ── */
    .chat-container {
        display: flex;
        flex-direction: column;
        height: calc(100vh - 250px);
        min-height: 500px;
    }

    .chat-messages {
        flex: 1;
        overflow-y: auto;
        padding: 8px 0;
        display: flex;
        flex-direction: column;
        gap: 16px;
        scrollbar-width: thin;
        scrollbar-color: var(--border) transparent;
    }

    .msg {
        display: flex;
        gap: 12px;
        align-items: flex-start;
        animation: fadeIn 0.2s ease;
    }

    .msg.user {
        flex-direction: row-reverse;
    }

    .msg-avatar {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        flex-shrink: 0;
    }

    .msg.user .msg-avatar {
        background: var(--accent);
    }

    .msg.bot .msg-avatar {
        background: var(--surface2);
        border: 1px solid var(--border);
    }

    .msg-bubble {
        max-width: 75%;
        padding: 14px 18px;
        border-radius: var(--radius);
        font-size: 0.9rem;
        line-height: 1.65;
    }

    .msg.user .msg-bubble {
        background: var(--accent);
        color: #4d4d4d;
        border-bottom-right-radius: 4px;
        font-weight: 500;
    }

    .msg.bot .msg-bubble {
        background: var(--surface2);
        border: 1px solid var(--border);
        color: var(--text);
        border-bottom-left-radius: 4px;
    }

    .msg-sources {
        margin-top: 12px;
        padding-top: 10px;
        border-top: 1px solid var(--border);
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .source-chip {
        font-size: 0.72rem;
        padding: 3px 10px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 20px;
        color: var(--text-muted);
        text-decoration: none;
        transition: all 0.2s;
    }

    .source-chip:hover {
        border-color: var(--accent2);
        color: var(--accent2);
    }

    /* Typing indicator */
    .typing {
        display: flex;
        gap: 6px;
        align-items: center;
        padding: 14px 18px;
    }

    .typing span {
        width: 8px;
        height: 8px;
        background: var(--text-muted);
        border-radius: 50%;
        animation: bounce 1.2s infinite ease-in-out;
    }

    .typing span:nth-child(2) {
        animation-delay: 0.2s;
    }

    .typing span:nth-child(3) {
        animation-delay: 0.4s;
    }

    @keyframes bounce {

        0%,
        80%,
        100% {
            transform: scale(0.8);
            opacity: 0.5;
        }

        40% {
            transform: scale(1.2);
            opacity: 1;
        }
    }

    /* Chat input */
    .chat-input-area {
        border-top: 1px solid var(--border);
        padding-top: 20px;
        display: flex;
        gap: 12px;
        align-items: flex-end;
    }

    .chat-input-wrap {
        flex: 1;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 14px 18px;
        display: flex;
        align-items: center;
        gap: 10px;
        transition: border-color 0.2s, box-shadow 0.2s;
    }

    .chat-input-wrap:focus-within {
        border-color: var(--accent);
        box-shadow: 0 0 0 3px var(--accent-glow);
    }

    #chat-input {
        flex: 1;
        background: none;
        border: none;
        outline: none;
        font-family: inherit;
        font-size: 0.95rem;
        color: var(--text);
        resize: none;
        max-height: 120px;
        line-height: 1.5;
    }

    #chat-input::placeholder {
        color: var(--text-muted);
    }

    .send-btn {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: var(--accent);
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
        transition: all 0.2s;
        flex-shrink: 0;
        color: #4d4d4d;
    }

    .send-btn:hover {
        background: #eab400;
        box-shadow: 0 4px 16px var(--accent-glow);
        transform: scale(1.05);
    }

    .send-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
        transform: none;
    }

    /* Placeholder / error states */
    .placeholder-msg {
        text-align: center;
        padding: 40px 20px;
        color: var(--text-muted);
    }

    .placeholder-msg .icon {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }

    .placeholder-msg p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .err-bubble {
        background: rgba(255, 92, 108, 0.1);
        border: 1px solid rgba(255, 92, 108, 0.3);
        border-radius: var(--radius);
        padding: 14px 18px;
        font-size: 0.875rem;
        color: var(--error);
    }

    /* JSON viewer */
    .json-toggle {
        font-size: 0.78rem;
        background: none;
        border: 1px solid var(--border);
        border-radius: 6px;
        color: var(--text-muted);
        padding: 4px 10px;
        cursor: pointer;
        font-family: inherit;
        transition: all 0.2s;
    }

    .json-toggle:hover {
        border-color: var(--accent);
        color: var(--accent);
    }

    pre {
        background: #f4f5f7;
        color: #333;
        padding: 20px;
        border-radius: var(--radius-sm);
        white-space: pre-wrap;
        word-break: break-all;
        font-family: 'Cascadia Code', 'Fira Code', 'Courier New', monospace;
        font-size: 0.82rem;
        border-left: 4px solid var(--text);
        overflow-x: auto;
        margin-top: 8px;
        display: none;
    }

    pre.visible {
        display: block;
    }

    /* Suggestions */
    .suggestions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 16px;
    }

    .suggestion-chip {
        padding: 7px 14px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 20px;
        font-size: 0.8rem;
        color: var(--text-muted);
        cursor: pointer;
        transition: all 0.2s;
        font-family: inherit;
    }

    .suggestion-chip:hover {
        border-color: var(--accent);
        color: var(--text);
    }

    #product-tooltip {
        position: absolute;
        z-index: 1000;
        display: none;
        width: 240px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        pointer-events: none;
        overflow: hidden;
        flex-direction: column;
    }

    @keyframes highlightBlink {
        0% {
            box-shadow: 0 0 0 0 rgba(234, 180, 0, 0);
            border-color: var(--border);
            transform: scale(1);
        }

        20% {
            box-shadow: 0 0 0 8px rgba(234, 180, 0, 0.4);
            border-color: var(--accent);
            transform: scale(1.02);
        }

        100% {
            box-shadow: 0 0 0 0 rgba(234, 180, 0, 0);
            border-color: var(--border);
            transform: scale(1);
        }
    }

    .highlight-blink {
        animation: highlightBlink 3s ease-out;
    }

    #ai-answer-text a.jump-to-sku {
        color: var(--text);
        text-decoration: none;
        font-weight: 600;
        box-shadow: inset 0 -6px 0 var(--accent-glow);
        padding: 0 4px;
        border-radius: 3px;
        transition: all 0.2s ease-in-out;
        cursor: pointer;
    }

    #ai-answer-text a.jump-to-sku:hover {
        color: #111;
        box-shadow: inset 0 -24px 0 var(--accent);
    }

    /* Responsive */
    @media (max-width: 640px) {
        main {
            padding: 16px;
        }

        header {
            padding: 0 16px;
        }

        .tabs {
            padding: 0 16px;
        }

        .product-img-wrap {
            width: 140px;
            height: 140px;
        }
    }