/* 🌸 Friendly Female AI – Kuki Styles */

/* ✅ Refined Kuki Assistant Styles */

.kuki-chat-box {
  position: fixed;
  top: auto !important;
  bottom: 80px;
  right: 20px;
  width: 280px;
  max-height: 85vh;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 9999;
  font-family: "Segoe UI", sans-serif;
  transition: all 0.3s ease-in-out;
  cursor: grab;
}

.kuki-response.processing {
  opacity: 1;
  transition: opacity 0.5s ease;
}

.kuki-chat-box.kuki-fullscreen {
  top: 65px !important;
  bottom: 60px !important;
  left: 20vw !important;
  right: 20vw !important;
  width: 60vw !important;
  max-width: 100vw !important;
  height: auto !important;
  border-radius: 0 !important;
  background: #fff;
  box-shadow: none;
  padding: 0px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999 !important;
}



.kuki-expand {
  margin-left: auto;
  padding: 0 10px;
  cursor: pointer;
  font-size: 16px;
}



.kuki-chat-box.minimized {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}



.kuki-content {
  overflow-y: auto;
  padding: 2px;
}



.kuki-chat-header {
  background: linear-gradient(90deg, #ff5f6d, #ffc371);
  color: #fff;
  padding: 12px 4px 6px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.1em;
  font-weight: 600;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}


.kuki-voice-wrapper .dot {
  animation: blink 1.2s infinite;
  font-weight: bold;
  font-size: 24px;
}

.kuki-voice-wrapper .dot:nth-child(2) {
  animation-delay: 0.2s;
}

.kuki-voice-wrapper .dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blink {
  0% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}


.kuki-chat-header strong {
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 1.05em;
}

#voiceOutputBox em {
  animation: blink 1s infinite;
}

@keyframes blink {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }

  100% {
    opacity: 1;
  }
}

.chat-bubble {
  margin: 6px;
  padding: 4px;
  border-radius: 10px;
  font-size: 14px;
  max-width: 95%;
  position: relative;
}

.user-bubble {
  background-color: #f0f0f0;
  text-align: left;
}

.kuki-bubble {
  background-color: #e6f7ff;
  text-align: left;
}

.kuki-thinking {
  background-color: #fffbe6;
  font-style: italic;
  text-align: left;
}

.error-bubble {
  background-color: #ffe6e6;
  color: #c00;
}

.speaker-icon {
  margin-left: 8px;
  cursor: pointer;
  font-size: 16px;
  vertical-align: middle;
}

.kuki-listening-area {
  border: 1px solid #ff7675;
  border-radius: 10px;
  padding: 2px;
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0px #ff7675;
  }

  50% {
    box-shadow: 0 0 15px #ff7675;
  }

  100% {
    box-shadow: 0 0 0px #ff7675;
  }
}

.kuki-minimize {
  background: none;
  border: none;
  font-size: 1.2em;
  cursor: pointer;
  color: #fff;
}



.kuki-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 2px;
}



.kuki-options.kuki-links {
  flex-direction: column;
  align-items: stretch;
  padding: 2px 2px;
  gap: 2px;
}



.kuki-option {
  padding: 8px 10px;
  background: #ffe0e0;
  border-radius: 16px;
  font-size: 0.9em;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 48px;
  color: #444;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.3s ease;
  flex: 1 1 45%;
  justify-content: center;
}



.kuki-link {
  display: flex;
  align-items: center;
  font-size: 1.1em;
  color: #007bff;
  text-decoration: none;
  background: #fefefe;
  padding: 10px 6px;
  border-radius: 14px;
  transition: background 0.2s ease;
  gap: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}



.kuki-link::before {
  content: "📘";
  margin-right: 4px;
}



.kuki-link:hover {
  background: #e9f2ff;
  text-decoration: underline;
}



.kuki-option:hover {
  background: #f8bebe;
}



.kuki-back {
  background: #f06f97;
  color: #ffffff;
  font-size: 0.9em;
  border-radius: 14px;
  padding: 6px 18px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: none;
  margin: 10px auto;
  text-align: center;
  z-index: 1;
}



