/* ═══════════════════════════════════════════════════
   COMPREHENSIVE RESPONSIVE — All Devices
   ═══════════════════════════════════════════════════ */

/* ─── Large screens (1440px+) — extra breathing room ─── */
@media (min-width: 1440px) {
  .section-inner {
    max-width: 1200px;
  }

  .hero-section {
    gap: 6rem;
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ─── Tablet Landscape & small desktop (max 1024px) ─── */
@media (max-width: 1024px) {
  .hero-section {
    gap: 3rem;
    padding: 5.5rem 2rem 3rem;
  }

  .hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .hero-visual {
    max-width: 360px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
  }

  .footer-top {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

  .footer-top .footer-col:last-child {
    grid-column: span 1;
  }
}

/* ─── Tablet Portrait (max 768px) ─── */
@media (max-width: 768px) {

  /* Navbar */
  .navbar-links {
    display: none;
  }

  .navbar-inner .navbar-cta {
    display: none;
  }

  .navbar-hamburger {
    display: block;
  }

  .navbar-inner {
    padding: 0.7rem 1.2rem;
  }

  /* Hero */
  .hero-section {
    flex-direction: column;
    padding: 5rem 1.5rem 3rem;
    gap: 2rem;
    min-height: auto;
  }

  .hero-content {
    text-align: center;
    max-width: 100%;
  }

  .hero-badge {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-trust-strip {
    justify-content: center;
  }

  .hero-visual {
    max-width: 100%;
  }

  .hero-card-stack {
    max-width: 400px;
    margin: 0 auto;
  }

  .scroll-indicator {
    display: none;
  }

  /* Sections */
  .landing-section {
    padding: 3rem 1.5rem;
  }

  .section-desc {
    font-size: 1rem;
  }

  /* Features */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .feature-card {
    padding: 1.8rem 1.5rem;
  }

  .feature-icon {
    width: 65px;
    height: 65px;
    font-size: 2.5rem;
  }

  /* Timeline */
  .steps-timeline::before {
    right: 24px;
  }

  .step-number {
    width: 48px;
    height: 48px;
    min-width: 48px;
    font-size: 1.2rem;
  }

  .step-content {
    padding: 1.2rem;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  /* CTA */
  .cta-inner {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
  }

  .cta-text h2 {
    font-size: 1.3rem;
  }

  /* Cards */
  .cards-container {
    flex-direction: column;
    align-items: center;
  }

  .login-card {
    width: 100%;
    max-width: 400px;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr 1fr;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-brand {
    grid-column: span 2;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-badges {
    justify-content: center;
  }

  .footer-col a:hover {
    transform: none;
  }
}

/* ─── Large Phone (max 600px) ─── */
@media (max-width: 600px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-btn {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
    min-height: 48px;
  }

  .hero-mini-card {
    padding: 1rem 1.2rem;
  }

  .hmc-icon {
    width: 45px;
    height: 45px;
    font-size: 1.8rem;
  }

  .hmc-text {
    font-size: 1rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: 1.5rem 1.2rem;
  }

  .feature-title {
    font-size: 1.1rem;
  }

  .feature-desc {
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-desc {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }

  .section-badge {
    font-size: 0.8rem;
    padding: 0.35rem 1rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .stat-box {
    padding: 1.5rem 1rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label-text {
    font-size: 0.85rem;
  }

  .step-item {
    gap: 1rem;
  }

  .step-content h3 {
    font-size: 1rem;
  }

  .step-content p {
    font-size: 0.85rem;
  }

  .testimonial-card {
    padding: 1.5rem;
  }

  .testimonial-text {
    font-size: 0.95rem;
  }

  .cta-inner {
    padding: 1.8rem 1.2rem;
    border-radius: 20px;
  }

  .cta-text h2 {
    font-size: 1.15rem;
  }

  .cta-text p {
    font-size: 0.9rem;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: span 1;
  }

  .lana-footer {
    padding: 2rem 1.2rem 1.5rem;
  }

  .footer-badges {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
}

/* ─── Phone (max 480px) ─── */
@media (max-width: 480px) {
  .hero-section {
    padding: 5rem 1rem 3rem;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 0.35rem 1rem;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .hero-trust-strip {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .hero-trust-strip span {
    font-size: 0.78rem;
  }

  .hero-mini-card {
    padding: 0.9rem 1rem;
    border-radius: 14px;
  }

  .hmc-badge {
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem;
  }

  .navbar-inner {
    padding: 0.6rem 1rem;
  }

  .navbar-logo {
    font-size: 1.3rem;
  }

  .landing-section {
    padding: 3rem 1rem;
  }

  .section-title {
    font-size: clamp(1.4rem, 4vw, 1.8rem);
  }

  .feature-icon {
    width: 55px;
    height: 55px;
    font-size: 2rem;
    border-radius: 16px;
    box-shadow: 4px 4px 0px var(--card-shadow);
  }

  .feature-card {
    border-radius: 18px;
  }

  .steps-timeline {
    gap: 1.5rem;
  }

  .steps-timeline::before {
    right: 21px;
  }

  .step-number {
    width: 42px;
    height: 42px;
    min-width: 42px;
    font-size: 1rem;
  }

  .stats-section {
    padding: 3rem 1rem;
  }

  .login-card {
    border-radius: 18px;
    padding: 1.5rem;
  }

  .login-card h2 {
    font-size: 1.2rem;
  }

  .icon-box {
    font-size: 2.2rem;
  }

  .pin-num {
    width: 52px;
    height: 52px;
    font-size: 1.1rem;
  }

  .action-btn {
    font-size: 0.95rem;
    padding: 0.6rem 1.2rem;
    min-height: 48px;
  }

  .testimonial-avatar {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .testimonial-card::before {
    font-size: 3rem;
  }

  .cta-banner {
    padding: 2rem 1rem;
  }

  .gradient-orb::before {
    filter: blur(60px);
  }

  .footer-logo {
    font-size: 1.5rem;
  }

  .footer-col h4 {
    font-size: 0.9rem;
  }
}

/* ─── Small Phone (max 360px) ─── */
@media (max-width: 360px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 0.85rem;
  }

  .hero-btn {
    font-size: 0.9rem;
    padding: 0.7rem 1rem;
    min-height: 48px;
  }

  .hero-mini-card {
    padding: 0.8rem;
    gap: 0.7rem;
    border-width: 2px;
  }

  .hmc-icon {
    width: 38px;
    height: 38px;
    font-size: 1.5rem;
  }

  .hmc-text {
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.2rem;
  }

  .section-desc {
    font-size: 0.85rem;
  }

  .feature-card {
    padding: 1.2rem 1rem;
  }

  .feature-title {
    font-size: 1rem;
  }

  .feature-desc {
    font-size: 0.85rem;
  }

  .feature-icon {
    width: 48px;
    height: 48px;
    font-size: 1.7rem;
  }

  .stat-number {
    font-size: 1.6rem;
  }

  .stat-label-text {
    font-size: 0.75rem;
  }

  .stat-box {
    padding: 1.2rem 0.8rem;
    border-radius: 14px;
  }

  .step-number {
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: 0.9rem;
  }

  .step-content {
    padding: 1rem;
    border-radius: 14px;
  }

  .step-content h3 {
    font-size: 0.95rem;
  }

  .testimonial-card {
    padding: 1.2rem;
    border-radius: 16px;
  }

  .testimonial-text {
    font-size: 0.88rem;
    line-height: 1.7;
  }

  .pin-num {
    width: 46px;
    height: 46px;
    font-size: 1rem;
  }

  .login-card {
    padding: 1.2rem;
  }

  .cta-inner {
    padding: 1.5rem 1rem;
    border-radius: 16px;
  }

  .cta-text h2 {
    font-size: 1rem;
  }

  .cta-text p {
    font-size: 0.8rem;
  }

  .cta-inner .hero-btn {
    font-size: 0.95rem;
  }

  .navbar-mobile a {
    font-size: 0.9rem;
    padding: 0.5rem 0.8rem;
    min-height: 48px;
    display: flex;
    align-items: center;
  }
}

/* ─── Landscape orientation for phones ─── */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section {
    min-height: auto;
    padding: 4rem 2rem 2rem;
    flex-direction: row;
    gap: 2rem;
  }

  .hero-content {
    text-align: right;
  }

  .hero-buttons {
    justify-content: flex-start;
  }

  .hero-visual {
    max-width: 300px;
  }

  .hero-floating {
    display: none;
  }
}

/* ─── Touch device improvements ─── */
@media (hover: none) and (pointer: coarse) {

  .feature-card:hover,
  .hero-mini-card:hover,
  .step-item:hover .step-content,
  .step-item:hover .step-number,
  .testimonial-card:hover,
  .stat-box:hover {
    transform: none;
    box-shadow: inherit;
  }

  .feature-card:active {
    transform: scale(0.98);
  }

  .hero-mini-card:active {
    transform: scale(0.98);
  }
}

/* ═══════════════════════════════════════════════════
   HELPYY CHATBOT UI
   ═══════════════════════════════════════════════════ */

.helpyy-chat-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: var(--lana-bg);
  position: relative;
  overflow: hidden;
}

/* ─── Header ─── */
.helpyy-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: transparent;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

.helpyy-header-inner {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.helpyy-header-info {
  display: flex;
  flex-direction: column;
}

.helpyy-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}

.helpyy-status-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ─── Messages Container ─── */
.helpyy-messages-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
  overflow: hidden;
}

.helpyy-messages-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 4rem 1rem 130px 1rem; /* Space for floaters */
  scrollbar-width: none; /* Hide scrollbar for a clean look */
}

.helpyy-messages-scroll::-webkit-scrollbar {
  display: none;
}

.helpyy-messages-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ─── Background Spline ─── */
.helpyy-spline-bg-fixed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100vh + 50px); /* Extends below bottom to hide watermark */
  z-index: 0;
  pointer-events: auto; /* IMPORTANT: Allows spline to track mouse */
}

/* Ensure foreground elements sit above the Spline */
.helpyy-header, .helpyy-messages-wrapper, .helpyy-messages-scroll, .helpyy-input-area {
  z-index: 1;
  pointer-events: none; /* Let empty space pass events through to the Spline iframe */
}

/* Make actual content interactive and scroll triggerable */
.helpyy-messages-inner, .helpyy-input-wrapper, .helpyy-header-inner, .helpyy-btn-ghost-sm {
  pointer-events: auto; 
}

/* ─── Welcome Card (Spline removed from here) ─── */
.helpyy-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1rem 2rem;
  margin: auto;
}

/* Removed helpyy-spline-wrapper */

.helpyy-empty-state h3 {
  color: var(--text-primary);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 2rem;
}

/* ─── Message Bubbles ─── */
.helpyy-msg {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  width: 100%;
}

.helpyy-msg-user {
  flex-direction: row-reverse;
}

.helpyy-msg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
}

.helpyy-msg-bubble-wrapper {
  display: flex;
  flex-direction: column;
  max-width: 85%;
}

.helpyy-msg-user .helpyy-msg-bubble-wrapper {
  align-items: flex-end;
}

.helpyy-msg-bubble {
  padding: 0.8rem 1.2rem;
  border-radius: 18px;
  line-height: 1.7;
  word-wrap: break-word;
  font-size: 1rem;
}

.helpyy-msg-bot .helpyy-msg-bubble {
  background: var(--card-bg);
  border: 1px solid var(--border);
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.05);
  color: var(--text-body);
  border-bottom-right-radius: 4px;
}

.helpyy-msg-user .helpyy-msg-bubble {
  background: var(--input-bg);
  color: var(--text-body);
  border-bottom-left-radius: 4px;
}

.helpyy-msg-text {
  font-weight: 500;
}

/* ─── Typing Indicator ─── */
.helpyy-typing-dots {
  display: flex;
  gap: 5px;
  align-items: center;
  height: 20px;
}
.helpyy-typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: helpyy-dot-bounce 1.4s infinite ease-in-out both;
}
.helpyy-typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.helpyy-typing-dots span:nth-child(2) { animation-delay: -0.16s; }
@keyframes helpyy-dot-bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* ─── Input Area ─── */
.helpyy-input-area {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(180deg, transparent, var(--lana-bg) 40%);
  padding: 2rem 1rem 1.5rem;
  z-index: 10;
}

.helpyy-input-container {
  max-width: 800px;
  margin: 0 auto;
}

.helpyy-input-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 0.6rem 0.8rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: all 0.3s;
}

.helpyy-input-wrapper:focus-within {
  border-color: var(--lana-medium);
  box-shadow: 0 4px 25px rgba(46, 204, 113, 0.15);
}

.helpyy-input-wrapper input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  padding: 0.5rem 0.5rem !important;
  margin: 0 !important;
  font-size: 1rem !important;
  height: auto !important;
  box-shadow: none !important;
}

.helpyy-input-wrapper input:focus {
  box-shadow: none !important;
}

.helpyy-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--lana-dark);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.helpyy-send-btn:hover {
  background: var(--lana-medium);
}

