@import url("https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css");

* { -webkit-font-smoothing: antialiased; box-sizing: border-box; }

html, body {
  margin: 0px;
  min-height: 100%;
  background-image: url(BG.png);
  background-size: cover;
  background-position: 50% 50%;
}

button:focus-visible { outline: 2px solid #4a90e2 !important; }
a { text-decoration: none; }

/* ---------- FONTS ---------- */
@font-face { font-family: "Vividly-Regular"; src: url("./Vividly-Regular.ttf") format("truetype"); }
@font-face { font-family: "Rabbit-Regular"; src: url("./Rabbit-Regular.otf") format("truetype"); }
@font-face { font-family: "Winkle-Regular"; src: local("Winkle-Regular"); }


@font-face { font-family: "Winkle-Regular"; src: url("./Winkle-Regular.otf") format("truetype"); }

@font-face { font-family: "Winkle-Regular"; src: url("./Winkle-Regular.ttf") format("truetype"); }
@font-face { font-family: "Peperrito Ornaments Regular"; src: url("./PeperritoOrnaments-Regular.ttf") format("truetype"); }

/* ============================================================
   CONTAINER
   ============================================================ */
.rabiette {
  width: 100%;
  min-width: 390px;
  min-height: 644px;
  max-height: 100vh;
  position: relative;
  animation: pageFadeIn 0.8s ease-out;
}
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   TOP LEFT (Log in / Chats)
   ============================================================ */
.rabiette .rectangle {
  position: absolute;
  top: 23px;
  left: calc(50% - 174px);
  width: 67px;
  height: 29px;
  background-color: #ffffff75;
  border-radius: 40px;
  border: 1px solid #ff90c9;
  transition: all 0.3s ease;
}

.rabiette .text-wrapper {
  position: absolute;
  top: 31px;
  left: 38px;
  font-family: "Vividly-Regular", Helvetica;
  color: #ff90c9;
  font-size: 16px;
  white-space: nowrap;
  cursor: pointer;
  z-index: 3;
  transition: all 0.25s ease;
}
.rabiette .text-wrapper:hover { color: #ff70b8; letter-spacing: 0.4px; }

/* ============================================================
   HEADER TITLE
   ============================================================ */
.rabiette .p {
  top: 32px;
  left: calc(50% - 39px);
  font-family: "Vividly-Regular", Helvetica;
  font-size: 15px;
  text-align: center;
  position: absolute;
  color: #ff90c9;
  white-space: nowrap;
}
.rabiette .span { color: #ff90c9; font-size: 15px; }
.rabiette .text-wrapper-8 { font-size: 11px; }

/* ============================================================
   ꕮ BUTTON (menu)
   ============================================================ */
.rabiette .text-wrapper-3 {
  top: 27px;
  left: 341px;
  font-family: "Vividly-Regular", Helvetica;
  font-size: 24px;
  position: absolute;
  color: #ff90c9;
  white-space: nowrap;
  cursor: pointer;
  z-index: 3;
  transition: transform 0.3s ease, color 0.25s ease;
}
.rabiette .text-wrapper-3:hover { color: #ff70b8; }
.rabiette .text-wrapper-3.active { transform: rotate(180deg); color: #ff70b8; }

/* ============================================================
   CHAT AREA
   ============================================================ */
.chat-area {
  position: absolute;
  top: 80px;
  left: 16px;
  right: 16px;
  bottom: 140px;                 /* keeps space above input box */
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 8px 24px 8px;    /* extra bottom padding so last bubble isn't hidden */
  display: flex;
  flex-direction: column;
  gap: 1px;                     /* more space between messages */
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.chat-area::-webkit-scrollbar { display: none; }

/* ============================================================
   BUBBLES
   ============================================================ */
/* ============================================================
   BUBBLES
   ============================================================ */
.bubble {
  position: relative;
  max-width: 82%;
  width: fit-content;
  padding: 12px 16px;
  border-radius: 20px;
  font-family: "Vividly-Regular", Helvetica;
  font-size: 15px;
  line-height: 1.5;
  color: #ff70b8;
  animation: bubbleIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: visible;                /* let text spill naturally if needed */
  flex-shrink: 0;                   /* bubbles don't squish */
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}
@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(10px) scale(0.92); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* AI bubble (left) */
.bubble-ai {
  align-self: flex-start;
  border-top-left-radius: 6px;
  padding-left: 34px;
  max-width: 88%;                   /* AI gets more space for long replies */
}
.bubble-ai .chatbow {
  position: absolute;
  top: 12px;
  left: 10px;
  width: 18px;
  height: 13px;
  object-fit: cover;
}

/* User bubble (right) */
.bubble-user {
  align-self: flex-end;
  background-color: #ffedf6;
  border-top-right-radius: 6px;
  padding-right: 34px;
  max-width: 78%;                   /* user bubbles a bit narrower */
}
.bubble-user .img {
  position: absolute;
  top: 12px;
  right: 10px;
  width: 20px;
  height: 15px;
  object-fit: cover;
    transform: rotate(45deg) scale(1.08);

}

/* Text — full length, no cap */
.bubble-text {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  overflow: visible;
  max-height: none;                 /* NEVER cap height */
}
/* Bubble image */
.bubble-img {
  display: block;
  margin-top: 10px;
  max-width: 150px;
  max-height: 150px;
  width: auto;
  height: auto;
  object-fit: cover;
  border-radius: 14px;
  border: 2px solid #ffd6ea;
  transition: transform 0.25s ease;
}
.bubble-img:hover { transform: scale(1.03); }

/* Typing dots */
.typing-dots {
  display: flex;
  gap: 4px;
  padding: 4px 0;
}
.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff90c9;
  animation: dotBounce 1s infinite ease-in-out;
}
.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes dotBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
  40%           { transform: scale(1);   opacity: 1; }
}

/* ============================================================
   INPUT BOX (ChatGPT-style) 🎀
   ============================================================ */
.input-box {
  position: absolute;
  bottom: 18px;
  left: 20px;
  right: 20px;
  background: #ffffffcc;
  backdrop-filter: blur(6px);
  border: 1.5px solid #ff90c9;
  border-radius: 24px;
  padding: 10px 12px 8px;
  box-shadow: 0 6px 20px rgba(255, 213, 235, 0.25);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.25s, box-shadow 0.25s;
  z-index: 6;
  animation: inputPulse 3s ease-in-out 3s infinite;
}
.input-box:focus-within {
  border-color: #ff70b8;
  box-shadow: 0 6px 24px rgba(255, 226, 241, 0.45);
}
@keyframes inputPulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(255, 144, 201, 0.25); }
  50%      { box-shadow: 0 6px 26px rgba(255, 144, 201, 0.45); }
}




/* ---------- IMAGE PREVIEW ---------- */
.image-preview {
  display: none;
  max-height: 130px;
  max-width: 130px;
  width: auto;
  height: auto;
  object-fit: cover;
  border-radius: 14px;
  border: 2px solid #ffd6ea;
  margin-bottom: 4px;
  align-self: flex-start;
  animation: bubbleIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.image-preview.show { display: block; }

/* ---------- TEXTAREA ---------- */
.ask-input {
  width: 100%;
  min-height: 24px;
  max-height: 120px;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  font-family: "Vividly-Regular", Helvetica;
  font-size: 15px;
  line-height: 1.4;
  color: #ff70b8;
  padding: 4px 6px;
  overflow-y: auto;
  scrollbar-width: none;
}
.ask-input::-webkit-scrollbar { display: none; }
.ask-input::placeholder {
  color: #ffafd8;
  font-family: "Vividly-Regular", Helvetica;
  font-size: 15px;
}

/* ---------- BOTTOM ACTION ROW ---------- */
.input-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2px;
}

.plus-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffe4f1;
  color: #ff70b8;
  font-family: "Winkle-Regular", Helvetica;
  font-size: 29px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
}
.plus-btn:hover {
  background: #ffd6ea;
  color: #ff70b8;
  transform: scale(1.08);
}
.plus-btn.active {
  transform: rotate(45deg) scale(1.08);
  background: #ff90c9;
  color: #fff;
}

.send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffb3d9, #ff90c9);
  color: #ffffff;
  font-family: "Vividly-Regular", Helvetica;
  font-size: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
}
.send-btn:hover {
  transform: scale(1.1) rotate(-8deg);
  box-shadow: 0 6px 18px rgba(255, 144, 201, 0.7);
}
.send-btn:active {
  transform: scale(0.94);
}