.kuki-footer {
  font-size: 10px;
  font-style: italic;
  text-align: center;
  color: #666;
  padding: 4px 6px;
  border-top: 1px solid #ddd;
  background: #fafafa;
}



.kuki-ask-wobble:hover {
  transform: scale(1.05);
}



.kuki-ask-inner {
  display: flex;
  align-items: center;
  gap: 8px;
}



.kuki-icon {
  font-size: 1.2em;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  /* Or bold */

}


.ask-kuki-wobble {
  position: fixed;
  /* Ensure it stays on screen */
  bottom: 150px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #002765;
  color: white;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  border-radius: 999px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  animation: wobbleTilt 2.5s infinite;
  transform-origin: center;
  transition: transform 0.3s ease;
  z-index: 9999;
}



@keyframes wobbleTilt {

  0%,
  100% {
    transform: rotate(0deg);
  }


  20% {
    transform: rotate(6deg);
  }


  40% {
    transform: rotate(-6deg);
  }


  60% {
    transform: rotate(5deg);
  }


  80% {
    transform: rotate(-5deg);
  }


}



.kuki-back.show {
  display: block;
}



.kuki-edu-wrapper {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  font-size: 16px;
  line-height: 1.6;
  background: linear-gradient(to bottom right, #fff7e6, #e6f7ff);
}



.kuki-edu-wrapper h2,
.kuki-edu-wrapper h3 {
  font-size: 22px;
  color: #333;
  margin-top: 0;
}



.kuki-edu-wrapper button.kuki-option {
  width: 100%;
  margin: 10px 0;
  padding: 12px;
  background-color: #f1f1f1;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}



.kuki-edu-wrapper button.kuki-option:hover {
  background-color: #ddd;
}



.kuki-ad-general {
  display: none;
  padding: 12px;
  background-color: #fafafa;
  border-top: 1px solid #e0e0e0;
  text-align: center;
  font-size: 14px;
  color: #555;
}


.kuki-fullscreen .kuki-ad-general {
  display: block;
}



.kuki-ad-general-closer {
  background: #f5f5f5;
  border-top: 1px solid #ccc;
  padding: 10px;
  position: relative;
}



.kuki-ad-close-btn {
  position: absolute;
  top: 6px;
  right: 10px;
  cursor: pointer;
  color: #999;
}


.kuki-ad-close-btn:hover {
  color: #444;
}




.kuki-option-list-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 4px 0 0 0;
  list-style: none;
  justify-content: center;
}



.kuki-option-list-flex li {
  background-color: #f6b7b7;
  padding: 3px 3px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: background-color 0.3s ease;
}



.kuki-option-list-flex li:hover {
  background-color: #ffe0eb;
}




.kuki-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 15px;
  padding: 10px;
  justify-items: center;
}



.kuki-tile {
  background-color: #fff9c4;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 10px;
  text-align: center;
  transition: transform 0.2s ease;
  cursor: pointer;
}



.kuki-tile:hover {
  transform: scale(1.05);
}



.kuki-tile img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 6px;
}



.kuki-tile span {
  display: block;
  font-size: 14px;
  margin: 8px 0;
}



/*Riddle starts*/

