/* ═══ Rudra AI Chat Board — Priya · Gold Premium v2 ═══ */

.ai-board {
  position: fixed;
  inset: 0;
  z-index: 99990;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
  overflow: hidden;
  font-family: 'Inter', system-ui, sans-serif;
}
.ai-board.is-open { opacity: 1; pointer-events: auto; }
.ai-board[hidden] { display: none !important; }

.ai-board-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(212, 175, 55, 0.1) 0%, transparent 55%),
    radial-gradient(ellipse 35% 30% at 92% 88%, rgba(94, 234, 212, 0.04) 0%, transparent 50%),
    #000;
}
.ai-board-grid {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(212, 175, 55, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, black 8%, transparent 78%);
  pointer-events: none;
}
.ai-board-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  animation: aiOrbFloat 14s ease-in-out infinite;
}
.ai-board-orb--1 {
  width: 320px; height: 320px;
  top: 5%; left: 8%;
  background: rgba(212, 175, 55, 0.07);
}
.ai-board-orb--2 {
  width: 240px; height: 240px;
  bottom: 10%; right: 5%;
  background: rgba(94, 234, 212, 0.05);
  animation-delay: -5s;
}
@keyframes aiOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(10px, -14px) scale(1.05); }
}

.ai-board-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  max-width: 1320px;
  margin: 0 auto;
  padding: 12px 20px 14px;
}

/* Header bar */
.ai-board-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.14);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(8px);
}
.ai-board-back {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 9px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: transparent;
  color: rgba(240, 215, 140, 0.88);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.ai-board-back:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.5);
}
.ai-board-brand {
  flex: 1;
  text-align: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #f0d78c;
  text-transform: uppercase;
}
.ai-board-live {
  font-size: 0.56rem;
  font-weight: 700;
  color: #d4af37;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.32);
  background: rgba(212, 175, 55, 0.07);
  flex-shrink: 0;
  position: relative;
  padding-left: 18px;
}
.ai-board-live::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d4af37;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.7);
  animation: aiLiveBlink 2s ease-in-out infinite;
}
@keyframes aiLiveBlink {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Layout */
.ai-board-layout {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(400px, 500px) 1fr;
  gap: 20px;
  min-height: 0;
  overflow: hidden;
}

/* Chat column */
.ai-board-chat-col {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.ai-board-chat-window {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-radius: 20px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: linear-gradient(168deg, rgba(14, 13, 11, 0.98) 0%, rgba(3, 3, 2, 1) 100%);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 48px rgba(212, 175, 55, 0.05);
  overflow: hidden;
  position: relative;
}
.ai-board-chat-window::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.55), transparent);
  pointer-events: none;
  z-index: 1;
}

.ai-board-chat-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  background: rgba(212, 175, 55, 0.035);
  flex-shrink: 0;
}
.ai-board-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.18), rgba(94, 234, 212, 0.06));
  border: 1px solid rgba(212, 175, 55, 0.3);
  flex-shrink: 0;
}
.ai-board-chat-head-text strong {
  display: block;
  font-size: 0.84rem;
  color: #f8f4ec;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.ai-board-chat-head-text span {
  display: block;
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.42);
  margin-top: 2px;
}
.ai-board-chat-head-text .online { color: #d4af37; font-weight: 600; }

.ai-board-messages {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  scroll-behavior: smooth;
  background:
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(212, 175, 55, 0.04), transparent 65%),
    transparent;
}
.ai-board-messages::-webkit-scrollbar { width: 4px; }
.ai-board-messages::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.22);
  border-radius: 4px;
}

.ai-board-msg {
  max-width: 90%;
  animation: aiMsgIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes aiMsgIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.ai-board-msg--user { align-self: flex-end; }
.ai-board-msg--bot { align-self: flex-start; }

.ai-board-msg-label {
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.65);
  margin-bottom: 4px;
  padding-left: 2px;
}

