/* ─── ROOT TOKENS ─── */
:root {
  --bg: #f8fafc;
  --bg2: #ffffff;
  --bg3: #ffffff;
  --bg4: #1e3c72;
  --border: #e2e8f0;
  --accent-glow: rgba(59, 130, 246, 0.08);
  --accent: #3b82f6;
  --accent2: #1d4ed8;
  --success: #10b981;
  --warn: #f59e0b;
  --danger: #ef4444;
  --text: #0f172a;
  --text2: #334155;
  --text3: #64748b;
  --card: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100dvh; overflow: hidden; }
body {
  font-family: 'DM Sans', 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
}

/* ─── TOP HEADER ─── */
#top-header {
  height: 75px;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 16px;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
  z-index: 50;
}
#top-header .header-logo {
  height: 50px;
  display: flex; align-items: center;
  flex-shrink: 0;
  /* border: 2px solid red; */
  gap: 15px;
}
#top-header h1 {
  font-size: 15px; font-weight: 700;
  color: #ffffff; letter-spacing: -0.2px;
  line-height: 1.2;
}
#top-header .header-right {
  margin-left: auto;
  display: flex; align-items: center; gap: 14px;
}
#top-header .lang-select {
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  /*color: #ffffff;*/
  padding: 5px 10px; height: 34px;
  border-radius: var(--radius-sm); font-size: 13px; outline: none; cursor: pointer;
  backdrop-filter: blur(4px);
  transition: all 0.2s ease;
}
#top-header .lang-select:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}
#top-header .lang-select:focus {
  background: rgba(255, 255, 255, 0.25);
  border-color: #ffffff;
}
#top-header .lang-select option {
  background: #1e3c72;
  color: #ffffff;
}
/* Toll-free pill — matches image exactly */
.header-tollfree {
      display: inline-block;
    padding: 10px 20px;
    background: white;
    color: rgb(0, 123, 255);
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
    border: 1px solid rgb(0, 123, 255);
    margin-right: 15px;
  /*display: flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, 0.2);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  font-size: 13px; font-weight: 700;
  padding: 5px 14px;
  border-radius: 24px;
  white-space: nowrap;
  cursor: default;
  backdrop-filter: blur(4px);*/
}
.header-tollfree span { color: #ffd700; font-size: 15px; }
.header-complaint-link {
  color: #475569;
    font-weight: 600;
    font-size: 0.875rem;
    transition: color 0.3s;
  /*color: #e0e7ff; font-size: 13px; font-weight: 500;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: all 0.2s ease;*/
}
.header-complaint-link:hover { color: #475569;  }
.header-lang-label { font-size: 15px; color: #64748b; }
.lang-badge { 
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff; 
  padding: 4px 12px; 
  border-radius: 20px; 
  font-size: 12px; 
  font-weight: 600; 
  display: flex; 
  align-items: center; 
  gap: 5px; 
  white-space: nowrap; 
  animation: slideIn 0.3s ease;
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}
.lang-badge:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}
@keyframes slideIn { from{opacity:0;transform:translateX(10px)} to{opacity:1;transform:translateX(0)} }

/* ─── MOBILE RESPONSIVE ─── */
@media (max-width: 768px) {
  #top-header {
    height: 56px;
    padding: 0 16px;
    gap: 8px;
    flex-wrap: wrap;
  }
  #top-header h1 {
    font-size: 14px;
  }
  #top-header .header-right {
    gap: 8px;
    width: 100%;
    order: 3;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .header-tollfree {
    font-size: 11px;
    padding: 4px 10px;
  }
  .header-tollfree span {
    font-size: 13px;
  }
  .header-complaint-link {
    font-size: 11px;
  }
  .header-lang-label {
    display: none;
  }
  #top-header .lang-select {
    height: 32px;
    font-size: 12px;
    padding: 4px 8px;
  }
  .lang-badge {
    font-size: 11px;
    padding: 3px 10px;
    gap: 4px;
  }
}

@media (max-width: 480px) {
  #top-header {
    height: 52px;
    padding: 0 12px;
    gap: 6px;
  }
  #top-header h1 {
    font-size: 13px;
    flex: 1;
  }
  #top-header .header-right {
    gap: 6px;
    width: 100%;
  }
  .header-tollfree {
    font-size: 10px;
    padding: 3px 8px;
    order: 1;
  }
  .header-complaint-link {
    display: none;
  }
  #top-header .lang-select {
    height: 30px;
    font-size: 11px;
    padding: 3px 6px;
  }
  .lang-badge {
    font-size: 10px;
    padding: 2px 8px;
    order: 2;
  }
}

/* ─── MAIN LAYOUT ─── */
#main-layout {
  flex: 1;
  display: flex;
  overflow: hidden;
  min-height: 0;
}

/* ─── LEFT: PHONE PANEL ─── */
#phone-panel {
  position: fixed;
  left: 0;
  top: 70px;
  height: calc(100dvh - 70px);
  width: 33.333vw !important;
  min-width: 360px !important;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px !important;
  overflow: hidden;
  z-index: 100;
  transform: translateX(-110%);
  transition: transform 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
.chatbot-open #phone-panel {
  transform: translateX(0);
  pointer-events: auto;
}

/* Custom scrollbars inside phone panel */
#phone-panel ::-webkit-scrollbar {
  width: 6px !important;
  height: 6px !important;
}
#phone-panel ::-webkit-scrollbar-thumb {
  background-color: rgba(100, 116, 139, 0.2) !important;
  border-radius: 10px !important;
}
#phone-panel ::-webkit-scrollbar-thumb:hover {
  background-color: rgba(100, 116, 139, 0.4) !important;
}
#phone-panel ::-webkit-scrollbar-track {
  background: transparent !important;
}

/* ─── PHONE SHELL ─── */
#phone-shell {
  position: relative;
  width: 100% !important;
  height: 100% !important;
  border-radius: 18px !important;
  background: #111 !important;
  overflow: visible;
}
#phone-shell::before {
  display: none !important;
}
/* Front camera lens in top bezel */
#phone-shell::after {
  content: '' !important;
  display: block !important;
  position: absolute !important;
  top: 2px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 4px !important;
  height: 4px !important;
  background-color: #0f172a !important; /* lens glass dark color */
  border: 1px solid #334155 !important;
  border-radius: 50% !important;
  z-index: 99 !important;
  box-shadow: inset 0 0 1px #000 !important;
}
#phone-screen {
  position: absolute;
  inset: 3px !important;
  border-radius: 15px !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff !important;
}
#phone-gif-icon {
  position: absolute;
  top: -30px;
  right: -100px;
  width: 68px;
  height: 68px;
  object-fit: contain;
  z-index: 9999 !important;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  background: #ffffff;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.2s ease;
}
#phone-gif-icon:hover {
  transform: scale(1.08);
}
/* Notch */
#phone-notch {
  display: none !important;
}
#phone-notch::after {
  content: '';
  width: 100px; height: 22px;
  background: #000;
  border-radius: 0 0 18px 18px;
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
}
#phone-notch::before {
  content: '';
  width: 9px; height: 9px;
  background: #1a1a1a;
  border: 2px solid #333;
  border-radius: 50%;
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(18px);
  z-index: 11;
}