.kuki-riddle-box {
  background: linear-gradient(135deg, #fffbe6, #e6f7ff);
  border: 2px dashed #ffcc80;
  border-radius: 16px;
  padding: 9px;
  margin: 5px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.6s ease-in-out;
}



.kuki-riddle-heading {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: #333;
  font-weight: 700;
}



.kuki-riddle-question {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 10px;
}



.kuki-reveal-btn {
  display: inline-block;
  background: #ffecb3;
  color: #333;
  padding: 8px 14px;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}



.kuki-reveal-btn:hover {
  background: #ffe082;
}


.kuki-next-btn {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.kuki-next-btn span {
  background: #e3f2fd;
  border: 2px solid #64b5f6;
  padding: 8px 20px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #1565c0;
  cursor: pointer;
  box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: inline-block;
}

.kuki-next-btn span:hover {
  background: #64b5f6;
  color: #fff;
  transform: translateY(-2px);
}


/*games tab*/

.kuki-emoji-question {
  font-size: 1.8rem;
  text-align: center;
  margin: 1em 0;
}


.kuki-tab-toggle {
  display: flex;
  justify-content: space-around;
  margin-bottom: 10px;
}

.kuki-tab-toggle span {
  flex: 1;
  padding: 8px 12px;
  margin: 0 4px;
  background: linear-gradient(90deg, #ff5f6d, #ffc371);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.kuki-tab-toggle span.active {
  background: #ffd966;
  border-color: #f1b300;
  color: #000;
}

.kuki-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin: 16px 0px 16px 0px;
}

.kuki-options-grid span {
  padding: 6px;
  background: linear-gradient(25deg, #ff5f6d, #ffc371);
  border: 1px solid #ffffff;
  border-radius: 18px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
  color: white;
}

.kuki-game-footer span {
  padding: 6px;
  background: linear-gradient(25deg, #ff5f6d, #ffc371);
  border: 1px solid #ffffff;
  border-radius: 18px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
  color: white;
}

.kuki-options-grid span:hover {
  background: #f49c25;
}

.kuki-game-wrapper {
  background: #fff7e6;
  padding: 4px;
  border-radius: 16px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
  animation: fadeIn 0.3s ease-in-out;
}

.kuki-feedback {
  margin-top: 12px;
  padding: 10px;
  border-radius: 8px;
  background: #fff8dc;
  border: 1px solid #f0c36d;
  font-size: 15px;
  text-align: center;
  animation: fadeIn 0.4s ease-in-out;
}

.pattern-sequence {
  font-size: 2rem;
  text-align: center;
  margin: 12px 0;
}

.kuki-memory-setup {
  text-align: center;
  padding: 1em;
}

.kuki-memory-setup {
  font-size: 1rem;
  margin: 0.5em;
}

.kuki-memory-board {
  text-align: center;
  padding: 1em;
}

.kuki-memory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  gap: 12px;
  justify-items: center;
}

.memorycard {
  width: 60px;
  height: 60px;
  perspective: 600px;
  cursor: pointer;
}

.memorycard>div {
  width: 100%;
  height: 100%;
  font-size: 2rem;
  text-align: center;
  line-height: 60px;
  border-radius: 8px;
  transition: transform 0.6s;
  backface-visibility: hidden;
  position: absolute;
}

.memorycard-front {
  background: #ffc;
  z-index: 2;
}

.memorycard-back {
  background: #ccf;
  transform: rotateY(180deg);
}

.memorycard.flipped .memorycard-front {
  transform: rotateY(180deg);
}

.memorycard.flipped .memorycard-back {
  transform: rotateY(0deg);
  z-index: 3;
}

.kuki-memory-timer {
  margin-bottom: 1em;
  font-weight: bold;
}

.kuki-feedback {
  font-size: 1.4rem;
  margin-top: 1em;
  color: green;
  animation: flash 0.4s ease-in-out 3;
}


.kuki-game-overlay {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.kuki-game-container {
  width: 90%;
  max-width: 500px;
  background: white;
  padding: 1em;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  position: relative;
}

.kuki-close-btn {
  position: absolute;
  top: 6px;
  right: 10px;
  background: #ff5f6d;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.2em;
  width: 30px;
  height: 30px;
  cursor: pointer;
}

/*games tab*/

.kuki-video-box {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 10px auto;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.kuki-video-box iframe {
  width: 100%;
  height: 400px;
}

.kuki-close-video {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
  z-index: 10;
}

@media (max-width: 768px) {
  .kuki-video-box iframe {
    height: 250px;
  }
}



@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes flash {
  0% {
    background-color: #fff;
  }



  50% {
    background-color: #fff9c4;
  }



  100% {
    background-color: #fff;
  }


}

/*Riddle Ends*/

/*Word of the Day start*/
/* 🔠 Word of the Day Presentation */
.kuki-word-box {
  background: linear-gradient(to bottom right, #fffef2, #eefbf9);
  border: 2px solid #dfe6e9;
  border-left: 5px solid #81ecec;
  padding: 18px;
  border-radius: 14px;
  margin: 10px;
  animation: fadeIn 0.3s ease-in-out;
}



.kuki-word-box h3 {
  margin-top: 0;
  font-size: 1.25rem;
  color: #2d3436;
}



.kuki-word-entry {
  margin-bottom: 12px;
}



.kuki-word {
  font-weight: bold;
  font-size: 1.1rem;
  color: #0984e3;
}



.kuki-word-type {
  font-style: italic;
  color: #636e72;
  margin-left: 4px;
}



.kuki-word-meaning,
.kuki-word-example {
  margin: 4px 0;
  font-size: 0.95rem;
  color: #2d3436;
}



.next-word-btn {
  margin-top: 15px;
  padding: 6px 14px;
  font-size: 0.95rem;
  background: #55efc4;
  color: #2d3436;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}



.next-word-btn:hover {
  background: #00cec9;
  color: white;
}



/*word of the day end/


/* MOral Story starts/

/* 📖 Moral Stories Presentation */
.kuki-story-box {
  background: linear-gradient(to bottom right, #f3f3ff, #e8f8f5);
  border-left: 5px solid #a29bfe;
  padding: 20px;
  border-radius: 14px;
  margin: 10px;
  animation: fadeIn 0.3s ease-in-out;
}



.kuki-story-box h3 {
  font-size: 1.2rem;
  color: #2d3436;
  margin-bottom: 10px;
}



.kuki-story-content {
  font-size: 0.95rem;
  color: #2d3436;
  margin-bottom: 12px;
}



.kuki-story-moral {
  font-weight: bold;
  color: #6c5ce7;
  font-size: 0.95rem;
}



.next-story-btn {
  margin-top: 15px;
  padding: 6px 14px;
  font-size: 0.95rem;
  background: #a29bfe;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}



.next-story-btn:hover {
  background: #6c5ce7;
}



/*Moral story ends/

/*NLP based starts/


/* 🧠 Grammar Tags with Compromise.js */
/* 🧠 Grammar Helper Integration */
.kuki-grammar-analysis {
  background: #fdfbfb;
  border-left: 5px solid #fab1a0;
  padding: 16px;
  border-radius: 12px;
  margin: 10px;
  font-size: 0.95rem;
  animation: fadeIn 0.3s ease-in-out;
}



.kuki-grammar-analysis strong {
  color: #d63031;
}



.kuki-grammar-analysis .noun {
  background: #dfe6e9;
  color: #2d3436;
  padding: 2px 6px;
  border-radius: 4px;
  margin: 1px;
}



.kuki-grammar-analysis .verb {
  background: #fab1a0;
  color: #6d4c41;
  padding: 2px 6px;
  border-radius: 4px;
  margin: 1px;
}



.kuki-grammar-analysis .adjective {
  background: #ffeaa7;
  color: #636e72;
  padding: 2px 6px;
  border-radius: 4px;
  margin: 1px;
}



.kuki-grammar-analysis .adverb {
  background: #81ecec;
  color: #00695c;
  padding: 2px 6px;
  border-radius: 4px;
  margin: 1px;
}



.kuki-grammar-analysis .preposition {
  background: #a29bfe;
  color: #2d3436;
  padding: 2px 6px;
  border-radius: 4px;
  margin: 1px;
}



.kuki-grammar-analysis .conjunction {
  background: #fdcb6e;
  color: #4e342e;
  padding: 2px 6px;
  border-radius: 4px;
  margin: 1px;
}



.kuki-grammar-analysis .pronoun {
  background: #ff7675;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  margin: 1px;
}



.kuki-grammar-analysis .highlight {
  font-weight: bold;
  text-decoration: underline;
}



.tagged-word {
  display: inline-block;
  background: #f1f2f6;
  border: 1px solid #dfe6e9;
  padding: 6px 10px;
  margin: 5px;
  border-radius: 10px;
  font-size: 16px;
  text-align: center;
  transition: transform 0.2s ease;
}



.tagged-word:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}



.tagged-word strong {
  display: block;
  font-weight: bold;
  color: #2d3436;
}



.tagged-word small {
  color: #636e72;
  font-size: 0.75rem;
  display: block;
  margin-top: 4px;
}



.tag-noun {
  background: #dfefff;
  color: #1e3799;
}



.tag-verb {
  background: #eaffea;
  color: #2ecc71;
}



.tag-det {
  background: #fff4e6;
  color: #e67e22;
}



.tag-prep {
  background: #f3e5f5;
  color: #8e44ad;
}




/* ✨ Tooltip Enhancements for Grammar Tags */
.tagged-word[data-tooltip] {
  position: relative;
  cursor: help;
}



.tagged-word[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: #2d3436;
  color: #fff;
  padding: 6px 10px;
  font-size: 0.75rem;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 10001;
}



.tagged-word[data-tooltip]::before {
  content: '';
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #2d3436 transparent transparent transparent;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10000;
}



.tagged-word[data-tooltip]:hover::after,
.tagged-word[data-tooltip]:hover::before {
  opacity: 1;
}



/*NLP based Ends*/

/**Dictionary Grammer starts*/
.kuki-word-explain-box {
  position: fixed;
  bottom: 30px;
  right: 20px;
  background: #fffefc;
  border: 2px solid #fab1a0;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  padding: 16px;
  width: 280px;
  max-width: 90vw;
  font-family: 'Segoe UI', sans-serif;
  z-index: 99999;
  animation: fadeIn 0.4s ease;
}



.kuki-word-explain-box h4 {
  margin: 0;
  font-size: 1.1rem;
  color: #d63031;
}



.kuki-word-explain-box p {
  margin: 6px 0;
  font-size: 0.95rem;
  color: #2d3436;
}



.kuki-word-explain-box .close-btn {
  position: absolute;
  top: 6px;
  right: 10px;
  background: none;
  border: none;
  font-size: 16px;
  color: #888;
  cursor: pointer;
}



.tooltip-icon {
  position: relative;
  cursor: help;
  font-size: 0.85rem;
  line-height: 1;
}



.grammar-tags-line {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  flex-wrap: wrap;
}



.tooltip-text {
  visibility: hidden;
  background-color: #2d3436;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 6px 10px;
  position: absolute;
  z-index: 999;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  width: max-content;
  max-width: 240px;
  font-size: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  white-space: pre-wrap;
}



.tooltip-icon:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}



#kuki-word-explain {
  max-height: 180px;
  overflow-y: auto;
  overflow-x: hidden;
  background: #fffdf8;
  border: 1px solid #ffd6a5;
  padding: 12px 14px;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  margin-top: 14px;
  margin-bottom: 8px;
  font-size: 0.95rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 999;
}



#kuki-word-explain h4 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: #d35400;
}



#kuki-word-explain p {
  margin: 4px 0;
  line-height: 1.4;
  font-size: 0.95rem;
  word-break: break-word;
}







/*dictionary grammer endss*/


@media (max-width: 500px) {
  .kuki-chat-box {
    width: 100vw;
    right: 0;
    left: 0;
    top: 50px !important;
    bottom: 60;
    height: calc(100vh - 110px);
    max-height: none;
    border-radius: 0;
  }



  .kuki-chat-box.kuki-fullscreen {
    top: 65px !important;
    bottom: 60px !important;
    left: 1vw !important;
    right: 1vw !important;
    width: 98vw !important;
    max-width: 100vw !important;
    height: auto !important;
    border-radius: 0 !important;
    background: #fff;
    box-shadow: none;
    padding: 0px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999 !important;
  }



  .kuki-chat-body {
    padding: 10px 12px 60px;
  }



  .kuki-option {
    flex: 1 1 45%;
  }



  .floating-engage-box {
    right: 10px;
    max-width: 90%;
  }



  .card h2 {
    font-size: 20px;
    padding: 5px 8px;
  }



  .kuki-options.kuki-links {
    padding-left: 5px;
    padding-right: 5px;
  }




  #kuki-word-explain {
    max-height: 150px;
    overflow-y: auto;
    background: #fffdf8;
    border: 1px solid #ffd6a5;
    padding: 10px 14px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-top: 12px;
    margin-bottom: 8px;
    position: relative;
    z-index: 10;
    font-size: 14px;
  }



  #kuki-word-explain h4 {
    font-size: 1rem;
    margin: 0 0 6px;
    color: #e17055;
  }



  #kuki-word-explain p {
    margin: 4px 0;
    font-size: 0.88rem;
    line-height: 1.4;
  }



  .kuki-edu-wrapper {
    overflow-y: auto;
    max-height: calc(100% - 60px);
    /* Keep scroll inside Kuki */
  }


}

.kuki-input-box,
.kuki-dropdown {
  width: 95%;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
}





.kuki-action-btn {
  padding: 10px 20px;
  margin-top: 10px;
  background: #ff6f61;
  border: none;
  color: white;
  border-radius: 10px;
  cursor: pointer;
}



.kuki-translation-result {
  margin-top: 15px;
  padding: 10px;
  background: #f9f9f9;
  border-left: 4px solid #4caf50;
  font-size: 18px;
  border-radius: 6px;
}


.kuki-speak-btn {
  margin-left: 8px;
  background: #4caf50;
  color: white;
  border: none;
  padding: 3px 8px;
  font-size: 13px;
  border-radius: 6px;
  cursor: pointer;
}




.kuki-translation-example {
  font-style: italic;
  margin-top: 10px;
  color: #333;
}



.kuki-translation-history {
  list-style: none;
  padding-left: 0;
  font-size: 14px;
}



.kuki-translation-history li {
  margin: 4px 0;
  border-bottom: 1px dashed #ddd;
  padding-bottom: 3px;
}



.kuki-translator-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  align-items: center;
  flex-wrap: wrap;
}



