/* ChatScope AI Product Teaser Styles
 * Scoped under #csat and #csa-ptit
 */

/* Hide theme's automatic header page title on teaser pages */
body.csa-teaser-page .elementor-widget-aigency_page_title {
  display: none !important;
}

/* ==========================================================================
   Title Bar (#csa-ptit)
   ========================================================================== */
#csa-ptit {
  width: 100%;
  padding: 56px 20px 36px;
  background: #F0F2F4;
  text-align: center;
  font-family: "DM Sans", Manrope, system-ui, -apple-system, sans-serif;
  color: #111111;
  box-sizing: border-box;
}

#csa-ptit .csa-container {
  max-width: 1140px;
  margin: 0 auto;
}

#csa-ptit .csa-ptit__slg {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto 16px;
  padding: 5px 6px 5px 14px;
  background: #ffffff;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: #333333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

#csa-ptit .csa-ptit__slg-bef {
  font-weight: 600;
  color: #111111;
}

#csa-ptit .csa-ptit__slg-aft {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #F0F2F4;
  font-size: 12px;
  font-weight: 600;
  color: #7266E0;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

#csa-ptit .csa-ptit__slg-aft:hover {
  background: #7266E0;
  color: #ffffff;
}

#csa-ptit .csa-ptit__slg-aft svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
}

#csa-ptit .csa-ptit__slg-aft:hover svg path {
  stroke: #ffffff;
}

#csa-ptit .csa-ptit__text {
  margin: 0 0 12px;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: #111111;
}

#csa-ptit .csa-ptit__desc {
  max-width: 680px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.6;
  color: #6B6B6B;
}

@media (max-width: 767px) {
  #csa-ptit {
    padding: 32px 16px 24px;
  }
  #csa-ptit .csa-ptit__text {
    font-size: 26px;
    letter-spacing: -0.02em;
  }
  #csa-ptit .csa-ptit__desc {
    font-size: 14px;
  }
}

/* ==========================================================================
   Main Teaser Wrapper (#csat)
   ========================================================================== */
#csat {
  --csa-ink: #111111;
  --csa-txt: #333333;
  --csa-mute: #6B6B6B;
  --csa-teal: #26C6D1;
  --csa-vio: #7266E0;
  --csa-grad: linear-gradient(77deg, #26C6D1 0%, #7266E0 100%);
  --csa-line: rgba(17, 17, 17, 0.12);
  --csa-tab: #F0F2F4;
  --csa-card-bg: #FFFFFF;
  --csa-font: "DM Sans", Manrope, system-ui, -apple-system, sans-serif;

  width: 100%;
  font-family: var(--csa-font);
  color: var(--csa-txt);
  background: #FFFFFF;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

#csat * {
  box-sizing: border-box;
}

#csat .csa-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}

/* Reset buttons and fields against theme aggressive defaults */
#csat :where(button) {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
}
#csat button::before,
#csat button::after,
#csat li::before {
  content: none !important;
}

/* Reusable Button */
#csat .csa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

#csat .csa-btn:hover {
  filter: brightness(1.07);
}

#csat .csa-btn:active {
  transform: scale(0.98);
}

#csat .csa-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--csa-vio);
}

#csat .csa-btn--primary {
  background: var(--csa-grad);
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(114, 102, 224, 0.25);
}

#csat .csa-btn--white {
  background: #FFFFFF;
  color: var(--csa-ink) !important;
  border: 1px solid var(--csa-line);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
#csat .csa-btn--white:hover {
  background: var(--csa-tab);
}

/* ==========================================================================
   Form & Input Box
   ========================================================================== */
#csat .csa-form {
  position: relative;
  padding: 16px 20px;
  background: #FFFFFF;
  border: 1px solid var(--csa-line);
  border-radius: 20px;
  box-shadow: 0 12px 32px -12px rgba(17, 17, 17, 0.12);
  margin-bottom: 32px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#csat .csa-form:focus-within {
  border-color: var(--csa-vio);
  box-shadow: 0 0 0 4px rgba(114, 102, 224, 0.1), 0 16px 36px -12px rgba(114, 102, 224, 0.2);
}

#csat .csa-form.csa-bad {
  border-color: #D92D20;
  animation: csa-shake 0.24s ease-out;
}
@keyframes csa-shake {
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}
@keyframes csa-spin {
  to { transform: rotate(360deg); }
}
@keyframes csa-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ==========================================================================
   Progress Stepper & Loader
   ========================================================================== */
