/* 늘비서 챗봇 위젯 — v7 Light Design */

/* 라이트 테마 (진한 색상) */
#nulbot-widget {
    --bg-primary: #f8f9fb;
    --bg-glass: rgba(248, 249, 251, 0.96);
    --bg-messages: linear-gradient(180deg, #eef1f6 0%, #f3f5f9 50%, #e8ecf2 100%);
    --bg-bot: #e4e8f0;
    --bg-input: #f0f2f7;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --border-color: #cbd5e1;
    --border-glass: rgba(0, 0, 0, 0.1);
    --accent-1: #1d4ed8;
    --accent-2: #4338ca;
    --accent-3: #6d28d9;
    --grad-header: linear-gradient(135deg, #1e40af 0%, #3730a3 50%, #5b21b6 100%);
    --grad-user: linear-gradient(135deg, #2563eb, #4f46e5);
    --grad-send: linear-gradient(135deg, #2563eb, #7c3aed);
    --accent-shadow: rgba(29, 78, 216, 0.3);
    --shadow-sm: 0 1px 4px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.15);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.08);
    --code-bg: #e2e6ef;
    --table-header: #dde2ec;
    --chip-bg: rgba(29, 78, 216, 0.1);
    --chip-border: rgba(29, 78, 216, 0.35);
    --chip-text: #1d4ed8;
}

/* ═══════════ 플로팅 버튼 ═══════════ */
#nulbot-toggle {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e40af 0%, #4338ca 100%);
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(30, 64, 175, 0.5), 0 0 0 0 rgba(30, 64, 175, 0);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s;
}

#nulbot-toggle:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 40px rgba(30, 64, 175, 0.6);
}

#nulbot-toggle svg { width: 28px; height: 28px; fill: white; }

#nulbot-toggle::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e40af, #4338ca);
    opacity: 0;
    animation: nulbot-ping 2.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes nulbot-ping {
    0% { transform: scale(1); opacity: 0.4; }
    75%, 100% { transform: scale(1.8); opacity: 0; }
}

/* ═══════════ 채팅 창 ═══════════ */
#nulbot-window {
    position: fixed;
    bottom: 104px;
    right: 28px;
    width: 420px;
    height: 600px;
    background: var(--bg-primary);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    z-index: 99998;
    display: none;
    flex-direction: column;
    overflow: hidden;
    font-family: 'Pretendard', -apple-system, 'Segoe UI', sans-serif;
    border: 1px solid var(--border-color);
}

#nulbot-window.open {
    display: flex;
    animation: nulbot-open 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes nulbot-open {
    from { opacity: 0; transform: translateY(40px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ═══════════ 헤더 ═══════════ */
#nulbot-header {
    background: var(--grad-header);
    color: white;
    padding: 16px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

/* 헤더 장식 원형 */
#nulbot-header::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    top: -60px;
    right: -20px;
}

#nulbot-header::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    bottom: -40px;
    left: 30px;
}

.nulbot-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.nulbot-avatar {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.15);
}

#nulbot-header .title {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.nulbot-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    opacity: 0.9;
    margin-top: 2px;
}

.nulbot-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
    animation: nulbot-glow 2s ease-in-out infinite alternate;
}

@keyframes nulbot-glow {
    from { box-shadow: 0 0 4px rgba(74, 222, 128, 0.4); }
    to { box-shadow: 0 0 12px rgba(74, 222, 128, 0.8); }
}

.nulbot-header-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    position: relative;
    z-index: 1;
}

.nulbot-header-actions button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.65;
    transition: all 0.2s;
    padding: 0;
}

.nulbot-header-actions button:hover {
    opacity: 1;
    background: rgba(255,255,255,0.15);
    transform: scale(1.1);
}

.nulbot-header-actions button svg { width: 17px; height: 17px; fill: white; }

/* ═══════════ 퀵 액션 바 ═══════════ */
#nulbot-quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 10px 16px;
    background: var(--bg-input);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.nulbot-quick-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 12px;
    border: 1px solid var(--chip-border);
    border-radius: 12px;
    background: var(--chip-bg);
    color: var(--chip-text);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: inherit;
    white-space: nowrap;
}

.nulbot-quick-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex-shrink: 0;
}

.nulbot-quick-btn:hover {
    background: var(--accent-1);
    border-color: var(--accent-1);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--accent-shadow);
}

.nulbot-quick-btn:hover svg {
    fill: white;
}