.ai-board-bubble {
  padding: 12px 15px;
  border-radius: 16px;
  font-size: 0.84rem;
  line-height: 1.58;
  white-space: pre-wrap;
  word-break: break-word;
}
.ai-board-msg--user .ai-board-bubble {
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.2), rgba(120, 90, 30, 0.15));
  border: 1px solid rgba(212, 175, 55, 0.32);
  color: #fcf9f2;
  border-radius: 16px 16px 4px 16px;
}
.ai-board-msg--bot .ai-board-bubble {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 2px solid #d4af37;
  color: rgba(248, 244, 236, 0.94);
  border-radius: 4px 16px 16px 16px;
}
.ai-board-msg-time {
  font-size: 0.48rem;
  color: rgba(255, 255, 255, 0.26);
  margin-top: 5px;
  padding: 0 4px;
  letter-spacing: 0.04em;
}
.ai-board-msg--user .ai-board-msg-time { text-align: right; color: rgba(212, 175, 55, 0.45); }

.ai-board-typing .ai-board-bubble {
  display: flex;
  gap: 5px;
  padding: 14px 18px;
  min-width: 56px;
}
.ai-board-typing span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d4af37;
  animation: aiTypingDot 0.55s ease-in-out infinite;
}
.ai-board-typing span:nth-child(2) { animation-delay: 0.1s; }
.ai-board-typing span:nth-child(3) { animation-delay: 0.2s; }
@keyframes aiTypingDot {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-4px); }
}

.ai-board-chips-label {
  margin: 0;
  padding: 6px 16px 0;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.45);
  flex-shrink: 0;
}
.ai-board-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 14px 8px;
  flex-shrink: 0;
}
.ai-board-chip {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: rgba(212, 175, 55, 0.04);
  color: rgba(240, 215, 140, 0.88);
  font-size: 0.64rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.12s;
  white-space: nowrap;
}
.ai-board-chip:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.45);
  transform: translateY(-1px);
}

.ai-board-form {
  display: flex;
  gap: 8px;
  padding: 10px 14px 8px;
  border-top: 1px solid rgba(212, 175, 55, 0.08);
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.4);
}
.ai-board-input {
  flex: 1;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: #f8f4ec;
  font-size: 0.84rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ai-board-input::placeholder { color: rgba(255, 255, 255, 0.28); }
.ai-board-input:focus {
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.07);
}
.ai-board-send {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(145deg, #e0c04a, #9a7b2f);
  color: #0a0804;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.28);
}
.ai-board-send:hover:not(:disabled) {
  transform: scale(1.04);
  box-shadow: 0 6px 22px rgba(212, 175, 55, 0.4);
}
.ai-board-send:disabled { opacity: 0.4; cursor: not-allowed; }

.ai-board-powered {
  margin: 0;
  padding: 4px 16px 10px;
  font-size: 0.48rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.22);
  text-align: center;
  flex-shrink: 0;
}

/* WhatsApp Automation — premium showcase v51 · mobile chat focus */

/* ═══ v3 — AI Dashboard live FX ═══ */
.ai-board-mobile-info {
  display: none;
  text-align: center;
  font-size: 0.58rem;
  color: rgba(212, 175, 55, 0.7);
  padding: 4px 10px 6px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.ai-board-side-panel {
  position: relative;
  overflow: hidden;
}
.ai-board-side-panel::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  padding: 1px;
  background: conic-gradient(from var(--ai-dash-angle, 0deg), transparent 0 340deg, rgba(212,175,55,0.5) 350deg, transparent 360deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: aiDashBorderSpin 6s linear infinite;
}
@property --ai-dash-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@keyframes aiDashBorderSpin {
  to { --ai-dash-angle: 360deg; }
}

.ai-dash-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.14);
  background: rgba(212, 175, 55, 0.04);
  position: relative;
  z-index: 1;
}
.ai-dash-info-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.ai-dash-info-ico {
  font-size: 0.9rem;
  flex-shrink: 0;
  line-height: 1.3;
}
.ai-dash-info-row p {
  margin: 0;
  font-size: 0.64rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
}
.ai-dash-info-row b {
  color: #d4af37;
  font-weight: 600;
}