#csat .csa-progress {
  padding: 32px 28px;
  background: #ffffff;
  border: 1px solid var(--csa-line);
  border-radius: 20px;
  box-shadow: 0 10px 30px -10px rgba(17, 17, 17, 0.08);
  margin-bottom: 32px;
  animation: csa-fadein 0.2s ease-out;
}

#csat .csa-progress__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

#csat .csa-progress__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: #0F172A;
}

#csat .csa-progress__spin {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2.5px solid var(--csa-vio);
  border-top-color: transparent;
  border-radius: 50%;
  animation: csa-spin 0.8s linear infinite;
  flex-shrink: 0;
}

#csat .csa-progress__time {
  font-size: 13px;
  font-weight: 500;
  color: #64748B;
  white-space: nowrap;
}

#csat .csa-bar {
  position: relative;
  width: 100%;
  height: 6px;
  background: #F1F5F9;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 22px;
}

#csat .csa-bar i {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--csa-grad);
  border-radius: 999px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#csat .csa-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#csat .csa-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #64748B;
  transition: color 0.2s ease;
}

#csat .csa-steps li::before {
  content: "" !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #CBD5E1;
  background: #ffffff;
  flex-shrink: 0;
  transition: all 0.2s ease;
  font-size: 11px;
}

#csat .csa-steps li.is-active {
  color: #0F172A;
  font-weight: 600;
}

#csat .csa-steps li.is-active::before {
  border-color: var(--csa-vio);
  border-top-color: transparent;
  animation: csa-spin 0.8s linear infinite;
}

#csat .csa-steps li.is-done {
  color: #0F172A;
  font-weight: 500;
}

#csat .csa-steps li.is-done::before {
  content: "✓" !important;
  border-color: #10B981;
  background: #10B981;
  color: #ffffff;
  font-weight: 700;
  animation: none;
}

/* Shimmer Skeleton */
#csat .csa-skel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid #F1F5F9;
}

#csat .csa-skel i {
  display: block;
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
  background-size: 200% 100%;
  animation: csa-shimmer 1.5s infinite;
}

#csat .csa-skel i:first-child {
  width: 60%;
  height: 18px;
}
#csat .csa-skel i:nth-child(2) {
  width: 100%;
}
#csat .csa-skel i:last-child {
  width: 80%;
}

/* Interactive Notice Card */
#csat .csa-notice {
  padding: 24px;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 16px;
  margin-bottom: 32px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
#csat .csa-notice--error {
  background: #FEF2F2;
  border-color: #FECACA;
}
#csat .csa-notice__icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.1);
  color: #DC2626;
  display: flex;
  align-items: center;
  justify-content: center;
}
#csat .csa-notice__main {
  flex: 1;
}
#csat .csa-notice h4 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: #0F172A;
}
#csat .csa-notice p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.5;
  color: #475569;
}
#csat .csa-notice__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
#csat .csa-notice__retry {
  padding: 8px 16px;
  border-radius: 10px;
  background: var(--csa-vio);
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
#csat .csa-notice__app {
  padding: 8px 16px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--csa-line);
  color: #0F172A !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

#csat .csa-form__row {
  display: flex;
  align-items: flex-end;
  gap: 14px;
}

#csat .csa-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#csat .csa-field--grow {
  flex: 1;
  min-width: 0;
}

#csat .csa-field--country {
  width: 240px;
  flex-shrink: 0;
}

#csat .csa-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--csa-mute);
}

#csat .csa-inputwrap {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 14px;
  background: var(--csa-tab);
  border: 1px solid transparent;
  border-radius: 12px;
  transition: border-color 0.15s, background 0.15s;
}

#csat .csa-inputwrap svg {
  flex-shrink: 0;
  stroke: var(--csa-mute);
}

#csat .csa-input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--csa-ink);
}
#csat .csa-input::placeholder {
  color: #9AA0AA;
  font-weight: 400;
}

#csat .csa-select {
  height: 50px;
  padding: 0 14px;
  background: var(--csa-tab);
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--csa-ink);
  outline: 0;
  cursor: pointer;
}

/* ---------- Searchable Country Combobox (matching hscodematch) ---------- */
#csat select[hidden] {
  display: none !important;
}