/* ============================================================
   ꕮ MENU DROPDOWN
   ============================================================ */
.menu-dropdown {
  position: absolute;
  top: 56px;
  right: 14px;
  width: 140px;
  background: #ffffff;
  border: 1.5px solid #ff90c9;
  border-radius: 18px;
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.95);
  transform-origin: top right;
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 998;
}
.menu-dropdown.show { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }

.menu-item {
  padding: 10px 14px;
  border-radius: 12px;
  font-family: "Vividly-Regular", Helvetica;
  font-size: 13px;
  color: #ff70b8;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.menu-item:hover { background: #ffe4f1; padding-left: 18px; }

/* ============================================================
   PLUS BOTTOM SHEET
   ============================================================ */
.plus-sheet {
  position: absolute;
  bottom: 118px;
  left: 20px;
  width: 160px;
  background: #ffffff;
  border: 1.5px solid #ff90c9;
  border-radius: 18px;
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.95);
  transform-origin: bottom left;
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 998;
}
.plus-sheet.show { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }

.plus-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  font-family: "Vividly-Regular", Helvetica;
  font-size: 13px;
  color: #ff70b8;
  cursor: pointer;
  transition: background 0.2s ease;
}
.plus-item:hover { background: #ffe4f1; }
.plus-icon-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ============================================================
   LOGIN POPUP
   ============================================================ */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,220,235,0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 1000;
}
.popup-overlay.show { opacity: 1; pointer-events: auto; }