/* Splash screen */
#splash-screen {
  position: absolute;
  inset: 0;
  z-index: 100;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(160deg, #f97316 0%, #ffedd5 25%, #ffffff 50%, #d1fae5 75%, #10b981 100%);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
#splash-screen.hide { opacity:0; transform:scale(1.04); pointer-events:none; }
@keyframes splashPop { from{transform:scale(0.4);opacity:0} to{transform:scale(1);opacity:1} }
@keyframes splashFadeUp { from{transform:translateY(12px);opacity:0} to{transform:translateY(0);opacity:1} }
.splash-logo { width:70px; height:70px; animation:splashPop 0.55s cubic-bezier(0.175,0.885,0.32,1.275) both; }
.splash-gov-bar {
  display:flex; align-items:center; gap:7px;
  background:rgba(255,255,255,0.8); border-radius:30px;
  padding:5px 12px; font-size:10.5px; font-weight:700; color:#1a3a1a;
  animation:splashFadeUp 0.4s 0.1s ease both;
  box-shadow:0 2px 10px rgba(0,0,0,0.08);
}
.splash-title { font-size:14px; font-weight:800; color:#1a3a1a; text-align:center; line-height:1.35; animation:splashFadeUp 0.5s 0.2s ease both; }
.splash-sub { font-size:10px; color:#555; text-align:center; animation:splashFadeUp 0.5s 0.35s ease both; }
.splash-version { font-size:9.5px; color:#888; position:absolute; bottom:24px; animation:splashFadeUp 0.4s 0.5s ease both; }

/* Chat header */
.chat-header {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
.chat-header-avatar {
  width: 56px; height: 56px;
  background: #ffffff;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: relative; flex-shrink: 0;
  padding: 0;
}
.chat-header-avatar .online-dot {
  position: absolute; top: 40px; right: 0px;
  width: 12px; height: 12px;
  background: #10b981;
  border: 2px solid #1e3c72;
  border-radius: 50%;
}
.chat-header-info { flex: 1; }
.chat-header-name {
  font-size: 12px; font-weight: 700; color: #fff;
  display: flex; align-items: center; gap: 4px;
}
.chat-header-status { font-size: 9.5px; color: rgba(255,255,255,0.7); }
/* Verified badge */
.verified-svg { flex-shrink: 0; }

/* Stats bar */
.chat-stats {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 4px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9.5px;
  color: var(--text2);
  flex-shrink: 0;
}
.stat-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; margin-right: 3px; }

/* Chat area */
#chat-area {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  scroll-behavior: smooth;
}

/* chat icons  */
.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-icon-btn {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 6px;
  background: rgba(255,255,255,0.12);
  color: white;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 15px;
  transition: all 0.2s ease;
}

.chat-icon-btn:hover {
  background: rgba(255,255,255,0.22);
  transform: translateY(-1px);
}

.close-btn:hover {
  background: rgba(220,38,38,0.2);
}
#chat-area::-webkit-scrollbar { width: 4px; }
#chat-area::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.3); border-radius: 10px; }

@keyframes fadeUp { from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:translateY(0)} }
.msg-wrap { display:flex; gap:6px; padding:4px 0; animation:fadeUp .3s ease; }
.msg-wrap.user { flex-direction:row-reverse; }
.avatar {
  width:24px; height:24px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:10px; font-weight:600; flex-shrink:0; margin-top:2px;
}
.avatar.bot { background:linear-gradient(135deg,#3b82f6,#1d4ed8); color:#fff; border:1.5px solid #fff; }
.avatar.user { background:var(--bg2); color:#1e3c72; border:1.5px solid #1e3c72; font-size:9px; }
.bubble {
  max-width: 84%;
  padding: 7px 10px;
  border-radius: var(--radius);
  font-size: 11.5px;
  line-height: 1.6;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.bubble.bot {
  background: #ffffff !important;
  color: var(--text) !important;
  border: 1px solid #f1f5f9 !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03) !important;
  border-radius: 16px 16px 16px 4px !important;
}
.bubble.user {
  background: #ffffff !important;
  color: #1e293b !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px 16px 4px 16px !important;
}
.bubble .ts { font-size: 9.5px; color: #94a3b8; margin-top: 6px; display: block; text-align: right; }
.bubble.user .ts { color: #94a3b8; }
.bubble-text strong { font-weight: 600; }

/* Typing dots */
.typing-dots { display:flex; gap:3px; align-items:center; padding:2px 0; }
.typing-dots span { width:5px; height:5px; border-radius:50%; background:var(--text3); animation:typingBounce 1.2s infinite; }
.typing-dots span:nth-child(2) { animation-delay:.2s; }
.typing-dots span:nth-child(3) { animation-delay:.4s; }
@keyframes typingBounce { 0%,80%,100%{transform:scale(.8);opacity:.5} 40%{transform:scale(1);opacity:1} }

/* Feedback widget */
.feedback-widget { margin-top:8px; padding-top:8px; border-top:1px solid #f3f4f6; }
.feedback-q { font-size:10.5px; color:var(--text); margin-bottom:6px; font-weight:500; }
.feedback-btns { display:flex; gap:6px; }
.fb-btn { padding:3px 10px; border-radius:20px; font-family:inherit; font-size:10px; font-weight:500; cursor:pointer; border:1px solid var(--border); transition:all .2s; }
.fb-btn.yes { background:transparent; color:var(--success); border-color:var(--success); }
.fb-btn.yes:hover { background:var(--success); color:#fff; }
.fb-btn.no { background:transparent; color:var(--warn); border-color:var(--warn); }
.fb-btn.no:hover { background:var(--warn); color:#fff; }

/* Complaint form */
.complaint-form { margin-top:8px; padding-top:8px; border-top:1px solid #f3f4f6; }
.complaint-form label { display:block; font-size:9.5px; font-weight:600; color:var(--text2); margin-bottom:2px; margin-top:4px; }
.complaint-form input, .complaint-form textarea, .complaint-form select {
  width:100%; padding:5px 8px; background:var(--bg2); border:1px solid var(--border);
  color:var(--text); border-radius:var(--radius-sm); font-family:inherit; font-size:10.5px;
  margin-bottom:4px; outline:none; resize:none; transition:border .2s;
}
.complaint-form input:focus, .complaint-form textarea:focus, .complaint-form select:focus { border-color:var(--accent); }
.submit-btn {
  background:linear-gradient(135deg,#1e3c72,#2a5298); color:#fff;
  border:1px solid #1e3c72; padding:5px 14px; border-radius:var(--radius-sm);
  font-family:inherit; font-size:10.5px; font-weight:600; cursor:pointer; transition:all .2s;
}
.submit-btn:hover { transform:scale(1.03); box-shadow:0 3px 10px rgba(59, 130, 246, 0.2); }

/* Demo buttons */
.demo-option-btn { text-align:left; background:#ffffff; border:1px solid #e2e8f0; color:#1e3a8a; padding:8px 12px; border-radius:var(--radius-sm); font-family:inherit; font-size:12px; font-weight:600; cursor:pointer; transition:all 0.2s; outline:none; display:block; width:100%; box-shadow: 0 1px 3px rgba(0,0,0,0.02); }
.demo-option-btn:hover { background:#f0f9ff; border-color:#3b82f6; color:#1d4ed8; }
.demo-faq-btn { text-align:left; background:#ffffff; border:1px solid #e2e8f0; color:#2563eb; padding:6px 10px; border-radius:var(--radius-sm); font-family:inherit; font-size:11.5px; font-weight:500; cursor:pointer; transition:all 0.2s; outline:none; display:block; width:100%; margin-top:5px; }
.demo-faq-btn:hover { background:#f8fafc; border-color:#3b82f6; color:#1d4ed8; }
.lang-card-btn { background:var(--bg2); border:1.5px solid var(--accent); color:var(--accent); padding:6px 12px; border-radius:16px; font-family:inherit; font-size:11px; font-weight:600; cursor:pointer; transition:all 0.2s; outline:none; white-space:nowrap; }
.lang-card-btn:hover { background:var(--accent); color:#fff; border-color:var(--accent); }
.lang-option-item { display:flex; align-items:center; width:100%; background:#ffffff; border:1px solid #e2e8f0; color:#4b5563; padding:8px 10px; border-radius:6px; font-family:inherit; font-size:11px; font-weight:500; cursor:pointer; transition:all 0.2s; outline:none; }
.lang-option-item:hover { background:#f0f9ff; border-color:#3b82f6; }
.lang-check { color:#10b981; font-weight:700; margin-right:6px; visibility:hidden; }
.lang-option-item span { color:#4b5563; }
.lang-option-item span:last-of-type { color:#999; }

/* Input area */
.input-area {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(15, 23, 42, 0.05);
  padding: 18px 12px;
  display: flex;
  gap: 8px;
  align-items: flex-end;
  flex-shrink: 0;
  border-radius: 0 0 16px 16px;
}
.input-wrap { flex:1; }
#chat-input {
  width:100%; background:var(--bg); border:1px solid var(--border);
  color:var(--text); padding:6px 8px; border-radius:10px;
  font-family:inherit; font-size:11px; outline:none; resize:none;
  min-height:32px; max-height:80px; overflow-y:auto; line-height:1.4;
  transition:border .2s;
}
#chat-input:focus { border-color:var(--accent); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15); }
#chat-input::placeholder { color:var(--text3); }
.icon-btn {
  background:transparent; border:1px solid var(--border);
  color:var(--text2); width:32px; height:32px; border-radius:var(--radius-sm);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; transition:all .2s; flex-shrink:0; font-size:13px;
}
.icon-btn.send { background:linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%); border-color:var(--accent); color:#fff; }
.icon-btn.send:hover { transform:scale(1.05); }
.icon-btn.recording { border-color:var(--danger); color:var(--danger); animation:ringPulse 1s infinite; }
@keyframes ringPulse { 0%,100%{box-shadow:0 0 0 0 rgba(239,68,68,.4)} 70%{box-shadow:0 0 0 5px rgba(239,68,68,0)} }
#lang-select { background:var(--bg); border:1px solid var(--border); color:var(--text); padding:0 4px; height:32px; border-radius:var(--radius-sm); font-family:inherit; font-size:10px; outline:none; cursor:pointer; }

/* Voice banner */
.voice-banner { background:rgba(79,142,247,.08); border:1px solid rgba(79,142,247,.2); border-radius:var(--radius-sm); padding:5px 10px; font-size:10px; color:var(--accent); margin:0 10px 6px; display:none; align-items:center; gap:6px; }
.voice-banner.show { display:flex; }
.rec-dot { width:6px; height:6px; border-radius:50%; background:var(--danger); animation:pulse 1s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

/* Complaints panel */
.complaints-panel-inner { flex:1; overflow-y:auto; padding:10px; background:rgba(244,246,249,0.85); }
.complaint-card { background:var(--card); border:1px solid var(--border); border-radius:var(--radius-sm); padding:10px; margin-bottom:8px; font-size:10.5px; }
.complaint-card:hover { border-color:#ff9800; }
.complaint-top { display:flex; justify-content:space-between; margin-bottom:5px; }
.complaint-subject { font-size:11px; font-weight:600; color:var(--text); margin-bottom:3px; }
.complaint-desc { font-size:10px; color:var(--text2); line-height:1.5; }
.status-badge { padding:2px 7px; border-radius:20px; font-size:9.5px; font-weight:500; white-space:nowrap; }
.status-badge.open { background:rgba(245,158,11,.15); color:var(--warn); border:1px solid rgba(245,158,11,.3); }
.status-badge.in_progress { background:rgba(79,142,247,.15); color:var(--accent); border:1px solid rgba(79,142,247,.3); }
.status-badge.resolved { background:rgba(34,201,122,.15); color:var(--success); border:1px solid rgba(34,201,122,.3); }
.empty-state { text-align:center; padding:30px 16px; color:var(--text3); font-size:11px; }
.panel-tabs { display:flex; background:rgba(255,255,255,0.88); border-bottom:1px solid var(--border); flex-shrink:0; }
.panel-tab { flex:1; background:transparent; border:none; color:var(--text2); padding:8px 4px; font-family:inherit; font-size:10px; font-weight:500; cursor:pointer; transition:all .2s; border-bottom:2px solid transparent; }
.panel-tab.active { color:#1e3c72; border-bottom-color:var(--accent); font-weight:600; }

/* Toast */
.toast { position:fixed; bottom:20px; right:20px; background:var(--bg2); border:1px solid var(--border); padding:10px 16px; border-radius:var(--radius-sm); font-size:12.5px; z-index:999; transform:translateY(60px); opacity:0; transition:all .3s ease; max-width:280px; box-shadow:0 8px 20px rgba(0,0,0,0.1); color:var(--text); }
.toast.show { transform:translateY(0); opacity:1; }
.toast.success { border-left:3px solid var(--success); }
.toast.error { border-left:3px solid var(--danger); }
.toast.info { border-left:3px solid var(--accent); }

/* ─── RIGHT: CONTENT PANEL ─── */
#content-panel {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  margin: 16px;
  border-radius: 16px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  border: 1px solid #e8ecf0;
  transition: margin-left 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.chatbot-open #content-panel {
  margin-left: calc(33.333vw + 8px);
}

/* Content tabs */
/* #content-tabs {
  padding: 16px 24px 0;
  display: flex;
  gap: 8px;
  background: #ffffff;
  border-bottom: 1px solid #f0f2f5;
  flex-shrink: 0;
}
.content-tab {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 20px;
  border: 1.5px solid #e2e8f0;
  border-radius: 30px;
  background: #ffffff;
  color: var(--text2);
  font-family: inherit; font-size: 13.5px; font-weight: 500;
  cursor: pointer; transition: all .2s;
  margin-bottom: 12px;
}
.content-tab.active {
  background: #ffffff;
  color: #1e3c72;
  border-color: #1e3c72;
  font-weight: 600;
}
.content-tab:hover:not(.active) { background:#f8fafc; color:#1e3c72; border-color: #b0bac5; }
.tab-icon { font-size: 14px; } */

/* Content body */
#content-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
}
#content-body::-webkit-scrollbar { width: 5px; }
#content-body::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

.section-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.section-sub { font-size: 12px; color: var(--text3); margin-bottom: 12px; line-height: 1.4; }

/* tab switch */
.content-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e2e8f0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  width: 100%;
}
.content-tabs::-webkit-scrollbar { display: none; }

 .content-switch_tab {
  display: flex;
  align-items: center;
  gap: 7px;
  border: none;
  background: #f1f5f9;
  color: #475569;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all .2s;
  flex-shrink: 0;
}
.tab-icon {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  flex-shrink: 0;
}

 .content-switch_tab:hover {
  background: #e2e8f0;
}

 .content-switch_tab.active {
  background: #2563eb;
  color: white;
}

/* ─── VIDEO CAROUSEL / GRID STYLING ─── */

/* 1. Default & "All" Tab: Smooth Horizontal Scrollable Carousel */
.video-grid {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 14px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding-bottom: 10px !important;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.video-grid::-webkit-scrollbar {
  height: 6px;
}

.video-grid::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.video-grid::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 10px;
}

.video-card {
  min-width: 250px;
  width: 250px;
  flex: 0 0 250px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all .2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  border-color: #2563eb;
}

/* 2. When "Videos" Tab is Active: Multi-Column Responsive Grid */
#content-panel.tab-videos-active .video-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
  gap: 16px !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
  padding-bottom: 0 !important;
}

#content-panel.tab-videos-active .video-card {
  min-width: unset !important;
  width: 100% !important;
  flex: none !important;
}
.video-thumb {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #0f172a;
  overflow: hidden;
}
.play-btn {
  width: 36px;
  height: 36px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}
.video-card:hover .play-btn {
  transform: scale(1.08);
  background: #2563eb;
  border-color: rgba(255, 255, 255, 0.8);
}
.play-btn svg { color: white; width: 16px; height: 16px; margin-left: 2px; }
.video-duration {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0,0,0,0.75); color: #fff;
  font-size: 10.5px; font-weight: 700; padding: 2px 6px;
  border-radius: 5px;
}
.video-info { padding: 10px 12px; }
.video-label { font-size: 9.5px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 4px; }
.video-title { font-size: 12px; font-weight: 600; color: var(--text); line-height: 1.4; }

/* FAQ accordion */
.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 6px;
  overflow: hidden;
  transition: all 0.2s ease;
}
.faq-item:hover {
  border-color: #cbd5e1;
}
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  background: var(--bg); padding: 9px 13px;
  font-family: inherit; font-size: 13.5px; font-weight: 500; color: var(--text);
  border: none; cursor: pointer; text-align: left; transition: background .2s;
}
.faq-q:hover { background: #fff; }
.faq-a { display: none; padding: 12px 16px; font-size: 13px; color: var(--text2); line-height: 1.6; background: #fff; border-top: 1px solid var(--border); }
.faq-a.open { display: block; }
.faq-chevron { transition: transform .2s; color: var(--text3); flex-shrink: 0; }
.faq-chevron.open { transform: rotate(180deg); }

/* Manuals grid */
.manuals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 2px;
}
.manual-card {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 14px; display: flex; gap: 12px; align-items: flex-start;
  cursor: pointer; transition: all .2s;
}
.manual-card:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.08);
  transform: translateY(-2px);
}
.manual-icon {
  width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.manual-info h4 { font-size: 13.5px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.manual-info p { font-size: 12px; color: var(--text3); line-height: 1.45; }
.manual-badge { display: inline-block; margin-top: 8px; padding: 2px 8px; border-radius: 20px; font-size: 10.5px; font-weight: 600; background: rgba(37,99,235,0.1); color: var(--accent); }

/* Quick links */
.links-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.link-card {
  background: #fff; border: 1.5px solid var(--border); border-radius: 12px;
  padding: 20px 16px; text-align: center; cursor: pointer; transition: all .2s;
}
.link-card:hover { border-color: var(--accent); box-shadow: 0 6px 20px rgba(59, 130, 246, 0.08); transform: translateY(-2px); }
.link-icon { font-size: 28px; margin-bottom: 10px; }
.link-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.link-url { font-size: 11px; color: var(--accent); }

/* Content panel hidden states */
/* .content-section { display: none; }
.content-section.active { display: block; } */

/* ── Autocorrect suggestion chip ── */
#autocorrect-bar {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(255,255,255,0.95);
  border-top: 1px solid var(--border);
  font-size: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
#autocorrect-bar.show { display: flex; }
.ac-label { color: var(--text3); font-size: 9.5px; }
.ac-chip {
  background: rgba(37,99,235,0.1);
  color: var(--accent);
  border: 1px solid rgba(37,99,235,0.25);
  border-radius: 20px;
  padding: 2px 9px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.ac-chip:hover { background: var(--accent); color: #fff; }
.ac-dismiss { color: var(--text3); font-size: 11px; cursor: pointer; margin-left: auto; line-height: 1; }
.ac-dismiss:hover { color: var(--danger); }
/* Highlight misspelled word in input (underline) */
#chat-input { caret-color: var(--accent); }

/* ─── STACKED DASHBOARD SECTIONS ─── */
.dashboard-section {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1.5px solid #f1f5f9;
}

.dashboard-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
  order: 5;
}

/* ─── MODAL DIALOGS ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.modal-overlay.show {
  display: flex;
  opacity: 1;
}
.modal-container {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  width: 90%;
  max-width: 550px;
  max-height: 85dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}
.modal-overlay.show .modal-container {
  transform: scale(1);
}
.modal-header {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  padding: 16px 20px;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}
.modal-header h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}
.modal-close-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  line-height: 1;
}
.modal-close-btn:hover {
  color: #ffffff;
}
.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}
.modal-container.video-modal-width {
  max-width: 800px;
}

/* ─── MODAL COMPLAINT FORM ─── */
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.modal-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 480px) {
  .modal-form-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
.modal-form label {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 4px;
  display: block;
}
.modal-form input, .modal-form select, .modal-form textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  background-color: #ffffff;
}
.modal-form input:focus, .modal-form select:focus, .modal-form textarea:focus {
  border-color: #2563eb;
}
.modal-form textarea {
  resize: vertical;
}

/* ─── BUTTONS & PILLS ─── */
.btn-primary {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 13.5px;
  transition: all 0.2s;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 60, 114, 0.2);
}
.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn-secondary {
  background: #ffffff;
  color: #475569;
  border: 1.5px solid #cbd5e1;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 13.5px;
  transition: all 0.2s;
}
.btn-secondary:hover {
  background: #f8fafc;
}
.btn-outline {
  background: #ffffff;
  color: #2563eb;
  border: 1.5px solid #2563eb;
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.btn-outline:hover {
  background: rgba(37, 99, 235, 0.05);
  border-color: #1d4ed8;
  color: #1d4ed8;
}

/* ─── SUPPORT SECTION CARD ─── */
.support-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
@media (max-width: 768px) {
  .support-card {
    flex-direction: column;
    align-items: flex-start;
  }
}
.support-info {
  flex: 1;
}
.support-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.tollfree-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1.5px solid #2563eb;
  color: #1e3c72;
  padding: 10px 18px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  white-space: nowrap;
}

/* ─── FAQ LIMIT SHOW MORE ─── */
.faq-list-container {
    height: 160px;
    overflow-y: auto;
    padding-right: 4px;
}

.faq-list-container.auto-height {
    height: auto;
    max-height: none;
    overflow: visible;
}

.faq-list-container::-webkit-scrollbar {
    width: 6px;
}
.faq-list-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

/* ─── PHONE PANEL FONT SIZE SCALING ─── */
#phone-screen .chat-header-name { font-size: 17px !important; }
#phone-screen .chat-header-status { font-size: 13px !important; }
#phone-screen .chat-stats { font-size: 13px !important; }
#phone-screen .avatar { font-size: 13px !important; }
#phone-screen .avatar.user { font-size: 12px !important; }
#phone-screen .bubble { font-size: 16.5px !important; line-height: 1.55 !important; }
#phone-screen .bubble .ts { font-size: 12px !important; }
#phone-screen .feedback-q { font-size: 14px !important; }
#phone-screen .fb-btn { font-size: 13px !important; }
#phone-screen .complaint-form label { font-size: 13px !important; }
#phone-screen .complaint-form input,
#phone-screen .complaint-form textarea,
#phone-screen .complaint-form select { font-size: 14px !important; }
#phone-screen .submit-btn { font-size: 14px !important; }
#phone-screen .demo-option-btn { font-size: 15.5px !important; font-weight: 700 !important; }
#phone-screen .demo-faq-btn { font-size: 14px !important; }
#phone-screen .lang-card-btn { font-size: 15px !important; }
#phone-screen .lang-option-item { font-size: 15px !important; }
#phone-screen #chat-input { font-size: 15px !important; }
#phone-screen .icon-btn { font-size: 16px !important; }
#phone-screen #lang-select { font-size: 13px !important; }
#phone-screen .voice-banner { font-size: 13px !important; }
#phone-screen #autocorrect-bar { font-size: 13px !important; }
#phone-screen .ac-label { font-size: 12px !important; }
#phone-screen .ac-chip { font-size: 13px !important; }
#phone-screen .ac-dismiss { font-size: 14px !important; }
#phone-screen .panel-tab { font-size: 13.5px !important; }
#phone-screen .complaint-card { font-size: 14.5px !important; }
#phone-screen .complaint-subject { font-size: 15px !important; }
#phone-screen .complaint-desc { font-size: 13px !important; }
#phone-screen .status-badge { font-size: 12px !important; }
#phone-screen .empty-state { font-size: 14px !important; }
#phone-screen .splash-gov-bar { font-size: 12px !important; }
#phone-screen .splash-title { font-size: 16px !important; }
#phone-screen .splash-sub { font-size: 12px !important; }
#phone-screen .splash-version { font-size: 11px !important; }

/* =========================================================
   IMMERSIVE FULL-SCREEN LIGHT SPLASH
   ========================================================= */
.immersive-splash{
  position:fixed;inset:0;z-index:99999;overflow:hidden;
  display:grid;place-items:center;
  background:
    radial-gradient(circle at 50% 47%,rgba(255,255,255,.99) 0 13%,rgba(247,251,255,.97) 32%,rgba(235,245,255,.98) 72%,#e5f0fa 100%);
  color:#173f78;
  transition:opacity 1s cubic-bezier(.16,1,.3,1),visibility 1s,transform 1s cubic-bezier(.16,1,.3,1);
}
.immersive-splash.hide{opacity:0;visibility:hidden;transform:scale(1.035);pointer-events:none}

/* Full-screen atmosphere */
.light-wash{position:absolute;border-radius:50%;pointer-events:none;filter:blur(2px)}
.wash-1{width:58vw;height:58vw;left:-23vw;top:-28vw;background:radial-gradient(circle,rgba(114,191,242,.17),transparent 68%);animation:washMove1 12s ease-in-out infinite}
.wash-2{width:52vw;height:52vw;right:-18vw;bottom:-27vw;background:radial-gradient(circle,rgba(73,192,151,.14),transparent 68%);animation:washMove2 14s ease-in-out infinite}
.wash-3{width:34vw;height:34vw;right:8vw;top:5vh;background:radial-gradient(circle,rgba(245,190,80,.11),transparent 70%);animation:washMove3 9s ease-in-out infinite}
@keyframes washMove1{50%{transform:translate(5vw,4vh) scale(1.08)}} 
@keyframes washMove2{50%{transform:translate(-4vw,-5vh) scale(1.1)}} 
@keyframes washMove3{50%{transform:translate(-3vw,5vh) scale(1.06)}}

/* Subtle animated technical grid */
.mesh-grid{
  position:absolute;inset:-15%;
  opacity:.28;
  background-image:
    linear-gradient(rgba(55,119,178,.065) 1px,transparent 1px),
    linear-gradient(90deg,rgba(55,119,178,.065) 1px,transparent 1px);
  background-size:70px 70px;
  transform:perspective(700px) rotateX(58deg) translateY(18%);
  transform-origin:center bottom;
  mask-image:linear-gradient(to bottom,transparent 0%,black 35%,black 70%,transparent 100%);
  animation:gridDrift 18s linear infinite;
}
@keyframes gridDrift{to{background-position:0 70px,70px 0}}

/* Large flowing light waves */
.wave{position:absolute;left:-10%;width:120%;height:18vh;border-radius:50%;border:1px solid rgba(77,145,201,.11);filter:blur(.2px);pointer-events:none}
.wave-1{top:21%;transform:rotate(-4deg);animation:waveMove1 8s ease-in-out infinite}
.wave-2{top:67%;transform:rotate(3deg);border-color:rgba(54,169,132,.10);animation:waveMove2 10s ease-in-out infinite}
.wave-3{top:42%;transform:rotate(-1deg);border-color:rgba(235,173,66,.08);animation:waveMove3 12s ease-in-out infinite}
@keyframes waveMove1{50%{transform:translateX(3%) rotate(-4deg) scaleY(1.25);opacity:.65}}
@keyframes waveMove2{50%{transform:translateX(-3%) rotate(3deg) scaleY(.78);opacity:.8}}
@keyframes waveMove3{50%{transform:translateX(2%) rotate(-1deg) scaleY(1.4);opacity:.55}}

/* Fine floating particles */
.particle-canvas{position:absolute;inset:0;pointer-events:none}
.particle-canvas span{position:absolute;width:3px;height:3px;border-radius:50%;background:#5fa7d9;opacity:.2;animation:particleRise 6s ease-in-out infinite}
.particle-canvas span:nth-child(1){left:4%;top:24%}.particle-canvas span:nth-child(2){left:8%;top:70%;animation-delay:1.1s}.particle-canvas span:nth-child(3){left:13%;top:42%;animation-delay:2.1s}.particle-canvas span:nth-child(4){left:18%;top:16%;animation-delay:.6s}.particle-canvas span:nth-child(5){left:23%;top:82%;animation-delay:2.8s}.particle-canvas span:nth-child(6){left:28%;top:31%;animation-delay:1.5s}.particle-canvas span:nth-child(7){left:33%;top:66%;animation-delay:3s}.particle-canvas span:nth-child(8){left:38%;top:12%;animation-delay:.8s}.particle-canvas span:nth-child(9){left:43%;top:86%;animation-delay:2.2s}.particle-canvas span:nth-child(10){left:48%;top:23%;animation-delay:1.3s}.particle-canvas span:nth-child(11){left:53%;top:76%;animation-delay:2.7s}.particle-canvas span:nth-child(12){left:58%;top:17%;animation-delay:.4s}.particle-canvas span:nth-child(13){left:63%;top:89%;animation-delay:1.9s}.particle-canvas span:nth-child(14){left:68%;top:33%;animation-delay:2.9s}.particle-canvas span:nth-child(15){left:73%;top:68%;animation-delay:1s}.particle-canvas span:nth-child(16){left:78%;top:11%;animation-delay:2.4s}.particle-canvas span:nth-child(17){left:83%;top:52%;animation-delay:.9s}.particle-canvas span:nth-child(18){left:88%;top:82%;animation-delay:1.7s}.particle-canvas span:nth-child(19){left:94%;top:27%;animation-delay:2.6s}.particle-canvas span:nth-child(20){left:97%;top:64%;animation-delay:.5s}.particle-canvas span:nth-child(21){left:10%;top:91%;animation-delay:2.2s}.particle-canvas span:nth-child(22){left:31%;top:52%;animation-delay:1.2s}.particle-canvas span:nth-child(23){left:46%;top:47%;animation-delay:2.8s}.particle-canvas span:nth-child(24){left:61%;top:59%;animation-delay:.7s}.particle-canvas span:nth-child(25){left:76%;top:44%;animation-delay:2s}.particle-canvas span:nth-child(26){left:91%;top:73%;animation-delay:1.4s}.particle-canvas span:nth-child(27){left:15%;top:57%;animation-delay:3.1s}.particle-canvas span:nth-child(28){left:36%;top:8%;animation-delay:1.8s}.particle-canvas span:nth-child(29){left:56%;top:91%;animation-delay:2.3s}.particle-canvas span:nth-child(30){left:71%;top:8%;animation-delay:1.1s}.particle-canvas span:nth-child(31){left:86%;top:38%;animation-delay:2.5s}.particle-canvas span:nth-child(32){left:4%;top:52%;animation-delay:.8s}.particle-canvas span:nth-child(33){left:42%;top:62%;animation-delay:1.6s}.particle-canvas span:nth-child(34){left:66%;top:22%;animation-delay:2.9s}
@keyframes particleRise{0%,100%{transform:translate3d(0,0,0) scale(.7);opacity:.12}50%{transform:translate3d(0,-28px,0) scale(1.7);opacity:.65}}

/* Header/footer occupy the screen */
.splash-top{
  position:absolute;left:5vw;right:5vw;top:30px;
  display:flex;align-items:center;justify-content:space-between;
  z-index:10;animation:slideDown .9s .2s both;
}
.maha-mark{font-size:11px;font-weight:900;letter-spacing:1.8px;color:#496a8d;display:flex;align-items:center;gap:9px}
.mark-dot{width:8px;height:8px;border-radius:50%;background:#e6a633;box-shadow:0 0 0 5px rgba(230,166,51,.10)}
.secure-badge{font-size:9px;letter-spacing:1px;color:#62809f;background:rgba(255,255,255,.7);border:1px solid rgba(158,186,211,.45);border-radius:999px;padding:9px 14px;box-shadow:0 7px 20px rgba(63,108,148,.06)}
.secure-badge span{display:inline-block;width:6px;height:6px;background:#35b77c;border-radius:50%;margin-right:6px;box-shadow:0 0 0 4px rgba(53,183,124,.1)}
@keyframes slideDown{from{opacity:0;transform:translateY(-15px)}to{opacity:1;transform:none}}

/* Central advanced animation */
.splash-center{position:relative;z-index:5;width:min(720px,82vw);display:flex;flex-direction:column;align-items:center;text-align:center}
.logo-pod{position:relative;width:250px;height:250px;display:grid;place-items:center}
.logo-glow{position:absolute;width:230px;height:230px;border-radius:50%;background:radial-gradient(circle,rgba(64,151,218,.16),rgba(64,151,218,.05) 42%,transparent 68%);animation:glowPulse 2.8s ease-in-out infinite}
.logo-card{position:relative;z-index:6;width:160px;height:160px;padding:0;overflow:hidden;border-radius:40px;background:rgba(255,255,255,.93);border:1px solid rgba(208,225,239,.95);display:grid;place-items:center;box-shadow:0 30px 70px rgba(46,105,157,.15),0 6px 20px rgba(46,105,157,.08);animation:heroLogoIn 1.2s cubic-bezier(.16,1,.3,1) both,heroFloat 4s ease-in-out 1.2s infinite}
.logo-card img{width:100%;height:100%;display:block;object-fit:cover;transform:scale(1.42);transform-origin:center;border-radius:inherit}

/* Orbit tracks */
.energy-ring{position:absolute;border-radius:50%;pointer-events:none}
.ring-a{width:300px;height:300px;border:1px solid rgba(54,143,214,.13);animation:ringPulse 3.2s ease-in-out infinite}
.ring-b{width:360px;height:360px;border:1px solid rgba(56,174,137,.12);animation:ringPulse 4.2s ease-in-out infinite .4s}
.ring-c{width:430px;height:430px;border:1px solid rgba(236,173,63,.10);animation:ringPulse 5.2s ease-in-out infinite .8s}
.ring-d{width:520px;height:520px;border:1px dashed rgba(71,137,191,.10);animation:slowRotate 25s linear infinite}
@keyframes ringPulse{50%{transform:scale(1.05);opacity:.55}} @keyframes slowRotate{to{transform:rotate(360deg)}}
.orbit-track{position:absolute;border:1px solid rgba(70,141,198,.15);border-radius:50%;pointer-events:none}
.track-a{width:470px;height:150px;transform:rotate(18deg);animation:trackSpinA 7s linear infinite}
.track-b{width:520px;height:185px;transform:rotate(-28deg);border-color:rgba(54,170,132,.12);animation:trackSpinB 9s linear infinite}
.track-c{width:390px;height:560px;transform:rotate(42deg);border-color:rgba(234,169,61,.09);animation:trackSpinC 11s linear infinite}
@keyframes trackSpinA{to{transform:rotate(378deg)}} @keyframes trackSpinB{to{transform:rotate(-388deg)}} @keyframes trackSpinC{to{transform:rotate(402deg)}}
.orbital-dot{position:absolute;z-index:8;width:10px;height:10px;border-radius:50%;box-shadow:0 0 0 7px rgba(255,255,255,.65),0 0 20px currentColor}
.od-1{color:#3b91d8;background:#3b91d8;top:24px;right:95px;animation:orbital1 7s linear infinite}.od-2{color:#38ae82;background:#38ae82;bottom:45px;left:85px;animation:orbital2 9s linear infinite}.od-3{color:#e4a43d;background:#e4a43d;top:115px;left:43px;animation:orbital3 11s linear infinite}
@keyframes orbital1{to{transform:rotate(360deg) translateX(235px) rotate(-360deg)}} @keyframes orbital2{to{transform:rotate(-360deg) translateX(260px) rotate(360deg)}} @keyframes orbital3{to{transform:rotate(360deg) translateY(280px) rotate(-360deg)}}

/* Hero typography */
.hero-copy{position:relative;z-index:8;margin-top:-2px;animation:copyIn 1s .45s both}
.hero-overline{font-size:9px;font-weight:900;letter-spacing:3px;color:#7892ac;margin-bottom:7px}
.hero-copy h1{font-size:clamp(38px,5vw,60px);line-height:1;margin:0;letter-spacing:-2px;font-weight:900;color:#173f78;text-shadow:0 2px 12px rgba(48,103,154,.07)}
.hero-copy h1 span{color:#e1a235}
.hero-copy p{font-size:17px;font-weight:800;color:#3477b8;margin:10px 0 5px}
.hero-copy small{display:block;font-size:11px;color:#7d93a9}
.hero-divider{display:flex;align-items:center;justify-content:center;gap:8px;margin:13px 0 2px}
.hero-divider i{width:30px;height:1px;background:#d1dfeb}.hero-divider b{width:6px;height:6px;border-radius:50%;background:#e2a53a;box-shadow:0 0 0 4px rgba(226,165,58,.09)}
@keyframes copyIn{from{opacity:0;transform:translateY(15px)}to{opacity:1;transform:none}}

/* Loading panel */
.loading-card{position:relative;z-index:8;width:min(460px,72vw);margin-top:24px;padding:14px 16px 12px;border-radius:16px;background:rgba(255,255,255,.68);border:1px solid rgba(197,216,232,.72);box-shadow:0 15px 40px rgba(50,101,143,.07);backdrop-filter:blur(12px);animation:cardIn 1s .7s both}
.loading-heading{display:flex;align-items:center;gap:8px;font-size:10px;font-weight:800;color:#587591;text-align:left}
.loading-heading strong{margin-left:auto;color:#3d77a8}
.loading-dot{width:7px;height:7px;border-radius:50%;background:#35b77c;box-shadow:0 0 0 5px rgba(53,183,124,.10);animation:loadPulse 1.4s infinite}
@keyframes loadPulse{50%{box-shadow:0 0 0 8px rgba(53,183,124,0)}}
.loading-track{height:5px;background:#e5edf4;border-radius:999px;margin-top:11px;overflow:hidden}
.loading-fill{width:0;height:100%;border-radius:999px;background:linear-gradient(90deg,#3e93db,#40b383,#e4a43a);background-size:200% 100%;animation:loadFill 3.35s cubic-bezier(.45,.05,.55,.95) forwards,loadGradient 2s linear infinite}
@keyframes loadFill{to{width:100%}} @keyframes loadGradient{to{background-position:200% 0}}
.loading-caption{display:flex;justify-content:space-between;gap:15px;margin-top:7px;color:#9aabba;font-size:8px}
@keyframes cardIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}

/* Side information cards */
.splash-side{position:absolute;z-index:8;top:50%;width:145px;padding:14px 16px;border:1px solid rgba(201,219,234,.65);background:rgba(255,255,255,.52);border-radius:16px;box-shadow:0 14px 35px rgba(50,101,143,.05);backdrop-filter:blur(10px);display:flex;flex-direction:column;gap:3px;animation:sideIn 1s .85s both}
.splash-side span{font-size:7px;letter-spacing:1.5px;color:#8aa0b6;font-weight:900}.splash-side b{font-size:10px;color:#50728f}.side-icon{font-size:17px;color:#3c87c8;font-weight:900;margin-bottom:4px}
.side-left{left:4vw;transform:translateY(-50%)}.side-right{right:4vw;transform:translateY(-50%);text-align:right;align-items:flex-end}
@keyframes sideIn{from{opacity:0;transform:translateY(-50%) translateX(-20px)}to{opacity:1;transform:translateY(-50%)}} 
.side-right{animation-name:sideInRight}@keyframes sideInRight{from{opacity:0;transform:translateY(-50%) translateX(20px)}to{opacity:1;transform:translateY(-50%)}}

/* Bottom navigation-style signature */
.splash-bottom{position:absolute;bottom:25px;left:50%;transform:translateX(-50%);z-index:10;display:flex;align-items:center;gap:12px;color:#8b9eb2;font-size:8px;font-weight:800;letter-spacing:1.5px;white-space:nowrap;animation:fadeBottom .9s 1s both}
.splash-bottom i{width:32px;height:1px;background:#d1deea}
@keyframes fadeBottom{from{opacity:0;transform:translate(-50%,10px)}to{opacity:1;transform:translate(-50%,0)}}

/* READABLE TYPOGRAPHY + STRONG MOVING ANIMATION */
.motion-beam{position:absolute;width:70vw;height:3px;left:-75vw;background:linear-gradient(90deg,transparent,rgba(60,150,220,.05),rgba(60,150,220,.45),rgba(65,183,137,.32),transparent);filter:blur(.5px);transform:rotate(-18deg);pointer-events:none;z-index:2;animation:beamSweep 6s linear infinite}
.motion-beam.beam-2{top:28%;animation-delay:2s;transform:rotate(14deg);opacity:.7}
.motion-beam.beam-3{top:72%;animation-delay:4s;transform:rotate(-10deg);opacity:.6}
@keyframes beamSweep{from{left:-75vw}to{left:125vw}}
.maha-mark{font-size:13px;letter-spacing:2px}
.secure-badge{font-size:11px;padding:11px 17px}
.logo-pod{width:285px;height:285px}
.logo-card{width:184px;height:184px;padding:0;border-radius:44px}
.logo-card img{width:100%;height:100%}
.logo-glow{width:265px;height:265px}
.ring-a{width:340px;height:340px}.ring-b{width:420px;height:420px}.ring-c{width:500px;height:500px}.ring-d{width:600px;height:600px}
.track-a{width:540px;height:175px}.track-b{width:610px;height:220px}.track-c{width:455px;height:650px}
.hero-overline{font-size:12px;letter-spacing:3.4px}
.hero-copy h1{font-size:clamp(52px,6.2vw,76px);letter-spacing:-2px}
.hero-copy p{font-size:22px;margin-top:13px}
.hero-copy small{font-size:14px}
.hero-divider{margin:16px 0 4px}
.loading-card{width:min(540px,78vw);padding:17px 20px 15px;margin-top:28px}
.loading-heading{font-size:13px}.loading-heading strong{font-size:13px}
.loading-track{height:7px;margin-top:13px}.loading-caption{font-size:10px;margin-top:8px}
.splash-side{width:175px;padding:17px 19px}.splash-side span{font-size:9px}.splash-side b{font-size:13px}.side-icon{font-size:20px}
.splash-bottom{font-size:10px;letter-spacing:1.7px;gap:14px}
.particle-canvas span{width:4px;height:4px;opacity:.32}
.wave{height:20vh}.wave-1{animation-duration:6s}.wave-2{animation-duration:7s}.wave-3{animation-duration:8s}

@media(min-width:901px){.splash-center{transform:translateY(-1vh)}}
@media(max-width:900px){
  .splash-side{display:none}.splash-top{left:25px;right:25px}.secure-badge{font-size:8px}.ring-d{display:none}
}
@media(max-width:600px){
  .splash-top{top:18px}.maha-mark{font-size:8px;letter-spacing:1px}.secure-badge{padding:7px 9px;font-size:7px}
  .logo-pod{width:230px;height:230px}.logo-card{width:150px;height:150px;padding:0;border-radius:32px}.logo-card img{width:100%;height:100%}
  .logo-glow{width:215px;height:215px}
  .ring-a{width:275px;height:275px}.ring-b{width:335px;height:335px}.ring-c{width:395px;height:395px}
  .track-a{width:400px;height:125px}.track-b{width:445px;height:155px}.track-c{width:335px;height:465px}
  .hero-overline{font-size:8px;letter-spacing:2px}.hero-copy h1{font-size:44px}.hero-copy p{font-size:16px}.hero-copy small{font-size:10px;padding:0 20px}
  .loading-card{width:84vw;margin-top:19px}.loading-heading{font-size:11px}.loading-caption{font-size:8px}
  .splash-bottom{font-size:7px;gap:7px}.splash-bottom i{width:18px}
}
@media(prefers-reduced-motion:reduce){
  .immersive-splash *{animation-duration:.01ms!important;animation-iteration-count:1!important;transition:none!important}
}
/* Floating Avatar FAB */
#chatbot-fab {
  position: fixed;
  left: 16px;
  bottom: 28px;
  width: 68px;
  height: 68px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  z-index: 90;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #3b82f6;
  padding: 0;
}
#chatbot-fab:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.3);
}
#chatbot-fab img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
#chatbot-fab .fab-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  background-color: #10b981;
  border: 2px solid #ffffff;
  border-radius: 50%;
}
#chatbot-fab .fab-pulse {
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  border-radius: 50%;
  border: 2px solid #3b82f6;
  animation: fabPulse 2s infinite;
  pointer-events: none;
}
@keyframes fabPulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.3); opacity: 0; }
}
.fab-hidden {
  transform: scale(0) !important;
  opacity: 0;
  visibility: hidden;
}

/* === MOBILE UX RESPONSIVE STYLES === */
.mobile-hidden {
  display: none !important;
}

#mobile-bottom-nav {
  display: none;
}

@media (max-width: 1023px) {
  /* Hide the redundant chat header */
  .chat-header {
    display: none !important;
  }

  /* Make top-header a compact native App Bar with blue bg */
  #top-header {
    background: #1e3a8a !important; /* Blue background */
    height: 56px !important;
    padding: 0 8px !important;
    gap: 4px;
    flex-wrap: nowrap;
    border-bottom: none;
    z-index: 1001;
    overflow: hidden;
  }
  
  /* Swap Logos */
  .desktop-logo { display: none !important; }
  .mobile-logo { display: flex !important; align-items: center; flex-shrink: 1; min-width: 0; }
  .mobile-logo .gap-3 { gap: 6px !important; } /* override tailwind gap to fit on small phones */

  /* Hide non-essential top-header items on mobile */
  #top-header .header-tollfree,
  #top-header .header-complaint-link,
  #top-header .header-lang-label {
    display: none !important;
  }

  /* Style language selector for mobile */
  #top-header .lang-select {
    padding: 2px 6px;
    height: 28px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
  }

  /* Show the mobile reset button */
  .mobile-only-reset {
    display: inline-block !important;
    color: #ffffff !important;
  }

  /* Position tabs directly under the top-header */
  #mobile-bottom-nav {
    display: flex;
    position: fixed;
    top: 56px;
    bottom: auto;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    height: 48px;
    padding-bottom: 0;
  }

  .nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
    color: #64748b;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
  }

  .nav-btn.active {
    color: #2563eb;
    border-bottom: 2px solid #2563eb;
  }

  .nav-btn svg {
    width: 20px;
    height: 20px;
  }

  .nav-btn span {
    font-size: 10px;
    font-weight: 600;
    margin-top: 2px;
  }
  
  .nav-badge {
    position: absolute;
    top: 4px;
    right: calc(50% - 16px);
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
    border: 2px solid white;
  }

  /* Push main layout down by the height of the tabs (top-header pushes it naturally, margin pushes it past tabs) */
  #main-layout {
    flex-direction: column;
    height: calc(100dvh - 56px - 48px);
    margin-top: 48px;
    padding: 0 !important;
    overflow: hidden;
    background: transparent !important;
  }

  .chat-header-actions .close-btn {
    display: none !important;
  }

  #chatbot-fab {
    display: none !important;
  }

  #phone-panel, .chatbot-open #phone-panel {
    position: relative !important;
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: none !important;
    padding: 0 !important;
    height: 100% !important;
    top: auto !important;
    z-index: 10;
  }

  #phone-shell {
    height: 100% !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
  }
  
  #phone-screen {
    border-radius: 0 !important;
    border: none !important;
    height: 100% !important;
  }
  
  #phone-notch {
    display: none !important;
  }

  #content-panel, .chatbot-open #content-panel {
    width: 100% !important;
    margin-left: 0 !important;
    padding: 24px 20px 30px 20px;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
  }
  
  .dashboard-section {
    margin-bottom: 20px !important;
    padding-bottom: 16px !important;
  }
  
  .faq-list-container {
    height: 170px !important;
  }

    /* Horizontal carousels for Videos and Manuals */
  .video-grid, .manuals-grid {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    flex-wrap: nowrap;
    gap: 12px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  
  .video-grid::-webkit-scrollbar, .manuals-grid::-webkit-scrollbar {
    display: none;
  }
  
  .video-card, .manual-card {
    flex: 0 0 80%;
    scroll-snap-align: start;
    min-width: 240px;
  }
}

#chat-selector-overlay {
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
#chat-selector-overlay.active {
    transform: translateY(0);
}
/* Responsive Chat Widgets */
@media (min-width: 1024px) {
    .mobile-chat-widget { display: none !important; }
    .desktop-chat-widget { display: block !important; }
}
@media (max-width: 1023px) {
    .mobile-chat-widget { display: block !important; }
    .desktop-chat-widget { display: none !important; }
}


@media (max-width: 1023px) {
}

/* TAB-BASED RESPONSIVE OVERRIDES */
/* Base horizontal carousels are preserved for the "All" tab */

/* Desktop view: 3 columns only when specifically on the Videos or Manuals tab */
@media (min-width: 1024px) {
  #content-panel.tab-videos-active .video-grid,
  #content-panel.tab-manuals-active .manuals-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    overflow-x: visible !important;
  }
  #content-panel.tab-videos-active .video-card,
  #content-panel.tab-manuals-active .manual-card {
    min-width: unset !important;
    width: 100% !important;
  }
}

/* Mobile view: 1 column vertical grid only when specifically on the Videos or Manuals tab */
@media (max-width: 1023px) {
  #content-panel.tab-videos-active .video-grid,
  #content-panel.tab-manuals-active .manuals-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    overflow-x: visible !important;
    scroll-snap-type: none !important;
  }
  #content-panel.tab-videos-active .video-card,
  #content-panel.tab-manuals-active .manual-card {
    flex: none !important;
    min-width: unset !important;
    width: 100% !important;
    margin-bottom: 12px;
  }
}

/* ═══════════════════════════════════════════════
   TomSelect Searchable Dropdowns & Clear Button
═══════════════════════════════════════════════ */
.ts-wrapper {
  position: relative !important;
  width: 100% !important;
}

.ts-wrapper .ts-control {
  position: relative !important;
  padding-right: 38px !important;
  display: flex !important;
  align-items: center !important;
  min-height: 48px !important;
  box-sizing: border-box !important;
}

.ts-wrapper .ts-control .item {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: calc(100% - 30px) !important;
  display: inline-block !important;
}

.ts-wrapper .ts-control input {
  max-width: 100% !important;
}

/* Position clear button ('x') firmly at the right edge of all dropdowns */
.ts-wrapper .clear-button,
.ts-control .clear-button,
.clear-button {
  position: absolute !important;
  right: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 22px !important;
  height: 22px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  font-size: 18px !important;
  font-weight: bold !important;
  color: #94a3b8 !important;
  line-height: 1 !important;
  z-index: 20 !important;
  border-radius: 50% !important;
  text-decoration: none !important;
  background: transparent !important;
  opacity: 1 !important;
  visibility: visible !important;
  margin: 0 !important;
  padding: 0 !important;
  transition: color 0.15s ease, background-color 0.15s ease !important;
}

.ts-wrapper .clear-button:hover,
.ts-control .clear-button:hover,
.clear-button:hover {
  color: #ef4444 !important;
  background: #fee2e2 !important;
}

/* Ensure the dropdown menu sits cleanly below */
.ts-dropdown {
  z-index: 999999 !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
  border: 1px solid #e2e8f0 !important;
  margin-top: 4px !important;
}

/* --- Resilient Fallback Styles for Intranet / Blocked CDN Environments --- */
.hidden {
  display: none !important;
}

.star-icon {
  width: 36px !important;
  height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  cursor: pointer;
}

#ticket-modal:not(.hidden) {
  display: flex !important;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 99999 !important;
  padding: 1rem;
}

#feedback-star-modal:not(.hidden) {
  display: flex !important;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 99999 !important;
}