#csat .csa-cty {
  position: relative;
  min-width: 0;
  width: 100%;
}

#csat .csa-cbtn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 50px;
  padding: 0 12px;
  background-color: var(--csa-tab);
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--csa-ink);
  cursor: text;
  box-shadow: none;
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

#csat .csa-cbtn:focus-within {
  border-color: var(--csa-vio);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(114, 102, 224, 0.18);
}

#csat .csa-cin {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--csa-ink);
  outline: 0;
  box-shadow: none;
  text-overflow: ellipsis;
}

#csat .csa-cin::placeholder {
  color: var(--csa-mute);
  opacity: 1;
}

#csat .csa-cbtn .csa-flag {
  flex: none;
  font-size: 18px;
  line-height: 1;
  font-style: normal;
  display: inline-block;
  user-select: none;
}

#csat .csa-carr {
  flex: none;
  width: 14px;
  height: 14px;
  stroke: var(--csa-mute);
  margin-left: auto;
  pointer-events: none;
  transition: transform 0.2s ease;
}

#csat .csa-cbtn.is-open .csa-carr {
  transform: rotate(180deg);
}

#csat .csa-cpop {
  position: fixed;
  z-index: 10000;
  padding: 8px;
  background: #ffffff;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 14px;
  box-shadow: 0 16px 40px -8px rgba(17, 17, 17, 0.22);
  font-family: inherit;
  animation: csa-drop 0.15s ease-out;
}

@keyframes csa-drop {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

#csat .csa-cpop ul {
  max-height: 280px;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
  overscroll-behavior: contain;
}

#csat .csa-cpop li {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--csa-ink);
  cursor: pointer;
  transition: background-color 0.1s ease;
}

#csat .csa-cpop li[aria-selected="true"],
#csat .csa-cpop li:hover {
  background: #f0e7fe;
  color: var(--csa-vio);
  font-weight: 500;
}

#csat .csa-cpop li.csa-csep {
  margin-top: 4px;
  padding: 8px 12px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--csa-mute);
  cursor: default;
  background: none;
}

#csat .csa-err {
  margin: 10px 0 0;
  padding: 8px 12px;
  border-radius: 8px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #DC2626;
  font-size: 13px;
  font-weight: 500;
}

#csat .csa-form__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(17, 17, 17, 0.06);
}

#csat .csa-try {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--csa-mute);
}

#csat .csa-try__label {
  font-weight: 500;
}

#csat .csa-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border: 1px solid rgba(114, 102, 224, 0.22);
  border-radius: 999px;
  background: #F7F5FF;
  font-size: 13px;
  font-weight: 600;
  color: var(--csa-vio);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(114, 102, 224, 0.08);
}
#csat .csa-chip:hover {
  border-color: var(--csa-vio);
  background: var(--csa-vio);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(114, 102, 224, 0.25);
}
#csat .csa-chip:active {
  transform: translateY(0);
}

#csat .csa-quota {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--csa-mute);
}

#csat .csa-quota__dots {
  display: inline-flex;
  gap: 4px;
}

#csat .csa-quota__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #D1D5DB;
  transition: background 0.2s;
}

#csat .csa-quota__dot.is-active {
  background: var(--csa-vio);
}

/* ==========================================================================
   Results Layout & Cards
   ========================================================================== */
#csat .csa-card-result {
  background: #FFFFFF;
  border: 1px solid var(--csa-line);
  border-radius: 20px;
  box-shadow: 0 10px 30px -10px rgba(17, 17, 17, 0.08);
  padding: 28px;
  margin-bottom: 32px;
}

#csat .csa-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #DCFCE7;
  color: #15803D;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1;
}
#csat .csa-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
#csat .csa-tag--example {
  background: #F1F5F9;
  color: #475569;
}

#csat .csa-result-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--csa-line);
  margin-bottom: 24px;
}

#csat .csa-result-header__title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  color: var(--csa-ink);
}

#csat .csa-result-header__jurisdiction {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--csa-mute);
}

#csat .csa-flag {
  font-style: normal;
  display: inline-block;
  font-size: 16px;
  line-height: 1;
}

/* Badges */
#csat .csa-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: capitalize;
}

#csat .csa-badge--in-force {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
}

#csat .csa-badge--proposed {
  background: #FFFBEB;
  color: #D97706;
  border: 1px solid #FDE68A;
}

