/* ────────────────────────────────────────────────────────────
   EXTRAS — Audit · Case Study · Booking · Chat Bot · Sound
   ──────────────────────────────────────────────────────────── */

/* ── AI SITE AUDIT ──────────────────────────────────────── */
.audit-wrap {
  margin-top: 56px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--bg-elev);
  overflow: hidden;
}
.audit-head {
  padding: 28px 32px;
  border-bottom: 1px solid var(--line);
  background: #00000050;
  display: flex; justify-content: space-between; align-items: center;
}
.audit-head .l {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted);
}
.audit-head .pulse {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase;
}
.audit-head .pulse::before {
  content:""; width:6px; height:6px; border-radius:50%; background:var(--accent);
  animation: pulse 1.4s ease-in-out infinite;
}
.audit-body { padding: 36px 40px; }
.audit-form {
  display: flex; gap: 8px;
  background: #00000060;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 8px;
  max-width: 700px;
}
.audit-form input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 16px 18px;
  color: var(--ink);
  font-family: var(--mono); font-size: 15px;
  letter-spacing: -0.005em;
}
.audit-form input:focus { outline: none; }
.audit-form button {
  background: var(--accent); color: var(--bg);
  border: none; border-radius: 14px;
  padding: 0 26px;
  font-size: 14px; font-weight: 500; letter-spacing: -0.005em;
  display: inline-flex; align-items: center; gap: 10px;
}
.audit-form button:disabled { opacity: 0.5; }

.audit-status {
  margin-top: 24px;
  display: flex; flex-direction: column; gap: 6px;
  font-family: var(--mono); font-size: 12px;
  color: var(--muted); line-height: 1.7;
}
.audit-status .step { display: flex; align-items: center; gap: 12px; }
.audit-status .step .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
}
.audit-status .step.done .dot { background: var(--accent); }
.audit-status .step.active .dot {
  background: var(--accent);
  animation: pulse 1.2s ease-in-out infinite;
}
.audit-status .step.done span { color: var(--ink); }
.audit-status .step.active span { color: var(--accent); }

.audit-result {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}
.audit-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  background: #00000050;
  position: relative;
}
.audit-card .audit-i {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 12px;
}
.audit-card h4 {
  font-family: var(--serif); font-weight: 400;
  font-size: 22px; line-height: 1.15; letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.audit-card p {
  font-size: 13.5px; line-height: 1.55; color: var(--muted); margin: 0;
}
.audit-card .sev {
  position: absolute; top: 22px; right: 22px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 6px;
}
.audit-card .sev.high  { background: #FF566640; color: #FF9999; }
.audit-card .sev.med   { background: #FEBC2E40; color: #FFD680; }
.audit-card .sev.low   { background: #00F2FE30; color: var(--accent); }
.audit-empty {
  margin-top: 28px;
  padding: 32px 28px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  text-align: center;
  color: var(--muted);
  font-family: var(--mono); font-size: 13px;
}

@media (max-width: 1024px) {
  .audit-result { grid-template-columns: 1fr; }
}

/* ── CASE STUDY (JK Realtors) ──────────────────────────── */
.case-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
.case-meta { position: sticky; top: 100px; }
.case-meta .tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--accent-dim);
  background: rgba(0, 242, 254, 0.04);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 24px;
}
.case-meta h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(36px, 4vw, 60px); line-height: 1.0;
  letter-spacing: -0.02em; margin: 0 0 18px;
}
.case-meta p {
  color: var(--muted); font-size: 16px; line-height: 1.55;
  margin: 0 0 24px; max-width: 42ch;
}
.case-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  border-top: 1px solid var(--line); padding-top: 24px;
}
.case-stats .stat {
  padding: 16px 0;
}
.case-stats .stat .l {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
}
.case-stats .stat .v {
  font-family: var(--serif); font-size: clamp(34px, 3.5vw, 48px);
  line-height: 1; letter-spacing: -0.02em; color: var(--ink);
}
.case-stats .stat .v em { font-style: italic; color: var(--accent); font-size: 0.6em; }