.kuki-translator-row input,
.kuki-translator-row select {
  flex: 1;
  min-width: 180px;
}



.kuki-action-btn.small {
  padding: 8px 14px;
  font-size: 15px;
  white-space: nowrap;
}

#micBtn.mic-active {
  background: radial-gradient(circle, #ff4d4d, #cc0000);
  color: white;
  animation: micPulse 1.5s infinite;
}

@keyframes micPulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Artist & Mood Meta */
.music-meta {
  font-size: 0.9rem;
  color: #444;
  margin: 5px 0 10px 0;
  font-style: italic;
}

.music-meta strong {
  color: #222;
  font-weight: 600;
}

/* Tags (Hashtags) Container */
.music-tags {
  margin: 8px 0 12px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Individual Tag */
.music-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  background: #6e6e6e;
  color: #ffffff;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid #ddd;
}

.music-tag:hover {
  background: #e6e6e6;
  color: #000;
  transform: translateY(-1px);
}




.music-card-header {
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 14px;
}

.music-btn {
  display: inline-block;
  padding: 6px 10px;
  background: #ff4d4d;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-size: 13px;
}

.music-btn:hover {
  background: #e84343;
}

.link-card {
  padding: 10px;
  border-radius: 8px;
  background: #eef5ff;
  margin: 5px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.link-card-header {
  font-weight: bold;
  margin-bottom: 6px;
  font-size: 14px;
}

.link-btn {
  display: inline-block;
  padding: 5px 10px;
  background: #3b82f6;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 12px;
}

.link-btn:hover {
  background: #2563eb;
}

.kuki-bubble.music-card,
.kuki-bubble.link-card {
  padding: 10px;
  border-radius: 8px;
  background: #eef5ff;
  margin: 5px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.music-card-header,
.link-card-header {
  font-weight: bold;
  margin-bottom: 6px;
  font-size: 14px;
}

.music-btn,
.link-btn {
  display: inline-block;
  padding: 5px 10px;
  background: #3b82f6;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 12px;
}

.music-btn:hover,
.link-btn:hover {
  background: #2563eb;
}

.forecast-card {
  padding: 0px 2px 6px 6px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  color: #fff;
  /* default for dark backgrounds */
  overflow: hidden;
}

.forecast-card h3,
.forecast-card p {
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}


/* Default (Desktop / Tablet) */
.forecast-timeline {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  margin-top: 10px;
  -webkit-overflow-scrolling: touch;
  /* smooth scrolling */
  scroll-snap-type: x mandatory;
  /* snap for horizontal scroll */
}


.forecast-item {
  min-width: 80px;
  flex: 0 0 auto;
  text-align: center;
  background: #fff;
  /* white background */
  color: #333;
  /* dark text for readability */
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  scroll-snap-align: start;
}

.forecast-time {
  font-weight: bold;
  margin-bottom: 4px;
}

.forecast-icon {
  width: 50px;
  height: 50px;
}

.forecast-temp {
  font-size: 14px;
  font-weight: bold;
  margin-top: 4px;
}

.forecast-cond {
  font-size: 12px;
  color: #555;
}

/* Mobile View */
@media (max-width: 768px) {
  .forecast-timeline {
    display: flex;
    flex-direction: column;
    /* stack vertically */
    overflow-x: hidden;
    gap: 8px;
  }

  .forecast-item {
    width: 95%;
    /* full width on mobile */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px;
    text-align: left;
    background: #fff;
    /* white background */
    color: #333;
  }



  .forecast-item img.forecast-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }

  .forecast-time,
  .forecast-temp,
  .forecast-cond {
    font-size: 13px;
  }

  .forecast-time {
    min-width: 50px;
    font-weight: bold;
  }

  .forecast-temp {
    font-weight: bold;
    margin-left: 10px;
  }

  .forecast-cond {
    flex: .5;
    text-align: right;
    font-size: 11px;
    color: #444;
  }
}


.music-carousel {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  overflow-x: auto;
  padding: 2px;
  justify-content: flex-start;
}

.music-card {
  flex: 1 1 calc(25% - 15px);
  /* 4 items per row (25% width minus gap) */
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  padding: 2px;
  text-align: center;
  scroll-snap-align: start;
  box-sizing: border-box;
}

.music-thumb {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 8px;
}

.music-title {
  font-size: 14px;
  font-weight: bold;
  margin: 5px 0;
  color: #333;
}

.music-channel {
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
}

.music-btn {
  display: inline-block;
  padding: 5px 10px;
  background: #ff4b2b;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-size: 12px;
  font-weight: bold;
}

.music-btn:hover {
  background: #e6391a;
}

/* Mobile Grid View */
@media (max-width: 768px) {
  .music-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    overflow-x: hidden;
  }
}