.ai-dash-visual {
  position: relative;
  z-index: 1;
  padding: 12px 0 8px;
  text-align: center;
}
.ai-dash-brain-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ai-dash-brain {
  font-size: 2rem;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.4));
  animation: aiBrainPulse 2.5s ease-in-out infinite;
}
@keyframes aiBrainPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
.ai-dash-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.25);
  animation: aiRingExpand 3s ease-out infinite;
}
.ai-dash-ring--2 { animation-delay: 1s; }
.ai-dash-ring--3 { animation-delay: 2s; }
@keyframes aiRingExpand {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(1.8); opacity: 0; }
}

.ai-dash-wave {
  height: 36px;
  margin: 0 -8px 10px;
  overflow: hidden;
  opacity: 0.55;
}
.ai-dash-wave svg {
  width: 200%;
  height: 100%;
  animation: aiWaveSlide 4s linear infinite;
}
.ai-dash-wave-path {
  fill: rgba(212, 175, 55, 0.12);
}
.ai-dash-wave-path--2 {
  fill: rgba(212, 175, 55, 0.06);
  animation: aiWaveSlide 5s linear infinite reverse;
}
@keyframes aiWaveSlide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ai-dash-live-feed {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.15);
  background: rgba(0, 0, 0, 0.35);
  min-height: 36px;
}
.ai-dash-feed-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d4af37;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
  animation: aiLiveBlink 1.2s ease-in-out infinite;
}
.ai-dash-feed-text {
  font-size: 0.62rem;
  color: rgba(240, 215, 140, 0.85);
  line-height: 1.4;
  text-align: left;
  transition: opacity 0.35s;
}
.ai-board-chat-back {
  display: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: rgba(212, 175, 55, 0.06);
  color: #f0d78c;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.ai-board-mobile-dash {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.08);
  background: rgba(212, 175, 55, 0.04);
  flex-shrink: 0;
}
.ai-mobile-dash-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d4af37;
  flex-shrink: 0;
  animation: aiLiveBlink 1.2s ease-in-out infinite;
}
.ai-mobile-dash-text {
  font-size: 0.58rem;
  color: rgba(240, 215, 140, 0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.3s;
}
.ai-mobile-dash-text.is-fade { opacity: 0; }

.ai-dash-feed-text.is-fade { opacity: 0; }

.ai-board-neural-seg.is-flow {
  background: linear-gradient(90deg, #7a6328, #d4af37, #f0d78c);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.45);
  animation: aiSegPulse 0.6s ease;
}
@keyframes aiSegPulse {
  0% { transform: scaleY(1); }
  50% { transform: scaleY(1.8); }
  100% { transform: scaleY(1); }
}

.ai-board-stat strong {
  animation: none;
}
.ai-board-stat.is-hot strong {
  animation: aiStatGlow 2s ease-in-out infinite;
}
@keyframes aiStatGlow {
  0%, 100% { text-shadow: 0 0 8px rgba(212, 175, 55, 0.2); }
  50% { text-shadow: 0 0 18px rgba(212, 175, 55, 0.55); }
}

.ai-board-cap-card.is-active {
  border-color: rgba(212, 175, 55, 0.28);
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.06);
}

@media (max-width: 768px) {
  .ai-board-mobile-info { display: none; }
}

@media (min-width: 769px) {
  .ai-board-side-hero h2 { font-size: 1.35rem; margin-bottom: 0; }
  .ai-board-side-hero { padding-bottom: 0; }
}

.ai-board-side {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.ai-board-side-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(212, 175, 55, 0.16);
  background: linear-gradient(165deg, rgba(10, 9, 7, 0.96), rgba(2, 2, 1, 0.99));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  overflow-y: auto;
  min-height: 0;
}
.ai-board-side-panel::-webkit-scrollbar { width: 3px; }
.ai-board-side-panel::-webkit-scrollbar-thumb { background: rgba(212, 175, 55, 0.18); }

.ai-board-side-tag {
  display: inline-block;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.6);
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: rgba(212, 175, 55, 0.05);
}
.ai-board-side-hero h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: #f0d78c;
  margin: 0 0 8px;
  line-height: 1.15;
}
.ai-board-side-hero p {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.48);
}

