/* ============================================
   SURGA CHAT WIDGET — Premium v9 (start chat + auto-reply)
   ============================================ */

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

html, body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  background: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body:has(.chat-shell.minimized) { background: transparent !important; }

button { font-family: inherit; }
a { text-decoration: none; }

/* ============ FLOATING BUBBLE ============ */
.floating-bubble {
  position: fixed; bottom: 20px; right: 20px;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0c444 0%, #d4a51e 100%);
  border: none; cursor: pointer;
  display: none;
  align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(212, 165, 30, 0.5), 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 999999;
  transition: transform 0.2s ease;
  color: #1f1f1f;
  animation: bubble-pulse 2.5s infinite;
}

.floating-bubble.show {
  display: flex;
  animation: bubble-pulse 2.5s infinite, bubble-pop-in 0.4s ease;
}

.floating-bubble:hover { transform: scale(1.08); }

.bubble-badge {
  position: absolute; top: -2px; right: -2px;
  width: 22px; height: 22px;
  background: #ef4444;
  border: 2px solid white;
  border-radius: 50%;
  color: white; font-size: 11px; font-weight: 700;
  display: none;
  align-items: center; justify-content: center;
}

.floating-bubble.has-unread .bubble-badge { display: flex; }

@keyframes bubble-pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(212, 165, 30, 0.5), 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(240, 196, 68, 0.5); }
  50% { box-shadow: 0 8px 24px rgba(212, 165, 30, 0.5), 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 12px rgba(240, 196, 68, 0); }
}