.login-popup {
  position: relative;
  width: 300px;
  padding: 28px 24px 22px;
  background: #fff5fa;
  border: 2px solid #ff90c9;
  border-radius: 26px;
  box-shadow: 0 12px 40px rgba(255,144,201,0.4);
  font-family: "Vividly-Regular", Helvetica;
  transform: translateY(20px) scale(0.94);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.popup-overlay.show .login-popup { transform: translateY(0) scale(1); }

.popup-decor {
  position: absolute;
  width: 26px;
  height: 27px;
  object-fit: cover;
  animation: gentleWiggle 4s ease-in-out infinite;
}
.popup-decor-1 { top: -14px; left: 18px; }
.popup-decor-2 { top: 294px; right: 18px; animation-delay: 0.5s; }
@keyframes gentleWiggle {
  0%, 100% { transform: rotate(-8deg); }
  50%      { transform: rotate(8deg); }
}

.popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 16px;
  color: #ff90c9;
  cursor: pointer;
  transition: transform 0.2s;
}
.popup-close:hover { transform: rotate(90deg) scale(1.2); }

.popup-title {
  font-size: 20px;
  color: #ff70b8;
  text-align: center;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}
.popup-sub {
  font-size: 13px;
  color: #ffafd8;
  text-align: center;
  margin-bottom: 20px;
  font-family: "Single Day", cursive;
}

.input-group { margin-bottom: 14px; }
.input-group label {
  display: block;
  font-size: 13px;
  color: #ff90c9;
  margin-bottom: 5px;
  padding-left: 4px;
}
.input-group input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1.5px solid #ffd6ea;
  background: #fff;
  font-family: "Vividly-Regular", Helvetica;
  font-size: 14px;
  color: #ff70b8;
  outline: none;
  transition: all 0.25s ease;
}
.input-group input:focus {
  border-color: #ff90c9;
  box-shadow: 0 0 0 3px rgba(255,144,201,0.2);
}
.input-group input::placeholder { color: #ffc4e2; }

.popup-btn {
  width: 100%;
  padding: 11px;
  margin-top: 6px;
  border-radius: 20px;
  border: none;
  background: linear-gradient(135deg, #ffb3d9, #ff90c9);
  color: #fff;
  font-family: "Vividly-Regular", Helvetica;
  font-size: 15px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(255,144,201,0.4);
}
.popup-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,144,201,0.6); }