#csat .csa-badge--repealed {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
}

#csat .csa-badge--voluntary {
  background: #F5F3FF;
  color: #7266E0;
  border: 1px solid #DDD6FE;
}

/* Regulations Grid (Infographic summary) */
#csat .csa-regs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

#csat .csa-reg-item {
  padding: 18px 20px;
  background: #F9FAFB;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-left-width: 4px;
  border-left-color: var(--csa-vio);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

#csat .csa-reg-item[data-status="in force"] {
  border-left-color: #10B981;
}

#csat .csa-reg-item[data-status="proposed"] {
  border-left-color: #F59E0B;
}

#csat .csa-reg-item[data-status="voluntary"] {
  border-left-color: #7266E0;
}

#csat .csa-reg-item[data-status="repealed"] {
  border-left-color: #EF4444;
}

#csat .csa-reg-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

#csat .csa-reg-item__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

#csat .csa-reg-item__name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--csa-ink);
  line-height: 1.35;
}

#csat .csa-reg-item__note {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--csa-txt);
  margin: 0;
}

/* Summary Answer Block */
#csat .csa-summary-box {
  padding: 22px 24px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  margin-bottom: 24px;
}

#csat .csa-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748B;
  margin-bottom: 12px;
}

#csat .csa-summary-box p,
#csat .csa-change-box p {
  margin: 0 0 14px;
  font-size: 14.5px;
  line-height: 1.68;
  color: #1E293B;
}

#csat .csa-summary-box p:last-child,
#csat .csa-change-box p:last-child {
  margin-bottom: 0;
}

#csat .csa-summary-box__hint {
  display: block;
  margin-top: 14px;
  font-size: 12px;
  color: #94A3B8;
}

/* ==========================================================================
   Market Forecast Specific Dashboard
   ========================================================================== */
#csat .csa-forecast-disclaimer {
  font-size: 13px;
  font-style: italic;
  color: var(--csa-mute);
  margin: -6px 0 18px;
  line-height: 1.5;
}

#csat .csa-change-box {
  padding: 16px 20px;
  background: #EEF2FF;
  border-left: 4px solid var(--csa-vio);
  border-radius: 0 14px 14px 0;
  margin-bottom: 24px;
}

#csat .csa-change-box__tag {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--csa-vio);
}

#csat .csa-change-box__text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--csa-ink);
  font-weight: 500;
}

/* Forecast Metrics Tiles */
#csat .csa-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

#csat .csa-metric-tile {
  padding: 16px;
  background: var(--csa-tab);
  border-radius: 14px;
  text-align: center;
}

#csat .csa-metric-tile__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--csa-mute);
  margin-bottom: 6px;
}

#csat .csa-metric-tile__val {
  font-size: 16px;
  font-weight: 700;
  color: var(--csa-ink);
}

#csat .csa-metric-tile__val--direction {
  color: #059669;
}

/* Top 3 Market Predictions Cards (matching chatscopeai-v2 MarketForecastContainer.jsx) */
#csat .mf-predictions-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

#csat .mf-prediction-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#csat .mf-prediction-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

#csat .mf-pred-header {
  padding: 12px 18px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
}

#csat .mf-pred-badge {
  background: var(--csa-vio);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.2;
}

#csat .mf-pred-badge svg {
  width: 11px;
  height: 11px;
  stroke: #ffffff;
}

#csat .mf-pred-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
  margin: 0;
  padding: 0;
  flex: 1;
}

#csat .mf-pred-body {
  padding: 18px 20px;
  font-size: 14px;
  line-height: 1.75;
  color: #334155;
}

/* Drivers List (fallback) */
#csat .csa-drivers-card {
  padding: 20px;
  background: #F9FAFB;
  border: 1px solid var(--csa-line);
  border-radius: 14px;
  margin-bottom: 24px;
}

#csat .csa-drivers-card h4 {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--csa-ink);
}

#csat .csa-drivers-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#csat .csa-drivers-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--csa-txt);
}

#csat .csa-driver-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--csa-grad);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Citations Box */
#csat .csa-citations-box {
  padding-top: 16px;
  border-top: 1px solid var(--csa-line);
}

#csat .csa-citations-box h5 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--csa-mute);
}

#csat .csa-citations-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

#csat .csa-citations-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

#csat .csa-cite-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(114, 102, 224, 0.18);
}