@keyframes bubble-pop-in {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

/* ============ CHAT SHELL ============ */
.chat-shell {
  width: 100%; max-width: 380px; height: 660px;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18), 0 8px 20px rgba(0, 0, 0, 0.08);
  margin: 0 auto;
  display: flex; flex-direction: column;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.chat-shell.minimized {
  display: none !important;
  width: 0 !important; height: 0 !important; max-width: 0 !important;
  visibility: hidden !important; opacity: 0 !important;
  pointer-events: none !important;
  margin: 0 !important; padding: 0 !important;
  border: none !important; box-shadow: none !important;
  overflow: hidden !important;
}

.screen { display: none; width: 100%; height: 100%; background: #ffffff; position: relative; flex-direction: column; }
.screen.active { display: flex; }

/* ============ TOPBAR ============ */
.topbar, .chat-topbar {
  display: flex; align-items: center; gap: 8px;
  padding: 16px 16px 0;
  position: relative; z-index: 5;
  flex-shrink: 0;
}

.icon-btn {
  width: 36px; height: 36px;
  border: none; border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #1f1f1f; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 0; flex-shrink: 0;
}

.icon-btn:hover {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.icon-btn.dark { background: #f3f4f6; }

.icon-btn.close-chat-btn {
  margin-left: auto;
  background: #ffffff;
  color: #1f1f1f;
  width: 38px; height: 38px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.icon-btn.close-chat-btn:hover {
  background: #ef4444;
  color: #ffffff;
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.45);
}

.icon-btn.minimize-btn {
  background: #1f1f1f;
  color: #ffffff;
  width: 38px; height: 38px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.chat-topbar .icon-btn.close-chat-btn + .icon-btn.minimize-btn { margin-left: 0; }
.topbar > .icon-btn.minimize-btn { margin-left: auto; }

.icon-btn.minimize-btn:hover {
  background: #000;
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

/* ============ HOME — HERO ============ */
.hero {
  background: linear-gradient(180deg, #f5d97a 0%, #f0c444 35%, #ffffff 100%);
  padding: 0 0 28px;
  position: relative; overflow: hidden;
  flex-shrink: 0;
}

.hero::before {
  content: '';
  position: absolute; top: -40%; right: -20%;
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(255, 220, 100, 0.5) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content { padding: 14px 22px 0; position: relative; z-index: 1; }

.mini-logo {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff 0%, #fff5d4 100%);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 4px 12px rgba(212, 165, 30, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.logo-text { font-weight: 900; font-size: 20px; color: #d4a51e; letter-spacing: -0.5px; }

.hero-title {
  font-size: 30px; line-height: 1.15;
  font-weight: 900; color: #111;
  letter-spacing: -0.5px;
}

/* ============ AGENT CARD ============ */
.agent-card {
  background: #ffffff;
  margin: -8px 14px 14px;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  position: relative; z-index: 2;
}

.agent-row { display: flex; gap: 14px; align-items: flex-start; }

.agent-avatar-wrap { position: relative; flex-shrink: 0; width: 46px; height: 46px; }

.agent-avatar-fallback {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0c444, #d4a51e);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 20px;
  border: 2px solid #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.online-dot {
  position: absolute; bottom: 0; right: 0;
  width: 12px; height: 12px;
  background: #22c55e;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: pulse-dot 2s infinite;
}

.online-dot.small { width: 11px; height: 11px; }

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.agent-text { flex: 1; min-width: 0; }
.agent-name-small { color: #1f1f1f; font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.agent-desc { font-size: 13px; line-height: 1.5; color: #6b7280; }

.primary-btn {
  width: 100%;
  background: linear-gradient(135deg, #f0c444 0%, #e6b332 100%);
  color: #1f1f1f;
  border: none; border-radius: 14px;
  padding: 14px 18px; margin-top: 16px;
  font-size: 15px; font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(240, 196, 68, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(240, 196, 68, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* ============ MENU LINKS ============ */
.menu-links { padding: 0 14px; flex: 1; overflow-y: auto; }

.menu-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: #d4950a;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: background .15s, transform .1s;
  text-align: center;
  border: none;
}
.menu-card:hover { background: #b8800a; transform: translateY(-1px); }
.menu-card:active { transform: scale(.97); }
.menu-card svg { display: none !important; width: 0 !important; height: 0 !important; }

.menu-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.arrow-circle {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #1f1f1f; color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}

.menu-card:hover .arrow-circle { background: #f0c444; color: #1f1f1f; }

/* ============ BOTTOM SECTION ============ */
.bottom-section { flex-shrink: 0; background: #fafafa; padding-top: 8px; }

.bottom-nav {
  margin: 0 14px;
  background: #ffffff;
  border-radius: 22px;
  display: flex; justify-content: space-around;
  padding: 12px 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.04);
}

.nav-item {
  border: none; background: none;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: #9ca3af; cursor: pointer;
  font-size: 12px; font-weight: 500;
  padding: 4px 16px;
  border-radius: 12px;
  transition: color 0.2s;
}

.nav-item.active, .nav-item:hover { color: #1f1f1f; }

.nav-icon { display: block; }

.powered {
  text-align: center; font-size: 11px; color: #9ca3af;
  padding: 12px 0 14px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}

.powered-brand { display: inline-flex; align-items: center; gap: 4px; }
.powered-brand strong { color: #1f1f1f; font-weight: 700; }

/* ============ CHAT PANEL ============ */
.profile-pill {
  width: max-content; max-width: 240px;
  margin: 14px auto 12px;
  background: #ffffff;
  border-radius: 22px;
  display: flex; align-items: center; gap: 12px;
  padding: 8px 18px 8px 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}

.profile-pill-avatar-wrap { position: relative; flex-shrink: 0; width: 44px; height: 44px; }

.profile-pill-avatar-fallback {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0c444, #d4a51e);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px;
}

.profile-pill-info { min-width: 0; }
.profile-pill-name { font-weight: 700; font-size: 14px; color: #1f1f1f; line-height: 1.2; }
.profile-pill-role { color: #9ca3af; font-size: 12px; margin-top: 2px; }

/* ============ MESSAGES AREA ============ */
.messages-area {
  flex: 1; overflow-y: auto;
  padding: 8px 16px 16px;
  display: flex; flex-direction: column; gap: 14px;
  background: #ffffff;
}

.messages-area::-webkit-scrollbar { width: 5px; }
.messages-area::-webkit-scrollbar-track { background: transparent; }
.messages-area::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.15); border-radius: 3px; }

.message-row {
  display: flex; gap: 10px; align-items: flex-end;
  animation: msgFadeIn 0.3s ease-out;
  max-width: 85%;
}

@keyframes msgFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.message-row.user { align-self: flex-start; flex-direction: row; }
.message-row.admin { align-self: flex-end; flex-direction: row-reverse; }

.msg-avatar-wrap { flex-shrink: 0; width: 32px; height: 32px; align-self: flex-start; }

.msg-avatar-fallback {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; color: #fff;
}

.msg-avatar-fallback.user-avatar { background: linear-gradient(135deg, #94a3b8, #64748b); }
.msg-avatar-fallback.agent-avatar { background: linear-gradient(135deg, #f0c444, #d4a51e); }

.msg-bubble {
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 13px; line-height: 1.5;
  word-break: break-word;
  max-width: 100%;
}

.message-row.user .msg-bubble {
  background: #f3f4f6;
  color: #1f1f1f;
  border-bottom-left-radius: 4px;
  border: 1px solid #e5e7eb;
}

.message-row.admin .msg-bubble {
  background: linear-gradient(135deg, #f0c444, #e6b332);
  color: #1f1f1f;
  border-bottom-right-radius: 4px;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(240, 196, 68, 0.3);
}

.message-row.user .msg-bubble.form-bubble {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  padding: 14px 16px !important;
  min-width: 220px;
  border-bottom-left-radius: 16px;
}

.form-bubble label {
  display: block;
  font-size: 11px; font-weight: 700;
  color: #6b7280;
  margin: 0 0 6px;
  letter-spacing: 0.5px;
}

.form-bubble label:not(:first-child) { margin-top: 12px; }

.msg-bubble.image-bubble {
  padding: 4px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.msg-image {
  max-width: 220px; max-height: 240px;
  border-radius: 12px;
  display: block; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.form-control {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 10px 12px;
  background: #ffffff;
  font-size: 13px; color: #1f1f1f;
  outline: none;
  transition: all 0.2s;
  font-family: inherit;
}

.form-control:focus {
  border-color: #f0c444;
  box-shadow: 0 0 0 3px rgba(240, 196, 68, 0.15);
}

.form-control:disabled { background: #f9fafb; color: #6b7280; cursor: not-allowed; }
.form-control::placeholder { color: #9ca3af; }

.select-wrap { position: relative; }

.select-wrap::after {
  content: '';
  position: absolute; right: 14px; top: 50%;
  width: 7px; height: 7px;
  border-right: 2px solid #6b7280;
  border-bottom: 2px solid #6b7280;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.select-wrap select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding-right: 32px; cursor: pointer;
}

.prechat-info-msg {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 12px;
  line-height: 1.6;
  color: #374151;
}

/* ============ START CHAT BUTTON ============ */
.start-chat-wrap {
  flex-shrink: 0;
  padding: 14px 18px 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  border-top: 1px solid #f3f4f6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: startChatSlideUp 0.4s ease;
}

@keyframes startChatSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.start-chat-btn {
  width: 100%;
  background: linear-gradient(135deg, #f0c444 0%, #d4a51e 100%);
  color: #1f1f1f;
  border: none;
  border-radius: 14px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s ease;
  box-shadow: 0 6px 16px rgba(212, 165, 30, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.start-chat-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.start-chat-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(212, 165, 30, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.start-chat-btn:active { transform: translateY(0); }

.start-chat-hint {
  font-size: 11px;
  color: #9ca3af;
  text-align: center;
}

/* ============ AUTO REPLY POPUP ============ */
.auto-reply-popup {
  align-self: center;
  max-width: 280px;
  margin: 12px auto;
  padding: 20px 18px;
  background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
  border: 1.5px solid #fb923c;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(251, 146, 60, 0.25);
  animation: popupBounceIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popupBounceIn {
  0% { opacity: 0; transform: scale(0.7); }
  60% { transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

.auto-reply-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ea580c;
  box-shadow: 0 4px 12px rgba(251, 146, 60, 0.3);
}

.auto-reply-title {
  font-size: 15px;
  font-weight: 700;
  color: #9a3412;
  margin-bottom: 8px;
}

.auto-reply-text {
  font-size: 12px;
  color: #7c2d12;
  line-height: 1.55;
  margin-bottom: 14px;
}

.auto-reply-btn {
  background: #ea580c;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 9px 24px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.4);
}

.auto-reply-btn:hover {
  background: #c2410c;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.55);
}

/* ============ EMOJI PICKER ============ */
.emoji-picker {
  display: none;
  background: #ffffff;
  border-top: 1px solid #f3f4f6;
  padding: 12px 14px;
  max-height: 180px;
  overflow-y: auto;
  flex-shrink: 0;
  animation: slideUp 0.2s ease-out;
}

.emoji-picker.show { display: block; }

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

.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }

.emoji-item {
  font-size: 22px; text-align: center;
  padding: 6px; border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  user-select: none;
}

.emoji-item:hover { background: #f3f4f6; transform: scale(1.15); }

/* ============ INPUT BAR ============ */
.input-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px;
  background: #ffffff;
  border-top: 1px solid #f3f4f6;
  flex-shrink: 0;
}

.input-btn {
  width: 36px; height: 36px;
  border: none; background: #f3f4f6;
  border-radius: 50%;
  color: #6b7280; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0; padding: 0;
}

.input-btn:hover { background: #e5e7eb; color: #1f1f1f; }

.input-textarea-wrap {
  flex: 1; position: relative;
  background: #f3f4f6;
  border-radius: 20px;
  padding: 0 40px 0 14px;
  display: flex; align-items: center;
  min-height: 38px;
}

.msg-textarea {
  flex: 1; border: none; background: transparent;
  font-size: 13px; color: #1f1f1f;
  outline: none; resize: none;
  font-family: inherit; line-height: 1.4;
  padding: 10px 0; max-height: 100px;
  width: 100%;
}

.msg-textarea::placeholder { color: #9ca3af; }

.emoji-btn {
  position: absolute; right: 8px; top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  border: none; background: transparent;
  color: #9ca3af; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: all 0.2s; padding: 0;
}

.emoji-btn:hover { color: #f0c444; background: rgba(240, 196, 68, 0.1); }

.send-btn-circle {
  width: 36px; height: 36px;
  border: none;
  background: linear-gradient(135deg, #f0c444, #d4a51e);
  border-radius: 50%;
  color: #1f1f1f; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 3px 8px rgba(240, 196, 68, 0.4);
  flex-shrink: 0; padding: 0;
}

.send-btn-circle:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(240, 196, 68, 0.5);
}

.chat-powered {
  text-align: center; font-size: 11px; color: #9ca3af;
  padding: 8px 0 12px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  flex-shrink: 0; background: #ffffff;
}

.chat-powered .powered-brand { display: inline-flex; align-items: center; gap: 4px; }
.chat-powered .powered-brand strong { color: #1f1f1f; font-weight: 700; }

/* ============ CONFIRM MODAL ============ */
.confirm-modal {
  display: none;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: confirmFadeIn 0.2s ease;
}

.confirm-modal.show { display: flex; }

@keyframes confirmFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.confirm-box {
  background: #ffffff;
  border-radius: 18px;
  padding: 32px 24px 22px;
  width: 100%;
  max-width: 320px;
  position: relative;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  animation: confirmPopIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes confirmPopIn {
  0% { opacity: 0; transform: scale(0.85) translateY(10px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.confirm-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 32px; height: 32px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: 8px;
  color: #6b7280;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
  padding: 0;
}

.confirm-close:hover {
  border-color: #1f1f1f;
  color: #1f1f1f;
  background: #f9fafb;
}

.confirm-icon-wrap {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #f3f4f6;
  color: #6b7280;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}

.confirm-text {
  font-size: 15px;
  font-weight: 600;
  color: #1f1f1f;
  line-height: 1.45;
  margin-bottom: 22px;
}

.confirm-btn-action {
  width: 100%;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

.confirm-btn-action:hover {
  background: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.5);
}

@media (max-width: 400px) {
  .chat-shell { border-radius: 0; height: 100vh; max-width: 100%; }
  .chat-shell.minimized { height: 0 !important; }
  .hero-title { font-size: 26px; }
  .emoji-grid { grid-template-columns: repeat(7, 1fr); }
}
/* ===== MENU LINK PILLS (gaya Image 3) ===== */
.menu-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 4px;
}

.menu-link-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  background: #d4950a;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: background .15s, transform .1s;
  text-align: center;
}

.menu-link-pill:hover {
  background: #b8800a;
  transform: translateY(-1px);
}

.menu-link-pill:active {
  transform: scale(.97);
}

/* Linkify greeting text */
.widget-greeting a,
.pre-info a {
  color: inherit;
  text-decoration: underline;
  word-break: break-all;
}
.arrow-circle { display: none !important; }
