:root {
  --theme-primary: #c60651;
  --theme-primary-alpha: #c60651f2;
  --theme-primary-light: #e11d6d;
  --theme-primary-dark: #96033b;
  --theme-primary-glow: rgba(198, 6, 81, 0.22);
  --theme-primary-subtle: rgba(198, 6, 81, 0.08);

  --theme-dark: #000000d9;
  --theme-dark-solid: #0d1117;
  --theme-dark-surface: #161a22;
  --theme-dark-glow: rgba(0, 0, 0, 0.35);

  --theme-text-main: #0f172a;
  --theme-text-muted: #64748b;
  --theme-bg-body: #f4f6fa;
}

*, *::before, *::after { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body { 
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
  background: var(--theme-bg-body); 
  color: var(--theme-text-main); 
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── GLOBAL NAVBAR ── */
.global-nav {
  background: linear-gradient(90deg, #000000d9, #1c050f, #c60651f2, #1c050f, #000000d9);
  background-size: 300% 100%;
  animation: navFlow 10s linear infinite;
  min-height: 58px;
  height: 58px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(198, 6, 81, 0.2);
}
@keyframes navFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

.nav-left { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
  min-width: 0;
}

.nav-logo {
  display: flex; 
  align-items: center; 
  gap: 8px;
  color: white; 
  font-weight: 800; 
  font-size: 15px; 
  letter-spacing: 0.3px;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.nav-logo img {
  max-width: 140px;
  height: auto;
  display: block;
}

.nav-logo:hover, .nav-logo:focus {
  color: white;
  text-decoration: none;
  opacity: 0.9;
}

.nav-crumbs { 
  display: none; 
  gap: 6px; 
  align-items: center; 
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.nav-crumbs::-webkit-scrollbar { display: none; }
.nav-crumbs.visible { display: flex; }

.nav-crumb {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(198, 6, 81, 0.4);
  color: #ffffff; 
  font-size: 11.5px; 
  font-weight: 600;
  padding: 3px 10px; 
  border-radius: 50px; 
  flex-shrink: 0;
  transition: background 0.25s, transform 0.25s, letter-spacing 0.25s, border-color 0.25s;
}
.nav-crumb:hover {
  background: rgba(198, 6, 81, 0.35);
  border-color: #c60651f2;
  transform: translateY(-1px);
}

.new-chat-btn {
  background: rgba(198, 6, 81, 0.2);
  border: 1px solid rgba(198, 6, 81, 0.45);
  color: white; 
  font-size: 12.5px; 
  font-weight: 600;
  padding: 6px 14px; 
  border-radius: 8px; 
  cursor: pointer;
  display: flex; 
  align-items: center; 
  gap: 6px;
  flex-shrink: 0;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.new-chat-btn:hover {
  background: #c60651f2;
  border-color: #c60651f2;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(198, 6, 81, 0.4);
}
.new-chat-btn:active { transform: scale(0.96); }
.new-chat-btn:hover i { animation: spinOnce 0.5s ease; }
@keyframes spinOnce { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }

/* ── SCREENS ── */
.screen { display: none; width: 100%; }
.screen.active {
  display: flex; 
  flex-direction: column;
  min-height: calc(100vh - 58px);
  animation: fadeUp 0.35s ease both;
}

#s4.active {
  display: flex; 
  flex-direction: column;
  height: calc(100vh - 58px);
  height: calc(100dvh - 58px);
  overflow: hidden;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ══ SCREEN 1 ══ */
#s1 { 
  align-items: center; 
  justify-content: center; 
  background: radial-gradient(circle at 50% 10%, rgba(198, 6, 81, 0.06) 0%, transparent 60%), linear-gradient(160deg, #fdfbfb 0%, #f4f6fa 50%, #eef1f6 100%); 
  padding: 50px 20px; 
}
.s1-inner { 
  max-width: 760px; 
  width: 100%; 
  margin: 0 auto;
  text-align: center; 
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Centered Pill Badge Container */
.pill-badge-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 auto 20px auto;
}

.pill-badge {
  display: inline-flex; 
  align-items: center; 
  justify-content: center;
  gap: 9px;
  background: #000000d9; 
  border: 1px solid rgba(198, 6, 81, 0.45);
  color: #ffffff; 
  font-size: 13px; 
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 8px 22px; 
  border-radius: 50px; 
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.pill-badge:hover {
  transform: translateY(-2px);
  border-color: #c60651f2;
  box-shadow: 0 8px 25px rgba(198, 6, 81, 0.25);
}
.pill-badge i { 
  color: #c60651f2; 
  font-size: 13px;
}

.brand-selection-title {
  display: inline-block; 
  font-size: clamp(26px, 5.5vw, 38px); 
  font-weight: 900; 
  line-height: 1.25; 
  margin-bottom: 12px; 
  letter-spacing: -0.5px; 
  position: relative; 
  overflow: hidden;
  background: linear-gradient(90deg, #000000d9, #c60651f2, #1c050f, #c60651f2, #000000d9);
  background-size: 300% auto; 
  -webkit-background-clip: text; 
  -webkit-text-fill-color: transparent;
  animation: gradientMove 6s linear infinite, titleFloat 3s ease-in-out infinite;
}
.brand-selection-title::after { 
  content: ""; 
  position: absolute; 
  top: 0; 
  left: -120%; 
  width: 60%; 
  height: 100%; 
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent); 
  transform: skewX(-20deg); 
  animation: shineMove 4s linear infinite; 
}
@keyframes gradientMove { 0% { background-position: 0% center; } 100% { background-position: 300% center; } }
@keyframes titleFloat { 0%,100% { transform: translateY(0px); } 50% { transform: translateY(-3px); } }
@keyframes shineMove { 0% { left: -120%; } 100% { left: 130%; } }

.s1-inner > p { 
  font-size: clamp(14px, 2.5vw, 16px); 
  color: var(--theme-text-muted); 
  margin-bottom: 30px; 
}

.premium-brand-grid { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 22px; 
  width: 100%;
  margin-top: 10px; 
  perspective: 1200px; 
}

.brand-card {
  position: relative; 
  overflow: hidden; 
  height: 160px; 
  border-radius: 26px;
  cursor: pointer; 
  display: flex; 
  align-items: center; 
  justify-content: center;
  isolation: isolate;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.85));
  backdrop-filter: blur(20px); 
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.8);
  transition: transform 0.4s cubic-bezier(0.19,1,0.22,1), box-shadow 0.4s cubic-bezier(0.19,1,0.22,1), border-color 0.3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06), 0 20px 50px rgba(0,0,0,0.04), inset 0 1px 1px rgba(255,255,255,0.9);
}
.brand-card::before {
  content: ""; 
  position: absolute; 
  inset: -2px; 
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(198, 6, 81, 0.25), rgba(0, 0, 0, 0.15), transparent 60%);
  opacity: 0; 
  transition: 0.4s; 
  z-index: -1;
}
.brand-card::after {
  content: ""; 
  position: absolute; 
  top: -120%; 
  left: -20%; 
  width: 140%; 
  height: 220%;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.5), transparent 80%);
  transform: rotate(12deg); 
  transition: 0.8s;
}
.brand-card:hover::after { top: 120%; }
.brand-card:hover::before { opacity: 1; }
.brand-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(198, 6, 81, 0.5);
  box-shadow: 0 16px 40px rgba(198, 6, 81, 0.16), 0 25px 60px rgba(0, 0, 0, 0.1), inset 0 1px 1px rgba(255,255,255,0.9);
}
.brand-card span { 
  position: relative; 
  z-index: 2; 
  font-size: clamp(24px, 4vw, 32px); 
  font-weight: 900; 
  letter-spacing: -1px; 
  color: #ffffff; 
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); 
}
.brand-card.selected { 
  transform: translateY(-6px) scale(1.02); 
  border-color: #c60651f2; 
  box-shadow: 0 20px 50px rgba(198, 6, 81, 0.25), 0 30px 70px rgba(0, 0, 0, 0.18); 
}
.brand-card:active { transform: scale(0.98); }