#csat .csa-cite-pills__label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--csa-mute);
  margin-right: 2px;
}

#csat .csa-citation-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--csa-vio);
  text-decoration: none;
  transition: text-decoration 0.15s;
}
#csat .csa-citation-link:hover {
  text-decoration: underline;
}
#csat .csa-citation-link svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
}

/* Citation Button & Chips (matching HSCodeMatch) */
#csat .csa-cite-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  min-width: 20px;
  padding: 0 6px;
  margin: 0 2px;
  vertical-align: 2px;
  border: 0;
  border-radius: 999px;
  background: #EDE9FE;
  color: #6366F1;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}
#csat .csa-cite-btn:hover,
#csat .csa-cite-btn.is-active {
  background: #6366F1;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.35);
}

/* Citation Popover (fixed overlay on bottom-right, sheet on mobile) */
#csat-pop-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(2px);
  animation: csa-fadein 0.2s ease-out;
}
@media (min-width: 601px) {
  #csat-pop-backdrop {
    display: none !important;
  }
}

#csat-pop {
  --csa-vio: #6366F1;
  position: fixed;
  z-index: 10000;
  right: 24px;
  bottom: 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(99, 102, 241, 0.1);
  padding: 18px 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  animation: csa-sheet 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
  box-sizing: border-box;
}
@keyframes csa-sheet {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
#csat-pop .csa-pop__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
#csat-pop .csa-pop__site {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  min-width: 0;
}
#csat-pop .csa-pop__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  min-width: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #6366F1;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  flex: none;
  box-shadow: 0 1px 3px rgba(99, 102, 241, 0.35);
}
#csat-pop .csa-pop__close {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 0;
  background: #F1F5F9;
  color: #64748B;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  transition: all 0.15s ease;
}
#csat-pop .csa-pop__close:hover {
  background: #E2E8F0;
  color: #0F172A;
}
#csat-pop .csa-pop__title {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.45;
  color: #0F172A;
  margin-bottom: 8px;
}
#csat-pop .csa-pop__quote {
  margin: 8px 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #F8FAFC;
  border-left: 3px solid var(--csa-vio);
  font-size: 13px;
  line-height: 1.55;
  color: #334155;
}
#csat-pop .csa-pop__ext {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--csa-vio);
  text-decoration: none;
}
#csat-pop .csa-pop__ext:hover {
  text-decoration: underline;
}
@media (max-width: 600px) {
  #csat-pop {
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    max-width: none;
    border-radius: 20px 20px 0 0;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }
}

/* Citations Highlight pulse */
#csat .csa-citations-list li.is-highlighted {
  animation: csa-pulse 2s ease-out;
  border-radius: 8px;
}
@keyframes csa-pulse {
  0% { background: rgba(114, 102, 224, 0.2); }
  100% { background: transparent; }
}

/* Header & Banner Open in App buttons */
#csat .csa-header-app-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  background: var(--csa-grad);
  color: #fff !important;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(114, 102, 224, 0.25);
  transition: all 0.2s ease;
}
#csat .csa-header-app-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(114, 102, 224, 0.35);
}

#csat .csa-open-app-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0 16px;
  padding: 18px 22px;
  background: linear-gradient(135deg, #FAF8FF 0%, #F3F0FF 100%);
  border: 1.5px solid #E4DCFD;
  border-radius: 16px;
}
#csat .csa-open-app-banner__text h6 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: #1E1B4B;
}
#csat .csa-open-app-banner__text p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #475569;
}
#csat .csa-open-app-banner .csa-btn {
  flex-shrink: 0;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
}
@media (max-width: 680px) {
  #csat .csa-open-app-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }
  #csat .csa-open-app-banner .csa-btn {
    text-align: center;
    justify-content: center;
  }
}

/* Follow-up Chat Box inside Results */
#csat .csa-followup-wrap {
  margin-top: 24px;
  padding: 16px 20px;
  background: #F9FAFB;
  border: 1px solid var(--csa-line);
  border-radius: 14px;
}

#csat .csa-followup-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--csa-ink);
  margin-bottom: 10px;
}

#csat .csa-followup-form {
  display: flex;
  gap: 10px;
}