/* 카카오톡 버튼 */
#nulbot-qa-kakao {
    border-color: rgba(210, 185, 0, 0.5);
    background: rgba(250, 225, 0, 0.15);
    color: #3C1E1E;
}
#nulbot-qa-kakao svg { fill: #3C1E1E; }
#nulbot-qa-kakao:hover {
    background: #FAE100;
    border-color: #E5CC00;
    color: #1A0D0D;
    box-shadow: 0 4px 12px rgba(250, 225, 0, 0.35);
}
#nulbot-qa-kakao:hover svg { fill: #1A0D0D; }

/* 전화 버튼 */
#nulbot-qa-call {
    border-color: rgba(21, 128, 61, 0.4);
    background: rgba(22, 163, 74, 0.12);
    color: #15803d;
}
#nulbot-qa-call svg { fill: #15803d; }
#nulbot-qa-call:hover {
    background: #15803d;
    border-color: #166534;
    color: white;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35);
}

/* 인기 질문 버튼 */
#nulbot-qa-faq {
    grid-column: 1 / -1;
    border-color: rgba(139, 92, 246, 0.35);
    background: rgba(139, 92, 246, 0.1);
    color: #7c3aed;
}
#nulbot-qa-faq svg { fill: #7c3aed; }
#nulbot-qa-faq:hover {
    background: #7c3aed;
    border-color: #6d28d9;
    color: white;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
}
#nulbot-qa-faq:hover svg { fill: white; }

/* ═══════════ 인기 질문 패널 ═══════════ */
#nulbot-faq-panel {
    display: none;
    flex-shrink: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#nulbot-faq-panel.active {
    display: block;
    max-height: 320px;
    overflow-y: auto;
    border-bottom: 1px solid var(--border-color);
    animation: nulbot-msg-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nulbot-faq-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    background: var(--bg-input);
    position: sticky;
    top: 0;
    z-index: 1;
}

.nulbot-faq-header button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transition: all 0.2s;
}
.nulbot-faq-header button:hover { opacity: 1; background: var(--border-color); }
.nulbot-faq-header button svg { width: 16px; height: 16px; fill: var(--text-primary); }

.nulbot-faq-category {
    padding: 6px 16px 10px;
}

.nulbot-faq-cat-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-1);
    padding: 4px 0;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--border-color);
}

.nulbot-faq-cat-title svg {
    width: 14px;
    height: 14px;
    fill: var(--accent-1);
    flex-shrink: 0;
}

.nulbot-faq-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 12px;
    margin: 3px 0;
    border: 1px solid transparent;
    border-radius: 10px;
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1.4;
}

.nulbot-faq-item:hover {
    border-color: var(--accent-1);
    background: var(--chip-bg);
    color: var(--accent-1);
    transform: translateX(4px);
}

/* 퀵 액션 폼 오버레이 */
#nulbot-qa-form {
    display: none;
    padding: 14px 16px;
    background: var(--bg-input);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    animation: nulbot-msg-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#nulbot-qa-form.active {
    display: block;
}

.nulbot-qa-form-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nulbot-qa-form-title svg {
    width: 16px;
    height: 16px;
    fill: var(--accent-1);
}

.nulbot-qa-form-row {
    display: flex;
    gap: 8px;
}

.nulbot-qa-form-row input {
    flex: 1;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 9px 14px;
    font-size: 13px;
    background: var(--bg-primary);
    color: var(--text-primary);
    outline: none;
    font-family: inherit;
    transition: border-color 0.25s;
}

.nulbot-qa-form-row input:focus {
    border-color: var(--accent-1);
}

.nulbot-qa-form-row input::placeholder {
    color: var(--text-muted);
}

.nulbot-qa-form-row button {
    padding: 9px 18px;
    border: none;
    border-radius: 12px;
    background: var(--grad-send);
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.25s;
    white-space: nowrap;
}

.nulbot-qa-form-row button:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 12px var(--accent-shadow);
}

.nulbot-qa-form-close {
    background: none !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-secondary) !important;
    padding: 9px 14px !important;
}

.nulbot-qa-form-close:hover {
    background: var(--border-color) !important;
    color: var(--text-primary) !important;
}

.nulbot-qa-msg {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
}

.nulbot-qa-msg.success {
    color: #16a34a;
}

.nulbot-qa-msg.error {
    color: #dc2626;
}