/* ---- LIC Response Container ---- */
.lic-response {
  margin: 2px 0;
  padding: 6px 6px;
  border-radius: 8px;
  background: #fdfdfd;
  font-size: 14px;
  line-height: 1.5;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Return Estimate Block */
.lic-returns {
  background: #e6f4ff;
  border-left: 4px solid #0078d7;
}

/* Plan Suggestions Block */
.lic-suggestions {
  background: #fffbe6;
  border-left: 4px solid #f5a623;
}

.lic-suggestions ul {
  padding-left: 18px;
  margin: 8px 0;
}

.lic-suggestions li {
  list-style: disc;
  margin-bottom: 4px;
}

/* Comparison Table Block */
.lic-comparison {
  background: #f9f9f9;
  padding: 0;
  border: none;
  box-shadow: none;
}

/* ---- LIC Comparison Table ---- */
.lic-compare-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #f9f9f9;
}

.lic-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 600px;
  /* ensures scroll on small screens */
}

.lic-compare-table th,
.lic-compare-table td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: left;
  vertical-align: top;
}

.lic-compare-table th {
  background: #0078d7;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  /* prevents header text from breaking */
}

.lic-compare-table tr:nth-child(even) td {
  background: #f1f1f1;
}

/* Highlight first column (Features) */
.lic-compare-table th:first-child,
.lic-compare-table td:first-child {
  background: #eef5ff;
  font-weight: bold;
}