/* visit live site button */
.case-visit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  margin-bottom: 24px;
  border: 1px solid var(--accent-dim);
  background: rgba(0, 242, 254, 0.04);
  border-radius: 14px;
  color: var(--ink);
  text-decoration: none;
  transition: all .25s cubic-bezier(.2,.8,.2,1);
}
.case-visit:hover {
  border-color: var(--accent);
  background: rgba(0, 242, 254, 0.08);
  transform: translateY(-2px);
}
.case-visit-l { display: flex; flex-direction: column; gap: 4px; }
.case-visit-k {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
}
.case-visit-u {
  font-family: var(--serif); font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.case-visit-a {
  font-size: 24px; color: var(--accent);
  transition: transform .25s cubic-bezier(.2,.8,.2,1);
}
.case-visit:hover .case-visit-a {
  transform: translate(2px, -2px);
}

.case-content {
  display: flex; flex-direction: column; gap: 24px;
}
.case-chapter {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 32px;
  background: var(--bg-elev);
}
.case-chapter .ch {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 10px;
}
.case-chapter h4 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(24px, 2.4vw, 34px); line-height: 1.1;
  letter-spacing: -0.015em; margin: 0 0 14px;
}
.case-chapter p {
  color: var(--muted); font-size: 15px; line-height: 1.6;
  margin: 0 0 14px;
}
.case-chapter p:last-child { margin-bottom: 0; }
.case-chapter p strong { color: var(--ink); font-weight: 500; }