.helpyy-send-btn:active {
  transform: scale(0.95);
}

.helpyy-send-icon {
  display: inline-block;
  transform: rotate(180deg);
  font-size: 1.1rem;
}

.helpyy-disclaimer {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.8rem;
}

/* ─── Suggestion Chips & Meta ─── */
.helpyy-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  align-items: center;
}

.helpyy-chip {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  font-weight: 700;
}

.helpyy-chip:hover {
  background: var(--input-bg);
}

.helpyy-msg-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.3rem;
  font-size: 0.75rem;
}

.helpyy-msg-user .helpyy-msg-meta {
  flex-direction: row-reverse;
}

.helpyy-ai-badge {
  color: var(--lana-medium);
  font-weight: 800;
}

.helpyy-msg-time {
  color: var(--text-muted);
}

/* ─── Fade-in Animation ─── */
.helpyy-fade-in {
  animation: helpyy-msg-fade 0.35s ease-out;
}

@keyframes helpyy-msg-fade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Model Selector ─── */
.helpyy-model-selector {
  display: flex;
  gap: 0.3rem;
  background: var(--input-bg);
  border-radius: 999px;
  padding: 0.2rem;
  border: 1px solid var(--border);
  margin-right: 0.8rem;
}

.helpyy-model-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  white-space: nowrap;
}