.popup-skip {
  width: 100%;
  background: none;
  border: none;
  color: #ffafd8;
  font-family: "Single Day", cursive;
  font-size: 13px;
  margin-top: 12px;
  cursor: pointer;
  transition: color 0.2s;
}
.popup-skip:hover { color: #ff70b8; }


.progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: #ffd6ea;
  border-radius: 10px;
  overflow: hidden;
  margin: 16px 0 8px;
}
.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ffb3d9, #ff90c9);
  border-radius: 10px;
  transition: width 0.3s ease;
}
.progress-text {
  font-size: 11px;
  color: #ffafd8;
  text-align: center;
  font-family: "Vividly-Regular", Helvetica;
}

/* ============================================================
   MULTI-IMAGE PREVIEW (up to 3) 🎀
   ============================================================ */
.image-preview-wrap {
  display: none;
  align-self: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.image-preview-wrap.show {
  display: flex;
}

.attached-item {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: visible;
  animation: bubbleIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.attached-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid #ffd6ea;
  display: block;
}

.attached-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ff90c9;
  color: #fff;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 3;
}
.attached-remove:hover {
  background: #ff70b8;
  transform: scale(1.15) rotate(90deg);
}

/* Bubble imgs grid */
.bubble-imgs {
  display: flex;
gap: 4px;
  margin-top: 1px;
}
.bubble-imgs .bubble-img {
  max-width: 60px;
  max-height: 60px;
  border-radius: 4px;
  border: 1px solid #ffd6ea;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.bubble-imgs .bubble-img:hover {
  transform: scale(1.04);
}
/* Cute side nav */
.side-nav {
  position: fixed; top: 0; left: -300px; width: 280px; height: 100vh;
  background: linear-gradient(180deg, #fff9fc 0%, #ffe9f4 100%);
  border-top-right-radius: 28px; border-bottom-right-radius: 28px;
  box-shadow: 8px 0 22px rgba(255, 236, 246, 0.35);
  padding: 24px 18px; z-index: 1000;
  transition: left 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow-y: auto; scrollbar-width: none;
}
.side-nav::-webkit-scrollbar { display: none; }
.side-nav.show { left: 0; }

.side-nav-header {
  display: flex; justify-content: space-between; align-items: center;
  color: #ff70b8; font-size: 17px; margin-bottom: 22px; padding: 0 6px;
}
.side-nav-header span:first-child::before {  margin-right: 4px; }

.side-nav-close {
  cursor: pointer; font-size: 13px; color: #ff90c9;
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #ffffffcc; border: 1.5px solid #ffd6ea;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.side-nav-close:hover { background: #ff90c9; color: #fff; border-color: #ff90c9; transform: rotate(90deg) scale(1.1); }

.side-nav-item.new-chat {
  position: relative;
  background: linear-gradient(135deg, #ffb8dc 0%, #ffb5db 100%);
  color: #fff; text-align: center; padding: 14px 81px;
  font-size: 14px; letter-spacing: 0.7px; border-radius: 20px;
  box-shadow: 0 6px 18px rgba(255, 231, 243, 0.45);
  margin-bottom: 20px; border: none; cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.side-nav-item.new-chat::before {  margin-right: 4px; }
.side-nav-item.new-chat:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 10px 26px rgba(255,144,201,0.65); }

.side-nav-item {
  position: relative; padding: 13px 16px 13px 21px; border-radius: 18px;
  font-size: 13.5px; color: #ff70b8; cursor: pointer; margin-bottom: 8px;
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: #ffffffcc; border: 1.5px solid transparent;
}
.side-nav-item::before {
   position: absolute; left: 16px; top: 50%;
  transform: translateY(-50%); font-size: 16px; opacity: 0.8;
  transition: transform 0.28s ease;
}
.side-nav-item:hover {
  background: #fff; border-color: #ffd6ea;
  transform: translateX(5px);
  box-shadow: 0 6px 16px rgba(255,144,201,0.28);
}
.side-nav-item:hover::before { transform: translateY(-50%) scale(1.2); }

.side-nav-item.active {
  transform: translateX(3px);
}
.side-nav-item.active::before {  opacity: 1; transform: translateY(-50%) scale(1.15); }

.side-nav-overlay {
  position: fixed; inset: 0;
  background: rgba(255,220,235,0.5); backdrop-filter: blur(5px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.32s ease; z-index: 999;
}
.side-nav-overlay.show { opacity: 1; pointer-events: auto; }























/* ============================================================
   CHAT ITEM WITH OPTIONS 🎀
   ============================================================ */
.side-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 12px 13px 23px;
}

.side-nav-item .chat-title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
}


.chat-options-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #ff90c9;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-left: 6px;
  line-height: 1;
  padding-bottom: 2px;
}
.chat-options-btn:hover {
  background: #ffd6ea;
  color: #ff70b8;
  opacity: 1;
  transform: scale(1.1);
}
.side-nav-item.active .chat-options-btn {
  color: #ff70b8;
}
.side-nav-item.active .chat-options-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Chat item layout */
.side-nav-item { display: flex; align-items: center; justify-content: space-between; padding: 13px 12px 13px 28px; }
.side-nav-item .chat-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; color: inherit; font-family: inherit; font-size: inherit; }
.side-nav-item.active .chat-title { color: #ff70b8; }

.chat-options-btn { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; color: #ff90c9; cursor: pointer; opacity: 0.6; transition: all 0.2s ease; flex-shrink: 0; margin-left: 6px; line-height: 1; padding-bottom: 2px; }
.chat-options-btn:hover { background: #ffd6ea; color: #ff70b8; opacity: 1; transform: scale(1.1); }
.side-nav-item.active .chat-options-btn { color:#ff70b8; }
.side-nav-item.active .chat-options-btn:hover { background: rgba(255,255,255,0.3); }

.chat-title-input { flex: 1; background: #fff5fa; border: 1.5px solid #ff90c9; border-radius: 8px; padding: 6px 10px; font-family: "Vividly-Regular", Helvetica; font-size: 13.5px; color: #ff70b8; outline: none; box-shadow: 0 0 0 3px rgba(255,144,201,0.2); min-width: 0; width: 100%; }
.side-nav-item.active .chat-title-input { background: #ffffff; border-color: #ffffff; }

/* Context menu */
.chat-context-menu { position: fixed; background: #ffffff; border: 1.5px solid #ff90c9; border-radius: 14px; padding: 6px;  z-index: 2000; min-width: 110px; animation: ctxIn 0.22s cubic-bezier(0.34, 1.56, 0.64, 1); font-family: "Vividly-Regular", Helvetica; }
@keyframes ctxIn { from { opacity: 0; transform: translateY(-6px) scale(0.94); } to { opacity: 1; transform: translateY(0) scale(1); } }
.ctx-item { padding: 9px 14px; border-radius: 10px; font-size: 13px; color: #ff70b8; cursor: pointer; transition: all 0.2s ease; white-space: nowrap; }
.ctx-item:hover { background: #ffe4f1; padding-left: 18px; }

/* Delete popup */
.delete-popup { text-align: center; }
.delete-popup .popup-title { font-size: 19px; }
.delete-popup .popup-sub { margin-bottom: 22px; }
.popup-btn.danger { background: linear-gradient(135deg, #ffd6ea(255, 230, 242)#ffd6ea); box-shadow: 0 4px 14px rgba(255, 232, 246, 0.5); }

/* Multi-image preview */
.image-preview-wrap { display: none; align-self: flex-start; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.image-preview-wrap.show { display: flex; }
.attached-item { position: relative; width: 64px; height: 64px; border-radius: 12px; overflow: visible; animation: bubbleIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
.attached-img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; border: 2px solid #ffd6ea;  display: block; }
.attached-remove { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; background: #ff90c9; color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 3px 8px rgba(255,144,201,0.5); transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); z-index: 3; }
.attached-remove:hover { background: #ff70b8; transform: scale(1.15) rotate(90deg); }

