:root {
  --primary-color: 255, 152, 0;
  --bg-primary: var(--primary-color);
  --bg-primary-hover: 243, 145, 0;
  --white: #fff;
  --icon-color: 203, 121, 0;
  
  /* Additional colors found in the CSS */
  --chat-playground-bg:#e5ddd5;
  --ash-color: 229, 229, 229;
  --badge-bg: 255, 229, 191;
  --badge-hover: 252, 186, 89;
  --chat-agent-bg: #ffffff;
  --chat-user-bg: #dcf8c6;
  --top-skill-bg: #9f5f00;
  --typing-dots-bg: #c7c7c7;
  --typing-dots-color: #fff;
  --modal-shadow-color: 255, 159, 15;
  --border-focus-color: 255, 181, 71;
  --text-dark: #1e1e2f;
  --text-gray: rgb(92, 92, 92);
  --text-dark-alpha: #1a1a1ae7;
  --text-white-alpha: #fffffff5;
}

.text-primary {
  color: rgba(var(--primary-color), var(--bs-text-opacity)) !important;
}

.bg-primary {
  background-color: rgba(var(--bg-primary), var(--bs-bg-opacity)) !important;
}

.primary-icon {
  color: rgba(var(--icon-color));
}

.btn-primary {
  --bs-btn-color: var(--white);
  --bs-btn-bg: rgba(var(--bg-primary), 1) !important;
  --bs-btn-border-color: rgba(var(--bg-primary), 1) !important;
  --bs-btn-hover-color: var(--white);
  --bs-btn-hover-bg: rgba(var(--bg-primary-hover), 1) !important;
  --bs-btn-hover-border-color: rgba(var(--bg-primary-hover), 1) !important;
  --bs-btn-focus-shadow-rgb: var(--bg-primary);
  --bs-btn-active-color: var(--white);
  --bs-btn-active-bg: rgba(var(--bg-primary), 0.85) !important;
  --bs-btn-active-border-color: rgba(var(--bg-primary), 0.85) !important;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: var(--white);
  --bs-btn-disabled-bg: rgba(var(--bg-primary), 0.65) !important;
  --bs-btn-disabled-border-color: rgba(var(--bg-primary), 0.65) !important;
}

/* Token Btn */
.btn-token .value {
  background-color: rgba(var(--primary-color), 1);
  color: var(--text-dark);
  font-weight: 600;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.75rem;
  line-height: 1;
}

#chatInput .form-control:focus,
#chatInput .form-control:active {
  color: var(--bs-body-color);
  background-color: rgba(var(--ash-color));
  border-color: rgba(var(--border-focus-color), 0);
  outline: 0;
  box-shadow: 0 0 0 .25rem rgba(var(--modal-shadow-color), 0.336);
}

.pt-2x {
  padding-top: 2rem !important;
}

/* .form-control::placeholder { color: var(--text-gray); font-size: 15px; } */

.bg-ash {
  background: rgba(var(--ash-color));
}

.bg-badge {
  background: rgb(var(--badge-bg));
  box-shadow: 0 0 5px var(--text-dark-alpha)3b;
  font-size: 13px;
  font-weight: 400;
  border: 1px solid #4f4f4f17;
  color: var(--text-dark-alpha);
  padding: .5rem;
  transform: 5ms linear ease-in;
}

.bg-profile-badge {
  background: rgb(var(--badge-bg));
  box-shadow: 0 0 5px var(--text-dark-alpha)3b;
  font-size: 13px;
  font-weight: 400;
  border: 1px solid #4f4f4f17;
  color: var(--text-dark-alpha);
  transform: 5ms linear ease-in;
}

.bg-badge:hover {
  background: rgb(var(--badge-hover));
  color: var(--text-dark);
}

a,
.btn,
i,
img {
  cursor: pointer;
}

/* Font-size utilities */
.fs-1 {
  font-size: 1px !important;
}

.fs-2 {
  font-size: 2px !important;
}

.fs-3 {
  font-size: 3px !important;
}

.fs-4 {
  font-size: 4px !important;
}

.fs-5 {
  font-size: 5px !important;
}

.fs-6 {
  font-size: 6px !important;
}

.fs-7 {
  font-size: 7px !important;
}

.fs-8 {
  font-size: 8px !important;
}