/* before / after slider */
.beforeafter {
  margin-top: 18px;
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  user-select: none;
}
.beforeafter .bg-before, .beforeafter .bg-after {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.beforeafter .bg-before {
  background: linear-gradient(135deg, #4a4540 0%, #2a2520 100%);
  color: #8A8F98;
}
.beforeafter .bg-after {
  background: linear-gradient(135deg, #050505 0%, #0E1A2E 100%);
  clip-path: inset(0 0 0 var(--split, 50%));
}
.beforeafter .label {
  position: absolute; top: 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 10px; border-radius: 6px;
  background: #00000080; backdrop-filter: blur(4px);
}
.beforeafter .label.b { left: 16px; color: #8A8F98; }
.beforeafter .label.a { right: 16px; color: var(--accent); }
.beforeafter .preview-grid {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  padding: 36px 24px 24px;
  pointer-events: none;
}
.beforeafter .preview-block {
  border: 1px solid currentColor;
  opacity: 0.5;
  border-radius: 6px;
}
.beforeafter .handle {
  position: absolute; top: 0; bottom: 0;
  left: var(--split, 50%);
  width: 2px;
  background: var(--accent);
  cursor: ew-resize;
}
.beforeafter .handle::before {
  content: "↔";
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  display: grid; place-items: center;
  font-weight: 600; font-size: 14px;
}

/* metrics bars */
.case-metrics { margin-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.case-metric .label-row {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
}
.case-metric .label-row .now { color: var(--accent); }
.case-metric .bar {
  height: 4px; background: #00000060; border-radius: 99px; position: relative;
  overflow: hidden;
}
.case-metric .bar .fill {
  position: absolute; top: 0; bottom: 0; left: 0;
  background: var(--accent);
  border-radius: 99px;
  transition: width 1s cubic-bezier(.2,.8,.2,1);
}
.case-metric .bar .prev {
  position: absolute; top: 0; bottom: 0; left: 0;
  background: #FFFFFF1A;
  border-radius: 99px;
}

@media (max-width: 1024px) {
  .case-grid { grid-template-columns: 1fr; }
  .case-meta { position: static; }
}

/* ── BOOKING ───────────────────────────────────────────── */
.book-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--bg-elev);
  padding: 28px 32px;
}
.book-meta h4 {
  font-family: var(--serif); font-weight: 400;
  font-size: 28px; line-height: 1.1; letter-spacing: -0.015em;
  margin: 12px 0 12px;
}
.book-meta p {
  color: var(--muted); font-size: 14.5px; line-height: 1.55;
  margin: 0 0 18px; max-width: 38ch;
}
.book-queue {
  display: flex; gap: 24px;
  padding-top: 18px; border-top: 1px solid var(--line);
}
.book-queue .q {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
}
.book-queue .q .v {
  display: block;
  font-family: var(--serif); font-size: 32px; color: var(--accent);
  margin-top: 6px; letter-spacing: -0.02em;
}

.book-cal {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  background: #00000050;
  overflow: visible;
}

.book-mode-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.book-mode-tab {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.book-mode-tab.active {
  border-color: var(--accent-dim);
  color: var(--accent);
  background: rgba(0, 242, 254, 0.06);
}

.cal-embed-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 560px;
}

.cal-embed-host {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 520px;
  border-radius: 12px;
  overflow: hidden;
  background: #0a0a0a;
}

.cal-embed-host iframe {
  width: 100% !important;
  min-height: 520px !important;
  border: 0;
}

.cal-embed-fallback-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 8px 0;
}

.cal-embed-fallback-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.cal-embed-iframe {
  display: block;
  width: 100%;
  min-height: 600px;
  height: 600px;
  border: 0;
  border-radius: 12px;
  background: #0a0a0a;
}

.cal-embed-iframe--secondary {
  min-height: 480px;
  height: 480px;
  opacity: 0.95;
}

.cal-open-external {
  text-decoration: none;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.cal-open-external:hover {
  color: var(--accent);
}

.book-cal-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
}
.book-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.book-day-h {
  font-family: var(--mono); font-size: 10px; color: var(--muted);
  text-align: center; padding: 4px 0;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.book-day {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 13px;
  background: transparent;
  color: var(--ink);
  transition: all .15s;
  padding: 4px;
}
.book-day.muted { color: var(--muted); border-color: transparent; }
.book-day.unavail {
  color: #4a4540; text-decoration: line-through;
  border-color: transparent;
}
.book-day:not(.unavail):not(.muted):hover {
  background: rgba(0,242,254,0.06);
  border-color: var(--accent);
}
.book-day.active {
  background: var(--accent); color: var(--bg);
  border-color: var(--accent);
}
.book-day .avail-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent);
  margin-top: 2px;
}
.book-day.active .avail-dot { background: var(--bg); }
.book-day.unavail .avail-dot { display: none; }

.book-slots {
  margin-top: 16px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.book-slot {
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font-family: var(--mono); font-size: 13px;
  text-align: center;
}
.book-slot:hover {
  background: rgba(0,242,254,0.06);
  border-color: var(--accent);
}
.book-slot.active {
  background: var(--accent); color: var(--bg);
  border-color: var(--accent);
}
.book-confirm {
  margin-top: 16px;
  width: 100%;
  background: var(--accent); color: var(--bg); border: none;
  padding: 16px;
  border-radius: 14px;
  font-size: 14px; font-weight: 500; letter-spacing: -0.01em;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
}
.book-confirm:disabled { opacity: 0.4; }
.book-confirmed {
  margin-top: 16px;
  border: 1px solid var(--accent-dim);
  border-radius: 14px;
  padding: 16px 18px;
  background: rgba(0,242,254,0.06);
  font-family: var(--mono); font-size: 12px;
  color: var(--ink);
  line-height: 1.7;
}
.book-confirmed .row { display: flex; justify-content: space-between; }
.book-confirmed .row .l { color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; }
.book-confirmed .row .v { color: var(--accent); }

/* booking contact form fields */
.bk-field {
  display: flex; flex-direction: column; gap: 4px;
  margin-bottom: 14px;
}
.bk-field label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
}
.bk-field input {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  color: var(--ink);
  font-size: 15px;
  letter-spacing: -0.005em;
}
.bk-field input:focus { outline: none; border-color: var(--accent); }
.bk-field input::placeholder { color: #4a4540; }

@media (max-width: 1024px) {
  .book-grid { grid-template-columns: 1fr; }
}

/* ── CHAT BOT 2.0 — 2026 glassmorphic AI interface ───── */

/* When chat is open, shift main content left so panel doesn't cover it */
main {
  transition: transform 0.45s cubic-bezier(.2,.8,.2,1);
  transform: translateX(0);
}
.footer {
  transition: transform 0.45s cubic-bezier(.2,.8,.2,1);
  transform: translateX(0);
}
@media (min-width: 1100px) {
  body.is-chat-open main,
  body.is-chat-open .footer {
    transform: translateX(-220px);
  }
}

#chat-toggle {
  position: fixed; bottom: 130px; right: 24px;
  z-index: 200;
  padding: 10px 18px 10px 10px;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(0, 242, 254, 0.25);
  display: inline-flex; align-items: center; gap: 10px;
  color: #F2EFE7;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: all .35s cubic-bezier(.2, .8, .2, 1);
}
#chat-toggle:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 242, 254, 0.5);
  box-shadow: 0 16px 48px rgba(0, 242, 254, 0.22);
}
#chat-toggle.open {
  width: 48px; height: 48px; padding: 0; border-radius: 50%;
  background: rgba(15, 15, 15, 0.9);
  border-color: rgba(255, 255, 255, 0.08);
}
#chat-toggle.open .chat-orb-aura,
#chat-toggle.open .chat-orb-label { display: none; }
#chat-toggle.open .chat-orb-core { background: transparent; box-shadow: none; }