.ai-board-neural-line {
  display: flex;
  align-items: center;
  gap: 5px;
}
.ai-board-neural-seg {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.5s, box-shadow 0.5s;
}
.ai-board-neural-seg.is-lit {
  background: linear-gradient(90deg, #7a6328, #d4af37);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.35);
}

.ai-board-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.ai-board-stat {
  text-align: center;
  padding: 16px 8px;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.12);
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.35s, box-shadow 0.35s, transform 0.35s;
}
.ai-board-stat.is-hot {
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.08);
  transform: translateY(-2px);
}
.ai-board-stat strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: #d4af37;
  font-family: 'Cormorant Garamond', Georgia, serif;
}
.ai-board-stat span {
  display: block;
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 5px;
}

.ai-board-cap-label {
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.5);
  margin-bottom: 4px;
}
.ai-board-cap-wrap {
  position: relative;
  min-height: 108px;
  margin-bottom: 4px;
}
.ai-board-cap-carousel { position: relative; min-height: 108px; }
.ai-board-cap-card {
  position: absolute;
  inset: 0;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.14);
  background: rgba(212, 175, 55, 0.03);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s, transform 0.4s;
  pointer-events: none;
}
.ai-board-cap-card.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.ai-board-cap-card-icon { font-size: 1.35rem; margin-bottom: 8px; line-height: 1; }
.ai-board-cap-card strong {
  display: block;
  font-size: 0.8rem;
  color: #f0d78c;
  margin-bottom: 5px;
  font-weight: 600;
}
.ai-board-cap-card em {
  display: block;
  font-size: 0.64rem;
  font-style: normal;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.5;
}
.ai-board-cap-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
}
.ai-board-cap-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
  border: none;
  padding: 0;
}
.ai-board-cap-dot.is-active {
  background: #d4af37;
  transform: scale(1.2);
}

.ai-board-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.ai-board-topic {
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.16);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.66rem;
  font-weight: 500;
  color: rgba(240, 215, 140, 0.82);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, border-color 0.2s, transform 0.12s;
}
.ai-board-topic:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.35);
  transform: translateY(-1px);
}