.fs-9 {
  font-size: 9px !important;
}

.fs-10 {
  font-size: 10px !important;
}

.fs-11 {
  font-size: 11px !important;
}

.fs-12 {
  font-size: 12px !important;
}

.fs-13 {
  font-size: 13px !important;
}

.fs-14 {
  font-size: 14px !important;
}

.fs-15 {
  font-size: 15px !important;
}

.fs-16 {
  font-size: 16px !important;
}

.fs-17 {
  font-size: 17px !important;
}

.fs-18 {
  font-size: 18px !important;
}

.fs-19 {
  font-size: 19px !important;
}

.fs-20 {
  font-size: 20px !important;
}

.fs-21 {
  font-size: 21px !important;
}

.fs-22 {
  font-size: 22px !important;
}

.fs-23 {
  font-size: 23px !important;
}

.fs-24 {
  font-size: 24px !important;
}

.fs-25 {
  font-size: 25px !important;
}

.fs-26 {
  font-size: 26px !important;
}

.fs-27 {
  font-size: 27px !important;
}

.fs-28 {
  font-size: 28px !important;
}

.fs-29 {
  font-size: 29px !important;
}

.fs-30 {
  font-size: 30px !important;
}

.w-10 {
  width: 10%;
}

.w-20 {
  width: 20%;
}

.w-30 {
  width: 30%;
}

.w-40 {
  width: 40%;
}

.w-60 {
  width: 60%;
}

.w-70 {
  width: 70%;
}

.w-80 {
  width: 80%;
}

.w-90 {
  width: 90%;
}

/* Start Styling */
.logo-banner {
  position: relative;
  top: 0;
  left: 0;
  height: 150px;
  width: 100%;
  z-index: 0;
  overflow: hidden;
}

/* Lightweight gradient instead of blurred image */
.gradient-banner {
  height: 90px;
  width: 100%;
  background: linear-gradient(135deg, rgba(var(--bg-primary), 0.25), rgba(255, 255, 255, 0));
}

.logo-img {
  width: 95px;
  height: 95px;
  border-radius: 50%;
  overflow: hidden;
  margin-top: -16%;
  border: 2px solid rgba(var(--primary-color), 1);
  z-index: 2;
}

.logo-img-sm {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
}

.logo-img-sm img,
.logo-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.achievement-card {
  height: 80px;
  justify-content: center;
  transition: 20ms linear;
}

.auto-suggestions {
  position: sticky;
  bottom: 50px;
  z-index: 9;
}

.scroll-drag {
  -ms-overflow-style: none;
  scrollbar-width: none;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  user-select: none;
  /* default off while dragging */
  cursor: grab;
}

.scroll-drag::-webkit-scrollbar {
  display: none;
}

/* Chrome, Safari */

.scroll-drag.dragging {
  cursor: grabbing;
}

.chat-msg-box {
  position: sticky;
  bottom: 0;
  z-index: 3;
}

/* Chat Style */
.bg-chat {
  background:var(--chat-playground-bg);
}

.chat-box {
  height: 80vh;
  overflow-y: auto;
  background:var(--chat-playground-bg);
  padding: 1rem;
}

.agent-chat {
  text-align: left;
}

.user-chat {
  text-align: right;
}

.agent-chat span,
.user-chat span {
  font-size: 14px;
  padding: 0.6rem 0.9rem;
  white-space: normal;
  line-height: 1.4;
  display: inline-block;
  border-radius: 16px;
  max-width: 60%;
  word-break: break-word;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.agent-chat span {
  background: var(--chat-agent-bg) !important;
  color: #000 !important;
  border-bottom-left-radius: 0 !important;
}

/* User (right) chat bubble */
.user-chat span {
  background: var(--chat-user-bg) !important;
  color: #000 !important;
  border-bottom-right-radius: 0 !important;
  text-align: left;
}

#emoji-picker {
  width: 100%;
  max-height: 350px;
}

.picker-container {
  position: relative;
  z-index: 1;
}

.btn-close {
  z-index: 1055;
}

/* Bootstrap modal z-index level */

.form-control:focus,
.form-select:focus {
  border-color: rgba(var(--primary-color), 0.4);
  outline: 0;
  box-shadow: none;
}