.chat-orb-core {
  position: relative;
  width: 38px; height: 38px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.18), transparent 60%),
    radial-gradient(circle at 70% 80%, rgba(0,184,212,0.4), transparent 70%),
    linear-gradient(135deg, #00F2FE 0%, #00B8D4 100%);
  color: #050505;
  display: grid; place-items: center;
  flex-shrink: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 4px 20px rgba(0, 242, 254, 0.45);
  z-index: 2;
}
.chat-orb-aura {
  position: absolute; inset: -10px;
  border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 0deg,
    transparent 0deg, rgba(0, 242, 254, 0.7) 60deg,
    transparent 130deg, rgba(0, 242, 254, 0.4) 240deg,
    transparent 360deg);
  filter: blur(10px); opacity: 0.65;
  animation: chatOrbRotate 5s linear infinite;
  z-index: 0;
}
@keyframes chatOrbRotate { to { transform: rotate(360deg); } }
.chat-orb-label {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: #F2EFE7;
  padding-right: 4px; position: relative; z-index: 2;
}

#chat-panel {
  position: fixed; bottom: 194px; right: 24px;
  z-index: 199;
  width: 420px; max-width: calc(100vw - 48px);
  height: 600px; max-height: calc(100vh - 140px);
  border-radius: 24px;
  display: flex; flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(0.96);
  opacity: 0; pointer-events: none;
  transition: all 0.38s cubic-bezier(.2, .8, .2, 1);
  background: rgba(8, 8, 8, 0.72);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
#chat-panel.open { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
#chat-panel::before {
  content: ""; position: absolute; inset: -1px;
  border-radius: 25px; padding: 1px;
  background: conic-gradient(from 0deg,
    transparent 0%, rgba(0, 242, 254, 0.55) 12%,
    transparent 30%, transparent 55%,
    rgba(0, 242, 254, 0.35) 70%, transparent 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
  animation: chatBorderRotate 8s linear infinite;
}
/* Aurora glow inside panel — adds the wow */
#chat-panel::after {
  content: ""; position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0,242,254,0.12), transparent 70%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(0,242,254,0.06), transparent 70%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.8;
}
.chat-head, .chat-msgs, .chat-suggest, .chat-input {
  position: relative; z-index: 1;
}
@keyframes chatBorderRotate { to { transform: rotate(360deg); } }

.chat-head {
  padding: 18px 20px 16px;
  display: flex; align-items: center; gap: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}