/* Responsive: Add shadow effect for scroll */
@media (max-width: 600px) {
  .lic-compare-wrapper {
    border: none;
    border-radius: 0;
    box-shadow: inset -5px 0 5px -5px rgba(0, 0, 0, 0.1);
  }
}


/* LIC Plan Card */
.lic-card {
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 6px;
  margin: 5px 0;
  background: #fdfdfd;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  transition: box-shadow 0.3s ease;
}

.lic-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lic-card h3 {
  margin: 0 0 10px;
  color: #0078d7;
  font-size: 20px;
  font-weight: bold;
}

.lic-card p {
  margin: 8px 0;
  font-size: 15px;
  line-height: 1.5;
  color: #333;
}

.lic-card ul {
  margin: 8px 0 12px 20px;
  padding: 0;
  list-style-type: disc;
  color: #444;
}

.lic-card h4 {
  margin: 12px 0 6px;
  color: #444;
  font-size: 16px;
  font-weight: bold;
}

.lic-card .tagline {
  background: #f1f8ff;
  border-left: 4px solid #0078d7;
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.lic-card .maturity-example,
.lic-card .return-estimates,
.lic-card .key-features {
  background: #fafafa;
  border-radius: 8px;
  padding: 8px 12px;
  margin-top: 10px;
}

.lic-card li {
  margin: 4px 0;
}

.lic-card strong {
  color: #222;
}


.lic-highlights {
  list-style: none;
  padding-left: 0;
  color: #333;
}

.lic-highlights li {
  margin-bottom: 6px;
}

.lic-return-msg {
  font-weight: bold;
  color: #444;
  margin-bottom: 10px;
}

.tagline {
  background: #f1f8ff;
  padding: 10px;
  border-left: 4px solid #0078d7;
  border-radius: 6px;
  margin-bottom: 12px;
}

.maturity-example,
.return-estimates,
.key-features {
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 10px 12px;
  margin: 10px 0;
}

.maturity-example h4,
.return-estimates h4,
.key-features h4 {
  color: #222;
  font-weight: bold;
}


/* CTA Button */
.lic-cta {
  display: inline-block;
  background: #0078d7;
  color: #fff;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease;
}

.lic-cta:hover {
  background: #005bb5;
}

.lic-plan-link {
  color: #0078d7;
  cursor: pointer;
  font-weight: 500;
  text-decoration: underline;
}

.lic-plan-link:hover {
  color: #005bb5;
}

.insurance-plan-link {
  color: #007bff;
  cursor: pointer;
  text-decoration: underline;
}

.insurance-plan-link:hover {
  text-decoration: none;
}

.insurance-ui label {
  display: block;
  margin-top: 12px;
  font-weight: bold;
}

.insurance-ui select,
.insurance-ui input[type="text"],
.insurance-ui button {
  width: 100%;
  padding: 8px;
  margin-top: 6px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.insurance-ui button {
  background-color: #007bff;
  color: white;
  border: none;
  margin-top: 10px;
  cursor: pointer;
}

.insurance-ui button:disabled {
  background-color: #aaa;
  cursor: not-allowed;
}

.error-msg p {
  background: #ffe6e6;
  border: 1px solid #d30000;
  color: #a00000;
  padding: 10px;
  margin: 10px 0;
  border-radius: 5px;
  font-size: 14px;
}


.ui-disclaimer,
.pdf-disclaimer {
  font-size: 14px;
  color: #a00;
  background: #fff3f3;
  padding: 16px;
  margin-top: 30px;
  border-left: 5px solid #c00;
  border-radius: 6px;
  line-height: 1.6;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.ui-disclaimer a {
  color: #0056b3;
  font-weight: 600;
  text-decoration: underline;
}