:root {
  --blue: #2563eb;
  --blue-dark: #0f3f91;
  --navy: #081a33;
  --ink: #172033;
  --muted: #64748b;
  --line: #d9e2ef;
  --bg: #f5f8fc;
  --panel: #ffffff;
  --soft-blue: #eaf2ff;
  --success: #0f766e;
  --warning: #b45309;
  --danger: #b42318;
  --shadow: 0 18px 50px rgba(8, 26, 51, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0;
}

.product-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  place-items: center;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  overflow: hidden;
  color: #fff;
  border-radius: 15px;
  background: var(--logo-bg, linear-gradient(135deg, #2563eb, #0f172a));
  box-shadow: inset 0 -8px 16px rgba(0, 0, 0, 0.08), 0 10px 24px rgba(8, 26, 51, 0.10);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.product-logo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0) 45%);
}

.product-logo::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  inset: auto;
  z-index: 1;
  transform: translate(-50%, -50%);
}

.product-logo,
.product-logo * {
  text-decoration: none !important;
}

.product-logo span {
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 20px;
  min-height: 18px;
  padding: 0 4px;
  border-radius: 6px;
  background: rgba(6, 20, 43, 0.66);
  font-size: 11px;
  line-height: 1;
  text-decoration: none;
}

.product-logo-large {
  width: 112px;
  height: 112px;
  margin-bottom: 16px;
  border-radius: 18px;
  font-size: 34px;
}

.product-logo-large span {
  right: 12px;
  bottom: 12px;
  min-width: 34px;
  min-height: 28px;
  font-size: 16px;
}

.product-logo-large::after {
  transform: translate(-50%, -50%) scale(1.65);
}

.product-logo-tiny {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  font-size: 12px;
  box-shadow: none;
}

.product-logo-tiny span {
  right: 4px;
  bottom: 4px;
  min-width: 18px;
  min-height: 16px;
  padding: 0 3px;
  border-radius: 5px;
  font-size: 9px;
}

.small-logo {
  width: 58px;
  height: 58px;
  margin: 0 auto 12px;
}

