:root {
  --ix-navy: #0b315f;
  --ix-navy-2: #164f86;
  --ix-gold: #d2aa3d;
  --ix-ink: #102a43;
  --ix-muted: #455a6f;
  --ix-line: #dce5ee;
  --ix-surface: #ffffff;
  --ix-soft: #f4f7fb;
  --ix-success: #168653;
  --ix-danger: #b8323c;
  --ix-warning: #956a12;
}

.integration-experience {
  min-height: calc(100vh - 78px);
  padding: 22px 20px 110px;
  background:
    radial-gradient(circle at 92% -4%, rgba(210, 170, 61, .13), transparent 30%),
    linear-gradient(180deg, #f4f7fb 0%, #eef3f8 100%);
  color: var(--ix-ink);
}

.ix-shell { width: min(1120px, 100%); margin: 0 auto; }
.ix-hero {
  --ix-accent: var(--ix-gold);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 30px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, #0a2d59 0%, #164f86 100%);
  box-shadow: 0 18px 45px rgba(11, 49, 95, .18);
}
.ix-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--ix-accent);
}
.ix-hero::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -90px;
  top: -150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}
.ix-hero-copy { position: relative; z-index: 1; }
.ix-eyebrow {
  display: block;
  margin-bottom: 8px;
  color: #ead58f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.ix-hero h2 { margin: 0; color: #fff; font-size: clamp(24px, 3vw, 34px); line-height: 1.12; }
.ix-hero p { max-width: 670px; margin: 10px 0 0; color: rgba(255, 255, 255, .82); font-size: 15px; line-height: 1.55; }
.ix-brand {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 22px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 12px 28px rgba(0,0,0,.14);
}
.ix-brand img { width: 48px; height: 48px; object-fit: contain; }
.ix-brand.portals img { width: 54px; height: 54px; }

.ix-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(270px, .75fr); gap: 18px; margin-top: 18px; align-items: start; }
.ix-main, .ix-aside { display: grid; gap: 18px; min-width: 0; }
.ix-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(183, 199, 214, .78);
  border-radius: 20px;
  background: var(--ix-surface);
  box-shadow: 0 8px 26px rgba(35, 63, 89, .07);
}
.ix-card-head { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }
.ix-card-head h3 { margin: 0; color: var(--ix-ink); font-size: 18px; line-height: 1.25; }
.ix-card-head p { margin: 6px 0 0; color: var(--ix-muted); font-size: 13px; line-height: 1.5; }
.ix-service { display: flex; gap: 13px; align-items: center; min-width: 0; }
.ix-service-logo { flex: 0 0 auto; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; background: #f3f6fa; border: 1px solid var(--ix-line); }
.ix-service-logo img { width: 30px; height: 30px; object-fit: contain; }
.ix-service-logo.whatsapp { background: #eaf8f0; }
.ix-service-logo.meta { background: #f2efff; }
.ix-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  min-height: 29px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--ix-muted);
  background: #eff3f7;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.ix-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ix-status.connected { color: var(--ix-success); background: #e8f7ef; }
.ix-status.pending { color: var(--ix-warning); background: #fff7df; }
.ix-status.attention { color: var(--ix-danger); background: #fff0f1; }

.ix-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 20px; }
.ix-detail { min-width: 0; padding: 14px; border-radius: 14px; background: var(--ix-soft); }
.ix-detail span { display: block; margin-bottom: 5px; color: var(--ix-muted); font-size: 11px; font-weight: 700; }
.ix-detail b { display: block; overflow-wrap: anywhere; color: var(--ix-ink); font-size: 13px; line-height: 1.4; }
.ix-feature-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ix-feature-list li { position: relative; padding-left: 28px; color: #40576c; font-size: 13px; line-height: 1.5; }
.ix-feature-list li::before { content: "✓"; position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; color: var(--ix-success); background: #e8f7ef; font-size: 11px; font-weight: 900; }
.ix-feature-list b { color: var(--ix-ink); }

.ix-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.ix-btn {
  min-height: 44px;
  padding: 11px 17px;
  border: 1px solid #cbd8e4;
  border-radius: 12px;
  color: var(--ix-ink);
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.ix-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(24, 55, 85, .11); }
.ix-btn:disabled { opacity: .58; cursor: wait; }
.ix-btn.primary { border-color: var(--ix-navy); color: #fff; background: linear-gradient(135deg, var(--ix-navy), var(--ix-navy-2)); }
.ix-btn.danger { border-color: #ecc6c9; color: var(--ix-danger); background: #fff7f7; }
.ix-btn.success { border-color: #b9dfca; color: #0d7544; background: #edfaf3; }
.ix-btn.wide { width: 100%; }
.ix-btn-link { border: 0; padding: 0; color: var(--ix-navy-2); background: transparent; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }

.ix-message { margin-top: 14px; padding: 13px 15px; border-radius: 12px; color: #225c40; background: #ecf8f1; font-size: 13px; line-height: 1.45; }
.ix-message.error { color: #8d2a31; background: #fff0f1; }
.ix-message.info { color: #315773; background: #edf5fb; }
.ix-confirm { margin-top: 16px; padding: 16px; border: 1px solid #ecd4d5; border-radius: 14px; background: #fff8f8; }
.ix-confirm b { color: #7e2930; }
.ix-confirm p { margin: 7px 0 0; color: #75575a; font-size: 13px; line-height: 1.45; }

.ix-form { display: grid; gap: 15px; }
.ix-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.ix-field { display: grid; gap: 7px; min-width: 0; }
.ix-field.full { grid-column: 1 / -1; }
.ix-field label, .ix-label { color: #536779; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.ix-input, .ix-select {
  width: 100%;
  min-height: 46px;
  box-sizing: border-box;
  padding: 11px 13px;
  border: 1px solid #ccd8e3;
  border-radius: 12px;
  outline: none;
  color: var(--ix-ink);
  background: #fff;
  font: inherit;
  font-size: 14px;
}
.ix-input:focus, .ix-select:focus { border-color: #4f7eab; box-shadow: 0 0 0 3px rgba(61, 112, 158, .12); }
.ix-help { color: var(--ix-muted); font-size: 11px; line-height: 1.45; }
.ix-link-box { display: flex; gap: 8px; align-items: center; padding: 9px; border: 1px solid var(--ix-line); border-radius: 12px; background: var(--ix-soft); }
.ix-link-box input { min-width: 0; flex: 1; border: 0; outline: none; color: #536779; background: transparent; font-size: 12px; text-overflow: ellipsis; }

.ix-metric { padding: 18px; border-radius: 16px; background: linear-gradient(145deg, #f4f8fb, #eef4f8); }
.ix-metric span { color: var(--ix-muted); font-size: 11px; font-weight: 700; }
.ix-metric strong { display: block; margin-top: 5px; color: var(--ix-ink); font-size: 20px; line-height: 1.25; overflow-wrap: anywhere; }
.ix-note { margin: 0; color: var(--ix-muted); font-size: 12px; line-height: 1.55; }

.ix-triage-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.ix-triage-head h3 { margin: 0; font-size: 18px; }
.ix-count { min-width: 28px; padding: 5px 9px; border-radius: 999px; text-align: center; color: var(--ix-navy); background: #eaf1f8; font-size: 12px; font-weight: 900; }
.ix-triage-list { display: grid; gap: 10px; }
.ix-triage-item { padding: 16px; border: 1px solid var(--ix-line); border-radius: 15px; background: #fff; }
.ix-triage-person { display: flex; gap: 11px; align-items: center; }
.ix-avatar { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto; border-radius: 13px; color: #087a43; background: #e6f7ee; font-weight: 900; }
.ix-triage-person b, .ix-triage-person small { display: block; }
.ix-triage-person small { margin-top: 2px; color: var(--ix-muted); font-size: 11px; }
.ix-time { margin-left: auto; color: var(--ix-muted); font-size: 11px; }
.ix-preview { margin: 12px 0 0; color: #536779; font-size: 13px; line-height: 1.45; }
.ix-empty { padding: 34px 18px; border: 1px dashed #cbd8e4; border-radius: 15px; text-align: center; color: var(--ix-muted); font-size: 13px; line-height: 1.55; }

.ix-page-list { display: grid; gap: 9px; margin-top: 16px; }
.ix-page-option { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid var(--ix-line); border-radius: 13px; color: var(--ix-ink); background: #fff; text-align: left; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.ix-page-option::after { content: "Conectar"; color: var(--ix-navy-2); font-size: 11px; }

.ix-portal-stack { display: grid; gap: 18px; }
.ix-portal-brands { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.ix-portal-brand { display: inline-flex; align-items: center; min-height: 30px; padding: 5px 11px; border-radius: 9px; font-size: 12px; font-weight: 900; letter-spacing: -.01em; }
.ix-portal-brand.zap { color: #fff; background: #1769aa; }
.ix-portal-brand.viva { color: #fff; background: #087f73; }
.ix-portal-brand.olx { color: #fff; background: linear-gradient(135deg, #6e0ad6, #f06a2d); }

.ix-coming { text-align: center; padding: 36px 24px; }
.ix-coming img { width: 64px; height: 64px; margin-bottom: 15px; }
.ix-coming h3 { margin: 0; font-size: 21px; }
.ix-coming p { max-width: 560px; margin: 9px auto 0; color: var(--ix-muted); font-size: 13px; line-height: 1.6; }

@media (max-width: 760px) {
  .integration-experience { min-height: calc(100vh - 64px); padding: 14px 14px 105px; }
  .ix-hero { grid-template-columns: minmax(0,1fr) 58px; gap: 14px; padding: 22px 19px; border-radius: 19px; }
  .ix-brand { width: 56px; height: 56px; border-radius: 16px; }
  .ix-brand img, .ix-brand.portals img { width: 34px; height: 34px; }
  .ix-hero h2 { font-size: 24px; }
  .ix-hero p { font-size: 13px; }
  .ix-layout { grid-template-columns: 1fr; gap: 13px; margin-top: 13px; }
  .ix-main, .ix-aside { gap: 13px; }
  .ix-card { padding: 18px; border-radius: 17px; }
  .ix-card-head { flex-direction: column; align-items: flex-start; margin-bottom: 16px; }
  .ix-service-logo { width: 44px; height: 44px; border-radius: 13px; }
  .ix-service-logo img { width: 27px; height: 27px; }
  .ix-detail-grid { grid-template-columns: 1fr; }
  .ix-form-grid { grid-template-columns: 1fr; gap: 13px; }
  .ix-field.full { grid-column: auto; }
  .ix-actions { display: grid; grid-template-columns: 1fr; }
  .ix-btn { width: 100%; }
  .ix-time { display: none; }
}

@media (min-width: 1024px) {
  .integration-experience { min-height: calc(100vh - 70px); padding: 28px 34px 60px; }
  #page-whatsapp .subpage-top,
  #page-googlecalendar .subpage-top,
  #page-meta .subpage-top,
  #page-portais .subpage-top,
  #page-openai .subpage-top { padding-left: max(30px, calc((100vw - 1188px) / 2)); padding-right: max(30px, calc((100vw - 1188px) / 2)); }
}