.ai-board-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.1);
  background: rgba(0, 0, 0, 0.25);
  margin-top: auto;
}
.ai-board-trust span {
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.45);
}
.ai-board-trust span b { color: #d4af37; font-weight: 600; }

.ai-board-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: linear-gradient(#060504, #060504) padding-box,
    linear-gradient(135deg, #5eead4, #d4af37, #ec4899) border-box;
  color: #f0d78c;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: box-shadow 0.25s, transform 0.12s;
  box-shadow: 0 4px 24px rgba(212, 175, 55, 0.1);
}
.ai-board-cta:hover {
  box-shadow: 0 6px 32px rgba(212, 175, 55, 0.22);
  transform: translateY(-1px);
}
.ai-board-cta--side {
  width: 100%;
  margin-top: 4px;
  flex-shrink: 0;
}

.ai-board-footer {
  flex-shrink: 0;
  margin-top: 12px;
  text-align: center;
  display: none;
}
.ai-board-footer--mobile { display: none; }

body.ai-board-open { overflow: hidden; }

/* ── Mobile — client app (WhatsApp jaisa) ── */
/* Phone foot — chips + input (mobile: phone ke neeche) */
.ai-board-phone-foot {
  flex-shrink: 0;
}
.ai-board-phone-zone {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  box-sizing: border-box;
}
.ai-device-frame {
  width: 100%;
  max-width: 500px;
  position: relative;
}
.ai-device-status {
  display: none;
}
.ai-show-notch {
  display: none;
}
.ai-board-attach,
.ai-board-lead-toast {
  display: none;
  align-self: flex-end;
  margin: 0 16px 6px;
}
.ai-board-attach.is-visible {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 88%;
  padding: 9px 11px;
  border-radius: 12px 4px 12px 12px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(80, 60, 20, 0.2));
  border: 1px solid rgba(212, 175, 55, 0.28);
  animation: aiMsgIn 0.4s ease;
}
.ai-board-attach-ico { font-size: 1.1rem; }
.ai-board-attach-body strong { display: block; font-size: 0.72rem; color: #f0d78c; }
.ai-board-attach-body em { font-size: 0.54rem; color: rgba(255,255,255,0.45); font-style: normal; }
.ai-board-attach-badge {
  font-size: 0.48rem;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(212, 175, 55, 0.25);
  color: #f0d78c;
}
.ai-board-lead-toast.is-visible {
  display: block;
  align-self: center;
  font-size: 0.62rem;
  font-weight: 600;
  color: #d4af37;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: rgba(212, 175, 55, 0.08);
  animation: aiMsgIn 0.4s ease;
}

/* Mobile tour strip */
.ai-board-tour-mobile {
  display: none;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  padding: 8px 0 4px;
}
.ai-tour-progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ai-tour-track {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.ai-tour-fill {
  height: 100%;
  width: 16%;
  background: linear-gradient(90deg, #9a7b2f, #d4af37);
  border-radius: 999px;
  transition: width 0.45s ease;
}
.ai-tour-num {
  font-size: 0.56rem;
  font-weight: 700;
  color: #d4af37;
  white-space: nowrap;
}
.ai-tour-caption {
  margin: 0;
  font-size: 0.62rem;
  color: rgba(212, 175, 55, 0.85);
  line-height: 1.45;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.12);
}
.ai-board-cap-mobile {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.ai-board-cap-mobile::-webkit-scrollbar { display: none; }
.ai-cap-pill {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: rgba(255,255,255,0.03);
  color: rgba(240, 215, 140, 0.75);
  font-size: 0.58rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.ai-cap-pill.is-active {
  border-color: rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.12);
  color: #f0d78c;
}
.ai-tour-controls {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.ai-tour-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: rgba(255,255,255,0.03);
  color: rgba(240, 215, 140, 0.85);
  font-size: 0.62rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

body.ai-board-open { overflow: hidden; }
html.ai-board-open { overflow: hidden; }

/* Mobile — full-screen native chat app (no nested phone frame) */
@media (max-width: 768px) {
  .ai-board,
  .ai-board * {
    box-sizing: border-box;
  }
  .ai-board {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    inset: 0;
  }
  .ai-board-inner {
    width: 100%;
    max-width: 100%;
    height: 100%;
    height: 100dvh;
    height: 100svh;
    max-height: 100dvh;
    min-height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .ai-board-header {
    flex-shrink: 0;
    margin: 0;
    padding: max(8px, env(safe-area-inset-top, 8px)) 10px 8px;
    gap: 6px;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
  }
  .ai-board-brand { font-size: 0.7rem; flex: 1; text-align: center; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ai-board-back { padding: 7px 11px; font-size: 0.6rem; flex-shrink: 0; }
  .ai-board-live { display: none; }
  .ai-board-mobile-info { display: none; }

  .ai-board-layout {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .ai-board-side { display: none; }
  .ai-board-chat-col {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .ai-board-phone-zone {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    margin: 0;
  }
  /* No phone bezel — edge-to-edge chat */
  .ai-device-frame {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .ai-device-frame::before,
  .ai-device-frame::after { display: none !important; }
  .ai-device-status,
  .ai-show-notch { display: none !important; }

  .ai-board-chat-window {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #050504;
  }
  .ai-board-chat-back { display: none; }
  .ai-board-mobile-dash { display: none; }
  .ai-board-chat-head {
    padding: 8px 12px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  }
  .ai-board-avatar { width: 32px; height: 32px; font-size: 0.95rem; border-radius: 10px; flex-shrink: 0; }
  .ai-board-chat-head-text { min-width: 0; flex: 1; }
  .ai-board-chat-head-text strong { font-size: 0.74rem; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ai-board-chat-head-text span { font-size: 0.52rem; }
  .ai-board-messages {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    justify-content: flex-end;
    padding: 8px 10px;
    gap: 6px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }
  .ai-board-bubble { font-size: 0.76rem; padding: 9px 11px; line-height: 1.48; }
  .ai-board-msg { max-width: 92%; }
  .ai-board-msg-label { font-size: 0.46rem; margin-bottom: 2px; }
  .ai-board-attach.is-visible,
  .ai-board-lead-toast.is-visible {
    margin: 0 10px 4px;
    flex-shrink: 0;
    max-width: calc(100% - 20px);
  }

  /* Input area — sticky bottom strip */
  .ai-board-phone-foot {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 6px 10px max(8px, env(safe-area-inset-bottom, 8px));
    background: rgba(5, 5, 4, 0.98);
    border-top: 1px solid rgba(212, 175, 55, 0.12);
  }
  .ai-board-chips-label {
    font-size: 0.46rem;
    padding: 0 2px 4px;
    margin: 0;
  }
  .ai-board-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    width: 100%;
    max-width: 100%;
    padding: 0 0 6px;
    overflow: hidden;
  }
  .ai-board-chip {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    font-size: 0.54rem;
    padding: 7px 8px;
    line-height: 1.3;
    text-align: left;
    white-space: normal;
    word-break: break-word;
    overflow: hidden;
    border-radius: 10px;
  }
  .ai-board-form {
    display: flex;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    padding: 0;
    border-top: none;
    align-items: center;
  }
  .ai-board-input {
    flex: 1 1 auto;
    min-width: 0;
    width: 0;
    font-size: 16px;
    padding: 10px 12px;
    border-radius: 20px;
  }
  .ai-board-send {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
  }
  .ai-board-powered { display: none; }

  /* Tour strip */
  .ai-board-tour-mobile {
    display: flex;
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 6px 10px 4px;
    border-top: 1px solid rgba(212, 175, 55, 0.08);
    background: rgba(0, 0, 0, 0.95);
  }
  .ai-tour-caption { font-size: 0.56rem; padding: 4px 8px; }
  .ai-board-cap-mobile {
    flex-wrap: wrap;
    overflow: hidden;
    max-width: 100%;
  }
  .ai-cap-pill { font-size: 0.52rem; padding: 5px 9px; max-width: 100%; }
  .ai-tour-btn { padding: 7px 12px; font-size: 0.58rem; }

  .ai-board-footer--mobile {
    display: block;
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 10px max(6px, env(safe-area-inset-bottom, 6px));
    box-sizing: border-box;
  }
  .ai-board-footer--mobile .ai-board-cta {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    padding: 10px 12px;
    font-size: 0.62rem;
    box-sizing: border-box;
  }
  .ai-board-orb { display: none; }
  body.ai-board-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    max-width: 100%;
    left: 0;
    right: 0;
  }
  html.ai-board-open { overflow: hidden !important; }
}

/* iframe / mobile preview (390px) — extra tight */
html.is-embed-preview .ai-board-inner {
  height: 100%;
  max-height: 100%;
}
html.is-embed-preview .ai-board-footer--mobile {
  padding-bottom: 6px;
}
html.is-embed-preview .ai-board-tour-mobile {
  padding-bottom: 2px;
}

@media (max-width: 360px) {
  .ai-board-chips {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) {
  .ai-board-phone-zone {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
  }
  .ai-device-frame {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    max-width: none;
  }
  .ai-board-chat-window {
    flex: 1;
    min-height: 0;
    border-radius: 20px 20px 0 0;
    border-bottom: none;
  }
  .ai-board-phone-foot {
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 0 0 20px 20px;
    background: linear-gradient(168deg, rgba(10, 9, 8, 0.98) 0%, rgba(3, 3, 2, 1) 100%);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
  }
  .ai-board-tour-mobile { display: none !important; }
  .ai-board-attach:not(.is-visible),
  .ai-board-lead-toast:not(.is-visible) { display: none; }
  .ai-board-attach.is-visible {
    display: flex;
    align-self: flex-end;
    margin: 0 16px 6px;
  }
  .ai-board-lead-toast.is-visible {
    display: block;
    align-self: center;
    margin: 0 16px 6px;
  }
  .ai-board-chat-back { display: none; }
  .ai-board-mobile-dash { display: none; }
  .ai-device-status,
  .ai-show-notch { display: none; }
}

@media (min-width: 769px) {
  .ai-board-footer--mobile { display: none !important; }
}