#csat .csa-followup-input {
  flex: 1;
  height: 44px;
  padding: 0 14px;
  background: #FFFFFF;
  border: 1px solid var(--csa-line);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: var(--csa-ink);
  outline: 0;
}
#csat .csa-followup-input:focus {
  border-color: var(--csa-vio);
}

#csat .csa-followup-btn {
  height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--csa-grad);
  color: #FFFFFF !important;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

/* ==========================================================================
   Limit Reached Banner
   ========================================================================== */
#csat .csa-limit-banner {
  padding: 24px;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 16px;
  text-align: center;
  margin-bottom: 32px;
}

#csat .csa-limit-banner h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: #B45309;
}

#csat .csa-limit-banner p {
  margin: 0 0 16px;
  font-size: 14.5px;
  color: #92400E;
}

/* ==========================================================================
   App Strip & Other Products
   ========================================================================== */
#csat .csa-appstrip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  background: var(--csa-grad);
  border-radius: 18px;
  color: #FFFFFF;
  margin-bottom: 48px;
  box-shadow: 0 12px 30px -10px rgba(114, 102, 224, 0.4);
}

#csat .csa-appstrip__text h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
}

#csat .csa-appstrip__text ul {
  margin: 0;
  padding: 0 0 0 18px;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

#csat .csa-others {
  padding-top: 16px;
}

#csat .csa-others h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--csa-ink);
  margin: 0 0 16px;
}

#csat .csa-others__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

#csat .csa-others__grid--single {
  max-width: 580px;
}

#csat .csa-toolmini {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #FFFFFF;
  border: 1px solid var(--csa-line);
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.15s ease;
}
#csat .csa-toolmini:hover {
  border-color: var(--csa-vio);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

#csat .csa-toolmini__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--csa-tab);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--csa-vio);
}

#csat .csa-toolmini__body {
  flex: 1;
  min-width: 0;
}

#csat .csa-toolmini__name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--csa-ink);
}

#csat .csa-toolmini__blurb {
  display: block;
  font-size: 12.5px;
  color: var(--csa-mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#csat .csa-toolmini__go {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--csa-vio);
}

/* ==========================================================================
   Overview Page Specific (#csat .csa-overview)
   ========================================================================== */
#csat .csa-overview__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

#csat .csa-toolcard {
  position: relative;
  padding: 36px 30px;
  background: #FFFFFF;
  border: 1px solid var(--csa-line);
  border-radius: 20px;
  box-shadow: 0 10px 30px -10px rgba(17, 17, 17, 0.08);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

#csat .csa-toolcard:hover {
  border-color: var(--csa-vio);
  box-shadow: 0 16px 40px -12px rgba(114, 102, 224, 0.2);
  transform: translateY(-4px);
}

#csat .csa-toolcard__badge {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(38, 198, 209, 0.12);
  color: #0E7490;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

#csat .csa-toolcard__badge--accent {
  background: rgba(114, 102, 224, 0.12);
  color: var(--csa-vio);
}

#csat .csa-toolcard__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--csa-tab);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--csa-vio);
  margin-bottom: 16px;
}

#csat .csa-toolcard__title {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 700;
  color: var(--csa-ink);
}

#csat .csa-toolcard__desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--csa-mute);
  margin: 0 0 20px;
}

#csat .csa-toolcard__features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

#csat .csa-toolcard__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--csa-txt);
}

#csat .csa-check {
  color: #059669;
  font-weight: 700;
}

#csat .csa-toolcard__foot {
  margin-top: auto;
}

#csat .csa-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  background: #111111;
  border-radius: 20px;
  color: #FFFFFF;
}

#csat .csa-banner__content h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
}

#csat .csa-banner__content p {
  margin: 0;
  font-size: 14px;
  color: #9CA3AF;
  max-width: 600px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 860px) {
  #csat .csa-form__row {
    flex-direction: column;
    align-items: stretch;
  }
  #csat .csa-field--country {
    width: 100%;
  }
  #csat .csa-metrics-row {
    grid-template-columns: 1fr;
  }
  #csat .csa-appstrip,
  #csat .csa-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  #csat .csa-wrap {
    padding: 16px 12px 60px;
  }
  #csat .csa-form {
    padding: 14px;
  }
  #csat .csa-card-result {
    padding: 18px 14px;
  }
  #csat .csa-regs-grid {
    grid-template-columns: 1fr;
  }
  #csat .csa-overview__grid {
    grid-template-columns: 1fr;
  }
}