.chat-avatar-wrap { position: relative; width: 44px; height: 44px; flex-shrink: 0; }
.chat-avatar-aura {
  position: absolute; inset: -4px; border-radius: 50%;
  background: conic-gradient(from 0deg,
    rgba(0, 242, 254, 0.7),
    rgba(0, 242, 254, 0.1),
    rgba(0, 242, 254, 0.55),
    rgba(0, 242, 254, 0.7));
  filter: blur(8px); opacity: 0.75;
  animation: chatBorderRotate 5s linear infinite reverse;
}
.chat-avatar {
  position: relative; z-index: 1;
  width: 100%; height: 100%; border-radius: 50%;
  overflow: hidden; background: #050505;
  display: grid; place-items: center;
}
.chat-avatar svg { width: 38px; height: 38px; display: block; }

.chat-head .info { flex: 1; min-width: 0; }
.chat-head .info .name {
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  letter-spacing: -0.01em; color: #F2EFE7;
  display: flex; align-items: center; gap: 8px;
}
.chat-head .info .ai-tag {
  font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.18em;
  padding: 2px 6px; border-radius: 4px;
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: #00F2FE;
}
.chat-head .info .status {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: #8A8F98;
  display: flex; align-items: center; gap: 6px; margin-top: 3px;
}
.chat-head .info .status::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #00F2FE;
  box-shadow: 0 0 0 2px rgba(0, 242, 254, 0.25);
  animation: pulse 1.6s ease-in-out infinite;
}

.chat-min {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px; color: #8A8F98;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  transition: all .2s; flex-shrink: 0;
}
.chat-min:hover { border-color: rgba(255, 255, 255, 0.2); color: #F2EFE7; }

.chat-msgs {
  flex: 1; overflow-y: auto; padding: 20px;
  display: flex; flex-direction: column; gap: 14px;
  scroll-behavior: smooth;
}
.chat-msgs::-webkit-scrollbar { width: 4px; }
.chat-msgs::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.08); border-radius: 99px; }

