:root {
  --gold: #c39352;
  --gold2: #a87412;
}
body {
  min-height: 100vh;
  background: #fcf9f5;
}
.header-ai{
  background: #fff;
  padding: 10px 0;
  border-bottom: 1px solid #e8e8e8
}
.header-ai-brand{
  display: flex;
  gap: 10px;
  align-items: center;
  width: 310px;
}
.header-ai-brand div{
  display: flex;
  gap: 5px;
}
.header-ai-brand div h4{
  font-family: "Alata";
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1
}

.advisor-page {
  min-height: calc(100vh - 90px);
  background:
    linear-gradient(90deg, rgba(215, 196, 163, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, #fbf8f3 0%, #f8f4ed 100%);
  background-size: 42px 42px, auto;
}

.sub-header{
  color: var(--gold);
  position: relative;
  font-weight: 500;
  margin-bottom: 5px; padding-bottom: 10px;
}

.sub-header::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 50%;
  width: 52px;
  height: 2px;
  content: "";
  background: var(--gold);
  transform: translateX(-50%);
}

.card-aiui {
  background: rgba(255, 255, 255, 1);
  border: 0px solid #ddd8d0;
  border-radius: 12px;
  padding: 20px;
  box-shadow: -2px 11px 10px #cccccc47
}

.advisor-card {
  min-height: 485px;
}
.fs-18 {
  font-size: 18px;
}
.icon-badge {
  display: inline-flex;
  width: 60px;
  height: 60px;
  align-items: center;
  justify-content: center;
  color: #9f7117;
  background: #f5f0e7;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.85);
}

.icon-badge i {
  font-size: 24px;
  line-height: 1;
}
.advice-item .icon-badge i {
  font-size: 20px;
}

/* ─── Prompt chips: hover slide ─── */
.prompt-chip {
  min-width: 285px;
  padding: 8px 18px;
  color: #69676a;
  background: #fff;
  border: 1px solid #f0ede9;
  border-radius: 10px;
  line-height: 1.5;
  transition: color 0.18s, background 0.18s, border-color 0.18s,
              transform 0.18s cubic-bezier(0.4,0,0.2,1) !important;
}

.prompt-chip:hover,
.prompt-chip:focus {
  color: #2d263f;
  background: #fffaf4;
  border-color: #dbc28f;
  transform: translateX(4px);
}

/* ─── Input bar: focus glow ─── */
.advisor-input {
  min-height: 82px;
  border-color: #e3ded6 !important;
  border-radius: 18px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.advisor-input:focus-within {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(195, 147, 82, 0.13) !important;
}

.advisor-input .btn {
  width: 44px;
  height: 44px;
  padding: 0;
}

.advisor-input .form-control {
  padding-left: 20px;
  padding-right: 8px;
}

.advisor-input .form-control::placeholder {
  color: #69676a;
  opacity: 1;
}

/* Chat wrapper */
.chat-wrapper {
  width: 100%;
}

#chat-thread {
  width: 100%;
  box-sizing: border-box;
  padding-right: 0 !important;
}

#load-more-btn {
  width: 100%;
  box-sizing: border-box;
}

.chat-wrapper .advisor-input {
  width: 100%;
  box-sizing: border-box;
}

.send-btn {
  color: #fff;
  background: var(--gold);
  border-color: var(--gold);
}

.send-btn:hover,
.send-btn:focus {
  color: #fff;
  background: var(--gold2);
  border-color: var(--gold2);
}

.quick-action {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 1.1rem;
  color: #565267;
  background: #fff;
  border: 1px solid #f1eee9;
  border-radius: 9px;
}

.quick-action i {
  color: #b38a42;
  font-size: 1.2rem;
}

.quick-action:hover,
.quick-action:focus {
  color: #2d263f;
  border-color: #dcc693;
}

.advice-panel {
  min-height: 620px;
}

.advice-item {
  border-color: #e6ded3 !important;
}

.advice-item p {
  line-height: 1.7;
}

.connect-btn {
  color: #fff;
  background: #2f254f;
  border-color: #2f254f;
  box-shadow: 0 10px 20px rgba(47, 37, 79, 0.18);
}

.connect-btn:hover,
.connect-btn:focus {
  color: #fff;
  background: #221a3d;
  border-color: #221a3d;
}

.quote-block {
  max-width: 360px;
  border-color: #e6ded3 !important;
}