.helpyy-model-btn:hover {
  color: var(--text-body);
  background: rgba(46, 204, 113, 0.08);
}

.helpyy-model-btn.active {
  background: var(--card-bg);
  color: var(--text-primary);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.helpyy-model-icon { font-size: 0.9rem; }
.helpyy-model-name { font-size: 0.78rem; }

/* ─── Header Actions ─── */
.helpyy-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  pointer-events: auto;
}

/* ─── Voice Call Button (Header) ─── */
.helpyy-voice-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: rgba(46, 204, 113, 0.08);
  color: var(--lana-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.helpyy-voice-btn:hover {
  background: var(--lana-medium);
  color: #fff;
  border-color: var(--lana-medium);
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(46, 204, 113, 0.3);
}

/* ─── Mic Button (Next to Send) ─── */
.helpyy-mic-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.helpyy-mic-btn:hover {
  color: var(--lana-medium);
  background: rgba(46, 204, 113, 0.08);
}

.helpyy-mic-btn.recording {
  color: #fff;
  background: #e74c3c;
  animation: helpyy-mic-pulse 1.2s ease-in-out infinite;
}

@keyframes helpyy-mic-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(231, 76, 60, 0); }
}

/* ═══════════════════════════════════════════════════════════
   VOICE CALL OVERLAY
   ═══════════════════════════════════════════════════════════ */