.chat-msg {
  max-width: 86%; padding: 12px 16px; border-radius: 16px;
  font-size: 14px; line-height: 1.55;
  white-space: pre-wrap; word-wrap: break-word;
  position: relative;
  animation: msgIn .35s cubic-bezier(.2, .8, .2, 1);
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.chat-msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #00F2FE 0%, #00B8D4 100%);
  color: #050505; font-weight: 500;
  border-bottom-right-radius: 6px;
  box-shadow: 0 2px 12px rgba(0, 242, 254, 0.25);
}
.chat-msg.bot {
  align-self: flex-start;
  background: rgba(20, 20, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #F2EFE7;
  border-bottom-left-radius: 6px;
}
.chat-msg.bot::before {
  content: ""; position: absolute;
  left: -1px; top: -1px; bottom: -1px; width: 2px;
  border-radius: 99px 0 0 99px;
  background: linear-gradient(180deg, #00F2FE 0%, rgba(0,242,254,0.2) 100%);
  opacity: 0.7;
}
.chat-cursor {
  display: inline-block; color: #00F2FE;
  animation: cursorBlink 0.8s steps(2) infinite;
  margin-left: 2px;
}
@keyframes cursorBlink { 50% { opacity: 0; } }

.chat-typing {
  align-self: flex-start;
  display: flex; align-items: center; gap: 8px;
  padding: 14px 16px;
  background: rgba(20, 20, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  border-bottom-left-radius: 6px;
}
.chat-typing .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #00F2FE;
  box-shadow: 0 0 8px rgba(0,242,254,0.6);
}
.chat-typing .d1 { animation: dotMorph 1.4s ease-in-out infinite; }
.chat-typing .d2 { animation: dotMorph 1.4s ease-in-out 0.18s infinite; }
.chat-typing .d3 { animation: dotMorph 1.4s ease-in-out 0.36s infinite; }
@keyframes dotMorph {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.55; }
  30%      { transform: translateY(-5px) scale(1.25); opacity: 1; }
}
.chat-typing .thinking {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: #8A8F98; margin-left: 4px;
}

.chat-suggest {
  padding: 0 20px 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.chat-suggest-l {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #8A8F98;
}
.chat-suggest-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
}
.chat-suggest-grid button {
  background: rgba(20, 20, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px; padding: 12px 14px;
  color: #F2EFE7; font-size: 12.5px;
  text-align: left;
  display: flex; align-items: center; gap: 8px;
  transition: all .25s cubic-bezier(.2,.8,.2,1);
  font-family: var(--sans);
}
.chat-suggest-grid button .i {
  width: 22px; height: 22px; border-radius: 6px;
  background: rgba(0, 242, 254, 0.08);
  color: #00F2FE;
  display: grid; place-items: center;
  font-family: var(--serif); font-style: italic; font-size: 14px;
  flex-shrink: 0;
}
.chat-suggest-grid button:hover {
  border-color: rgba(0, 242, 254, 0.3);
  background: rgba(0, 242, 254, 0.04);
  transform: translateY(-1px);
}
.chat-suggest-grid button:hover .i { background: rgba(0, 242, 254, 0.2); }

.chat-input {
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(5, 5, 5, 0.4);
  flex-shrink: 0;
}
.chat-input-shell {
  display: flex; align-items: center; gap: 8px;
  background: rgba(20, 20, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 4px 4px 4px 14px;
  transition: border-color .25s;
}
.chat-input-shell:focus-within {
  border-color: rgba(0, 242, 254, 0.4);
  background: rgba(20, 20, 20, 0.8);
  box-shadow: 0 0 0 4px rgba(0, 242, 254, 0.06);
}
.chat-input input {
  flex: 1; background: transparent; border: none;
  color: #F2EFE7; font-size: 14px;
  padding: 10px 0; font-family: var(--sans);
}
.chat-input input::placeholder { color: #6A6A66; }
.chat-input input:focus { outline: none; }

.chat-send {
  width: 36px; height: 36px; border-radius: 12px;
  background: linear-gradient(135deg, #00F2FE 0%, #00B8D4 100%);
  color: #050505; border: none;
  display: grid; place-items: center;
  transition: all .2s; flex-shrink: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 2px 12px rgba(0, 242, 254, 0.35);
}
.chat-send:disabled {
  opacity: 0.4;
  background: rgba(255, 255, 255, 0.06);
  color: #6A6A66; box-shadow: none;
}
.chat-send:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 242, 254, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.chat-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 10px; padding: 0 4px;
  font-family: var(--mono); font-size: 9.5px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #6A6A66;
}
.chat-foot-l { display: flex; align-items: center; gap: 6px; }
.chat-foot-l .dot-live {
  width: 5px; height: 5px; border-radius: 50%;
  background: #00F2FE;
  animation: pulse 1.6s ease-in-out infinite;
}

@media (max-width: 768px) {
  #chat-toggle { bottom: 110px; right: 16px; padding: 8px 14px 8px 8px; }
  #chat-toggle.open { width: 44px; height: 44px; padding: 0; }
  .chat-orb-core { width: 32px; height: 32px; }
  .chat-orb-label { font-size: 10px; }
  #chat-panel {
    bottom: 170px; right: 12px; left: 12px;
    width: auto; max-width: none;
    height: calc(100vh - 250px);
    border-radius: 20px;
  }
  .chat-suggest-grid { grid-template-columns: 1fr; }
}

/* ── SOUND TOGGLE ─────────────────────────────────────── */
#sound-toggle {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px 6px 8px;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted);
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  transition: all .2s;
  margin-right: 14px;
}
#sound-toggle:hover { border-color: var(--accent-dim); color: var(--ink); }
#sound-toggle.on { color: var(--accent); border-color: var(--accent-dim); }
#sound-toggle .ico {
  width: 18px; height: 18px;
  display: grid; place-items: center;
  font-size: 12px;
}
#sound-toggle.on .ico { animation: pulse 2s ease-in-out infinite; }

.topnav .nav-right {
  display: flex; align-items: center;
}

/* ── VIEW TRANSITIONS ─────────────────────────────────── */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.5s;
  animation-timing-function: cubic-bezier(.2,.8,.2,1);
}