.quote-icon {
  display: inline-flex;
  margin-top: -0.35rem;
  color: #c58a17;
  font-size: 2.5rem;
  line-height: 1;
  background: #fbf8f3;
}

@media (max-width: 991.98px) {
  .advisor-card,
  .advice-panel {
    min-height: auto;
  }
}

@media (max-width: 575.98px) {
  .prompt-chip {
    width: 100%;
    min-width: 0;
  }
  .advisor-input {
    min-height: 72px;
  }
}

/* ─── Try on Wall button ─── */
.try-this-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 12px;
  font-family: inherit;
  font-weight: 500;
  color: var(--gold);
  background: #fffaf3;
  border: 1.5px solid var(--gold);
  border-radius: 50px;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.try-this-btn:hover {
  background: var(--gold);
  color: #fff;
}
.try-this-btn.added {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}
.try-this-btn.added:hover {
  background: var(--gold2);
  border-color: var(--gold2);
}

/* ─── Artwork card hover/active polish ─── */
.aakriti-art-card {
  transition: box-shadow 0.18s cubic-bezier(0.4,0,0.2,1),
              transform   0.18s cubic-bezier(0.4,0,0.2,1) !important;
}
.aakriti-art-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.13) !important;
  transform: translateY(-2px);
}
.aakriti-art-card:active {
  transform: scale(0.99);
}
.aakriti-art-card.sold-card {
  opacity: 0.72;
}

/* ─── Typing dots ─── */
.typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 2px;
}
.typing-dots span {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: typingBounce 1.4s infinite ease-in-out;
}
.typing-dots span:nth-child(1) { animation-delay: 0s; }
.typing-dots span:nth-child(2) { animation-delay: 0.18s; }
.typing-dots span:nth-child(3) { animation-delay: 0.36s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%            { transform: translateY(-6px); opacity: 1; }
}

/* ─── Streaming cursor blink ─── */
.stream-cursor::after {
  content: '▋';
  display: inline-block;
  color: var(--gold);
  animation: cursorBlink 1s step-end infinite;
  font-size: 13px;
  margin-left: 2px;
  vertical-align: -1px;
}
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ─── Spinner inside send button ─── */
/* ─── Spinner inside send button (Black Version) ─── */
.aakriti-spinner {
  display: inline-block;
  width: 18px; 
  height: 18px;
  border: 2.5px solid rgba(0, 0, 0, 0.15); /* Faint black track */
  border-top-color: #000; /* Solid black spinner */
  border-radius: 50%;
  animation: aakritiSpin 0.75s linear infinite;
  vertical-align: middle;
}
@keyframes aakritiSpin { 
  to { transform: rotate(360deg); } 
}

/* ─── Image preview chip animate-in ─── */
#imagePreviewContainer {
  transition: all 0.2s ease;
}
#imagePreviewContainer[style*="flex"] {
  animation: chipScaleIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes chipScaleIn {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}

/* ─── Error state ─── */
.bot-error-msg {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #c0392b;
}
.bot-error-msg a {
  color: var(--gold2);
  text-decoration: underline;
  cursor: pointer;
}

/* ─── Result count label ─── */
#aakriti-result-count {
  display: block;
  font-size: 12px;
  color: #95a5a6;
  text-align: right;
  margin-bottom: 6px;
}