.product-logo.excel {
  --logo-bg: linear-gradient(135deg, #0f7a43, #21a366);
}

.product-logo.word {
  --logo-bg: linear-gradient(135deg, #164fba, #3478e5);
}

.product-logo.powerpoint {
  --logo-bg: linear-gradient(135deg, #b93d24, #ee7147);
}

.product-logo.outlook {
  --logo-bg: linear-gradient(135deg, #1266b8, #28a3df);
}

.product-logo.onedrive {
  --logo-bg: linear-gradient(135deg, #177bc9, #6fc7ee);
}

.product-logo.teams {
  --logo-bg: linear-gradient(135deg, #4c4fc8, #7b70df);
}

.product-logo.m365 {
  --logo-bg: conic-gradient(from 210deg, #e2552f, #f5b84b, #0f9f7a, #3a7bd5, #7c3aed, #e2552f);
  font-size: 17px;
}

.product-logo.copilot {
  --logo-bg: linear-gradient(135deg, #111827, #0f766e 45%, #7c3aed);
}

.product-logo.windows {
  --logo-bg: linear-gradient(135deg, #0c67b5, #45a4ed);
  font-size: 15px;
}

.product-logo.microsoft {
  --logo-bg: #ffffff;
  font-size: 18px;
}

.product-logo.windows-11,
.product-logo.windows-10,
.product-logo.windows-update,
.product-logo.windows-security,
.product-logo.windows-activation,
.product-logo.windows-defender {
  --logo-bg: linear-gradient(135deg, #0c67b5, #45a4ed);
  font-size: 13px;
}

.product-logo.windows-security,
.product-logo.windows-defender {
  --logo-bg: linear-gradient(135deg, #0f172a, #1d4ed8);
  font-size: 19px;
}

.product-logo.windows-activation {
  --logo-bg: linear-gradient(135deg, #1d4ed8, #0f766e);
  font-size: 19px;
}

.product-logo.edge,
.product-logo.microsoft-edge {
  --logo-bg: linear-gradient(135deg, #0891b2, #2563eb);
}

.product-logo.onenote {
  --logo-bg: linear-gradient(135deg, #6d28d9, #a855f7);
}

.product-logo.sharepoint {
  --logo-bg: linear-gradient(135deg, #0f766e, #14b8a6);
}

.product-logo.powerbi {
  --logo-bg: linear-gradient(135deg, #c58b00, #f5c542);
  color: #fff;
}

.product-logo.defender {
  --logo-bg: linear-gradient(135deg, #334155, #0f766e);
}

.product-logo.surface {
  --logo-bg: linear-gradient(135deg, #475569, #94a3b8);
  font-size: 17px;
}

.product-logo.xbox {
  --logo-bg: linear-gradient(135deg, #177245, #35b66b);
  font-size: 12px;
}

.product-logo.azure {
  --logo-bg: linear-gradient(135deg, #075985, #38bdf8);
}

.product-logo.dynamics {
  --logo-bg: linear-gradient(135deg, #1d4ed8, #0f766e);
  font-size: 12px;
}

.product-logo.store {
  --logo-bg: linear-gradient(135deg, #1e3a8a, #64748b);
  font-size: 11px;
}

.product-logo.skype {
  --logo-bg: linear-gradient(135deg, #0284c7, #7dd3fc);
}

.product-logo.microsoft::before {
  inset: 10px;
  background:
    linear-gradient(90deg, #f05a28 0 48%, transparent 48% 52%, #55ad47 52% 100%) top / 100% 48% no-repeat,
    linear-gradient(90deg, #2d8bd8 0 48%, transparent 48% 52%, #f6c343 52% 100%) bottom / 100% 48% no-repeat;
  border-radius: 2px;
}

.product-logo.microsoft::after,
.product-logo.microsoft span {
  display: none;
}

.product-logo.excel::after {
  width: 32px;
  height: 28px;
  border: 2px solid rgba(255, 255, 255, 0.94);
  border-radius: 4px;
  background:
    linear-gradient(rgba(255,255,255,0.86), rgba(255,255,255,0.86)) 0 8px / 100% 2px no-repeat,
    linear-gradient(rgba(255,255,255,0.72), rgba(255,255,255,0.72)) 0 18px / 100% 2px no-repeat,
    linear-gradient(90deg, rgba(255,255,255,0.72), rgba(255,255,255,0.72)) 10px 0 / 2px 100% no-repeat,
    linear-gradient(90deg, rgba(255,255,255,0.72), rgba(255,255,255,0.72)) 21px 0 / 2px 100% no-repeat;
}

.product-logo.word::after,
.product-logo.onenote::after {
  width: 28px;
  height: 34px;
  border-radius: 4px;
  background:
    linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)) 7px 9px / 15px 2px no-repeat,
    linear-gradient(rgba(255,255,255,0.78), rgba(255,255,255,0.78)) 7px 16px / 18px 2px no-repeat,
    linear-gradient(rgba(255,255,255,0.78), rgba(255,255,255,0.78)) 7px 23px / 13px 2px no-repeat,
    rgba(255, 255, 255, 0.28);
  border: 2px solid rgba(255, 255, 255, 0.86);
}

.product-logo.powerpoint::after {
  width: 34px;
  height: 28px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 4px;
  background:
    radial-gradient(circle at 35% 50%, rgba(255,255,255,0.95) 0 8px, transparent 8px),
    linear-gradient(rgba(255,255,255,0.78), rgba(255,255,255,0.78)) 21px 9px / 8px 2px no-repeat,
    linear-gradient(rgba(255,255,255,0.62), rgba(255,255,255,0.62)) 21px 15px / 7px 2px no-repeat,
    rgba(255, 255, 255, 0.20);
}

.product-logo.outlook::after {
  width: 34px;
  height: 24px;
  border: 2px solid rgba(255,255,255,0.92);
  border-radius: 5px;
  background:
    linear-gradient(35deg, transparent 48%, rgba(255,255,255,0.86) 50%, transparent 52%),
    linear-gradient(-35deg, transparent 48%, rgba(255,255,255,0.86) 50%, transparent 52%),
    rgba(255, 255, 255, 0.18);
}

.product-logo.onedrive::after {
  width: 35px;
  height: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.96);
  box-shadow:
    -10px 2px 0 -3px rgba(255,255,255,0.96),
    9px 1px 0 -2px rgba(255,255,255,0.96),
    0 -9px 0 -2px rgba(255,255,255,0.96);
}

.product-logo.teams::after {
  width: 31px;
  height: 23px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 23% 18%, rgba(255,255,255,0.95) 0 5px, transparent 5px),
    radial-gradient(circle at 68% 20%, rgba(255,255,255,0.88) 0 4px, transparent 4px),
    linear-gradient(rgba(255,255,255,0.82), rgba(255,255,255,0.82)) 4px 12px / 24px 10px no-repeat;
}

.product-logo.m365::after {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 5px solid rgba(255,255,255,0.9);
  border-left-color: rgba(255,255,255,0.35);
}

.product-logo.copilot::after {
  content: "AI";
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, rgba(34,211,238,0.9), rgba(124,58,237,0.9));
  font-size: 15px;
  font-weight: 900;
}

.product-logo.windows::after,
.product-logo.windows-11::after,
.product-logo.windows-10::after {
  width: 33px;
  height: 33px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.95) 0 47%, transparent 47% 53%, rgba(255,255,255,0.95) 53% 100%) top / 100% 47% no-repeat,
    linear-gradient(90deg, rgba(255,255,255,0.95) 0 47%, transparent 47% 53%, rgba(255,255,255,0.95) 53% 100%) bottom / 100% 47% no-repeat;
}

.product-logo.windows-update::after {
  content: "";
  width: 31px;
  height: 31px;
  border: 4px solid rgba(255,255,255,0.9);
  border-right-color: transparent;
  border-radius: 50%;
}

.product-logo.windows-security::after,
.product-logo.windows-defender::after,
.product-logo.defender::after {
  width: 30px;
  height: 36px;
  background: rgba(255,255,255,0.94);
  clip-path: polygon(50% 0, 88% 12%, 82% 64%, 50% 100%, 18% 64%, 12% 12%);
}

.product-logo.windows-activation::after {
  width: 33px;
  height: 17px;
  border: 4px solid rgba(255,255,255,0.92);
  border-radius: 999px 999px 999px 999px;
  box-shadow: 17px 7px 0 -6px rgba(255,255,255,0.92), 24px 7px 0 -7px rgba(255,255,255,0.92);
}

.product-logo.microsoft-edge::after,
.product-logo.edge::after,
.product-logo.skype::after {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 58% 45%, transparent 0 9px, rgba(255,255,255,0.92) 10px 13px, transparent 14px),
    conic-gradient(from 220deg, rgba(255,255,255,0.95), rgba(255,255,255,0.25), rgba(255,255,255,0.95));
}

.product-logo.sharepoint::after {
  width: 34px;
  height: 28px;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.95) 0 6px, transparent 6px),
    radial-gradient(circle at 53% 34%, rgba(255,255,255,0.88) 0 7px, transparent 7px),
    radial-gradient(circle at 75% 62%, rgba(255,255,255,0.82) 0 6px, transparent 6px);
}

.product-logo.powerbi::after {
  width: 32px;
  height: 32px;
  background:
    linear-gradient(rgba(255,255,255,0.92), rgba(255,255,255,0.92)) 3px 17px / 6px 12px no-repeat,
    linear-gradient(rgba(255,255,255,0.92), rgba(255,255,255,0.92)) 13px 10px / 6px 19px no-repeat,
    linear-gradient(rgba(255,255,255,0.92), rgba(255,255,255,0.92)) 23px 4px / 6px 25px no-repeat;
}

.product-logo.surface::after {
  width: 35px;
  height: 24px;
  border: 3px solid rgba(255,255,255,0.88);
  border-radius: 4px;
  box-shadow: 0 9px 0 -6px rgba(255,255,255,0.9);
}

.product-logo.xbox::after {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.9);
  background:
    linear-gradient(45deg, transparent 43%, rgba(255,255,255,0.9) 45% 55%, transparent 57%),
    linear-gradient(-45deg, transparent 43%, rgba(255,255,255,0.9) 45% 55%, transparent 57%);
}

.product-logo.azure::after {
  width: 36px;
  height: 32px;
  background: rgba(255,255,255,0.92);
  clip-path: polygon(45% 2%, 84% 82%, 59% 82%, 51% 62%, 35% 98%, 8% 98%);
}

.product-logo.dynamics::after {
  width: 35px;
  height: 34px;
  background:
    linear-gradient(rgba(255,255,255,0.95), rgba(255,255,255,0.95)) 5px 4px / 18px 12px no-repeat,
    linear-gradient(rgba(255,255,255,0.76), rgba(255,255,255,0.76)) 11px 13px / 19px 12px no-repeat,
    linear-gradient(rgba(255,255,255,0.58), rgba(255,255,255,0.58)) 17px 22px / 13px 8px no-repeat;
}

.product-logo.store::after {
  width: 32px;
  height: 28px;
  border-radius: 5px;
  border: 3px solid rgba(255,255,255,0.9);
  border-top-width: 8px;
  box-shadow: 0 -10px 0 -7px rgba(255,255,255,0.9);
}

.product-logo-tiny::after {
  display: none;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.main-nav a {
  padding: 9px 12px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 700;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--blue-dark);
  background: var(--soft-blue);
}

main {
  flex: 1;
}

.hero,
.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  padding: clamp(48px, 8vw, 92px) clamp(18px, 4vw, 56px);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(255, 255, 255, 0.9) 46%),
    #ffffff;
  border-bottom: 1px solid var(--line);
}

.page-hero.compact {
  grid-template-columns: minmax(0, 1fr);
  padding-block: clamp(34px, 6vw, 64px);
}

.product-detail {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: 0;
  color: var(--navy);
}

h2 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  color: var(--navy);
}

h3 {
  font-size: 20px;
  color: var(--navy);
}

.hero-copy,
.page-hero p {
  max-width: 760px;
  color: #334155;
  font-size: 18px;
}

.disclaimer-note {
  max-width: 820px;
  padding: 12px 14px;
  color: #1d4ed8;
  background: var(--soft-blue);
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}

.hero-actions,
.card-actions,
.admin-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  color: #fff;
  background: var(--blue);
}

.button.primary:hover {
  background: var(--blue-dark);
}

.button.secondary {
  color: var(--blue-dark);
  background: #fff;
  border-color: #bfdbfe;
}

.button.quiet {
  color: var(--muted);
  background: #fff;
  border-color: var(--line);
}

.hero-panel,
.product-badge,
.info-panel,
.success-card,
.export-panel {
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-panel label,
.portal-form label,
.filter-bar label,
.panel-top label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-weight: 800;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
}

.page-search {
  max-width: 460px;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.quick-links a {
  padding: 8px 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--blue-dark);
  text-decoration: none;
  font-weight: 700;
}

.section {
  padding: clamp(36px, 6vw, 70px) clamp(18px, 4vw, 56px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading a {
  color: var(--blue-dark);
  font-weight: 800;
  text-decoration: none;
}

.section-heading.tight {
  margin-bottom: 14px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-grid.wide {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

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

.product-card {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  background: #fff;
  border: 1px solid #dbe3ef;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: #bfdbfe;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.product-card[hidden] {
  display: none;
}

.product-card p {
  color: var(--muted);
  font-size: 14px;
}

.product-card h2,
.product-card h3 {
  color: #061a3a;
  font-size: 25px;
  line-height: 1.12;
  margin-bottom: 0;
}

.product-title-link,
.product-card-main {
  color: inherit;
  text-decoration: none;
}

.product-title-link:hover,
.product-card-main:hover h2,
.product-card-main:hover h3 {
  color: var(--blue-dark);
}

.product-card-main {
  display: grid;
  gap: 14px;
}

.product-desc {
  color: #5b677a;
  line-height: 1.55;
  font-size: 15px;
  margin: 0;
}

.card-actions {
  margin-top: auto;
}

.card-actions a {
  text-decoration: none;
}

.mini-button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.mini-button.primary,
.btn-primary {
  color: #fff;
  background: #0b5ed7;
}

.mini-button.secondary,
.btn-outline {
  color: #0b5ed7;
  background: #fff;
  border-color: #b8d2ff;
}

.issue-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.issue-tags span {
  max-width: 100%;
  padding: 6px 10px;
  color: #16437e;
  background: #eef4ff;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.featured-card {
  min-height: 360px;
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.mini-list,
.issue-list {
  margin: 0;
  padding-left: 20px;
  color: #334155;
}

.mini-list {
  font-size: 13px;
}

.band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 clamp(18px, 4vw, 56px) clamp(40px, 6vw, 76px);
  padding: 28px;
  color: #fff;
  background: var(--navy);
  border-radius: 8px;
}

.band h2 {
  color: #fff;
}

.band p {
  max-width: 760px;
  color: #cbd5e1;
}

.band .eyebrow {
  color: #93c5fd;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.trust-grid article {
  padding: 20px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.06);
}

.trust-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 18px;
}

.trust-grid p {
  margin: 0;
  color: #475569;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 30px;
  align-items: start;
}

.product-badge {
  display: grid;
  place-items: center;
  min-height: 220px;
  text-align: center;
}

.issue-list {
  display: grid;
  gap: 10px;
  padding-left: 0;
  list-style: none;
}

.issue-list li {
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.form-section {
  padding-top: 28px;
}

.selected-product-panel {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 920px;
  margin-bottom: 16px;
  padding: 16px;
  background: #fff;
  border: 1px solid #dbe3ef;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.selected-product-panel h2 {
  margin-bottom: 0;
  font-size: 24px;
}

.form-section.narrow {
  max-width: 560px;
  margin-inline: auto;
}

.form-intro {
  max-width: 760px;
  margin-bottom: 20px;
}

.portal-form {
  max-width: 920px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.full {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(37, 99, 235, 0.18);
  border-color: var(--blue);
}

.field-error,
.form-error {
  color: var(--danger);
  font-size: 13px;
  font-weight: 800;
}

.form-error {
  padding: 12px;
  margin-bottom: 14px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 8px;
}

.form-note {
  color: var(--muted);
  font-size: 14px;
}

.success-card {
  max-width: 720px;
}

.success-label {
  display: block;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
}

.success-card > strong {
  display: block;
  margin: 8px 0 20px;
  color: var(--navy);
  font-size: clamp(28px, 5vw, 46px);
  letter-spacing: 0;
}

.ticket-summary {
  display: grid;
  gap: 10px;
  margin: 0 0 20px;
}

.ticket-summary div,
.conversation-meta dl div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 12px;
  padding-block: 8px;
  border-bottom: 1px solid var(--line);
}

dt {
  color: var(--muted);
  font-weight: 800;
}

dd {
  margin: 0;
}

.chat-layout {
  display: grid;
  grid-template-columns: minmax(0, 920px);
}

.chat-page {
  min-height: calc(100vh - 74px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 16px 16px 56px;
  background: #f7f9fc;
}

.chat-card {
  width: 100%;
  max-width: 420px;
  padding: 22px 18px 18px;
  background: linear-gradient(180deg, #fff7f7 0%, #ffffff 45%);
  border: 1px solid #f2caca;
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.chat-product-logo {
  display: flex;
  margin: 0 auto 12px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  font-size: 13px;
}

.chat-card h1 {
  margin: 0 0 6px;
  color: #071a38;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
}

.chat-subtitle,
.chat-disclaimer-small,
.chat-footer-disclaimer {
  margin: 0 0 7px;
  color: #526070;
  font-size: 15px;
  text-align: center;
}

.chat-disclaimer-small {
  font-size: 14px;
}

.chat-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-bottom: 14px;
  color: #169b45;
  font-weight: 800;
}

.chat-status span {
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.14);
}

.chat-start-form {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.chat-start-form[hidden],
.chat-window[hidden] {
  display: none !important;
}

.chat-card.chat-session-active {
  max-width: min(760px, 100%);
}

.chat-card.chat-session-active > .chat-product-logo,
.chat-card.chat-session-active > h1,
.chat-card.chat-session-active > .chat-subtitle,
.chat-card.chat-session-active > .chat-disclaimer-small,
.chat-card.chat-session-active > .chat-status,
.chat-card.chat-session-active > .chat-start-form {
  display: none !important;
}

.chat-card.chat-session-active .chat-window {
  display: block !important;
  margin-top: 0;
}

.chat-start-form label {
  color: #071a38;
  font-size: 14px;
  font-weight: 900;
}

.chat-start-form input,
.chat-start-form select,
.chat-start-form textarea {
  width: 100%;
  min-height: 43px;
  padding: 10px 12px;
  color: #0f172a;
  background: #fff;
  border: 1px solid #cfd8e3;
  border-radius: 5px;
  font-size: 14px;
  outline: none;
}

.chat-start-form input[readonly] {
  color: #334155;
  background: #f8fafc;
  font-weight: 800;
}

.chat-start-form textarea {
  min-height: 104px;
  resize: vertical;
}

.issue-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 14px;
}

.issue-chip {
  border: 1px solid #d9e1ec;
  background: #ffffff;
  color: #071a38;
  border-radius: 999px;
  padding: 9px 13px;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  transition: 0.18s ease;
}

.issue-chip:hover {
  border-color: #2563eb;
  background: #f1f7ff;
  color: #0b3b78;
}

.issue-chip.active {
  border-color: #2563eb;
  background: #ffffff;
  color: #0b3f91;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.chat-safety-note {
  color: #526070;
  font-size: 13px;
  line-height: 1.45;
  margin: 6px 0 18px;
}

.chat-start-form input:focus,
.chat-start-form select:focus,
.chat-start-form textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.chat-submit-btn {
  width: 100%;
  margin-top: 4px;
  padding: 13px 18px;
  color: #fff;
  background: #ef3333;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 900;
}

.chat-submit-btn:hover {
  background: #dc2626;
}

.chat-secure-note {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 12px;
  text-align: center;
}

.chat-product-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.chat-product-heading h1 {
  margin-bottom: 4px;
}

.selected-product-copy {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.chat-window {
  max-width: 920px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.chat-card .chat-window {
  max-width: none;
  margin-top: 18px;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  box-shadow: none;
}

.chat-window-header.compact {
  padding: 12px 14px;
}

.chat-window-header.compact h2 {
  font-size: 18px;
}

.chat-window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.chat-window-header h2 {
  margin-bottom: 0;
  font-size: 22px;
}

.status-pill {
  padding: 6px 10px;
  color: var(--success);
  background: #dffcf8;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 420px;
  padding: 20px;
  overflow: auto;
  background: #f8fafc;
}

.chat-messages {
  height: 330px;
  overflow-y: auto;
  padding: 14px;
  background: #f8fafc;
}

.chat-message {
  display: grid;
  gap: 4px;
  max-width: 82%;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.4;
}

.chat-message span {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.chat-message p {
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
}

.chat-message.customer {
  margin-left: auto;
}

.chat-message.customer span {
  text-align: right;
}

.chat-message.customer p {
  color: #fff;
  background: #2563eb;
}

.chat-message.admin,
.chat-message.bot {
  margin-right: auto;
}

.chat-message.admin p,
.chat-message.bot p {
  color: #0f172a;
  background: #fff;
  border: 1px solid #dbe3ef;
}

.message {
  display: grid;
  max-width: min(680px, 90%);
  gap: 5px;
}

.message span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.message p {
  margin: 0;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.message.visitor,
.message.admin {
  align-self: flex-end;
}

.message.visitor p,
.message.admin p {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.message.bot {
  align-self: flex-start;
}

.chat-reply {
  display: flex;
  gap: 10px;
  padding: 14px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.chat-reply-form {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #dbe3ef;
}

.chat-reply-form input {
  flex: 1;
  min-height: 42px;
  padding: 11px 12px;
  border: 1px solid #cfd8e3;
  border-radius: 10px;
}

.chat-reply-form button {
  padding: 0 15px;
  color: #fff;
  background: #2563eb;
  border: 0;
  border-radius: 10px;
  font-weight: 800;
}

.chat-inline-error {
  margin: 10px;
}

.chat-reply input {
  flex: 1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 34px clamp(18px, 4vw, 56px);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.admin-header h1 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 44px);
}

.admin-actions form {
  margin: 0;
}

.admin-section {
  display: grid;
  gap: 22px;
}

.filter-bar {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.filter-bar label {
  min-width: min(260px, 100%);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stat-card {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stat-card span {
  color: var(--muted);
  font-weight: 800;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  color: var(--navy);
  font-size: 38px;
}

.table-wrap {
  overflow: auto;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

th,
td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
}

small {
  color: var(--muted);
}

.inline-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inline-form select {
  min-width: 136px;
}

.inline-form button,
.status-controls button {
  min-height: 36px;
  padding: 8px 10px;
  color: var(--blue-dark);
  background: #fff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
}

.admin-product-cell {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 180px;
}

.admin-live {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
  min-height: 640px;
}

.visitor-panel,
.conversation-panel {
  min-height: 640px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.panel-top {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.toggle-row {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.toggle-row input {
  width: 18px;
  min-height: 18px;
}

.visitor-list {
  display: grid;
  gap: 8px;
  padding: 12px;
  max-height: 560px;
  overflow: auto;
}

.visitor-item {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 12px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.visitor-item.active,
.visitor-item:hover {
  border-color: var(--blue);
  background: var(--soft-blue);
}

.visitor-item span {
  color: var(--muted);
  font-size: 13px;
}

.visitor-product-row,
.conversation-heading-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.visitor-product-row strong {
  color: var(--navy);
}

.conversation-heading-row h2 {
  margin-bottom: 0;
}

.conversation-panel {
  display: grid;
  grid-template-rows: auto 1fr auto auto auto;
}

.conversation-meta {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.conversation-meta h2 {
  margin-bottom: 10px;
  font-size: 22px;
}

.conversation-meta dl {
  margin: 0;
}

.admin-messages {
  height: auto;
  min-height: 320px;
}

.status-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}

.legal-content {
  display: grid;
  gap: 18px;
  max-width: 900px;
}

.legal-content article {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.empty-state {
  padding: 18px;
  color: var(--muted);
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.empty-state.inline {
  margin: 0;
}

.site-footer {
  margin-top: 56px;
  padding: 44px 24px 18px;
  color: #dbeafe;
  background: #071a38;
}

/* ===== Fixed Global Footer ===== */

.site-footer {
  background: #071a38 !important;
  color: #dbeafe !important;
  padding: 42px 24px 18px !important;
  margin-top: 56px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.site-footer * {
  box-sizing: border-box !important;
}

.footer-inner {
  width: min(1180px, 100%) !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: 1.35fr 1fr 1fr 1fr !important;
  gap: 34px !important;
  align-items: start !important;
}

.footer-col {
  min-width: 0 !important;
  width: auto !important;
}

.footer-logo-row {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 14px !important;
}

.footer-logo {
  width: 46px !important;
  height: 46px !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #2563eb, #38bdf8) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 900 !important;
  font-size: 17px !important;
  flex: 0 0 46px !important;
  text-decoration: none !important;
}

.footer-logo-row strong {
  display: block !important;
  color: #ffffff !important;
  font-size: 18px !important;
  line-height: 1.2 !important;
  font-weight: 900 !important;
  margin: 0 !important;
}

.footer-logo-row span {
  display: block !important;
  color: #9fb3d0 !important;
  font-size: 13px !important;
  margin-top: 3px !important;
}

.footer-brand p {
  max-width: 340px !important;
  color: #c7d7ee !important;
  line-height: 1.65 !important;
  font-size: 14px !important;
  margin: 0 !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  white-space: normal !important;
}

.footer-col h3 {
  color: #ffffff !important;
  font-size: 16px !important;
  margin: 0 0 14px !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
}

.footer-col ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: grid !important;
  gap: 10px !important;
}

.footer-col li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.footer-col a {
  color: #c7d7ee !important;
  text-decoration: none !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  display: inline-block !important;
  white-space: normal !important;
}

.footer-col a:hover {
  color: #60a5fa !important;
}

.footer-bottom {
  width: min(1180px, 100%) !important;
  margin: 32px auto 0 !important;
  padding-top: 18px !important;
  border-top: 1px solid rgba(219, 234, 254, 0.16) !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 16px !important;
  color: #9fb3d0 !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .footer-bottom {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
}

@media (max-width: 560px) {
  .site-footer {
    padding: 34px 18px 18px !important;
  }

  .footer-inner {
    grid-template-columns: 1fr !important;
    gap: 26px !important;
  }

  .footer-brand p {
    max-width: 100% !important;
  }
}

/* ===== EOF Mobile Drawer Override ===== */
@media (max-width: 900px) {
  .site-header,
  .guide-header {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .mobile-menu-toggle {
    display: inline-flex !important;
  }

  .brand,
  .guide-brand {
    flex: 1 1 auto !important;
    width: auto !important;
  }

  .mobile-menu-panel {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    display: none !important;
    padding: 12px !important;
    background: #ffffff !important;
    border: 1px solid #dbe3ef !important;
    border-radius: 16px !important;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18) !important;
  }

  .mobile-menu-open .mobile-menu-panel {
    display: grid !important;
    gap: 10px !important;
  }

  .mobile-menu-panel .main-nav,
  .mobile-menu-panel .guide-nav,
  .mobile-menu-panel .guide-actions {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    overflow: visible !important;
    padding: 0 !important;
  }

  .mobile-menu-panel .main-nav a,
  .mobile-menu-panel .guide-nav a,
  .mobile-menu-panel .guide-actions a,
  .mobile-menu-panel .guide-actions select,
  .mobile-menu-panel .nav-dropdown-toggle {
    width: 100% !important;
    justify-content: flex-start !important;
    text-align: left !important;
  }

  .mobile-menu-panel .nav-dropdown-menu {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    min-width: 0 !important;
    width: 100% !important;
  }
}

/* ===== Absolute Last Footer Accordion Override ===== */
@media (max-width: 560px) {
  .site-footer .footer-inner {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .site-footer .footer-col:not(.footer-brand) {
    border-bottom: 1px solid rgba(219, 234, 254, 0.14) !important;
  }

  .site-footer .footer-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 46px !important;
    padding: 10px 0 !important;
    color: #ffffff !important;
    cursor: pointer !important;
  }

  .site-footer .footer-toggle::after {
    content: "" !important;
    display: inline-block !important;
    width: 9px !important;
    height: 9px !important;
    border-right: 2px solid #9fb3d0 !important;
    border-bottom: 2px solid #9fb3d0 !important;
    transform: rotate(45deg) !important;
  }

  .site-footer .footer-col:not(.footer-brand) ul {
    display: none !important;
    padding: 0 0 14px !important;
  }

  .site-footer .footer-col.footer-open ul {
    display: grid !important;
  }

  .site-footer .footer-col.footer-open .footer-toggle::after {
    transform: rotate(225deg) !important;
  }
}

/* ===== EOF Footer Accordion Fix ===== */
.site-footer {
  background: #071a38 !important;
  color: #dbeafe !important;
  padding: 42px 24px 18px !important;
  margin-top: 56px !important;
}

.site-footer .footer-inner {
  width: min(1180px, 100%) !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: 1.35fr 1fr 1fr 1fr !important;
  gap: 34px !important;
  align-items: start !important;
}

.site-footer .footer-col {
  min-width: 0 !important;
}

.site-footer .footer-toggle {
  width: 100% !important;
  padding: 0 0 14px !important;
  color: #ffffff !important;
  background: transparent !important;
  border: 0 !important;
  text-align: left !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  cursor: default !important;
}

.site-footer .footer-toggle::after {
  display: none !important;
}

.site-footer .footer-col ul {
  display: grid !important;
  gap: 10px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.site-footer .footer-col li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.site-footer .footer-col a {
  color: #c7d7ee !important;
  text-decoration: none !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}

.site-footer .footer-bottom {
  width: min(1180px, 100%) !important;
  margin: 32px auto 0 !important;
  padding-top: 18px !important;
  border-top: 1px solid rgba(219, 234, 254, 0.16) !important;
  display: flex !important;
  justify-content: space-between !important;
  gap: 16px !important;
  color: #9fb3d0 !important;
  font-size: 13px !important;
}

@media (max-width: 900px) {
  .site-footer .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  .site-footer {
    padding: 28px 16px 18px !important;
    margin-top: 36px !important;
  }

  .site-footer .footer-inner {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .site-footer .footer-brand {
    padding-bottom: 12px !important;
    border-bottom: 1px solid rgba(219, 234, 254, 0.14) !important;
  }

  .site-footer .footer-brand p {
    max-width: 100% !important;
  }

  .site-footer .footer-col:not(.footer-brand) {
    border-bottom: 1px solid rgba(219, 234, 254, 0.14) !important;
  }

  .site-footer .footer-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 46px !important;
    padding: 10px 0 !important;
    cursor: pointer !important;
  }

  .site-footer .footer-toggle::after {
    content: "" !important;
    display: inline-block !important;
    width: 9px !important;
    height: 9px !important;
    border-right: 2px solid #9fb3d0 !important;
    border-bottom: 2px solid #9fb3d0 !important;
    transform: rotate(45deg) !important;
    transition: transform 0.2s ease !important;
  }

  .site-footer .footer-col:not(.footer-brand) ul {
    display: none !important;
    padding: 0 0 14px !important;
  }

  .site-footer .footer-col.footer-open ul {
    display: grid !important;
  }

  .site-footer .footer-col.footer-open .footer-toggle::after {
    transform: rotate(225deg) !important;
  }

  .site-footer .footer-bottom {
    margin-top: 18px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }
}

/* ===== Absolute Last Mobile Drawer Override ===== */

@media (max-width: 900px) {
  .site-header,
  .guide-header {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .mobile-menu-toggle {
    display: inline-flex !important;
  }

  .brand,
  .guide-brand {
    flex: 1 1 auto !important;
    width: auto !important;
  }

  .mobile-menu-panel {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    display: none !important;
    padding: 12px !important;
    background: #ffffff !important;
    border: 1px solid #dbe3ef !important;
    border-radius: 16px !important;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18) !important;
  }

  .mobile-menu-open .mobile-menu-panel {
    display: grid !important;
    gap: 10px !important;
  }

  .mobile-menu-panel .main-nav,
  .mobile-menu-panel .guide-nav,
  .mobile-menu-panel .guide-actions {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    overflow: visible !important;
    padding: 0 !important;
  }

  .mobile-menu-panel .main-nav a,
  .mobile-menu-panel .guide-nav a,
  .mobile-menu-panel .guide-actions a,
  .mobile-menu-panel .guide-actions select,
  .mobile-menu-panel .nav-dropdown-toggle {
    width: 100% !important;
    justify-content: flex-start !important;
    text-align: left !important;
  }

  .mobile-menu-panel .nav-dropdown-menu {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    min-width: 0 !important;
    width: 100% !important;
  }
}

/* ===== Final Drawer Header Override ===== */

@media (max-width: 900px) {
  .site-header,
  .guide-header {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
  }

  .mobile-menu-toggle {
    display: inline-flex !important;
  }

  .mobile-menu-panel {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    display: none !important;
  }

  .mobile-menu-open .mobile-menu-panel {
    display: grid !important;
  }

  .mobile-menu-panel .main-nav,
  .mobile-menu-panel .guide-nav,
  .mobile-menu-panel .guide-actions {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    overflow: visible !important;
  }

  .mobile-menu-panel .guide-actions {
    order: initial !important;
  }

  .mobile-menu-panel .nav-dropdown-menu {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
  }
}

/* ===== Mobile Drawer Menu ===== */

.mobile-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
}

.mobile-menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #0f2a50;
}

.mobile-menu-panel {
  display: contents;
}

@media (max-width: 900px) {
  .site-header,
  .guide-header {
    position: sticky !important;
    top: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    padding: 10px 12px !important;
  }

  .mobile-menu-toggle {
    display: inline-flex !important;
    flex: 0 0 42px !important;
  }

  .mobile-menu-open .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .mobile-menu-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-open .mobile-menu-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .brand,
  .guide-brand {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
  }

  .mobile-menu-panel {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 10px !important;
    right: 10px !important;
    z-index: 100 !important;
    display: none !important;
    padding: 12px !important;
    background: #ffffff !important;
    border: 1px solid #dbe3ef !important;
    border-radius: 16px !important;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18) !important;
  }

  .mobile-menu-open .mobile-menu-panel {
    display: grid !important;
    gap: 10px !important;
  }

  .mobile-menu-panel .main-nav,
  .mobile-menu-panel .guide-nav,
  .mobile-menu-panel .guide-actions {
    order: initial !important;
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    overflow: visible !important;
    padding: 0 !important;
  }

  .mobile-menu-panel .main-nav a,
  .mobile-menu-panel .guide-nav a,
  .mobile-menu-panel .guide-actions a,
  .mobile-menu-panel .guide-actions select,
  .mobile-menu-panel .nav-dropdown-toggle {
    width: 100% !important;
    min-height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 10px 12px !important;
    text-align: left !important;
    white-space: normal !important;
    border-radius: 10px !important;
    background: #f8fafc !important;
  }

  .mobile-menu-panel .nav-dropdown {
    width: 100% !important;
    display: grid !important;
  }

  .mobile-menu-panel .nav-dropdown-menu {
    position: static !important;
    width: 100% !important;
    min-width: 0 !important;
    margin-top: 6px !important;
    box-shadow: none !important;
    border-radius: 12px !important;
    max-height: none !important;
  }

  .mobile-menu-panel .nav-dropdown.open .nav-dropdown-menu {
    display: grid !important;
  }

  .mobile-menu-panel .nav-dropdown:not(.open) .nav-dropdown-menu {
    display: none !important;
  }
}

/* ===== Header / Footer Dropdowns ===== */

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-toggle {
  min-height: 38px;
  padding: 9px 28px 9px 12px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  position: relative;
}

.nav-dropdown-toggle::after {
  content: "";
  position: absolute;
  right: 11px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.active,
.nav-dropdown.open .nav-dropdown-toggle {
  color: var(--blue-dark);
  background: var(--soft-blue);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 80;
  min-width: 240px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.16);
  display: none;
}

.nav-dropdown.open .nav-dropdown-menu,
.nav-dropdown:hover .nav-dropdown-menu {
  display: grid;
  gap: 4px;
}

.nav-dropdown-menu a {
  display: block !important;
  padding: 10px 12px !important;
  color: #0f2a50 !important;
  text-decoration: none !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

.nav-dropdown-menu a:hover {
  color: #0b5ed7 !important;
  background: #eef6ff !important;
}

.footer-toggle {
  width: 100%;
  padding: 0;
  color: #ffffff;
  background: transparent;
  border: 0;
  text-align: left;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
  cursor: default;
}

.footer-toggle::after {
  content: "";
  display: none;
}

@media (max-width: 900px) {
  .nav-dropdown {
    flex: 0 0 auto !important;
  }

  .nav-dropdown-menu {
    position: fixed;
    top: 118px;
    left: 12px;
    right: 12px;
    width: auto;
    max-height: min(70vh, 460px);
    overflow-y: auto;
  }
}

@media (max-width: 560px) {
  .nav-dropdown-menu {
    top: 132px;
  }

  .footer-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 42px !important;
    padding: 8px 0 !important;
    cursor: pointer !important;
  }

  .footer-toggle::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid #9fb3d0;
    border-bottom: 2px solid #9fb3d0;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
  }

  .footer-col:not(.footer-brand) ul {
    display: none !important;
    padding-bottom: 12px !important;
  }

  .footer-col.footer-open ul {
    display: grid !important;
  }

  .footer-col.footer-open .footer-toggle::after {
    transform: rotate(225deg);
  }
}

/* ===== Final Mobile Header Override ===== */

@media (max-width: 900px) {
  .site-header,
  .guide-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 50 !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 10px 12px !important;
  }

  .brand,
  .guide-brand {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    gap: 9px !important;
  }

  .brand-mark {
    width: 38px !important;
    height: 38px !important;
    border-radius: 12px !important;
    flex: 0 0 38px !important;
  }

  .brand strong,
  .guide-brand strong {
    font-size: 15px !important;
    line-height: 1.2 !important;
    white-space: normal !important;
  }

  .brand small,
  .guide-brand small {
    font-size: 11px !important;
    line-height: 1.2 !important;
  }

  .main-nav,
  .guide-nav {
    order: 3 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 6px !important;
    overflow-x: auto !important;
    padding: 2px 0 4px !important;
    scrollbar-width: thin !important;
  }

  .main-nav a,
  .guide-nav a {
    flex: 0 0 auto !important;
    padding: 8px 10px !important;
    white-space: nowrap !important;
    text-align: center !important;
    font-size: 13px !important;
    border-radius: 8px !important;
  }

  .guide-actions {
    flex: 0 0 auto !important;
    width: auto !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    justify-content: flex-end !important;
  }

  .guide-actions select,
  .guide-actions a {
    min-height: 34px !important;
    padding: 7px 9px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 560px) {
  .site-header,
  .guide-header {
    padding: 8px 10px !important;
  }

  .brand,
  .guide-brand {
    flex-basis: 100% !important;
  }

  .guide-actions {
    order: 2 !important;
    width: 100% !important;
    justify-content: space-between !important;
  }

  .guide-actions select {
    flex: 0 0 64px !important;
  }

  .guide-actions a {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .main-nav,
  .guide-nav {
    margin-inline: -2px !important;
  }
}

/* ===== Final Mobile Chat Overrides ===== */

@media (max-width: 980px) {
  .guide-header {
    align-items: flex-start !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    padding: 12px 18px !important;
  }

  .guide-brand {
    flex: 1 1 240px !important;
  }

  .guide-nav {
    order: 3 !important;
    width: 100% !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    overflow-x: auto !important;
    padding-bottom: 2px !important;
  }

  .guide-nav a {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }

  .chat-card.chat-session-active {
    max-width: 100% !important;
  }
}

@media (max-width: 640px) {
  .guide-header {
    padding: 10px 12px !important;
  }

  .guide-brand,
  .guide-actions {
    width: 100% !important;
  }

  .guide-actions {
    justify-content: space-between !important;
  }

  .guide-actions select {
    flex: 0 0 74px !important;
  }

  .guide-actions a {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    padding-inline: 9px !important;
    text-align: center !important;
  }

  .chat-page {
    padding: 10px 8px 30px !important;
  }

  .chat-card {
    max-width: 100% !important;
    padding: 16px 12px !important;
    border-radius: 14px !important;
  }

  .chat-card h1 {
    font-size: clamp(25px, 8vw, 32px) !important;
    overflow-wrap: anywhere !important;
  }

  .chat-messages {
    height: min(52vh, 420px) !important;
    min-height: 270px !important;
    padding: 10px !important;
  }

  .chat-message {
    max-width: 92% !important;
    font-size: 13px !important;
  }

  .chat-reply-form {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
  }
}

@media (max-width: 420px) {
  .chat-reply-form {
    grid-template-columns: 1fr !important;
  }

  .chat-reply-form button {
    width: 100% !important;
  }
}

/* ===== Responsive Chat / Guide Header Fix ===== */

@media (max-width: 980px) {
  .guide-header {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 18px;
  }

  .guide-brand {
    flex: 1 1 240px;
  }

  .guide-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }

  .guide-nav a {
    flex: 0 0 auto;
    padding: 8px 9px;
    white-space: nowrap;
  }

  .guide-actions {
    flex: 0 1 auto;
    justify-content: flex-end;
  }

  .chat-page {
    min-height: auto;
    padding: 14px 14px 40px;
  }

  .chat-card.chat-session-active {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .guide-header {
    padding: 10px 12px;
  }

  .guide-brand {
    flex: 1 1 100%;
  }

  .guide-actions {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .guide-actions select {
    flex: 0 0 74px;
  }

  .guide-actions a {
    flex: 1 1 auto;
    min-width: 0;
    padding-inline: 9px;
    text-align: center;
  }

  .chat-page {
    padding: 10px 8px 30px;
  }

  .chat-card {
    max-width: 100% !important;
    padding: 16px 12px;
    border-radius: 14px;
  }

  .chat-card h1 {
    font-size: clamp(25px, 8vw, 32px);
    overflow-wrap: anywhere;
  }

  .chat-subtitle,
  .chat-disclaimer-small,
  .chat-footer-disclaimer {
    font-size: 13px;
    line-height: 1.45;
  }

  .chat-start-form input,
  .chat-start-form select,
  .chat-start-form textarea {
    min-height: 42px;
    padding: 10px 12px;
    font-size: 14px;
  }

  .chat-window-header {
    align-items: flex-start;
    padding: 12px;
  }

  .chat-window-header.compact h2 {
    font-size: 16px;
    overflow-wrap: anywhere;
  }

  .status-pill {
    flex: 0 0 auto;
  }

  .chat-messages {
    height: min(52vh, 420px);
    min-height: 270px;
    padding: 10px;
  }

  .chat-message {
    max-width: 92%;
    font-size: 13px;
  }

  .chat-message p {
    padding: 9px 10px;
  }

  .chat-reply-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px;
  }

  .chat-reply-form input {
    min-width: 0;
  }

  .chat-reply-form button {
    padding-inline: 12px;
  }
}

@media (max-width: 420px) {
  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .guide-brand strong {
    font-size: 15px;
  }

  .guide-actions a,
  .guide-actions select {
    font-size: 13px;
  }

  .chat-card {
    padding: 14px 10px;
  }

  .chat-product-logo {
    transform: scale(0.9);
  }

  .chat-reply-form {
    grid-template-columns: 1fr;
  }

  .chat-reply-form button {
    width: 100%;
  }
}

/* ===== Real-time Live Chat Polish ===== */

.chat-typing,
.admin-typing-indicator {
  color: #2563eb;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 14px;
}

.live-visitor-item {
  border-radius: 16px;
  position: relative;
}

.visitor-name-stack {
  display: grid;
  gap: 2px;
  min-width: 0;
  text-align: left;
}

.visitor-name-stack strong {
  color: #0f172a;
  font-size: 14px;
  line-height: 1.2;
}

.visitor-name-stack small,
.visitor-preview,
.visitor-meta-line {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.visitor-preview {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visitor-flags {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
}

.online-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #94a3b8;
  box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.12);
}

.online-dot.is-online {
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.16);
}

.unread-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  color: #fff;
  background: #ef4444;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
}

.conversation-heading-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.conversation-heading-row h2 {
  margin: 0;
}

.live-chat-status-line {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.admin-live .message.visitor {
  align-self: flex-start;
}

.admin-live .message.visitor p {
  color: #0f172a;
  background: #ffffff;
  border-color: #dbe3ef;
}

.admin-live .message.admin {
  align-self: flex-end;
}

.admin-live .message.admin span,
.admin-live .message.admin small {
  text-align: right;
}

.admin-live .message small {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
}

.admin-live .messages {
  background:
    linear-gradient(rgba(248, 250, 252, 0.9), rgba(248, 250, 252, 0.9)),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 34%);
}

.chat-window .chat-messages {
  scroll-behavior: smooth;
}

.safe-chat-note {
  margin: -2px 0 14px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.admin-live {
  grid-template-columns: 330px minmax(0, 1fr) 300px;
}

.chat-list-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chat-list-filters button,
.quick-chat-actions button {
  border: 1px solid #dbe3ef;
  background: #ffffff;
  color: #0f2a50;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 900;
  cursor: pointer;
}

.chat-list-filters button.active,
.chat-list-filters button:hover,
.quick-chat-actions button:hover {
  border-color: #2563eb;
  color: #ffffff;
  background: #2563eb;
}

.visitor-details-panel {
  display: grid;
  gap: 14px;
  align-content: start;
}

.visitor-details-card,
.quick-chat-actions {
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.visitor-details-card h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.visitor-details-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.visitor-details-card dl div {
  min-width: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf2f7;
}

.visitor-details-card dt {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.visitor-details-card dd {
  margin: 3px 0 0;
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.quick-chat-actions {
  display: grid;
  gap: 10px;
}

@media (max-width: 1180px) {
  .admin-live {
    grid-template-columns: 320px minmax(0, 1fr);
  }

  .visitor-details-panel {
    grid-column: 1 / -1;
  }
}

.guide-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: #fff;
  border-bottom: 1px solid #e5edf7;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.guide-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  text-decoration: none;
}

.guide-brand strong,
.guide-brand small {
  display: block;
}

.guide-brand small {
  color: var(--muted);
  font-size: 12px;
}

.guide-nav,
.guide-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.guide-nav a {
  color: #334155;
  text-decoration: none;
  font-weight: 800;
  padding: 9px 8px;
}

.guide-nav a:hover {
  color: var(--blue-dark);
}

.guide-actions select,
.guide-actions a {
  min-height: 38px;
}

.guide-actions select {
  width: auto;
  padding: 8px 10px;
}

.guide-search,
.guide-signin,
.guide-signup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 900;
}

.guide-search,
.guide-signin {
  color: #0b5ed7;
  background: #eef4ff;
  border: 1px solid #dbeafe;
}

.guide-signup {
  color: #fff;
  background: #0b5ed7;
  border: 1px solid #0b5ed7;
}

.product-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(34px, 6vw, 64px) clamp(18px, 4vw, 56px);
  color: #fff;
  background: linear-gradient(135deg, #0b5ed7, #0f172a);
}

.product-hero-left {
  display: flex;
  align-items: center;
  gap: 22px;
}

.product-hero h1 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(34px, 5vw, 58px);
}

.product-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
}

.product-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
}

.product-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 clamp(18px, 4vw, 56px);
  background: #fff;
  border-bottom: 1px solid #dbe3ef;
  overflow-x: auto;
}

.product-tabs a {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  padding: 0 18px;
  color: #475569;
  text-decoration: none;
  font-weight: 900;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.product-tabs a.active,
.product-tabs a:hover {
  color: #0b5ed7;
  border-bottom-color: #0b5ed7;
}

.product-help-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 26px;
  align-items: start;
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(28px, 5vw, 48px) clamp(18px, 4vw, 56px);
}

.product-main {
  display: grid;
  gap: 22px;
}

.fast-help-card,
.troubleshooter-card,
.issue-steps-card,
.help-articles,
.need-help-card,
.quick-links-card,
.disclaimer-card {
  background: #fff;
  border: 1px solid #dbe3ef;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.fast-help-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 22px;
  background: #fff5f6;
  border-color: #fecdd3;
}

.fast-help-icon,
.side-icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #fff;
  background: linear-gradient(135deg, #0b5ed7, #ef4444);
  border-radius: 16px;
  font-size: 14px;
  font-weight: 900;
}

.fast-help-card h2,
.need-help-card h2,
.quick-links-card h2,
.troubleshooter-card h2,
.help-articles h2,
.issue-steps-card h2 {
  margin-bottom: 6px;
}

.fast-help-card p,
.troubleshooter-card > p,
.need-help-card p,
.help-articles p,
.issue-steps-card p {
  color: var(--muted);
}

.btn-danger {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #0b5ed7);
  border: 0;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(239, 68, 68, 0.18);
}

.btn-danger.full {
  width: 100%;
}

.guide-alert {
  padding: 16px 18px;
  color: #16437e;
  background: #eaf2ff;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  font-weight: 800;
}

.troubleshooter-card,
.issue-steps-card,
.help-articles {
  padding: 24px;
}

.troubleshooter-card {
  border-top: 5px solid #0b5ed7;
}

.issue-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.issue-card {
  display: grid;
  gap: 9px;
  min-height: 190px;
  padding: 16px;
  color: inherit;
  text-decoration: none;
  background: #f8fbff;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.issue-card:hover,
.issue-card.active {
  transform: translateY(-3px);
  border-color: #0b5ed7;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10);
}

.issue-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #0b5ed7;
  background: #eaf2ff;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 900;
}

.issue-card h3 {
  margin: 0;
  font-size: 17px;
}

.issue-card p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.issue-steps-card ol {
  display: grid;
  gap: 10px;
  margin: 14px 0 20px;
  color: #334155;
}

.article-list {
  display: grid;
  gap: 10px;
}

.article-list a {
  display: grid;
  gap: 4px;
  padding: 14px;
  color: inherit;
  text-decoration: none;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background: #f8fbff;
}

.article-list span {
  color: var(--muted);
  font-size: 14px;
}

.product-sidebar {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 92px;
}

.need-help-card,
.quick-links-card,
.disclaimer-card {
  padding: 22px;
}

.need-help-card {
  text-align: center;
  background: #eef6ff;
  border-color: #bfdbfe;
}

.need-help-card .side-icon {
  margin: 0 auto 12px;
}

.need-help-card strong {
  display: block;
  margin-bottom: 10px;
  color: #ef4444;
  font-size: 12px;
}

.need-help-card small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
}

.quick-links-card {
  display: grid;
  gap: 10px;
}

.quick-links-card h2 {
  margin-bottom: 4px;
}

.quick-links-card a {
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
  color: #0b5ed7;
  text-decoration: none;
  background: #f8fbff;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  font-weight: 800;
}

.disclaimer-card {
  color: #16437e;
  background: #eaf2ff;
  border-color: #bfdbfe;
  font-weight: 800;
}

.floating-chat-btn {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #0b5ed7);
  border-radius: 999px;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.24);
  text-decoration: none;
  font-weight: 900;
}

.excel-banner {
  background: linear-gradient(135deg, #11823b, #0f5132);
}

.word-banner,
.windows-banner,
.windows-11-banner,
.windows-10-banner,
.windows-update-banner,
.azure-banner {
  background: linear-gradient(135deg, #0b5ed7, #061a3a);
}

.microsoft-banner {
  background: linear-gradient(135deg, #2563eb, #0f172a);
}

.windows-security-banner,
.windows-defender-banner {
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
}

.windows-activation-banner {
  background: linear-gradient(135deg, #1d4ed8, #0f766e);
}

.powerpoint-banner {
  background: linear-gradient(135deg, #c43e1c, #7f1d1d);
}

.outlook-banner {
  background: linear-gradient(135deg, #0067b8, #0f766e);
}

.onedrive-banner,
.skype-banner {
  background: linear-gradient(135deg, #0284c7, #075985);
}

.teams-banner,
.onenote-banner {
  background: linear-gradient(135deg, #4f46e5, #581c87);
}

.m365-banner {
  background: linear-gradient(135deg, #ff6a00, #7c3aed, #0078d4);
}

.copilot-banner {
  background: linear-gradient(135deg, #111827, #2563eb, #06b6d4);
}

.edge-banner,
.sharepoint-banner {
  background: linear-gradient(135deg, #0f766e, #164e63);
}

.powerbi-banner {
  background: linear-gradient(135deg, #ca8a04, #713f12);
}

.defender-banner,
.dynamics-banner {
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
}

.surface-banner,
.store-banner {
  background: linear-gradient(135deg, #475569, #0f172a);
}

.xbox-banner {
  background: linear-gradient(135deg, #107c10, #064e3b);
}

.footer-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 34px;
  align-items: start;
}

.footer-col {
  min-width: 0;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  border-radius: 12px;
  font-weight: 900;
}

.footer-logo-row strong {
  display: block;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.2;
}

.footer-logo-row span {
  display: block;
  margin-top: 3px;
  color: #9fb3d0;
  font-size: 13px;
}

.footer-brand p {
  max-width: 330px;
  margin: 0;
  color: #c7d7ee;
  font-size: 14px;
  line-height: 1.65;
  word-break: normal;
  overflow-wrap: normal;
}

.footer-col h3 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
}

.footer-col ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col a {
  display: inline-block;
  color: #c7d7ee;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.footer-col a:hover {
  color: #60a5fa;
}

.footer-bottom {
  width: min(1180px, 100%);
  margin: 34px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(219, 234, 254, 0.16);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #9fb3d0;
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 1180px) {
  .product-grid,
  .product-grid.wide,
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .product-help-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}

@media (max-width: 900px) {
  .site-header,
  .admin-header,
  .band,
  .guide-header,
  .product-hero,
  .product-hero-left {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .page-hero,
  .product-detail,
  .split,
  .admin-live {
    grid-template-columns: 1fr;
  }

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

  .product-help-layout {
    grid-template-columns: 1fr;
  }

  .product-sidebar {
    position: static;
  }

  .fast-help-card {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .main-nav {
    width: 100%;
  }

  .main-nav a {
    flex: 1 1 calc(50% - 6px);
    text-align: center;
  }

  .product-grid,
  .product-grid.wide,
  .products-grid,
  .form-grid,
  .stat-grid,
  .issue-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: auto;
  }

  .portal-form,
  .hero-panel,
  .info-panel,
  .success-card,
  .export-panel {
    padding: 18px;
  }

  .chat-reply {
    flex-direction: column;
  }

  .ticket-summary div,
  .conversation-meta dl div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .messages {
    height: 360px;
  }

  .chat-page {
    padding: 14px 10px 40px;
  }

  .chat-card {
    max-width: 100%;
    padding: 22px 16px;
  }

  .chat-card h1 {
    font-size: 30px;
  }

  .chat-reply-form {
    flex-direction: column;
  }

  .site-footer {
    padding: 34px 18px 18px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-brand p {
    max-width: 100%;
  }
}

/* ===== Fixed Global Footer - final override ===== */

.site-footer {
  background: #071a38 !important;
  color: #dbeafe !important;
  padding: 42px 24px 18px !important;
  margin-top: 56px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.site-footer * {
  box-sizing: border-box !important;
}

.footer-inner {
  width: min(1180px, 100%) !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: 1.35fr 1fr 1fr 1fr !important;
  gap: 34px !important;
  align-items: start !important;
}

.footer-col {
  min-width: 0 !important;
  width: auto !important;
}

.footer-logo-row {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 14px !important;
}

.footer-logo {
  width: 46px !important;
  height: 46px !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #2563eb, #38bdf8) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 900 !important;
  font-size: 17px !important;
  flex: 0 0 46px !important;
  text-decoration: none !important;
}

.footer-logo-row strong {
  display: block !important;
  color: #ffffff !important;
  font-size: 18px !important;
  line-height: 1.2 !important;
  font-weight: 900 !important;
  margin: 0 !important;
}

.footer-logo-row span {
  display: block !important;
  color: #9fb3d0 !important;
  font-size: 13px !important;
  margin-top: 3px !important;
}

.footer-brand p {
  max-width: 340px !important;
  color: #c7d7ee !important;
  line-height: 1.65 !important;
  font-size: 14px !important;
  margin: 0 !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  white-space: normal !important;
}

.footer-col h3 {
  color: #ffffff !important;
  font-size: 16px !important;
  margin: 0 0 14px !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
}

.footer-col ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: grid !important;
  gap: 10px !important;
}

.footer-col li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.footer-col a {
  color: #c7d7ee !important;
  text-decoration: none !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  display: inline-block !important;
  white-space: normal !important;
}

.footer-col a:hover {
  color: #60a5fa !important;
}

.footer-bottom {
  width: min(1180px, 100%) !important;
  margin: 32px auto 0 !important;
  padding-top: 18px !important;
  border-top: 1px solid rgba(219, 234, 254, 0.16) !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 16px !important;
  color: #9fb3d0 !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .footer-bottom {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
}

@media (max-width: 560px) {
  .site-footer {
    padding: 34px 18px 18px !important;
  }

  .footer-inner {
    grid-template-columns: 1fr !important;
    gap: 26px !important;
  }

  .footer-brand p {
    max-width: 100% !important;
  }
}

/* ===== Drawer Override After Final Footer ===== */
@media (max-width: 900px) {
  .site-header,
  .guide-header {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .mobile-menu-toggle {
    display: inline-flex !important;
  }

  .brand,
  .guide-brand {
    flex: 1 1 auto !important;
    width: auto !important;
  }

  .mobile-menu-panel {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    display: none !important;
    padding: 12px !important;
    background: #ffffff !important;
    border: 1px solid #dbe3ef !important;
    border-radius: 16px !important;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18) !important;
  }

  .mobile-menu-open .mobile-menu-panel {
    display: grid !important;
    gap: 10px !important;
  }

  .mobile-menu-panel .main-nav,
  .mobile-menu-panel .guide-nav,
  .mobile-menu-panel .guide-actions {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    overflow: visible !important;
    padding: 0 !important;
  }

  .mobile-menu-panel .main-nav a,
  .mobile-menu-panel .guide-nav a,
  .mobile-menu-panel .guide-actions a,
  .mobile-menu-panel .guide-actions select,
  .mobile-menu-panel .nav-dropdown-toggle {
    width: 100% !important;
    justify-content: flex-start !important;
    text-align: left !important;
  }

  .mobile-menu-panel .nav-dropdown-menu {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    min-width: 0 !important;
    width: 100% !important;
  }
}

/* ===== Footer Accordion Final Tail Fix ===== */
@media (max-width: 560px) {
  .site-footer .footer-inner {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .site-footer .footer-col:not(.footer-brand) {
    border-bottom: 1px solid rgba(219, 234, 254, 0.14) !important;
  }

  .site-footer .footer-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 46px !important;
    padding: 10px 0 !important;
    color: #ffffff !important;
    cursor: pointer !important;
  }

  .site-footer .footer-toggle::after {
    content: "" !important;
    display: inline-block !important;
    width: 9px !important;
    height: 9px !important;
    border-right: 2px solid #9fb3d0 !important;
    border-bottom: 2px solid #9fb3d0 !important;
    transform: rotate(45deg) !important;
  }

  .site-footer .footer-col:not(.footer-brand) ul {
    display: none !important;
    padding: 0 0 14px !important;
  }

  .site-footer .footer-col.footer-open ul {
    display: grid !important;
  }

  .site-footer .footer-col.footer-open .footer-toggle::after {
    transform: rotate(225deg) !important;
  }
}
