* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            background: #0f0f1a;
            color: #e0e0f0;
            min-height: 100vh;
        }

        /* Nav */
        

        

        .nav-badge {
            background: rgba(255, 255, 255, 0.2);
            color: white;
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 0.85em;
            font-weight: 500;
            backdrop-filter: blur(10px);
        }

        /* Main */
        .main-content {
            max-width: 800px;
            margin: 0 auto;
            padding: 24px;
            height: calc(100vh - 56px);
            display: flex;
            flex-direction: column;
        }

        .chat-container {
            flex: 1;
            background: #1a1a2e;
            border-radius: 20px;
            border: 1px solid rgba(102, 126, 234, 0.2);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .chat-header {
            padding: 16px 24px;
            background: rgba(102, 126, 234, 0.08);
            border-bottom: 1px solid rgba(102, 126, 234, 0.15);
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .chat-header .avatar {
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, #667eea, #764ba2);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2em;
        }

        .chat-header .info h3 {
            font-size: 1em;
            color: #fff;
        }

        .chat-header .info span {
            font-size: 0.8em;
            color: #8888aa;
        }

        /* Messages */
        .chat-messages {
            flex: 1;
            overflow-y: auto;
            padding: 24px;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .msg-group {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .msg-group.user {
            align-items: flex-end;
        }

        .msg-group.bot {
            align-items: flex-start;
        }

        .msg-label {
            font-size: 0.75em;
            color: #6666aa;
            margin: 0 8px 2px;
            font-weight: 500;
        }

        .msg-bubble {
            max-width: 85%;
            padding: 14px 18px;
            border-radius: 16px;
            line-height: 1.6;
            font-size: 0.95em;
            position: relative;
        }

        .msg-bubble.user {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border-bottom-right-radius: 4px;
        }

        .msg-bubble.bot {
            background: #252540;
            color: #d0d0e8;
            border: 1px solid var(--b, #E8DED0)355;
            border-bottom-left-radius: 4px;
        }

        /* FEEDBACK AREA - the key feature! */
        .feedback-area {
            display: flex;
            align-items: center;
            gap: 6px;
            margin-top: 8px;
            padding: 0 4px;
        }

        .fb-btn {
            display: flex;
            align-items: center;
            gap: 4px;
            padding: 6px 12px;
            border-radius: 20px;
            border: 1px solid var(--b, #E8DED0)355;
            background: rgba(37, 37, 64, 0.8);
            color: #8888aa;
            cursor: pointer;
            font-size: 0.8em;
            font-family: 'Inter', sans-serif;
            transition: all 0.25s ease;
        }

        .fb-btn:hover {
            border-color: #667eea;
            color: #b0b0dd;
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
        }

        .fb-btn.active-like {
            background: rgba(76, 175, 80, 0.15);
            border-color: #4caf50;
            color: #4caf50;
        }

        .fb-btn.active-dislike {
            background: rgba(244, 67, 54, 0.15);
            border-color: #f44336;
            color: #f44336;
        }

        .fb-btn .icon {
            font-size: 1em;
        }

        .fb-btn-comment {
            display: flex;
            align-items: center;
            gap: 4px;
            padding: 6px 12px;
            border-radius: 20px;
            border: 1px dashed var(--b, #E8DED0)466;
            background: transparent;
            color: #6666aa;
            cursor: pointer;
            font-size: 0.8em;
            font-family: 'Inter', sans-serif;
            transition: all 0.25s ease;
        }

        .fb-btn-comment:hover {
            border-color: #ffc107;
            color: #ffc107;
            background: rgba(255, 193, 7, 0.08);
        }

        /* Comment form (hidden by default, slides open) */
        .feedback-comment-form {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
            opacity: 0;
            margin-top: 0;
        }

        .feedback-comment-form.open {
            max-height: 300px;
            opacity: 1;
            margin-top: 10px;
        }

        .feedback-comment-inner {
            background: #1e1e38;
            border: 1px solid var(--b, #E8DED0)358;
            border-radius: 14px;
            padding: 14px;
            max-width: 85%;
        }

        .feedback-comment-inner .fc-label {
            font-size: 0.8em;
            color: #8888bb;
            margin-bottom: 8px;
            font-weight: 500;
        }

        .feedback-category-chips {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-bottom: 10px;
        }

        .category-chip {
            padding: 5px 12px;
            border-radius: 16px;
            border: 1px solid var(--b, #E8DED0)466;
            background: transparent;
            color: #9999bb;
            cursor: pointer;
            font-size: 0.78em;
            font-family: 'Inter', sans-serif;
            transition: all 0.2s;
        }

        .category-chip:hover {
            border-color: #667eea;
            color: #667eea;
        }

        .category-chip.selected {
            background: rgba(102, 126, 234, 0.2);
            border-color: #667eea;
            color: #667eea;
            font-weight: 600;
        }

        .feedback-textarea {
            width: 100%;
            background: #151528;
            border: 1px solid var(--b, #E8DED0)355;
            border-radius: 10px;
            padding: 10px 14px;
            color: #d0d0e8;
            font-size: 0.85em;
            font-family: 'Inter', sans-serif;
            resize: none;
            height: 60px;
            transition: border-color 0.2s;
        }

        .feedback-textarea:focus {
            outline: none;
            border-color: #667eea;
        }

        .feedback-textarea::placeholder {
            color: var(--f, #A89880)577;
        }

        .feedback-submit-row {
            display: flex;
            justify-content: flex-end;
            gap: 8px;
            margin-top: 10px;
        }

        .fb-submit-btn {
            padding: 7px 18px;
            border-radius: 10px;
            border: none;
            font-size: 0.82em;
            font-family: 'Inter', sans-serif;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }

        .fb-cancel-btn {
            background: transparent;
            border: 1px solid var(--b, #E8DED0)466;
            color: #8888aa;
        }

        .fb-cancel-btn:hover {
            border-color: #f44336;
            color: #f44336;
        }

        .fb-send-btn {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
        }

        .fb-send-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
        }

        /* Feedback success toast */
        .fb-toast {
            display: none;
            padding: 6px 14px;
            border-radius: 10px;
            font-size: 0.8em;
            font-weight: 500;
            margin-top: 8px;
            max-width: 85%;
            animation: fadeInUp 0.3s ease;
        }

        .fb-toast.success {
            display: inline-block;
            background: rgba(76, 175, 80, 0.12);
            color: #4caf50;
            border: 1px solid rgba(76, 175, 80, 0.3);
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(8px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Input bar */
        .chat-input-bar {
            padding: 16px 24px;
            background: #1a1a2e;
            border-top: 1px solid rgba(102, 126, 234, 0.1);
            display: flex;
            gap: 10px;
        }

        .chat-input-bar input {
            flex: 1;
            padding: 12px 18px;
            background: #252540;
            border: 1px solid var(--b, #E8DED0)355;
            border-radius: 14px;
            color: #d0d0e8;
            font-size: 0.95em;
            font-family: 'Inter', sans-serif;
        }

        .chat-input-bar input:focus {
            outline: none;
            border-color: #667eea;
        }

        .chat-input-bar input::placeholder {
            color: var(--f, #A89880)577;
        }

        .send-btn {
            padding: 12px 24px;
            background: linear-gradient(135deg, #667eea, #764ba2);
            border: none;
            border-radius: 14px;
            color: white;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            font-family: 'Inter', sans-serif;
        }

        .send-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
        }

        /* Scrollbar */
        .chat-messages::-webkit-scrollbar {
            width: 6px;
        }

        .chat-messages::-webkit-scrollbar-track {
            background: transparent;
        }

        .chat-messages::-webkit-scrollbar-thumb {
            background: var(--b, #E8DED0)355;
            border-radius: 3px;
        }

        /* Product cards mini */
        .product-cards-mini {
            display: flex;
            gap: 10px;
            margin-top: 12px;
            overflow-x: auto;
            padding-bottom: 4px;
        }

        .product-mini {
            min-width: 140px;
            background: #1e1e38;
            border-radius: 12px;
            border: 1px solid var(--b, #E8DED0)358;
            overflow: hidden;
            transition: all 0.2s;
        }

        .product-mini:hover {
            border-color: #667eea;
            transform: translateY(-2px);
        }

        .product-mini img {
            width: 100%;
            height: 100px;
            object-fit: cover;
            background: #151528;
        }

        .product-mini .pm-info {
            padding: 8px 10px;
        }

        .product-mini .pm-name {
            font-size: 0.75em;
            color: #b0b0cc;
            margin-bottom: 4px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .product-mini .pm-price {
            font-size: 0.82em;
            color: #ff6b6b;
            font-weight: 700;
        }