/* ─── Skeleton shimmer ─── */
.aakriti-skeleton {
  display: flex;
  align-items: stretch;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  min-height: 90px;
  border: 1px solid #f1f1f1;
}
.aakriti-skeleton-img {
  flex: 0 0 38%;
  max-width: 180px;
  background: linear-gradient(90deg, #f0ece6 25%, #fdfaf6 50%, #f0ece6 75%);
  background-size: 200% 100%;
  animation: aakritiShimmer 1.4s infinite;
}
.aakriti-skeleton-body {
  flex: 1;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}
.aakriti-skeleton-line {
  border-radius: 4px;
  background: linear-gradient(90deg, #f0ece6 25%, #fdfaf6 50%, #f0ece6 75%);
  background-size: 200% 100%;
  animation: aakritiShimmer 1.4s infinite;
}
@keyframes aakritiShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── Onboarding modal spring animation ─── */
.aakriti-modal-dialog {
  animation: aakritiSlideUp 0.38s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
@keyframes aakritiSlideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

/* ─── Translation badge ─── */
.translation-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #7f8c8d;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 2px 8px;
  margin-top: 6px;
}
.translation-badge i { color: var(--gold); font-size: 11px; }

/* ─── Per-artwork explanation block ─── */
.artwork-explanation {
  font-size: 13px;
  color: #5f7387;
  line-height: 1.55;
  padding: 8px 12px 8px 14px;
  border-left: 3px solid #e0d9d0;
  background: #fdfaf6;
  border-radius: 0 6px 6px 0;
  margin-top: 4px;
  font-style: italic;
}

/* ─── Artist autocomplete dropdown ─── */
#artist-suggest-dropdown {
  position: absolute;
  z-index: 9999;
  background: #fff;
  border: 1px solid #e0d9d0;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  max-height: 220px;
  overflow-y: auto;
  width: 100%;
  top: calc(100% + 4px);
  left: 0;
}
#artist-suggest-dropdown .suggest-item {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 13px;
  color: #1a1a1a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f5f1eb;
  transition: background 0.15s;
}
#artist-suggest-dropdown .suggest-item:last-child { border-bottom: none; }
#artist-suggest-dropdown .suggest-item:hover { background: #fdf9f4; }
#artist-suggest-dropdown .suggest-item .suggest-count {
  font-size: 11px;
  color: var(--gold);
  background: #fdf9f4;
  border: 1px solid #e0d9d0;
  border-radius: 10px;
  padding: 1px 7px;
}

/* =========================================
   SPLIT ACTION BAR
   ========================================= */
.split-action-bar {
  display: flex;
  align-items: stretch;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(47, 37, 79, 0.13);
  border: 1.5px solid #e2daf5;
}

.split-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 18px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background .18s, color .18s;
  line-height: 1;
}

.split-action-left {
  background: #fff;
  color: var(--gold2);
}

.split-action-left i {
  font-size: 16px;
}

.split-action-left:hover,
.split-action-left:focus {
  background: #fffaf3;
  color: var(--gold);
}

.split-action-right {
  background: #2f254f;
  color: #fff;
}

.split-action-right i {
  font-size: 16px;
}

.split-action-right:hover,
.split-action-right:focus {
  background: #221a3d;
  color: #fff;
}

.split-action-divider {
  width: 1.5px;
  background: #e2daf5;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .split-action-btn {
    font-size: 13px;
    padding: 12px 10px;
    gap: 5px;
  }

  /* Artwork cards go vertical on small screens */
  .artwork-list > div > div {
    flex-direction: column !important;
  }
  .artwork-list > div > div > div:first-child {
    flex: 0 0 auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 180px !important;
    border-right: none !important;
    border-bottom: 1px solid #f1f1f1 !important;
  }
}

/* Hide legacy FAB */
#wall-fab {
  display: none !important;
}

/* =========================================
   ARTWORK CARD IMAGE — correct fitting
   ========================================= */
.artwork-list img {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center center !important;
  border-radius: 0 !important;
  display: block !important;
  padding: 6px !important;
  background: #f8f5f0;
}

/* User message bubble image */
.d-flex.justify-content-end img {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* Reset conflicting global overrides */
.card-aiui img,
#chat-thread img {
  all: unset;
  display: block;
}

/* Re-apply card-aiui general image safety */
.card-aiui > img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================================
   PERSISTENT RESET BUTTON
   ========================================= */
/* =========================================
   PERSISTENT RESET BUTTON
   ========================================= */
.reset-action-btn {
  /* Force a perfect circle */
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  border-radius: 50% !important;
  padding: 0 !important;
  
  /* Stop the input bar from stretching it into an oval */
  align-self: center !important;
  
  /* Center the icon perfectly inside */
  display: inline-flex !important; /* Overrides the JS 'none' when active */
  align-items: center !important;
  justify-content: center !important;
  
  /* Reduce the gap between this and the send button */
  margin-right: 4px !important; 
  
  color: #6c757d;
  background: #f8f9fa;
  border: 1px solid #e3ded6;
  transition: all 0.2s ease;
  font-size: 1.1rem;
}

/* Note: JS uses element.style.display = 'inline-flex' to show it, 
   so we don't need 'display: none' in the CSS anymore. */

.reset-action-btn:hover,
.reset-action-btn:focus {
  background: #fdf5f5;
  color: #dc3545;
  border-color: #f5c2c7;
}