/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #ffffff;
  color: #1a1a2e;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ===========================
   TOP HEADER
=========================== */
.top-header {
  position: fixed;
  top: 0;
  left: 260px;
  right: 0;
  height: 52px;
  background: #fff;
  border-bottom: 1px solid #eef0f4;
  z-index: 80;
  display: flex;
  align-items: center;
}

.top-header-inner {
  width: 100%;
  max-width: 860px;
  padding: 0 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-logo {
  font-size: 15px;
  text-decoration: none;
  letter-spacing: -0.3px;
  line-height: 1;
}

.logo-bold { font-weight: 800; color: #111827; }
.logo-light { font-weight: 400; color: #6b7280; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-nav-link {
  font-size: 13.5px;
  color: #6b7280;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.15s;
}

.header-nav-link:hover {
  color: #111827;
  background: #f3f4f6;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-avatar {
  width: 30px;
  height: 30px;
  background: #dde3ff;
  color: #3b5bdb;
  font-size: 13px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-username {
  font-size: 13.5px;
  font-weight: 500;
  color: #374151;
}

.header-logout {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #6b7280;
  text-decoration: none;
  padding: 5px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  font-weight: 500;
  transition: all 0.15s;
}

.header-logout:hover {
  color: #374151;
  border-color: #d1d5db;
  background: #f9fafb;
}

/* ===========================
   LAYOUT
=========================== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100vh;
  background: #fafafa;
  border-right: 1px solid #eef0f4;
  display: flex;
  flex-direction: column;
  padding: 32px 20px;
  z-index: 100;
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.main-content {
  margin-left: 260px;
  max-width: 860px;
  padding: 112px 64px 120px;
}

/* ===========================
   SIDEBAR
=========================== */
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 36px;
  letter-spacing: -0.3px;
}

.logo-dot {
  width: 8px;
  height: 8px;
  background: #3b5bdb;
  border-radius: 50%;
  flex-shrink: 0;
}

.sidebar-nav {
  list-style: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #6b7280;
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.18s ease;
  cursor: pointer;
}

.nav-item:hover {
  background: #f0f3ff;
  color: #3b5bdb;
}

.nav-item.active {
  background: #eef1ff;
  color: #3b5bdb;
  font-weight: 600;
}

.nav-num {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 600;
  letter-spacing: 0.5px;
  min-width: 22px;
}

.nav-item.active .nav-num {
  color: #3b5bdb;
}

.sidebar-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #eef0f4;
}

.sidebar-cta {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #3b5bdb;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  background: #eef1ff;
  text-align: center;
  transition: all 0.18s;
}

.sidebar-cta:hover {
  background: #3b5bdb;
  color: white;
}

/* ===========================
   SUB-NAV
=========================== */
.sub-nav {
  list-style: none;
  padding: 0;
  margin: 2px 0 6px 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.28s ease, opacity 0.22s ease;
}

/* Show sub-nav when parent section is active */
.nav-item.active ~ .sub-nav,
li:has(.nav-item.active) .sub-nav {
  max-height: 300px;
  opacity: 1;
}

.sub-nav-item {
  display: block;
  padding: 6px 10px 6px 30px;
  font-size: 12.5px;
  color: #9ca3af;
  text-decoration: none;
  border-radius: 6px;
  line-height: 1.45;
  transition: all 0.15s ease;
  position: relative;
}

.sub-nav-item:hover {
  color: #3b5bdb;
  background: #f5f7ff;
}

.sub-nav-item.active-sub {
  color: #3b5bdb;
  font-weight: 600;
  background: #f0f3ff;
}

/* ===========================
   HAMBURGER (mobile)
=========================== */
.hamburger {
  display: none;
  background: transparent;
  border: none;
  border-radius: 7px;
  padding: 7px 8px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  flex-shrink: 0;
}

.hamburger:hover {
  background: #f3f4f6;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #374151;
  border-radius: 2px;
  transition: all 0.2s;
}

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.3);
  z-index: 90;
}