.hp { background: linear-gradient(135deg, #007cf0, #00dfd8); }
.canon { background: linear-gradient(135deg, #c60651f2, #ff4b2b); }
.epson { background: linear-gradient(135deg, #11998e, #38ef7d); }
.brother { background: linear-gradient(135deg, #7f00ff, #a855f7); }
.samsung { background: linear-gradient(135deg, #2563eb, #38bdf8); }
.xerox { background: linear-gradient(135deg, #f59e0b, #f97316); }
.other { background: linear-gradient(135deg, #000000d9, #475569); }

/* ══ SCREEN 2 ══ */
#s2 { 
  align-items: center; 
  justify-content: center; 
  padding: 30px 20px; 
  background: radial-gradient(circle at 10% 10%, rgba(198, 6, 81, 0.05), transparent 45%), radial-gradient(circle at 90% 90%, rgba(0, 0, 0, 0.04), transparent 45%), #f4f6fa; 
}
.s2-inner { width: 100%; max-width: 1220px; }
.s2-top { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.back-arrow { 
  background: none; 
  border: none; 
  color: #64748b; 
  font-size: 20px; 
  cursor: pointer; 
  padding: 6px 10px 6px 0; 
  transition: 0.3s; 
}
.back-arrow:hover { color: #c60651f2; transform: translateX(-3px); }
.brand-chip { 
  background: linear-gradient(135deg, #c60651f2, #000000d9); 
  color: white; 
  padding: 6px 16px; 
  border-radius: 999px; 
  font-size: 12.5px; 
  font-weight: 800; 
  box-shadow: 0 4px 14px rgba(198, 6, 81, 0.25);
}
.s2-selected-txt { font-size: 13.5px; color: #64748b; }
.s2-top h2 { 
  width: 100%; 
  margin-top: 6px; 
  font-size: clamp(24px, 5vw, 36px); 
  font-weight: 900; 
  letter-spacing: -1px; 
  color: #000000d9; 
}

.issue-grid { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 16px; 
  perspective: 1200px; 
}

.issue-card {
  position: relative; 
  overflow: hidden; 
  min-height: 180px; 
  border-radius: 24px; 
  padding: 20px;
  cursor: pointer; 
  isolation: isolate;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.85));
  border: 1px solid rgba(255,255,255,0.8);
  backdrop-filter: blur(20px); 
  -webkit-backdrop-filter: blur(20px);
  transition: transform 0.4s cubic-bezier(0.19,1,0.22,1), box-shadow 0.4s cubic-bezier(0.19,1,0.22,1), border-color 0.3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05), 0 25px 60px rgba(0,0,0,0.04), inset 0 1px 1px rgba(255,255,255,0.9);
}
.issue-card::before { 
  content: ""; 
  position: absolute; 
  inset: -2px; 
  border-radius: inherit; 
  background: linear-gradient(135deg, rgba(198, 6, 81, 0.22), rgba(0, 0, 0, 0.1), transparent 55%); 
  opacity: 0; 
  transition: 0.4s; 
  z-index: -1; 
}
.issue-card:hover { 
  transform: translateY(-6px) scale(1.02); 
  border-color: rgba(198, 6, 81, 0.45); 
  box-shadow: 0 16px 40px rgba(198, 6, 81, 0.14), 0 25px 60px rgba(0, 0, 0, 0.08), inset 0 1px 1px rgba(255,255,255,0.9); 
}
.issue-icon { 
  width: 54px; 
  height: 54px; 
  border-radius: 18px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  margin-bottom: 14px; 
  background: linear-gradient(135deg, #c60651f2, #000000d9); 
  color: white; 
  font-size: 22px; 
  box-shadow: 0 10px 22px rgba(198, 6, 81, 0.28), inset 0 1px 1px rgba(255,255,255,0.25); 
}
.issue-card h5 { 
  font-size: 18px; 
  font-weight: 800; 
  line-height: 1.3; 
  letter-spacing: -0.5px; 
  color: #000000d9; 
  margin-bottom: 6px; 
}
.issue-card p { 
  font-size: 13px; 
  line-height: 1.5; 
  color: #64748b; 
  margin: 0; 
}
.issue-card:active { transform: scale(0.98); }

/* ══ SCREEN 3 ══ */
#s3 { 
  align-items: center; 
  justify-content: center; 
  padding: 40px 20px; 
  background: radial-gradient(circle at 10% 10%, rgba(198, 6, 81, 0.05), transparent 45%), radial-gradient(circle at 90% 90%, rgba(0, 0, 0, 0.04), transparent 45%), #f4f6fa; 
}
.device-wrap { width: 100%; max-width: 1080px; }
.device-top { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.device-chip { 
  background: linear-gradient(135deg, #c60651f2, #000000d9); 
  color: white; 
  padding: 6px 16px; 
  border-radius: 999px; 
  font-size: 12.5px; 
  font-weight: 700; 
  box-shadow: 0 4px 14px rgba(198, 6, 81, 0.25);
}
.device-heading { 
  text-align: center; 
  margin-bottom: 36px; 
  display: flex;
  flex-direction: column;
  align-items: center;
}
.device-mini { 
  display: inline-flex; 
  align-items: center;
  justify-content: center;
  padding: 7px 18px; 
  border-radius: 999px; 
  background: #000000d9; 
  border: 1px solid rgba(198, 6, 81, 0.35); 
  color: #ffffff; 
  font-size: 11.5px; 
  font-weight: 700; 
  letter-spacing: 0.8px; 
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.device-heading h2 { 
  font-size: clamp(26px, 5.5vw, 44px); 
  font-weight: 800; 
  letter-spacing: -1px; 
  color: #000000d9; 
  margin-bottom: 8px; 
}
.device-heading p { 
  font-size: clamp(14px, 2.5vw, 16px); 
  color: #64748b; 
}

.device-grid { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 22px; 
  perspective: 1200px; 
}

.device-card {
  position: relative; 
  overflow: hidden; 
  min-height: 300px; 
  border-radius: 28px; 
  padding: 30px 24px;
  cursor: pointer; 
  isolation: isolate;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.85));
  border: 1px solid rgba(255,255,255,0.8);
  backdrop-filter: blur(20px); 
  -webkit-backdrop-filter: blur(20px);
  transition: transform 0.4s cubic-bezier(0.19,1,0.22,1), box-shadow 0.4s cubic-bezier(0.19,1,0.22,1), border-color 0.3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05), 0 30px 80px rgba(0,0,0,0.04), inset 0 1px 1px rgba(255,255,255,0.9);
}
.device-card:hover { 
  transform: translateY(-8px) scale(1.02); 
  border-color: rgba(198, 6, 81, 0.45); 
  box-shadow: 0 16px 40px rgba(198, 6, 81, 0.16), 0 35px 80px rgba(0, 0, 0, 0.1), inset 0 1px 1px rgba(255,255,255,0.9); 
}
.device-icon { 
  position: relative; 
  width: 80px; 
  height: 80px; 
  border-radius: 24px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  margin-bottom: 24px; 
  background: linear-gradient(135deg, #c60651f2, #000000d9); 
  color: white; 
  font-size: 32px; 
  box-shadow: 0 14px 32px rgba(198, 6, 81, 0.3), inset 0 1px 1px rgba(255,255,255,0.25); 
}
.device-icon::before { 
  content: ""; 
  position: absolute; 
  inset: 6px; 
  border-radius: 18px; 
  border: 1px solid rgba(255,255,255,0.25); 
}
.device-card h4 { 
  font-size: 26px; 
  font-weight: 800; 
  letter-spacing: -0.8px; 
  color: #000000d9; 
  margin-bottom: 8px; 
}
.device-card p { 
  font-size: 14px; 
  line-height: 1.6; 
  color: #64748b; 
  margin: 0; 
}
.device-card .device-badge { 
  position: absolute; 
  top: 20px; 
  right: 20px; 
  padding: 6px 12px; 
  border-radius: 999px; 
  background: rgba(198, 6, 81, 0.08); 
  border: 1px solid rgba(198, 6, 81, 0.2); 
  color: #c60651f2; 
  font-size: 10.5px; 
  font-weight: 800; 
  letter-spacing: 0.8px; 
  text-transform: uppercase; 
}
.device-card:active { transform: scale(0.98); }

/* ══ SCREEN 4 (CHAT) ══ */
.chat-body { 
  flex: 1; 
  overflow-y: auto; 
  padding: 16px 12px; 
  scroll-behavior: smooth; 
  background: radial-gradient(ellipse at 15% 15%, rgba(198, 6, 81, 0.06) 0%, transparent 60%), radial-gradient(ellipse at 85% 85%, rgba(0, 0, 0, 0.04) 0%, transparent 60%), #f4f6fa; 
}
.chat-body::-webkit-scrollbar { width: 4px; }
.chat-body::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

.chat-wrap { 
  max-width: 720px; 
  width: 100%; 
  margin: 0 auto; 
  padding: 22px 24px; 
  background: #ffffff; 
  border-radius: 16px; 
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  min-height: calc(100vh - 100px); 
}

.resources-card { 
  background: white; 
  border: 1px solid #e2e8f0; 
  border-left: 4px solid #c60651f2;
  border-radius: 14px; 
  padding: 16px 18px; 
  margin-bottom: 18px; 
  animation: cardRiseUp 0.45s ease both; 
  transition: box-shadow 0.3s, transform 0.3s; 
}
.resources-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(198, 6, 81, 0.1); }
.res-title { font-size: 13px; font-weight: 700; color: #000000d9; margin-bottom: 2px; display: flex; align-items: center; gap: 7px; }
.res-title i { color: #c60651f2; }
.res-sub { font-size: 11.5px; color: #94a3b8; margin-bottom: 10px; }
.res-link { 
  display: flex; 
  align-items: center; 
  gap: 7px; 
  font-size: 12.5px; 
  color: #c60651f2; 
  font-weight: 600; 
  margin-bottom: 6px; 
  cursor: pointer; 
  transition: color 0.2s, transform 0.2s; 
  word-break: break-word;
}
.res-link:hover { color: #000000d9; transform: translateX(4px); }
.res-link i { font-size: 11px; flex-shrink: 0; }

.bot-avatar { 
  width: 34px; 
  height: 34px; 
  border-radius: 50%; 
  flex-shrink: 0; 
  background: linear-gradient(135deg, #c60651f2, #000000d9); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  color: white; 
  font-size: 13px; 
  align-self: flex-end; 
  position: relative; 
  box-shadow: 0 4px 10px rgba(198, 6, 81, 0.25);
}
.bot-avatar::after { 
  content: ""; 
  position: absolute; 
  inset: -3px; 
  border-radius: 50%; 
  border: 2px solid rgba(198, 6, 81, 0.35); 
  animation: avatarPulse 2.5s ease-in-out infinite; 
}
@keyframes avatarPulse { 0%,100% { transform: scale(1); opacity: 0.4; } 50% { transform: scale(1.15); opacity: 0.8; } }

.msg-row { 
  display: flex; 
  margin-bottom: 14px; 
  align-items: flex-end; 
  gap: 8px; 
  animation: rowFadeUp 0.35s ease both; 
}
@keyframes rowFadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.msg-row.bot { justify-content: flex-start; }
.msg-row.user { justify-content: flex-end; }

.bubble { 
  max-width: 78%; 
  padding: 12px 16px; 
  border-radius: 16px; 
  font-size: 13.5px; 
  line-height: 1.6; 
  word-break: break-word;
}
.bot .bubble { 
  background: #ffffff; 
  border: 1px solid #e8edf5; 
  border-bottom-left-radius: 4px; 
  color: #1a202c; 
  box-shadow: 0 2px 8px rgba(0,0,0,0.04); 
}
.user .bubble { 
  background: linear-gradient(135deg, #c60651f2, #96033b); 
  color: white; 
  border-bottom-right-radius: 4px; 
  box-shadow: 0 4px 14px rgba(198, 6, 81, 0.3); 
}

.typing-dots { display: flex; gap: 5px; align-items: center; padding: 2px 0; }
.typing-dots span { 
  width: 7px; 
  height: 7px; 
  border-radius: 50%; 
  background: linear-gradient(135deg, #c60651f2, #000000d9); 
  animation: waveFloat 1.2s ease-in-out infinite; 
  box-shadow: 0 2px 6px rgba(198, 6, 81, 0.4); 
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; } 
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes waveFloat { 0%,100% { transform: translateY(0) scale(1); opacity: 0.6; } 30% { transform: translateY(-8px) scale(1.3); opacity: 1; } 60% { transform: translateY(-2px) scale(0.9); opacity: 0.8; } }

.select-widget, .input-widget { 
  background: white; 
  border: 1px solid #e2e8f0; 
  border-radius: 14px; 
  padding: 14px 16px; 
  width: 100%;
  max-width: 320px; 
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
}
.select-widget label, .input-widget label { 
  font-size: 12px; 
  font-weight: 600; 
  color: #64748b; 
  display: block; 
  margin-bottom: 8px; 
}
.select-widget select, .input-widget input { 
  width: 100%; 
  border: 1.5px solid #e2e8f0; 
  border-radius: 9px; 
  padding: 10px 12px; 
  font-size: 15px; 
  font-family: "Inter", sans-serif; 
  color: #1a202c; 
  outline: none; 
  background: white; 
  transition: border-color 0.2s, box-shadow 0.2s; 
}
.select-widget select:focus, .input-widget input:focus { 
  border-color: #c60651f2; 
  box-shadow: 0 0 0 3px rgba(198, 6, 81, 0.15); 
}
.select-widget .sel-btn, .input-widget .inp-btn { 
  margin-top: 10px; 
  width: 100%; 
  background: linear-gradient(135deg, #c60651f2, #96033b); 
  color: white; 
  border: none; 
  border-radius: 9px; 
  padding: 11px; 
  font-size: 13.5px; 
  font-weight: 700; 
  cursor: pointer; 
  transition: all 0.2s; 
}
.select-widget .sel-btn:hover, .input-widget .inp-btn:hover { 
  filter: brightness(1.1); 
  transform: translateY(-1px); 
  box-shadow: 0 6px 16px rgba(198, 6, 81, 0.35); 
}

.immediate-card { 
  background: white; 
  border: 1px solid #e2e8f0; 
  border-left: 4px solid #000000d9;
  border-radius: 14px; 
  padding: 16px 18px; 
  margin: 6px 0 10px; 
  width: 100%; 
  max-width: 100%; 
}
.immediate-card h6 { font-size: 13.5px; font-weight: 700; color: #000000d9; margin-bottom: 10px; }
.imm-link { 
  display: flex; 
  align-items: center; 
  gap: 8px; 
  font-size: 13px; 
  color: #c60651f2; 
  font-weight: 600; 
  margin-bottom: 6px; 
  cursor: pointer; 
  word-break: break-all;
}
.imm-link i { font-size: 14px; color: #c60651f2; flex-shrink: 0; }

.imm-chat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #c60651f2 0%, #96033b 100%);
  color: white;
  border: none;
  border-radius: 9px;
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(198, 6, 81, 0.28);
  font-family: "Inter", sans-serif;
  text-decoration: none;
}
.imm-chat-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(198, 6, 81, 0.42);
  color: white;
}
.imm-chat-btn:active {
  transform: scale(0.97);
}

/* ── LIVE CHAT POPUP MODAL ── */
.chat-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFadeIn 0.3s ease both;
}

.chat-modal-overlay.active {
  display: flex;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.chat-modal-container {
  width: 100%;
  max-width: 480px;
  height: 640px;
  max-height: 88vh;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(198, 6, 81, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalPopIn 0.35s cubic-bezier(0.22, 0.68, 0, 1.25) both;
}

@keyframes modalPopIn {
  from { opacity: 0; transform: scale(0.88) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.chat-modal-header {
  background: linear-gradient(90deg, #000000d9 0%, #1c050f 50%, #c60651f2 100%);
  color: #ffffff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(198, 6, 81, 0.25);
}

.chat-modal-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.chat-live-dot {
  width: 9px;
  height: 9px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.35);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.1); }
}

.chat-modal-close {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.2s ease;
}

.chat-modal-close:hover {
  background: #c60651f2;
  border-color: #c60651f2;
  transform: rotate(90deg) scale(1.08);
}

.chat-modal-body {
  flex: 1;
  width: 100%;
  height: 100%;
  background: #f8fafc;
  position: relative;
}

.chat-modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.resolution-btns { 
  display: flex; 
  gap: 10px; 
  margin: 8px 0 12px; 
  flex-wrap: wrap; 
  width: 100%;
}
.res-btn-yes, .res-btn-no { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center;
  gap: 7px; 
  background: white; 
  font-size: 13.5px; 
  font-weight: 600; 
  padding: 10px 18px; 
  border-radius: 50px; 
  cursor: pointer; 
  transition: all 0.2s; 
}
.res-btn-yes { 
  border: 1.5px solid #22c55e; 
  color: #16a34a; 
}
.res-btn-yes:hover { 
  background: #f0fdf4; 
  transform: translateY(-2px); 
  box-shadow: 0 6px 16px rgba(34,197,94,0.2); 
}
.res-btn-no { 
  border: 1.5px solid #c60651f2; 
  color: #c60651f2; 
}
.res-btn-no:hover { 
  background: rgba(198, 6, 81, 0.05); 
  transform: translateY(-2px); 
  box-shadow: 0 6px 16px rgba(198, 6, 81, 0.2); 
}

.success-card { 
  background: #000000d9; 
  border: 1.5px solid rgba(198, 6, 81, 0.4); 
  border-radius: 16px; 
  padding: 22px 20px; 
  text-align: center; 
  max-width: 420px; 
  width: 100%;
  position: relative; 
  overflow: hidden; 
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}
.success-card .success-icon { display: inline-block; font-size: 36px; margin-bottom: 10px; }
.success-card h5 { font-size: 17px; font-weight: 800; color: #ffffff; margin-bottom: 6px; }
.success-card p { font-size: 13px; color: #e2e8f0; margin: 0; line-height: 1.55; }

.support-form-card { 
  background: white; 
  border: 1px solid #e2e8f0; 
  border-top: 4px solid #c60651f2;
  border-radius: 16px; 
  padding: 20px; 
  width: 100%; 
  max-width: 78%; 
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}
.support-form-card h5 { font-size: 15px; font-weight: 800; color: #000000d9; margin-bottom: 14px; }
.flabel { font-size: 12px; font-weight: 600; color: #374151; margin-bottom: 4px; display: block; }
.finput { 
  width: 100%; 
  border: 1.5px solid #e2e8f0; 
  border-radius: 9px; 
  padding: 10px 12px; 
  font-size: 14px; 
  font-family: "Inter", sans-serif; 
  color: #1a202c; 
  outline: none; 
  transition: border-color 0.2s, box-shadow 0.2s; 
  background: white; 
}
.finput:focus { 
  border-color: #c60651f2; 
  box-shadow: 0 0 0 3px rgba(198, 6, 81, 0.15); 
}
.fgroup { margin-bottom: 12px; }
.fsubmit { 
  width: 100%; 
  background: linear-gradient(135deg, #c60651f2 0%, #96033b 100%); 
  color: white; 
  border: none; 
  border-radius: 9px; 
  padding: 11px; 
  font-size: 13.5px; 
  font-weight: 700; 
  cursor: pointer; 
  margin-top: 4px; 
  transition: all 0.2s; 
  display: inline-block;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(198, 6, 81, 0.25);
}
.fsubmit:hover { 
  color: white;
  filter: brightness(1.1); 
  transform: translateY(-2px); 
  box-shadow: 0 8px 20px rgba(198, 6, 81, 0.35); 
}

.bubble ol, .bubble ul {
  margin-left: 18px;
  padding-left: 0;
}

/* ── FORM VALIDATION STYLES ── */
.input-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18) !important;
  animation: shakeX 0.4s ease;
}

@keyframes shakeX {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

.widget-error-text {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #dc2626;
  font-size: 11.5px;
  font-weight: 600;
  margin-top: 6px;
  line-height: 1.3;
}
.widget-error-text i {
  font-size: 12px;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════
   ── RESPONSIVE MEDIA QUERIES ──
   ══════════════════════════════════════════════════ */

/* Tablets & Small Laptops (max-width: 992px) */
@media (max-width: 992px) {
  .global-nav { padding: 0 16px; }
  .premium-brand-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .issue-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .device-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .device-card { min-height: 280px; padding: 24px 18px; }
  .device-icon { width: 70px; height: 70px; font-size: 28px; margin-bottom: 18px; }
  .device-card h4 { font-size: 22px; }
}

/* Mobile Landscape & Tablets (max-width: 768px) */
@media (max-width: 768px) {
  .global-nav {
    padding: 0 12px;
    height: 54px;
    min-height: 54px;
  }
  .nav-logo img { max-width: 120px; }
  .nav-crumb { font-size: 10.5px; padding: 2px 8px; }
  .new-chat-btn { font-size: 11.5px; padding: 5px 10px; }

  .screen.active { min-height: calc(100vh - 54px); }
  #s4.active {
    height: calc(100vh - 54px);
    height: calc(100dvh - 54px);
  }

  #s1 { padding: 36px 16px 40px; }
  #s2 { padding: 20px 14px 30px; }
  #s3 { padding: 26px 14px 36px; }

  .issue-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .device-grid { grid-template-columns: 1fr; gap: 16px; }
  .device-card { min-height: auto; padding: 20px 18px; }

  .chat-body { padding: 10px 6px; }
  .chat-wrap { padding: 18px 14px; min-height: calc(100vh - 80px); }
  .bubble { max-width: 86%; font-size: 13px; }
  .support-form-card { max-width: 100%; width: 100%; padding: 18px 14px; }
  .select-widget, .input-widget { max-width: 100%; }
}

/* Small Mobile Phones (max-width: 480px) */
@media (max-width: 480px) {
  .global-nav { padding: 0 10px; }
  .nav-left { gap: 6px; }
  .nav-logo img { max-width: 100px; }
  .nav-crumbs { max-width: 140px; }
  .nav-crumb { font-size: 10px; padding: 2px 6px; }
  .new-chat-btn { font-size: 11px; padding: 4px 8px; }
  .new-chat-btn i { font-size: 11px; }

  #s1 { padding: 28px 12px 34px; }
  .pill-badge { font-size: 11.5px; padding: 6px 16px; }
  .pill-badge-wrap { margin-bottom: 16px; }
  .s1-inner > p { margin-bottom: 20px; }
  
  .premium-brand-grid { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 12px; 
    margin-top: 14px; 
  }
  .brand-card { 
    height: 120px; 
    border-radius: 18px; 
  }
  .brand-card span { font-size: 22px; }

  .s2-top { margin-bottom: 16px; }
  .s2-top h2 { font-size: 22px; }
  .issue-grid { grid-template-columns: 1fr; gap: 10px; }
  .issue-card { 
    min-height: auto; 
    padding: 16px; 
    border-radius: 18px; 
  }
  .issue-icon { width: 46px; height: 46px; font-size: 18px; border-radius: 14px; margin-bottom: 10px; }
  .issue-card h5 { font-size: 16px; }
  .issue-card p { font-size: 12.5px; }

  .device-heading { margin-bottom: 24px; }
  .device-heading h2 { font-size: 24px; }
  .device-card { 
    padding: 18px 16px; 
    border-radius: 20px; 
  }
  .device-icon { width: 60px; height: 60px; font-size: 24px; border-radius: 18px; margin-bottom: 14px; }
  .device-card h4 { font-size: 20px; }
  .device-card .device-badge { top: 14px; right: 14px; font-size: 9.5px; padding: 4px 8px; }

  .chat-wrap { padding: 14px 10px; }
  .bot-avatar { width: 30px; height: 30px; font-size: 11px; }
  .bubble { max-width: 90%; font-size: 13px; padding: 10px 13px; }
  
  .resolution-btns {
    flex-direction: column;
    gap: 8px;
  }
  .res-btn-yes, .res-btn-no {
    width: 100%;
    justify-content: center;
    padding: 11px;
    font-size: 13px;
  }

  .select-widget, .input-widget {
    padding: 12px;
  }
  /* 16px prevents iOS browser auto-zoom */
  .select-widget select, .input-widget input, .finput {
    font-size: 16px;
  }
}