.user-info .form-label,
.user-info .form-control,
.user-info .form-select {
  font-size: 14px;
}

.user-info .form-control {
  outline: none;
  box-shadow: none;
}

.user-info .form-label {
  margin-bottom: .1rem;
}

.user-from {
  height: 92vh;
}

.right-header {
  z-index: 9;
}

/* Typing indicator */
#typingIndicator {
  position: absolute;
  bottom: 72px;
  left: 0;
}

#top-skill .skill-badge {
  color: var(--text-white-alpha) !important;
  background: var(--top-skill-bg) !important;
}

/* Typing Indicator  */
#tokenDropdownMenu {
  width: 200px;
  z-index: 1000;
  margin-left: -55px;
}

/* container (unchanged) */
.typing-indicator {
  display: flex !important;
  align-items: center !important;
  padding: 0 !important;
}

/* bubble (unchanged) */
.agent-chat .typing-dots {
  all: unset;
  display: inline-flex !important;
  gap: 2px !important;
  background: var(--typing-dots-bg) !important;
  padding: 10px 12px !important;
  border-radius: 16px !important;
  border-bottom-left-radius: 0 !important;
  align-items: center !important;
}

/* SINGLE animation rule for dots */
.typing-dots .dot {
  flex-shrink: 0;
  display: inline-block !important;
  width: 8px !important;
  height: 8px !important;
  background-color: var(--typing-dots-color) !important;
  border-radius: 50% !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 0 !important;
  line-height: 1 !important;

  /* animation: use bounce, 1s works well */
  animation: bounce 1s infinite cubic-bezier(.2, .6, .2, 1) both !important;
  will-change: transform, opacity;
}

/* stagger each dot — negative delays help them look already staggered on insertion */
.typing-dots .dot:nth-child(1) {
  animation-delay: -0.16s !important;
}

.typing-dots .dot:nth-child(2) {
  animation-delay: 0s !important;
}

.typing-dots .dot:nth-child(3) {
  animation-delay: 0.16s !important;
}

/* bounce keyframes — translateY gives a nice arc */
@keyframes bounce {
  0% {
    transform: translateY(0);
    opacity: 0.6;
  }

  30% {
    transform: translateY(-5px);
    opacity: 1;
  }

  60% {
    transform: translateY(0);
    opacity: 0.8;
  }

  100% {
    transform: translateY(0);
    opacity: 0.6;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* Payment page */
.payment-card {
  max-width: 900px;
  border: none;
  border-radius: 1rem;
}

.spinner-icon {
  font-size: 2rem;
  color: rgba(var(--primary-color), 1);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0);
  }

  100% {
    transform: rotate(360deg);
  }
}

.checkpoint-message {
  font-size: 0.95rem;
}

.payment-logo {
  width: 200px;
}

.payment-logo img {
  width: 100%;
  object-fit: contain;
}

#chat-lang {
  width: 100%;
}

@media (min-width: 576px) {
  .user-from {
    height: 96vh;
    width: 100%;
  }

  .chat-box {
    height: 90vh;
    padding-bottom: 80px;
  }

  .payment-card {
    width: 100%;
  }
}

/* Responsive */
/* phones */
@media (max-width: 767px) {
  .modal-custom {
    width: 90% !important;
  }

  .chat-box {
    height: 90vh;
    padding-bottom: 80px;
  }

  .user-from {
    height: 95vh;
  }

  .chat-msg-box {
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
  }

  .payment-card {
    width: 100%;
  }
}

/* tablets */
@media (min-width: 768px) and (max-width: 1024px) {
  .chat-box {
    height: 90vh;
    padding-bottom: 90px;
  }

  .payment-card {
    width: 60%;
  }

  .logo-img {
    margin-top: -7%;
  }

  .gradient-banner {
    height: 140px;
  }

  #chat-lang {
    width: 50%;
  }
}

/* laptops/desktops */
@media (min-width: 1025px) {
  .border-lg-end {
    border-right: 1px solid #38383817;
  }

  .modal-custom {
    width: 350px !important;
  }

  .chat-box {
    height: 90vh;
    padding-bottom: 90px;
  }

  .payment-card {
    width: 40%;
  }

  .gradient-banner {
    height: 70px;
  }

  .logo-img {
    margin-top: -18%;
  }
}