/* ═══════════ 메시지 영역 ═══════════ */
#nulbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--bg-messages);
}

#nulbot-messages::-webkit-scrollbar { width: 4px; }
#nulbot-messages::-webkit-scrollbar-track { background: transparent; }
#nulbot-messages::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 4px;
}

/* ═══════════ 메시지 말풍선 ═══════════ */
.nulbot-msg {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 20px;
    font-size: 13.5px;
    line-height: 1.7;
    word-break: break-word;
    animation: nulbot-msg-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes nulbot-msg-in {
    from { opacity: 0; transform: translateY(12px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.nulbot-msg.user {
    align-self: flex-end;
    background: var(--grad-user);
    color: white;
    border-bottom-right-radius: 6px;
    box-shadow: 0 4px 16px var(--accent-shadow);
}

.nulbot-msg.bot {
    align-self: flex-start;
    background: var(--bg-bot);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 6px;
    box-shadow: var(--shadow-sm);
}

/* 메시지 시간 */
.nulbot-msg-time {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 6px;
    display: block;
    opacity: 0.7;
}
.nulbot-msg.user .nulbot-msg-time {
    text-align: right;
    color: rgba(255,255,255,0.7);
}

/* 타이핑 커서 */
.nulbot-typing-cursor {
    display: inline-block;
    width: 2px;
    height: 15px;
    background: var(--accent-1);
    margin-left: 2px;
    vertical-align: text-bottom;
    border-radius: 1px;
    animation: nulbot-blink 0.7s infinite;
}

@keyframes nulbot-blink {
    0%, 45% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* ═══════════ 추천 질문 칩 ═══════════ */
.nulbot-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 0;
}

.nulbot-chip {
    background: var(--chip-bg);
    border: 1px solid var(--chip-border);
    color: var(--chip-text);
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    line-height: 1.3;
}

.nulbot-chip:hover {
    background: var(--accent-1);
    border-color: var(--accent-1);
    color: white;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 16px var(--accent-shadow);
}

/* ═══════════ 마크다운 스타일 ═══════════ */
.nulbot-msg.bot h1, .nulbot-msg.bot h2, .nulbot-msg.bot h3 {
    font-weight: 800;
    margin: 10px 0 4px 0;
    letter-spacing: -0.3px;
}
.nulbot-msg.bot h1 { font-size: 16px; }
.nulbot-msg.bot h2 { font-size: 15px; }
.nulbot-msg.bot h3 { font-size: 14px; }
.nulbot-msg.bot p { margin: 4px 0; }
.nulbot-msg.bot ul, .nulbot-msg.bot ol { margin: 4px 0; padding-left: 18px; }
.nulbot-msg.bot li { margin: 3px 0; }
.nulbot-msg.bot strong { font-weight: 700; color: var(--accent-1); }

.nulbot-msg.bot table {
    border-collapse: collapse;
    margin: 8px 0;
    font-size: 12px;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}
.nulbot-msg.bot table th, .nulbot-msg.bot table td {
    border: 1px solid var(--border-color);
    padding: 6px 10px;
    text-align: left;
}
.nulbot-msg.bot table th {
    background: var(--table-header);
    font-weight: 700;
    color: var(--accent-1);
}

.nulbot-msg.bot code {
    background: var(--code-bg);
    color: var(--accent-2);
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 12px;
    font-family: 'SF Mono', 'Fira Code', monospace;
}
.nulbot-msg.bot pre {
    background: var(--code-bg);
    padding: 10px 12px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 8px 0;
    border: 1px solid var(--border-color);
}
.nulbot-msg.bot pre code { padding: 0; background: none; color: var(--text-primary); }

.nulbot-msg.bot blockquote {
    border-left: 3px solid var(--accent-2);
    padding-left: 12px;
    margin: 8px 0;
    color: var(--text-secondary);
    font-style: italic;
}
.nulbot-msg.bot hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 10px 0;
}
.nulbot-msg.bot img {
    max-width: 100%;
    border-radius: 12px;
    margin: 8px 0;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--border-color);
}
.nulbot-msg.bot img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

/* ═══════════ 로딩 ═══════════ */
.nulbot-msg.loading {
    display: flex;
    gap: 6px;
    padding: 16px 22px;
}
.nulbot-msg.loading .dot {
    width: 9px;
    height: 9px;
    background: var(--accent-2);
    border-radius: 50%;
    animation: nulbot-bounce 1.4s ease-in-out infinite;
    opacity: 0.7;
}
.nulbot-msg.loading .dot:nth-child(2) { animation-delay: 0.2s; }
.nulbot-msg.loading .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes nulbot-bounce {
    0%, 80%, 100% { transform: translateY(0) scale(1); }
    40% { transform: translateY(-12px) scale(1.15); }
}

/* 토큰 */
.nulbot-token-info {
    align-self: flex-start;
    font-size: 10px;
    color: var(--text-muted);
    padding: 2px 16px;
    opacity: 0.6;
}

/* ═══════════ 토스트 알림 ═══════════ */
#nulbot-toast {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.4);
    z-index: 10;
    animation: nulbot-toast-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: nowrap;
}

#nulbot-toast svg {
    width: 16px;
    height: 16px;
    fill: white;
    flex-shrink: 0;
}

