/* =============================================
   EMBRACEBOT EVA - CHAT WIDGET (widget.css)
   ============================================= */

/* --- Reset (scoped to widget) --- */
.eb_widget_box * {
  margin: 0;
  padding: 0;
  font-size: 12px;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* =============================================
   FLOATING LAUNCHER BUTTON
   ============================================= */
.chat_box_button_prnt {
  position: fixed;
  bottom: 25px;
  right: 20px;
  z-index: 9998;
}

.chat_box_button {
  box-shadow: 0px 4px 12px 0px #2196F3A3;
  padding: 1.5px;
  border-radius: 100px;
  width: max-content;
  position: relative;
  cursor: pointer;
  background: conic-gradient(
    from var(--eva-border-angle) at 50% 50%,
    rgba(200, 210, 230, .15) 0deg,
    rgba(32, 147, 239, .7) 90deg,
    rgba(200, 210, 230, .15) 150deg,
    rgba(56, 189, 248, .6) 210deg,
    rgba(200, 210, 230, .15) 270deg,
    rgba(129, 140, 248, .55) 320deg,
    rgba(96, 185, 250, .6) 350deg,
    rgba(200, 210, 230, .15) 360deg
  );
  animation: evaBorderRotate 8s linear infinite;
}

.chat_box_button_inner {
  background: #EEF8FF;
  border-radius: 100px;
  padding: 4px 24px 4px 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat_box_button img {
  width: 42px;
  height: 42px;
}

.chat_box_button h4 {
  font-size: 20px;
  font-weight: 600;
  color: #2196F3;
}

.chat_box_button p {
  color: #181A1B;
  font-size: 12px;
}

/* =============================================
   MAIN CHAT BOX
   ============================================= */
.chat-box {
  width: min(469px, calc(100vw - 40px));
  background:radial-gradient(circle at 87% 60%, #caf2ff 0%, #caf2ff 25%, #ffffff 55%, #ffffff 100% 100%);
  border-radius: 18px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  opacity: 0;
  transform: translateY(12px);
  visibility: hidden;
  pointer-events: none;
  will-change: opacity, transform;
  transition: opacity .3s ease-out, transform .3s ease-out, visibility 0s .3s;
}

.chat-box.open-from-bottom {
  transform: translateY(80px);
}

.chat-box.open {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition: opacity .3s ease-out, transform .3s cubic-bezier(.22, 1, .36, 1), visibility 0s 0s;
}

/* =============================================
   CHAT HEADER
   ============================================= */
.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  background: #fff;
  box-shadow: 0px 0px 12px 0px #00000014;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bot-icon img {
  width: 38px;
  height: 38px;
}

.title {
  display: flex;
  align-items: center;
}

.title h5 {
  font-weight: 600;
  font-size: 16px;
}

.ai {
  background: linear-gradient(96.36deg, #0C70CC 4.3%, #2196F3 84.07%);
  color: #fff;
  font-size: 12px;
  padding: 0px 9px;
  border-radius: 10px;
  margin-left: 5px;
  display: inline-flex;
  font-weight: 500;
  height: max-content;
  line-height: 16px;
  position: relative;
  overflow: hidden;
}
.ai::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.55) 50%, transparent 100%);
  animation: ai-glare 2s ease-in-out infinite;
}
@keyframes ai-glare {
  0%   { left: -75%; }
  100% { left: 150%; }
}

.sub-eva {
  font-size: 11px;
  color: #000;
}

.header-icons {
  display: flex;
  gap: 8px;
}

.header-icons span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  background: linear-gradient(180deg, rgba(33, 150, 243, 0.1) 0%, rgba(33, 150, 243, 0.044) 100%);
  cursor: pointer;
}

.header-icons span img {
  width: 12px;
}

/* =============================================
   CHAT BODY
   ============================================= */
.mt_6 { margin-top: 6px;}
.mt_8 { margin-top: 8px; }
.bx_spc { margin-top: 16px; }

.dt_tm {
  font-size: 8px;
  color: #939393;
  margin-left: 10px;
}

.dt_tm span {
  padding: 0px 4px;
  position: relative;
  display: inline-flex;
  font-size: 10px;
}