/* ===========================
   HERO
=========================== */
.hero-section {
  padding-bottom: 64px;
  border-bottom: 1px solid #eef0f4;
  margin-bottom: 72px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f0f3ff;
  color: #3b5bdb;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
  border: 1px solid #dde3ff;
  letter-spacing: 0.2px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: #40c057;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.hero-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.18;
  color: #111827;
  letter-spacing: -1.2px;
  margin-bottom: 18px;
}

.blue-text {
  color: #3b5bdb;
}

.hero-subtitle {
  font-size: 17px;
  color: #6b7280;
  margin-bottom: 28px;
  line-height: 1.5;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  color: #374151;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 100px;
  cursor: default;
  transition: all 0.18s;
}

.chip:hover {
  background: #eef1ff;
  border-color: #c5d0ff;
  color: #3b5bdb;
}

/* ===========================
   SECTIONS
=========================== */
.doc-section {
  margin-bottom: 96px;
  scroll-margin-top: 32px;
}

.section-header {
  margin-bottom: 36px;
}

.section-tag {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: #3b5bdb;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-header h2 {
  font-size: 30px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.8px;
  line-height: 1.2;
}

.sub-heading {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.4px;
  margin: 36px 0 16px;
}

/* ===========================
   BODY TEXT
=========================== */
.body-text {
  font-size: 15.5px;
  color: #374151;
  line-height: 1.75;
  margin-bottom: 16px;
}

.body-text strong {
  color: #111827;
  font-weight: 600;
}

/* ===========================
   CALLOUTS
=========================== */
.callout {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 10px;
  margin: 20px 0;
  border-left: 3px solid;
}

.callout p {
  font-size: 14.5px;
  line-height: 1.65;
  margin: 0;
}

.callout strong { font-weight: 600; }