.helpyy-voice-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(4, 27, 16, 0.92);
  backdrop-filter: blur(30px) saturate(1.5);
  -webkit-backdrop-filter: blur(30px) saturate(1.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.helpyy-voice-overlay.active {
  opacity: 1;
  visibility: visible;
}

.helpyy-voice-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  text-align: center;
  max-width: 400px;
  width: 100%;
}

/* ─── Pulsing Circle ─── */
.helpyy-voice-circle {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.helpyy-voice-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(46, 204, 113, 0.15);
  border: 2px solid rgba(46, 204, 113, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  position: relative;
  z-index: 2;
}

.helpyy-voice-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(46, 204, 113, 0.3);
  opacity: 0;
  z-index: 1;
}

.helpyy-voice-circle.active .helpyy-voice-pulse {
  animation: helpyy-voice-ring 2.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.helpyy-voice-circle.active .helpyy-voice-pulse-2 {
  animation-delay: 1.2s;
}

.helpyy-voice-circle.recording .helpyy-voice-avatar {
  border-color: #e74c3c;
  background: rgba(231, 76, 60, 0.15);
  animation: helpyy-recording-glow 1s ease-in-out infinite;
}

.helpyy-voice-circle.recording .helpyy-voice-pulse {
  border-color: rgba(231, 76, 60, 0.3);
  animation: helpyy-voice-ring 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.helpyy-voice-circle.speaking .helpyy-voice-avatar {
  border-color: var(--lana-medium);
  background: rgba(46, 204, 113, 0.2);
  animation: helpyy-speaking-glow 0.8s ease-in-out infinite;
}

@keyframes helpyy-voice-ring {
  0% { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}

@keyframes helpyy-recording-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(231, 76, 60, 0.2); }
  50% { box-shadow: 0 0 40px rgba(231, 76, 60, 0.4); }
}

@keyframes helpyy-speaking-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(46, 204, 113, 0.2); transform: scale(1); }
  50% { box-shadow: 0 0 40px rgba(46, 204, 113, 0.4); transform: scale(1.05); }
}

/* ─── Voice Overlay Text ─── */
.helpyy-voice-title {
  color: #e8f8f5;
  font-size: 1.6rem;
  font-weight: 900;
  margin: 0;
  font-family: 'Cairo', sans-serif;
}