.dt_tm span:first-child {
  padding-left: 0;
  font-size: 10px;
}

.dt_tm span:first-child::before {
  content: '';
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translateY(-50%);
  height: 64%;
  background: #939393;
  width: 1px;
}

strong { font-weight: 600; }

.chat-body {
  padding-bottom: 15px;
}

/* Footer row: timestamp left, chip right — no border, no background */
.eb-bubble-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
  padding: 4px 0 0 0;
}
/* Main Menu chip — white pill with blue text, hanging outside the bubble */
.eb-escape-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  background: #fff;
  color: #2563eb;
  font-size: 11px;
  font-weight: 600;
  border-radius: 20px;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 2px 8px rgba(33,150,243,0.15);
  border: 1.5px solid #bfdbfe;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.eb-escape-chip:hover {
  background: #eff6ff;
  box-shadow: 0 3px 12px rgba(33,150,243,0.25);
}

.body_scroller {
  height: min(452px, calc(100vh - 250px));
  max-height: min(452px, calc(100vh - 250px));
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  word-wrap: break-word;
  padding: 15px;
  scroll-behavior: smooth;
}

/* Scrollbar */
.body_scroller::-webkit-scrollbar {
  width: 4px;
}

.body_scroller::-webkit-scrollbar-track {
  background: transparent;
}

.body_scroller::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #42a4f5, #cdc5eb);
  border-radius: 10px;
}

.body_scroller::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #2196F3, #818cf8);
}

/* =============================================
   WELCOME SECTION
   ============================================= */
.chat-body-inner {
  display: flex;
  align-items: end;
  gap: 8px;
}

.srt_bxx_inner {
  background: #fff;
  border-radius: 16px 16px 16px 0px;
}