.callout-green {
  background: #f0fdf4;
  border-color: #22c55e;
}
.callout-green .callout-icon { color: #16a34a; }

.callout-yellow {
  background: #fffbeb;
  border-color: #f59e0b;
}
.callout-yellow .callout-icon { color: #d97706; }

.callout-star {
  background: #fefce8;
  border-color: #eab308;
}
.callout-star .callout-icon { color: #ca8a04; }

.callout-blue {
  background: #eff6ff;
  border-color: #3b82f6;
}
.callout-blue .callout-icon { color: #2563eb; }

.callout-purple {
  background: #faf5ff;
  border-color: #a855f7;
}
.callout-purple .callout-icon { color: #9333ea; }

.callout-fire {
  background: #fff7ed;
  border-color: #f97316;
}
.callout-fire .callout-icon { color: #ea580c; }

.callout-icon {
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1.65;
}

.callout-link {
  font-size: 15px;
  font-weight: 700;
  color: #3b5bdb;
  text-decoration: none;
  transition: opacity 0.18s;
}

.callout-link:hover { opacity: 0.75; text-decoration: underline; }

/* ===========================
   STEPS
=========================== */
.step-block {
  margin-bottom: 52px;
  padding-left: 20px;
  border-left: 2px solid #e5e7eb;
  position: relative;
}

.step-block::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 4px;
  width: 8px;
  height: 8px;
  background: #3b5bdb;
  border-radius: 50%;
}

.step-label {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.step-num {
  font-size: 11.5px;
  font-weight: 700;
  color: #3b5bdb;
  background: #eef1ff;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

.step-label h3 {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.4px;
}

/* ===========================
   IMAGES
=========================== */
.img-block {
  margin: 20px 0;
}

.img-block img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: zoom-in;
}

.img-block img:hover {
  transform: scale(1.01);
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
}

.img-caption {
  font-size: 13px;
  color: #6b7280;
  margin-top: 8px;
  line-height: 1.5;
  font-style: italic;
}

.img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}

/* ===========================
   LISTS
=========================== */
.styled-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.styled-list.no-margin { margin: 0; }

.styled-list li {
  font-size: 15px;
  color: #374151;
  padding-left: 20px;
  position: relative;
  line-height: 1.6;
}

.styled-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #3b5bdb;
  font-weight: 700;
  font-size: 13px;
  top: 1px;
}

.styled-list li strong { color: #111827; }

/* ===========================
   TABLE
=========================== */
.table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.doc-table thead tr {
  background: #f9fafb;
}

.doc-table th {
  text-align: left;
  padding: 12px 18px;
  font-weight: 600;
  color: #374151;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #e5e7eb;
}

.doc-table td {
  padding: 13px 18px;
  color: #4b5563;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: top;
  line-height: 1.55;
}

.doc-table tbody tr:last-child td { border-bottom: none; }

.doc-table tbody tr:hover { background: #fafbff; }

/* ===========================
   FLOW DIAGRAMS
=========================== */
.flow-diagram {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 28px;
  background: #fafbff;
  border-radius: 12px;
  border: 1px solid #e8ecff;
  margin: 28px 0;
  flex-wrap: wrap;
  justify-content: center;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 90px;
}

.flow-icon {
  background: #3b5bdb;
  color: white;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 8px;
  letter-spacing: 0.5px;
}

.flow-label {
  font-size: 12px;
  color: #6b7280;
  text-align: center;
  font-weight: 500;
}

.flow-arrow {
  font-size: 20px;
  color: #3b5bdb;
  font-weight: 700;
  opacity: 0.5;
}

/* Vertical flow */
.flow-vertical {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin: 24px 0;
  padding: 20px;
  background: #fafbff;
  border-radius: 12px;
  border: 1px solid #e8ecff;
}

.flow-v-step {
  padding: 10px 18px;
  background: white;
  border: 1px solid #dde3ff;
  border-radius: 8px;
  font-size: 14.5px;
  color: #374151;
  font-weight: 500;
  width: 100%;
}

.flow-v-step.highlight-step {
  background: #eef1ff;
  border-color: #3b5bdb;
  color: #3b5bdb;
  font-weight: 600;
}

.flow-v-arrow {
  font-size: 20px;
  color: #3b5bdb;
  padding: 4px 18px;
  opacity: 0.5;
}

/* ===========================
   PLATFORM CHIPS
=========================== */
.platform-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.platform-chip {
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1.5px solid;
  cursor: default;
}

.platform-chip.fb { background: #eff6ff; border-color: #3b82f6; color: #2563eb; }
.platform-chip.zl { background: #ecfdf5; border-color: #10b981; color: #059669; }
.platform-chip.ls { background: #fef2f2; border-color: #ef4444; color: #dc2626; }
.platform-chip.yt { background: #fef2f2; border-color: #f97316; color: #ea580c; }

/* ===========================
   DONE BANNER
=========================== */
.done-banner {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1.5px solid #86efac;
  color: #15803d;
  font-size: 15px;
  font-weight: 600;
  padding: 16px 22px;
  border-radius: 10px;
  margin-top: 28px;
}

/* ===========================
   HIGHLIGHT BOX
=========================== */
.highlight-box {
  background: #fafbff;
  border: 1px solid #dde3ff;
  border-left: 4px solid #3b5bdb;
  border-radius: 0 10px 10px 0;
  padding: 20px 24px;
  margin: 24px 0;
}

.highlight-box h4 {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 10px;
}

.highlight-box p {
  font-size: 14.5px;
  color: #4b5563;
  line-height: 1.65;
  margin-bottom: 8px;
}

.highlight-box p:last-child { margin-bottom: 0; }

/* ===========================
   COMMUNITY + CLOSING
=========================== */
.community-block, .learn-more-block {
  margin-top: 40px;
  padding: 36px;
  background: #fafafa;
  border-radius: 16px;
  border: 1px solid #eef0f4;
}

.community-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.com-icon {
  font-size: 24px;
}

.community-header h3,
.learn-more-block h3 {
  font-size: 22px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.community-header h3 { margin-bottom: 0; }

/* Gap diagram */
.gap-block {
  display: flex;
  align-items: center;
  gap: 16px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.gap-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 120px;
}

.gap-side strong {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.gap-side span {
  font-size: 12.5px;
  color: #6b7280;
}

.gap-middle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.gap-arrow {
  font-size: 18px;
  color: #3b5bdb;
  letter-spacing: -2px;
}

.gap-label {
  font-size: 11px;
  color: #9ca3af;
  font-style: italic;
}

/* Two-choice */
.two-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.choice-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 22px;
}

.choice-card-highlight {
  border-color: #3b5bdb;
  background: #fafbff;
}

.choice-num {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: #3b5bdb;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.choice-card p {
  font-size: 14.5px;
  color: #374151;
  line-height: 1.6;
  margin-bottom: 16px;
}

.cta-btn {
  display: inline-block;
  background: #3b5bdb;
  color: white;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
  width: 100%;
  text-align: center;
}

.cta-btn:hover {
  background: #2f4abf;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(59, 91, 219, 0.35);
}

/* ===========================
   RESPONSIVE — Tablet (≤900px)
=========================== */
@media (max-width: 900px) {

  /* Sidebar slides off-screen */
  .sidebar {
    transform: translateX(-100%);
    z-index: 110;
  }
  .sidebar.open {
    transform: translateX(0);
  }

  /* Overlay backdrop */
  .overlay.show {
    display: block;
  }

  /* Header: full width, hamburger visible */
  .top-header {
    left: 0;
    height: 52px;
  }
  .top-header-inner {
    padding: 0 16px;
  }
  .hamburger {
    display: flex;
    position: static; /* inside header, not floating */
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 6px;
    margin-right: 4px;
  }
  .hamburger span {
    background: #374151;
  }

  /* Hide desktop nav links on mobile */
  .header-nav {
    display: none;
  }

  /* Hide logout text, keep icon */
  .logout-text {
    display: none;
  }
  .header-logout {
    padding: 6px 10px;
  }

  /* Main content: full width, push down below header */
  .main-content {
    margin-left: 0;
    padding: 72px 24px 80px;
  }

  /* Hero */
  .hero-title { font-size: 26px; letter-spacing: -0.6px; }
  .hero-subtitle { font-size: 15px; }

  /* Hero chips — 2x2 grid */
  .hero-chips {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .chip {
    font-size: 12px;
    padding: 8px 14px;
    text-align: center;
  }

  /* Images */
  .img-grid { grid-template-columns: 1fr; gap: 12px; }

  /* Flow diagram — vertical stack, left-aligned */
  .flow-diagram {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 0;
  }
  .flow-step {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    min-width: unset;
    width: 100%;
    padding: 6px 0;
  }
  .flow-label {
    text-align: left;
    font-size: 13px;
  }
  .flow-arrow {
    transform: none;
    opacity: 0.5;
    font-size: 18px;
    padding: 2px 0 2px 20px; /* indent to align under icon */
    align-self: flex-start;
  }

  /* Two-choice */
  .two-choice { grid-template-columns: 1fr; }

  /* Table scroll */
  .table-wrap { border-radius: 8px; }
  .doc-table th, .doc-table td { padding: 10px 14px; font-size: 13.5px; }
}

/* ===========================
   RESPONSIVE — Mobile (≤600px)
=========================== */
@media (max-width: 600px) {
  .main-content {
    padding: 68px 16px 80px;
  }

  /* Header on small phones */
  .top-header-inner {
    padding: 0 12px;
  }
  .header-username { display: none; }
  .header-avatar { width: 28px; height: 28px; font-size: 12px; }
  .header-logo { font-size: 14px; }

  /* Section typography */
  .hero-title { font-size: 22px; line-height: 1.25; }
  .hero-badge { font-size: 11.5px; padding: 5px 12px; }
  .section-header h2 { font-size: 22px; }
  .sub-heading { font-size: 17px; margin: 28px 0 12px; }
  .body-text { font-size: 14.5px; }

  /* Step blocks */
  .step-block { padding-left: 14px; }
  .step-label { flex-direction: column; align-items: flex-start; gap: 6px; }
  .step-label h3 { font-size: 17px; }

  /* Callouts */
  .callout { padding: 12px 14px; gap: 10px; }
  .callout p { font-size: 13.5px; }

  /* Images */
  .img-block img { border-radius: 8px; }
  .img-caption { font-size: 12px; }

  /* Flow vertical */
  .flow-vertical { padding: 14px; }
  .flow-v-step { font-size: 13.5px; padding: 9px 14px; }

  /* Table */
  .doc-table th, .doc-table td { font-size: 12.5px; padding: 9px 12px; }

  /* Community/closing blocks */
  .community-block, .learn-more-block {
    padding: 20px 16px;
    border-radius: 12px;
  }
  .community-header h3,
  .learn-more-block h3 { font-size: 18px; }

  /* Gap diagram */
  .gap-block {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }
  .gap-middle { flex-direction: row; gap: 6px; align-items: center; }

  /* Platform chips */
  .platform-chips { gap: 6px; }
  .platform-chip { font-size: 12px; padding: 5px 12px; }

  /* CTA button */
  .cta-btn { font-size: 13.5px; padding: 10px 16px; }

  /* Sidebar footer CTA */
  .sidebar-footer { display: none; }

  /* Hero chips */
  .hero-chips { gap: 6px; }
  .chip { font-size: 11.5px; padding: 5px 10px; }

  /* Highlight box */
  .highlight-box { padding: 16px; }
  .highlight-box h4 { font-size: 14.5px; }
  .highlight-box p { font-size: 13.5px; }

  /* Done banner */
  .done-banner { font-size: 14px; padding: 14px 16px; }

  /* Styled list */
  .styled-list li { font-size: 14px; }
}

/* ===========================
   RESPONSIVE — Very small (≤375px)
=========================== */
@media (max-width: 375px) {
  .main-content { padding: 64px 12px 60px; }
  .hero-title { font-size: 20px; }
  .section-header h2 { font-size: 20px; }
  .header-right { gap: 6px; }
}

/* PAYMENT OVERLAY */
.payment-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}
.payment-overlay.active {
    display: flex;
}
.payment-modal {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    max-width: 400px;
    width: 90%;
    text-align: center;
    border: 1px solid var(--border);
}
.payment-modal h2 {
    margin-top: 0;
    color: var(--text);
}
.payment-modal p {
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 24px;
}
#qr-container img {
    max-width: 250px;
    border-radius: 12px;
    margin: 0 auto 16px;
    display: block;
    border: 1px solid var(--border);
}
.btn-primary {
    background: var(--blue);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}
.btn-primary:hover {
    background: #2563eb;
}

/* ===========================
   CHATBOT UI
=========================== */
#chatbot-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: none; /* Hiển thị sau khi login */
    font-family: 'Inter', sans-serif;
}

#chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #3b82f6;
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    overflow: hidden;
    padding: 0;
}

#chatbot-toggle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#chatbot-toggle:hover {
    transform: scale(1.05);
}

#chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: opacity 0.3s, transform 0.3s;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

#chatbot-window.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.chatbot-header {
    background: #3b82f6;
    color: white;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
}

.chatbot-header .avatar-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chatbot-header img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}

.chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.chatbot-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f8fafc;
}

.chat-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.chat-msg.bot {
    background: white;
    color: #1e293b;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}

.chat-msg.user {
    background: #3b82f6;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chatbot-input {
    display: flex;
    padding: 12px;
    background: white;
    border-top: 1px solid #e2e8f0;
}

.chatbot-input input {
    flex: 1;
    border: 1px solid #e2e8f0;
    padding: 10px 14px;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
}

.chatbot-input input:focus {
    border-color: #3b82f6;
}

.chatbot-input button {
    background: #3b82f6;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.chatbot-input button:hover {
    background: #2563eb;
}

.typing-indicator {
    display: none;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    background: white;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    border: 1px solid #e2e8f0;
    margin-bottom: 12px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #94a3b8;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