.helpyy-voice-status {
  color: rgba(232, 248, 245, 0.6);
  font-size: 0.95rem;
  margin: 0;
  font-family: 'Cairo', sans-serif;
  min-height: 1.5em;
}

/* ─── Voice Transcript ─── */
.helpyy-voice-transcript {
  width: 100%;
  max-height: 180px;
  overflow-y: auto;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.5rem;
}

.helpyy-voice-transcript::-webkit-scrollbar { display: none; }

.helpyy-voice-transcript-line {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 0.6rem 1rem;
  text-align: right;
  font-size: 0.85rem;
  color: rgba(232, 248, 245, 0.8);
  font-family: 'Cairo', sans-serif;
  line-height: 1.6;
}

.helpyy-voice-transcript-line strong {
  color: var(--lana-medium);
  font-weight: 800;
}

/* ─── Voice Controls ─── */
.helpyy-voice-controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.helpyy-voice-control-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.helpyy-voice-mute {
  background: rgba(255, 255, 255, 0.1);
  color: #e8f8f5;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
}

.helpyy-voice-mute:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.08);
}

.helpyy-voice-mute.recording {
  background: rgba(231, 76, 60, 0.25);
  border-color: rgba(231, 76, 60, 0.5);
  color: #e74c3c;
  animation: helpyy-mic-pulse 1.2s ease-in-out infinite;
}

.helpyy-voice-end {
  background: #e74c3c;
  color: #fff;
}

.helpyy-voice-end:hover {
  background: #c0392b;
  transform: scale(1.08);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .helpyy-chat-container {
    height: calc(100vh - 80px); /* Leave room for bottom nav */
  }
  .helpyy-messages-scroll {
    padding-bottom: 140px;
  }
  .helpyy-empty-state {
    padding-top: 2rem;
  }
  .helpyy-spline-wrapper {
    width: 180px;
    height: 180px;
  }
  
  /* Make sure the input area doesn't get squished */
  .helpyy-input-area {
    padding: 1.5rem 1rem 1rem;
  }
}


/* ─── Helpyy Chat History Sidebar ─── */
.helpyy-history-item {
  display: flex;
  flex-direction: column;
  padding: 0.8rem;
  border-radius: 12px;
  background: var(--lana-lightest);
  border: 1px solid var(--card-border);
  margin-bottom: 0.6rem;
  cursor: pointer;
  transition: var(--transition);
}

.helpyy-history-item:hover,
.helpyy-history-item.active {
  border-color: var(--accent);
  background: rgba(39, 174, 96, 0.05);
}

.helpyy-history-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.helpyy-history-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ─── SweetAlert2 Custom Theme ─── */
.lana-swal-popup {
  background: var(--card-bg) !important;
  border: 4px solid var(--card-border) !important;
  border-radius: 28px !important;
  box-shadow: 10px 10px 0px var(--card-shadow) !important;
  color: var(--text-primary) !important;
  padding: 2rem !important;
}

.lana-swal-title {
  color: var(--text-primary) !important;
  font-family: 'Cairo', sans-serif !important;
  font-weight: 900 !important;
  font-size: 1.5rem !important;
}

.lana-swal-html {
  color: var(--text-body) !important;
  font-family: 'Cairo', sans-serif !important;
  font-size: 1.05rem !important;
}

.swal2-icon.swal2-warning {
  border-color: var(--warning) !important;
  color: var(--warning) !important;
}

.swal2-icon.swal2-success {
  border-color: var(--lana-medium) !important;
  color: var(--lana-medium) !important;
  [data-theme="dark"] & {
    border-color: var(--lana-dark) !important;
    color: var(--lana-dark) !important;
  }
}

.lana-swal-actions {
  gap: 1rem;
  margin-top: 1.5rem !important;
}

.lana-swal-actions .btn {
  margin: 0 !important;
  min-width: 120px;
}

/* ─── Mentions & Hashtags ─── */
.mention {
  color: var(--lana-medium) !important;
  font-weight: 700 !important;
  background: var(--lana-light);
  padding: 0 4px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mention:hover {
  background: var(--lana-medium);
  color: white !important;
}

.hashtag {
  color: #1d9bf0 !important;
  cursor: pointer;
  font-weight: 500;
}

.hashtag:hover {
  text-decoration: underline;
}

[data-theme="dark"] .mention {
  background: rgba(30, 215, 96, 0.1);
  color: var(--lana-medium) !important;
}

[data-theme="dark"] .mention:hover {
  background: var(--lana-medium);
  color: #000 !important;
}