#nulbot-toast.fade-out {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
    transition: all 0.4s ease;
}

@keyframes nulbot-toast-in {
    from { opacity: 0; transform: translateX(-50%) translateY(20px) scale(0.9); }
    to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

/* ═══════════ 입력 영역 ═══════════ */
#nulbot-input-area {
    padding: 14px 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
    background: var(--bg-input);
    flex-shrink: 0;
}

#nulbot-input {
    flex: 1;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 11px 16px;
    font-size: 13.5px;
    outline: none;
    transition: all 0.25s;
    font-family: inherit;
    resize: none;
    height: 44px;
    background: var(--bg-primary);
    color: var(--text-primary);
}
#nulbot-input:focus {
    border-color: var(--accent-1);
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.18);
}
#nulbot-input::placeholder { color: var(--text-muted); }

/* ═══════════ 마이크 버튼 ═══════════ */
#nulbot-mic {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
    position: relative;
}
#nulbot-mic svg { width: 20px; height: 20px; fill: var(--text-muted); transition: fill 0.25s; }
#nulbot-mic:hover {
    border-color: var(--accent-1);
    background: var(--chip-bg);
}
#nulbot-mic:hover svg { fill: var(--accent-1); }

/* 녹음 중 상태 */
#nulbot-mic.recording {
    border-color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
    animation: nulbot-mic-pulse 1.2s ease-in-out infinite;
}
#nulbot-mic.recording svg { fill: #dc2626; }

#nulbot-mic.recording::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 14px;
    border: 2px solid #dc2626;
    opacity: 0;
    animation: nulbot-mic-ring 1.2s ease-out infinite;
}

@keyframes nulbot-mic-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

@keyframes nulbot-mic-ring {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* ═══════════ 스피커(TTS) 버튼 ═══════════ */
.nulbot-tts-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    padding: 4px 6px;
    margin-top: 6px;
    opacity: 0.5;
    transition: all 0.25s;
}
.nulbot-tts-btn svg {
    width: 14px;
    height: 14px;
    fill: var(--text-muted);
}
.nulbot-tts-btn:hover {
    opacity: 1;
    background: var(--chip-bg);
    border-color: var(--accent-1);
}
.nulbot-tts-btn:hover svg { fill: var(--accent-1); }

#nulbot-send {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--grad-send);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}
#nulbot-send:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 16px var(--accent-shadow);
}
#nulbot-send:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
#nulbot-send svg { width: 18px; height: 18px; fill: white; }

/* ═══════════ 모바일 ═══════════ */
@media (max-width: 480px) {
    #nulbot-window {
        width: calc(100vw - 16px);
        height: calc(100vh - 90px);
        right: 8px;
        bottom: 80px;
        border-radius: 20px;
    }
    #nulbot-toggle { bottom: 16px; right: 16px; width: 58px; height: 58px; }
    .nulbot-msg { max-width: 90%; font-size: 13px; }
    .nulbot-chip { font-size: 11px; padding: 6px 12px; }
    #nulbot-header { padding: 14px; }
}

/* ─── 개인정보 동의 팝업 ─── */
#nulbot-consent-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
}
#nulbot-consent-box {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    max-width: 340px;
    width: 100%;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    animation: nulbot-consent-in 0.25s ease-out;
}
@keyframes nulbot-consent-in {
    from { opacity: 0; transform: translateY(12px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
#nulbot-consent-agree:not(:disabled):hover { background: #1d4ed8 !important; }
#nulbot-consent-deny:hover { background: #f1f5f9 !important; }