/* Visually merge button block with the welcome card above it */
.chat-body-inner + .left_chat_bx {
  margin-top: 0;
}
.chat-body-inner + .left_chat_bx .left_chat_txt {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.chat-body-inner:has(+ .left_chat_bx) .srt_bxx_inner {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.welcome {
  background: linear-gradient(96.36deg, #EBF6FF 4.3%, #D2EBFF 84.07%);
  padding: 19px 24px;
  border-radius: 12px 12px 0 0;
  display: flex;
  gap: 16px;
}

.welcome .bot_img {
  height: 52px;
  width: 52px;
}

.welcome h4 {
  font-size: 20px;
  font-weight: 600;
}

.welcome p {
  font-size: 12px;
  margin-top: 6px;
}

/* =============================================
   MENU CARDS
   ============================================= */
.menu {
  padding: 0;
  padding-bottom: 10px;
}

.menu_inner {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 10px;
  padding: 16px;
}

.card {
  cursor: pointer;
  border-radius: 12px;
  padding: 1.5px;
  text-align: center;
  font-size: 20px;
  width: 100%;
  position: relative;
  box-sizing: border-box;
  background: linear-gradient(134.8deg, #78C3FF 25.09%, #D2EBFF 96.75%);
  transition: background .3s ease;
}

.card:hover {
  background: conic-gradient(
    from var(--eva-border-angle) at 50% 50%,
    rgba(200, 210, 230, .2) 0deg,
    rgba(32, 147, 239, .8) 90deg,
    rgba(200, 210, 230, .2) 150deg,
    rgba(56, 189, 248, .7) 210deg,
    rgba(200, 210, 230, .2) 270deg,
    rgba(129, 140, 248, .6) 320deg,
    rgba(96, 185, 250, .7) 350deg,
    rgba(200, 210, 230, .2) 360deg
  );
  animation: evaBorderRotate 4s linear infinite;
}

.card_inner {
  background:#f9fdff;
  border-radius: 10.5px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  position: relative;
  min-height: 88px;
}

.card_inner .crd_img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
}

.card_inner h5 {
  font-size: 11px;
  font-weight: 600;
  text-align: left;
  line-height: 1.3;
  word-break: break-word;
  margin-top: auto;
}

.card_inner .cnt_sec {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 4px;
  margin-top: auto;
}

.card_inner .ai {
  position: absolute;
  top: 8px;
  right: 8px;
}

/* Extra cards wrapper (smooth expand/collapse) */
.menu_extra {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .5s cubic-bezier(.22, 1, .36, 1), opacity .3s ease .05s;
}

.menu_extra.show {
  max-height: 200px;
  opacity: 1;
  transition: max-height .5s cubic-bezier(.22, 1, .36, 1), opacity .35s ease .1s;
}

.menu_extra .menu_inner {
  padding-top: 0;
  padding-bottom: 10px;
}

/* View All / View Less toggle */
.menu_more-opt-01-prnt {
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu_more-opt-01 {
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(96.36deg, #0C70CC 4.3%, #2196F3 84.07%);
  border-radius: 7px;
  padding: 3px 11px;
  gap: 5px;
  cursor: pointer;
}

.menu_more-opt-01 img {
  width: 10px;
  filter: brightness(0) invert(1);
}

/* =============================================
   MESSAGE BUBBLES
   ============================================= */

/* --- Bot avatar --- */
.ch_bot_img {
  width: 18px;
}

.ch_bot_img_tp {
  position: relative;
  top: -19px;
}

/* --- User (right) message --- */
.right_chat_bx {
  display: flex;
  align-items: end;
  gap: 8px;
  justify-content: end;
}

.right_chat_txt_prnt {
  max-width: 77%;
}

.right_chat_txt {
  background: linear-gradient(96.36deg, #0C70CC 4.3%, #2196F3 84.07%);
  border-radius: 16px 16px 0px 16px;
  padding: 6px 12px;
  width: auto;
}

.right_chat_txt p {
  color: #fff;
  font-size: 12px;
}

.right_chat_txt a {
  color: #b8ddfb;
  text-decoration: underline;
}

/* --- Bot (left) message --- */
.left_chat_bx {
  display: flex;
  align-items: end;
  gap: 8px;
  justify-content: start;
}

.left_chat_txt_prnt {
  max-width: 94%;
}

/* Only apply flex when escape chip footer is present — avoids breaking carousel */
.left_chat_txt_prnt:has(.eb-bubble-footer) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.left_chat_txt {
  background: #fff;
  border-radius: 16px 16px 16px 0px;
  padding: 6px 12px;
  width: auto;
}

.left_chat_txt p {
  color: #000;
  font-size: 12px;
}

/* Sub-menu option buttons (Booking Status, Refund Status, etc.) */
.left_chat_txt:has(.clkbubb:not(.card)) {
  min-width: 230px;
}
.left_chat_txt .clkbubb:not(.card) {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 22px;
  padding: 5px 14px 5px 10px;
  margin-bottom: 4px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 500;
  color: #0C70CC;
  transition: all 0.2s ease;
  line-height: 1.4;
  user-select: none;
}
/* .left_chat_txt .clkbubb:not(.card)::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2196F3, #78C3FF);
  flex-shrink: 0;
} */
/* .left_chat_txt .clkbubb:not(.card)::after {
  content: '›';
  margin-left: auto;
  padding-left: 6px;
  font-size: 17px;
  color: #2196F3;
  opacity: 0.7;
  line-height: 1;
  transition: opacity 0.2s ease, transform 0.2s ease;
} */
.left_chat_txt .clkbubb:not(.card):hover {
  background: linear-gradient(#EBF6FF, #EBF6FF) padding-box,
              linear-gradient(96.36deg, #0C70CC 4.3%, #2196F3 84.07%) border-box;
  box-shadow: 0 3px 10px rgba(33, 150, 243, 0.2);
  transform: translateX(3px);
  color: #0b5faa;
}
.left_chat_txt .clkbubb:not(.card):hover::after {
  opacity: 1;
  transform: translateX(2px);
}
.left_chat_txt .clkbubb:not(.card):active {
  background: linear-gradient(#dceffc, #dceffc) padding-box,
              linear-gradient(96.36deg, #0C70CC 4.3%, #2196F3 84.07%) border-box;
  transform: translateX(0);
  box-shadow: 0 1px 4px rgba(33, 150, 243, 0.15);
}

.left_chat_txt a {
  color: #2196F3;
  text-decoration: underline;
}

/* =============================================
   OPTION BUTTONS (mr_wys)
   ============================================= */
.mr_wys {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.mr_wys_bx {
  font-size: 10px;
  color: #2196F3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 13px;
  background: #F1F9FF;
  border-radius: 100px;
  width: max-content;
  font-weight: 500;
  position: relative;
  cursor: pointer;
}

.mr_wys_bx::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  background: linear-gradient(90deg, #2196F3 0%, #C2E4FF 100%);
  border-radius: inherit;
  -webkit-mask: conic-gradient(#000 0 0) content-box exclude, conic-gradient(#000 0 0);
  mask: conic-gradient(#000 0 0) content-box exclude, conic-gradient(#000 0 0);
}

.mr_wys_bx img {
  width: 13px;
}

/* =============================================
   CHAT INPUT AREA
   ============================================= */
.chat-input {
  padding: 12px 12px 12px 12px;
}

.input-box {
  border-radius: 30px;
  padding: 1.5px;
  background: conic-gradient(
    from var(--eva-border-angle) at 50% 50%,
    rgba(200, 210, 230, .25) 0deg,
    rgba(32, 147, 239, .35) 90deg,
    rgba(200, 210, 230, .25) 150deg,
    rgba(56, 189, 248, .3) 210deg,
    rgba(200, 210, 230, .25) 270deg,
    rgba(129, 140, 248, .3) 320deg,
    rgba(96, 185, 250, .3) 350deg,
    rgba(200, 210, 230, .25) 360deg
  );
  animation: evaBorderRotate 10s linear infinite;
  transition: box-shadow .4s ease;
}

.input-box_inner {
  background: #fff;
  border-radius: 28.5px;
  display: flex;
  align-items: center;
  padding: 6px 8px;
}

/* Intense border on send */
.input-box.sending {
  background: conic-gradient(
    from var(--eva-border-angle) at 50% 50%,
    rgba(12, 112, 204, .4) 0deg,
    rgba(32, 147, 239, .95) 90deg,
    rgba(12, 112, 204, .4) 150deg,
    rgba(32, 147, 239, .85) 210deg,
    rgba(12, 112, 204, .4) 270deg,
    rgba(90, 100, 220, .8) 320deg,
    rgba(32, 147, 239, .9) 350deg,
    rgba(12, 112, 204, .4) 360deg
  );
  box-shadow: 0 0 16px rgba(32, 147, 239, .35), 0 0 32px rgba(32, 147, 239, .15);
  animation: evaBorderRotate 3s linear infinite;
}

/* Pending state — send button greyed while awaiting bot response */
.input-box.input-pending .eb_widget_send_input_message {
  opacity: 0.35;
  pointer-events: none;
  cursor: default;
}

/* Pending state — dim all cards/buttons while awaiting bot response */
body.is-pending .clkbubb {
  opacity: 0.45;
  pointer-events: none;
  cursor: default;
}

.input-box_inner input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  font-family: "Poppins", sans-serif;
}

.input-box_inner input::placeholder {
  color: #94a3b8;
}

.icon {
  display: flex;
  cursor: pointer;
}

.icon img {
  width: 20px;
  height: 20px;
}

.eb_widget_send_input_message.mic-active img {
  width: 31px;
  height: 31px;
  transform: scale(1.6);
}

.send {
  color: #fff;
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.send img {
  width: 28px;
  height: 28px;
}

.input-box_inner .icn_n_sec {
  display: flex;
  gap: 12px;
  align-items: center;
}

.close_chat_bx {
  cursor: pointer;
}

/* Card hover animation handled by .card:hover conic-gradient */

/* =============================================
   TOAST NOTIFICATIONS
   ============================================= */
.widget_no_msg_send,
.widget_no_file_send,
.widget_no_concern_send {
  display: none;
  width: 50%;
  left: 50%;
  transform: translateX(-50%);
  position: absolute;
  bottom: 70px;
  z-index: 10;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  padding: 10px 0;
  text-align: center;
  margin: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.3);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* =============================================
   CLEAR CHAT CONFIRMATION
   ============================================= */
.widget_confirm_clear {
  display: none;
  width: 220px;
  color: white;
  flex-direction: column;
  background: linear-gradient(135deg, #0b6dc9, #2093EF);
  position: absolute;
  box-shadow: 0 8px 30px rgba(32, 147, 239, 0.3);
  top: 250px;
  right: 120px;
  z-index: 10;
  padding: 24px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.buttons_div {
  margin-left: 0;
  display: flex;
  flex-direction: row;
  padding: 0;
  gap: 10px;
  margin-top: 16px;
  justify-content: center;
}

.widget_button {
  margin: 0;
  padding: 8px 24px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: none;
  border-radius: 10px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
  letter-spacing: 0.3px;
}

.widget_button:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.7);
}

/* =============================================
   AI CONTENT TYPES
   ============================================= */
.eb-mixed-message .left_chat_txt {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 100%;
}

.eb-friendly-text {
  padding: 0;
  max-width: 100%;
  word-wrap: break-word;
  margin-bottom: 0;
}
.left_chat_txt .clkbubb:not(.card):first-of-type {
  margin-top: 8px;
}


.eb-html-content-below {
  background: transparent;
  padding: 0;
  margin: 5px 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
}

.eb-html-content-below * {
  margin: revert;
  padding: revert;
  font-size: revert;
  font-family: revert;
  color: revert;
  text-decoration: revert;
  overflow-wrap: break-word;
  word-break: break-word;
}

.eb-html-content-below img {
  max-width: 100%;
  height: auto;
}

.eb-descriptive-text {
  padding: 6px 0 0 0;
  max-width: 100%;
  word-wrap: break-word;
  font-size: 11px;
  color: #64748b;
  line-height: 1.5;
}

/* =============================================
   TYPING / LOADING INDICATOR
   ============================================= */
.loader-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.loader-text {
  font-size: 12px;
  color: #94a3b8;
}

.typing-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 2px;
}

.typing-indicator span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #2196F3;
  animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  30% {
    transform: translateY(-8px);
    opacity: 1;
  }
}

.eb-loading-message {
  opacity: 0.9;
}

/* =============================================
   VOICE / SPEECH UI
   ============================================= */
.voicebox {
  width: inherit;
  position: absolute;
  top: 0%;
}

.object {
  display: flex;
  flex: 0 1 100%;
  justify-content: center;
  align-items: center;
  align-content: stretch;
  width: 100%;
  height: 350px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.userSpeakText {
  width: inherit;
  position: absolute;
  z-index: 1;
  top: 10%;
  text-align: center;
  color: #334155;
  font-weight: 500;
}

.textGenerated {
  width: inherit;
  position: absolute;
  z-index: 1;
  top: 70%;
  text-align: center;
  color: #334155;
  display: none;
}

.sendUserSpeakTextButton {
  width: fit-content;
  padding: 8px 20px;
  position: absolute;
  z-index: 2;
  top: 85%;
  left: 40%;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #0b6dc9, #2093EF);
  border: none;
  border-radius: 12px;
  display: none;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(32, 147, 239, 0.3);
}

/* Pulse animation */
.outline {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 8px solid #a0d4fc;
  position: absolute;
}

.outline_animation {
  animation: pulse 3s ease-out infinite;
}

.button {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #2093EF;
  box-shadow: 0 0 60px rgba(32, 147, 239, 0.4);
  position: absolute;
}

@keyframes pulse {
  0% {
    transform: scale(0);
    opacity: 0;
    border: 65px solid #0b6dc9;
  }
  50% {
    border: solid #2093EF;
    opacity: 0.8;
  }
  90% {
    transform: scale(3.2);
    opacity: 0.2;
    border: 3px solid #45a8f5;
  }
  100% {
    transform: scale(3.3);
    opacity: 0;
    border: 1px solid #7ec8fc;
  }
}

#delayed {
  animation-delay: 1.5s;
}

#circlein {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #2093EF;
  box-shadow: 0 -2px 15px rgba(32, 147, 239, 0.5);
  position: absolute;
}

.mic-icon {
  padding: 10px;
}

/* Loader */
.loader {
  width: 100px;
  height: 30px;
  position: absolute;
  top: 50%;
  left: 42%;
  background: #2093EF;
  border-radius: 50px;
  --c: no-repeat radial-gradient(farthest-side, #000 92%, #0000);
  --s: 18px 18px;
  -webkit-mask:
    var(--c) left 4px top 50%,
    var(--c) center,
    var(--c) right 4px top 50%,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: l1 1.5s infinite;
}

@keyframes l1 {
  0%     { -webkit-mask-size: 0 0, 0 0, 0 0, auto }
  16.67% { -webkit-mask-size: var(--s), 0 0, 0 0, auto }
  33.33% { -webkit-mask-size: var(--s), var(--s), 0 0, auto }
  50%    { -webkit-mask-size: var(--s), var(--s), var(--s), auto }
  66.67% { -webkit-mask-size: 0 0, var(--s), var(--s), auto }
  83.33% { -webkit-mask-size: 0 0, 0 0, var(--s), auto }
  100%   { -webkit-mask-size: 0 0, 0 0, 0 0, auto }
}

/* Custom placeholder for mic mode */
.custom-placeholder::placeholder {
  color: white;
  opacity: 1;
  font-size: medium;
}

/* =============================================
   RADIO BUTTONS (concern form)
   ============================================= */
.container {
  display: block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 14px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 16px;
  width: 16px;
  background-color: #e2e8f0;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.container:hover input ~ .checkmark {
  background-color: #cbd5e1;
}

.container input:checked ~ .checkmark {
  background-color: #2093EF;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.container input:checked ~ .checkmark:after {
  display: block;
}

.container .checkmark:after {
  top: 4px;
  left: 5px;
  width: 7px;
  height: 8px;
  border-radius: 50%;
  background: white;
}

/* =============================================
   FADE-IN ANIMATION
   ============================================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.left_chat_bx,
.right_chat_bx {
  animation: fadeInUp 0.3s ease;
}

/* =============================================
   FILE INPUT HIDDEN
   ============================================= */
#file_upload {
  display: none;
}

/* =============================================
   EVA INTRO CARD (Animated Welcome Screen)
   ============================================= */

/* CSS custom property for conic-gradient rotation */
@property --eva-border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.eva_intro_card {
  --conic-blue: rgba(32, 147, 239, .6);
  --conic-blue-light: rgba(96, 185, 250, .5);
  --conic-purple: rgba(129, 140, 248, .45);
  --conic-cyan: rgba(56, 189, 248, .5);
  --conic-neutral: rgba(200, 210, 230, .15);

  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  width: min(350px, calc(100vw - 40px));
  min-height: min(450px, calc(100vh - 80px));
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  font-family: 'DM Sans', sans-serif;

  /* Border glow: 1.5px padding = border thickness */
  padding: 1.5px;
  background: conic-gradient(
    from var(--eva-border-angle) at 50% 50%,
    var(--conic-neutral) 0deg,
    var(--conic-blue) 90deg,
    var(--conic-neutral) 150deg,
    var(--conic-cyan) 210deg,
    var(--conic-neutral) 270deg,
    var(--conic-purple) 320deg,
    var(--conic-blue-light) 350deg,
    var(--conic-neutral) 360deg
  );
  box-shadow: 0 24px 64px rgba(90, 70, 180, .2);

  animation: evaCardIn .8s cubic-bezier(.22, 1, .36, 1) both,
             evaBorderRotate 8s linear 0.8s infinite;
}

/* Inner content background — sits inside the border padding */
.eva_intro_card > * {
  position: relative;
  z-index: 1;
}

.eva_intro_card .eva_intro_inner_bg {
  position: absolute;
  inset: 1.5px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(24px) saturate(180%);
  border-radius: 18.5px;
  z-index: 0;
}

@keyframes evaCardIn {
  from { opacity: 0; transform: scale(.88) translateY(30px); }
  to { opacity: 1; transform: none; }
}

@keyframes evaBorderRotate {
  to { --eva-border-angle: 360deg; }
}

/* Accessibility: disable border animation for reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .eva_intro_card {
    animation: evaCardIn .8s cubic-bezier(.22, 1, .36, 1) both;
    background: rgba(200, 210, 230, .3);
  }
}

.eva_intro_card .robot-wrap {
  position: absolute;
  top: 51px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  z-index: 20;
  animation: evaRobotBob 3s ease-in-out infinite;
  padding: 14px;
  transition: all 1s ease-in-out;
}

.eva_intro_card .robot-wrap.chatin {
  opacity: 0;
  transform: translateX(-50%) translateY(-20px) scale(0.9);
}

@keyframes evaRobotBob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

.eva_intro_card .topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 6px 15px 93px;
  margin-top: 8px;
}

.eva_intro_card .btn-ic {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #9E9E9E;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
  transition: background .2s, transform .2s;
  backdrop-filter: blur(8px);
  font-weight: 600;
  line-height: 1;
  margin-left: auto;
}

.eva_intro_card .btn-ic:hover {
  background: #949393;
  transform: scale(1.08);
}

/* Intro section */
.eva_intro_card #eva_intro {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 28px 22px;
  text-align: center;
  transition: opacity .5s, transform .5s;
}

.eva_intro_card #eva_intro.out {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
}

.eva_intro_card .hi {
  font-size: 17px;
  color: #5a5b7a;
  font-weight: 400;
  font-family: 'Sora', sans-serif;
  animation: evaPop .7s cubic-bezier(.22, 1, .36, 1) .5s both;
}

.eva_intro_card .eva-name {
  font-family: 'Nunito', sans-serif;
  font-size: 52px;
  font-weight: 800;
  background: linear-gradient(96.36deg, #0C70CC 4.3%, #2093ef 84.07%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -2px;
  animation: evaPop .9s cubic-bezier(.22, 1, .36, 1) .8s both;
  position: relative;
}

.eva_intro_card .eva-name::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
  animation: evaShimmer 3s ease-in-out 2.5s infinite;
}

@keyframes evaShimmer {
  to { left: 200%; }
}

.eva_intro_card .tagline {
  margin-top: 12px;
  font-size: 14px;
  color: #4e4f5f;
  line-height: 1.7;
  animation: evaPop .7s cubic-bezier(.22, 1, .36, 1) 1.2s both;
}

.eva_intro_card .start-btn {
  margin-top: 28px;
  padding: 13px 34px;
  border-radius: 50px;
  border: none;
  background: linear-gradient(96.36deg, #0C70CC 4.3%, #2093ef 84.07%);
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 28px #2093efa8;
  transition: transform .2s, box-shadow .2s;
  animation: evaPop .7s cubic-bezier(.22, 1, .36, 1) 1.5s both;
  position: relative;
  overflow: hidden;
}

.eva_intro_card .start-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, .18), transparent);
}

.eva_intro_card .start-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px #2093efc9;
}

.eva_intro_card .start-btn:active {
  transform: scale(.97);
}

@keyframes evaPop {
  from { opacity: 0; transform: translateY(18px) scale(.9); }
  to { opacity: 1; transform: none; }
}

/* Blush & particles */
.eva_intro_card .blush {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(to top, #2093ef45, #00000000);
  pointer-events: none;
  border-radius: 0 0 20px 20px;
}

.eva_intro_card .particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: 20px;
}

.eva_intro_card .particles .p {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: evaPFly 5s ease-in-out infinite;
}

@keyframes evaPFly {
  0% { opacity: 0; transform: translateY(0) scale(0); }
  20% { opacity: .7; }
  100% { opacity: 0; transform: translateY(-180px) scale(1.5); }
}

/* =============================================
   MOBILE RESPONSIVE
   ============================================= */
@media only screen and (max-width: 499px) {
  .chat-box {
    width: 100%;
    right: 0;
    bottom: 0;
    border-radius: 18px 18px 0 0;
  }

  .body_scroller {
    height: calc(100vh - 200px);
    max-height: none;
  }

  .menu {
    grid-template-columns: repeat(2, 1fr);
  }

  .chat_box_button_prnt {
    right: 10px;
    bottom: 10px;
  }

  .eva_intro_card {
    width: calc(100% - 20px);
    right: 10px;
    bottom: 10px;
    min-height: 400px;
  }
}
