:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --text: #0f172a;
  --muted: #667085;
  --line: #e6eaf0;
  --teal: #10bfc2;
  --teal-2: #08a9ad;
  --teal-soft: rgba(16,191,194,.13);
  --dark: #07151d;
  --dark-2: #0c202a;
  --danger: #ef4444;
  --success: #22c55e;
  --warning: #f59e0b;
  --purple: #8b5cf6;
  --blue: #38a3ff;
  --shadow: 0 18px 45px rgba(15, 23, 42, .09);
  --soft-shadow: 0 8px 22px rgba(15, 23, 42, .06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}
button, input, select, textarea { font-family: inherit; }
a { color: var(--teal); text-decoration: none; }

/* Login inspirado no mockup */
.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 12%, rgba(16,191,194,.20), transparent 34%),
    radial-gradient(circle at 85% 72%, rgba(11,31,42,.20), transparent 36%),
    linear-gradient(135deg, #f7fbff 0%, #eef4f8 45%, #f8fbfd 100%);
}
.login-shell {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: 385px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}
.login-phone-card {
  min-height: 760px;
  border-radius: 46px;
  padding: 28px 28px 24px;
  color: #eef6f8;
  background:
    radial-gradient(circle at 50% 22%, rgba(16,191,194,.22), transparent 32%),
    linear-gradient(180deg, #0c1c25 0%, #061118 100%);
  border: 8px solid #101820;
  box-shadow: 0 30px 70px rgba(3, 12, 18, .28);
  position: relative;
  overflow: hidden;
}
.login-phone-card:before {
  content: "";
  position: absolute;
  inset: -30% -30% auto auto;
  width: 300px;
  height: 300px;
  background: rgba(16,191,194,.08);
  filter: blur(10px);
  border-radius: 50%;
}
.phone-status {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 34px;
  position: relative;
  z-index: 1;
}
.login-logo-wrap { display: grid; place-items: center; position: relative; z-index: 1; }
.login-logo { width: 250px; max-width: 90%; height: auto; display: block; }
.login-copy { text-align: center; margin: 22px 0 22px; position: relative; z-index: 1; }
.login-copy h1 { font-size: 24px; margin: 0 0 10px; letter-spacing: -.02em; }
.login-copy p { margin: 0; color: #9fb1bd; }
.login-form { display: grid; gap: 14px; position: relative; z-index: 1; }
.login-form label, .form-stack label, .form-grid label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 800;
}
.login-form input {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(185,214,222,.15);
  color: #fff;
  border-radius: 9px;
  height: 44px;
  padding: 0 12px;
  outline: none;
}
.password-field { position: relative; display: block; }
.password-field input { padding-right: 44px; }
.password-field button {
  position: absolute;
  right: 8px;
  top: 7px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9fb1bd;
  cursor: pointer;
}
.login-options { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #c8d4dc; }
.check-line { display: flex !important; gap: 8px !important; align-items: center; font-weight: 500 !important; }
.check-line input { width: 16px; height: 16px; accent-color: var(--teal); }
.login-submit { height: 48px; margin-top: 12px; }
.social-divider { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin: 24px 0 16px; color: #9fb1bd; }
.social-divider span { height: 1px; background: rgba(255,255,255,.10); }
.google-btn {
  width: 100%; height: 44px; border-radius: 9px; border: 1px solid rgba(185,214,222,.15);
  background: transparent; color: #eef6f8; cursor: pointer; font-weight: 800;
}
.google-btn b { color: #fff; margin-right: 8px; }
.login-phone-card footer { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; font-size: 11px; color: #879aa5; }
.login-preview { display: block; }
.preview-window {
  height: 610px;
  background: #fff;
  border-radius: 28px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 210px 1fr;
  border: 1px solid #dfe6ed;
  overflow: hidden;
}
.preview-window aside { background: linear-gradient(180deg, #0c1c25, #061118); padding: 26px; }
.preview-logo { width: 150px; display: block; margin: 0 auto 36px; }
.preview-menu { height: 38px; border-radius: 9px; background: rgba(255,255,255,.10); margin-bottom: 13px; }
.preview-menu.active { background: linear-gradient(135deg, var(--teal), var(--teal-2)); }
.preview-content { padding: 28px; display: grid; gap: 20px; align-content: start; }
.preview-top { height: 42px; border-radius: 12px; background: #f3f7fa; }
.preview-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.preview-cards span { height: 104px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--soft-shadow); }
.preview-table { height: 245px; border-radius: 16px; background: linear-gradient(#fff,#fff) padding-box, linear-gradient(90deg,#e8eef4,#f8fafc) border-box; border: 1px solid transparent; box-shadow: var(--soft-shadow); }
.preview-bottom { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.preview-bottom span { height: 118px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }

/* Aplicação */
.app-body { min-height: 100vh; background: var(--bg); }
.sidebar {
  width: 238px;
  min-height: 100vh;
  position: fixed;
  inset: 0 auto 0 0;
  background: linear-gradient(180deg, #0b1b23 0%, #061018 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 24px 16px 18px;
  z-index: 40;
}
.sidebar-brand { min-height: 145px; display: grid; place-items: start center; margin-bottom: 8px; }
.sidebar-brand img { width: 170px; max-width: 100%; height: auto; display: block; }
.side-nav { display: grid; gap: 8px; }
.nav-item {
  border: 0;
  background: transparent;
  color: #d8e4ea;
  text-align: left;
  border-radius: 9px;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  transition: .2s ease;
}
.nav-ico { width: 17px; text-align: center; opacity: .95; font-weight: 900; color: #fff; }
.nav-item:hover { background: rgba(255,255,255,.08); transform: translateX(2px); }
.nav-item.active { background: linear-gradient(135deg, var(--teal), var(--teal-2)); color: #fff; box-shadow: 0 10px 28px rgba(16,191,194,.22); }
.sidebar-bottom { margin-top: auto; display: grid; gap: 8px; }
.logout-btn {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: #d8e4ea;
  border-radius: 9px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 800;
}
.content { margin-left: 238px; min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  height: 82px;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 30;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 16px; }
.hamburger, .notify, .date-filter {
  border: 1px solid var(--line);
  background: #fff;
  color: #334155;
  border-radius: 10px;
  height: 38px;
  min-width: 38px;
  padding: 0 12px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15,23,42,.03);
}
.hamburger { font-size: 18px; border-color: transparent; box-shadow: none; }
.notify { position: relative; font-size: 18px; border-color: transparent; box-shadow: none; }
.notify span { position: absolute; right: 4px; top: 0; min-width: 18px; height: 18px; border-radius: 99px; background: var(--teal); color: #fff; font-size: 10px; display: grid; place-items: center; }
.date-filter { font-weight: 800; color: #475569; }
.topbar h1 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.topbar p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.user-pill { display: flex; align-items: center; gap: 10px; border-radius: 14px; padding: 5px 8px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: #e5e7eb; color: #64748b; display: grid; place-items: center; font-weight: 900; }
.user-pill strong { display: block; font-size: 13px; }
.user-pill small { display: block; color: var(--muted); font-size: 12px; }
.app-stage { padding: 28px; flex: 1; }
.app-footer { display: flex; justify-content: space-between; align-items: center; padding: 0 28px 18px; color: #98a2b3; font-size: 12px; }

.btn {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1;
  white-space: nowrap;
  transition: .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: linear-gradient(135deg, var(--teal), var(--teal-2)); color: #fff; box-shadow: 0 10px 22px rgba(16,191,194,.20); }
.btn.secondary { background: #eef2f6; color: #334155; }
.btn.danger { background: #fee2e2; color: #b91c1c; }
.btn.success { background: #dcfce7; color: #15803d; }
.btn.full { width: 100%; }
.icon-btn { border: 0; background: #eef2f6; border-radius: 12px; width: 38px; height: 38px; font-size: 22px; cursor: pointer; }

/* Cards do Dashboard */
.grid-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.metric-card, .card, .table-card, .report-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--soft-shadow);
}
.metric-card { padding: 20px; min-height: 126px; display: flex; justify-content: space-between; gap: 14px; }
.metric-card h3, .card h3 { margin: 0 0 10px; color: #64748b; font-size: 14px; font-weight: 700; }
.metric-value, .card .number { font-size: 30px; font-weight: 950; letter-spacing: -.03em; margin-bottom: 8px; }
.metric-sub { color: #64748b; font-size: 13px; }
.metric-trend { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; color: #16a34a; font-size: 12px; font-weight: 800; }
.metric-icon { width: 58px; height: 58px; min-width: 58px; border-radius: 18px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal-2); font-size: 26px; box-shadow: inset 0 0 0 8px rgba(16,191,194,.05); }
.card { padding: 18px; }

.dashboard-table { margin-top: 22px; }
.panel-title { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 0; }
.panel-title h2 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.panel-title .btn { padding: 9px 12px; font-size: 12px; }
.table-card { overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; font-size: 14px; }
th { color: #344054; font-size: 12px; font-weight: 950; background: #fbfcfd; letter-spacing: .01em; }
tr:hover td { background: #fcfdff; }
.os-link { color: var(--teal-2); font-weight: 950; background: transparent; border: 0; cursor: pointer; padding: 0; }
.badge { display: inline-flex; align-items: center; border-radius: 7px; color: #fff; padding: 5px 9px; font-size: 12px; font-weight: 900; white-space: nowrap; }
.badge.light-blue { background: #dbeeff; color: #0b75cc; }
.badge.orange { background: #fff2d7; color: #c56a00; }
.badge.green { background: #d9fbe5; color: #0c8a3d; }
.badge.purple { background: #eee8ff; color: #6d42c8; }
.money { font-weight: 950; color: #0f172a; }
.muted { color: var(--muted); }

.dashboard-bottom { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; margin-top: 22px; }
.report-card { padding: 18px; min-height: 200px; }
.report-card h3 { margin: 0 0 12px; font-size: 16px; }
.donut-wrap { display: flex; gap: 18px; align-items: center; }
.donut { width: 118px; height: 118px; border-radius: 50%; background: conic-gradient(#1d9bf0 0 35%, #f59e0b 35% 57%, #8b5cf6 57% 73%, #22c55e 73% 100%); position: relative; }
.donut:after { content: ""; position: absolute; inset: 27px; background: #fff; border-radius: 50%; }
.legend { display: grid; gap: 9px; font-size: 12px; color: #475569; flex: 1; }
.legend div { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; margin-right: 6px; }
.line-chart { height: 118px; margin-top: 12px; background: linear-gradient(to top, #eef2f6 1px, transparent 1px) 0 0/100% 33%; border-radius: 10px; position: relative; overflow: hidden; }
.line-chart svg { width: 100%; height: 100%; display: block; }
.services-list { display: grid; gap: 14px; margin-top: 14px; }
.service-row { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 10px; color: #475569; font-size: 13px; }
.service-row b:first-child { width: 22px; height: 22px; background: #f1f5f9; border-radius: 999px; display: grid; place-items: center; font-size: 12px; color: #64748b; }

/* CRUD e formulários */
.toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.toolbar input { max-width: 430px; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  background: #fff;
  color: var(--text);
  outline: none;
  font-size: 14px;
}
textarea { min-height: 95px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(16,191,194,.10); }
.form-stack { display: grid; gap: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.form-grid .full-row { grid-column: 1 / -1; }
.item-line { display: grid; grid-template-columns: 1.2fr 1.7fr .55fr .8fr auto; gap: 8px; align-items: end; margin-bottom: 8px; }
.section-title { margin: 22px 0 12px; font-size: 18px; letter-spacing: -.02em; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; margin-bottom: 14px; }
.detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.detail-box { background: #f8fafc; border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.detail-box strong { display: block; margin-bottom: 6px; }
.history { display: grid; gap: 8px; }
.history-item { border-left: 4px solid var(--teal); background: #f8fafc; padding: 12px 14px; border-radius: 12px; }
.message { min-height: 18px; color: #ffb4b4; margin: 0; text-align: center; font-size: 13px; }
.notice { background: #f0fdfa; border: 1px solid rgba(16,191,194,.28); color: #0f766e; border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; font-size: 14px; }
small.muted { font-weight: 400; }

.modal-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, .54); display: grid; place-items: center; padding: 20px; z-index: 100; }
.modal-backdrop.hidden { display: none; }
.modal { width: min(1040px, 100%); max-height: 92vh; overflow: auto; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); }
.modal-header { position: sticky; top: 0; z-index: 1; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.modal-header h2 { margin: 0; font-size: 20px; }
#modalBody { padding: 20px; }

@media (max-width: 1180px) {
  .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-bottom { grid-template-columns: 1fr; }
  .topbar { align-items: flex-start; height: auto; padding: 16px 18px; flex-direction: column; }
  .topbar-right { width: 100%; justify-content: flex-end; flex-wrap: wrap; }
}
@media (max-width: 980px) {
  .login-shell { grid-template-columns: 1fr; justify-items: center; }
  .login-preview { display: none; }
  .login-phone-card { min-height: 720px; width: min(385px, 100%); }
  .sidebar { transform: translateX(-100%); transition: .25s ease; }
  body.menu-open .sidebar { transform: translateX(0); }
  .content { margin-left: 0; }
  .hamburger { border-color: var(--line); box-shadow: 0 2px 8px rgba(15,23,42,.03); }
}
@media (max-width: 760px) {
  .app-stage { padding: 18px; }
  .grid-cards, .form-grid, .detail-grid { grid-template-columns: 1fr; }
  .item-line { grid-template-columns: 1fr; }
  table { display: block; overflow-x: auto; white-space: nowrap; }
  .topbar-right { justify-content: flex-start; }
  .user-pill { order: -1; }
  .app-footer { flex-direction: column; gap: 8px; align-items: flex-start; }
}
@media (max-width: 520px) {
  .login-body { padding: 0; }
  .login-phone-card { border-radius: 0; border: 0; min-height: 100vh; }
  .login-logo { width: 225px; }
  .metric-card { min-height: auto; }
}

/* Login amigável - versão simplificada */
.friendly-login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 12% 12%, rgba(16,191,194,.20), transparent 30%),
    radial-gradient(circle at 88% 82%, rgba(8,169,173,.14), transparent 34%),
    linear-gradient(135deg, #eef7f8 0%, #f8fafc 48%, #ffffff 100%);
}
.friendly-login-shell {
  width: min(1080px, 100%);
  min-height: 650px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(226,232,240,.95);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(15,23,42,.12);
}
.friendly-login-brand {
  position: relative;
  overflow: hidden;
  padding: 52px;
  color: #eef8fa;
  background:
    radial-gradient(circle at 32% 16%, rgba(16,191,194,.34), transparent 30%),
    linear-gradient(155deg, #07151d 0%, #0b1f29 55%, #061018 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
}
.friendly-login-brand:after {
  content: "";
  position: absolute;
  inset: auto -110px -130px auto;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  border: 42px solid rgba(16,191,194,.08);
}
.brand-glow {
  position: absolute;
  inset: 10% auto auto 20%;
  width: 210px;
  height: 210px;
  border-radius: 999px;
  background: rgba(16,191,194,.12);
  filter: blur(28px);
}
.friendly-brand-logo {
  width: min(330px, 88%);
  height: auto;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 18px 24px rgba(0,0,0,.30));
}
.friendly-brand-copy,
.friendly-benefits {
  position: relative;
  z-index: 1;
}
.brand-pill {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgba(16,191,194,.38);
  color: #bdfcff;
  background: rgba(16,191,194,.10);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.friendly-brand-copy h1 {
  max-width: 540px;
  margin: 18px 0 12px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.03;
  letter-spacing: -.045em;
}
.friendly-brand-copy p {
  max-width: 520px;
  margin: 0;
  color: #bdd0d8;
  font-size: 16px;
  line-height: 1.65;
}
.friendly-benefits {
  display: grid;
  gap: 12px;
}
.friendly-benefits div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #dceff4;
  font-weight: 750;
}
.friendly-benefits strong {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #07323a;
  background: linear-gradient(135deg, var(--teal), #72f2f3);
}
.friendly-login-card {
  background: #fff;
  padding: 54px 48px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-card-header {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 30px;
}
.login-card-logo {
  width: 92px;
  height: auto;
}
.login-card-header h2 {
  margin: 0 0 6px;
  font-size: 28px;
  letter-spacing: -.035em;
  color: #0f172a;
}
.login-card-header p {
  margin: 0;
  color: #667085;
  line-height: 1.45;
}
.friendly-login-form {
  display: grid;
  gap: 10px;
}
.friendly-login-form label {
  color: #344054;
  font-size: 13px;
  font-weight: 900;
}
.friendly-login-form > input,
.friendly-password-field input {
  height: 50px;
  border-radius: 13px;
  background: #f8fafc;
  border: 1px solid #dde5ee;
  color: #0f172a;
}
.friendly-password-field {
  position: relative;
  display: block;
}
.friendly-password-field input {
  padding-right: 92px;
}
.friendly-password-field button {
  position: absolute;
  right: 8px;
  top: 7px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: #eaf7f7;
  color: #07898d;
  cursor: pointer;
  padding: 0 12px;
  font-weight: 900;
}
.friendly-login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 6px 0 8px;
  font-size: 13px;
}
.friendly-check-line {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 8px !important;
  color: #475569 !important;
  font-weight: 700 !important;
}
.friendly-check-line input {
  width: 16px;
  height: 16px;
  accent-color: var(--teal);
}
.friendly-login-submit {
  height: 52px;
  border-radius: 14px;
  font-size: 15px;
  margin-top: 4px;
}
.friendly-message {
  color: #667085;
  text-align: left;
  min-height: 20px;
  margin: 2px 0 0;
}
.friendly-message.error,
.message.error {
  color: #b42318;
  background: #fff1f3;
  border: 1px solid #ffd6dc;
  border-radius: 12px;
  padding: 10px 12px;
}
.friendly-demo-access {
  margin-top: 24px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid #e5edf3;
  border-radius: 16px;
  color: #475569;
  display: grid;
  gap: 8px;
  font-size: 13px;
}
.friendly-demo-access strong {
  color: #0f172a;
  font-size: 14px;
}
.friendly-demo-access span {
  color: #667085;
  font-weight: 800;
}
.friendly-demo-access code {
  background: #fff;
  border: 1px solid #e5edf3;
  border-radius: 8px;
  padding: 3px 6px;
  color: #0f172a;
  font-weight: 800;
}
.friendly-login-footer {
  margin-top: auto;
  padding-top: 26px;
  text-align: center;
  color: #98a2b3;
  font-size: 12px;
}
@media (max-width: 920px) {
  .friendly-login-body {
    padding: 18px;
  }
  .friendly-login-shell {
    grid-template-columns: 1fr;
    min-height: auto;
    border-radius: 24px;
  }
  .friendly-login-brand {
    padding: 34px 28px;
    gap: 22px;
  }
  .friendly-brand-logo {
    width: 220px;
  }
  .friendly-brand-copy h1 {
    font-size: 30px;
  }
  .friendly-login-card {
    padding: 34px 28px 22px;
  }
}
@media (max-width: 520px) {
  .friendly-login-body {
    padding: 0;
    place-items: stretch;
  }
  .friendly-login-shell {
    border-radius: 0;
    min-height: 100vh;
    border: 0;
  }
  .friendly-login-brand {
    padding: 26px 22px;
  }
  .friendly-benefits {
    display: none;
  }
  .login-card-header {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .friendly-login-options {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ==========================================================
   Responsividade completa - login, painel, tabelas e modais
   ========================================================== */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}
img, svg, canvas, video {
  max-width: 100%;
}
.sidebar-overlay {
  display: none;
}
.table-card {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-card table {
  min-width: 860px;
}
.dashboard-table table {
  min-width: 980px;
}
.actions .btn {
  min-height: 38px;
}

@media (max-width: 1280px) {
  .content {
    min-width: 0;
  }
  .metric-value,
  .card .number {
    font-size: 26px;
  }
  .topbar {
    padding-left: 22px;
    padding-right: 22px;
  }
}

@media (max-width: 1100px) {
  .grid-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-bottom,
  .dashboard-bottom[style] {
    grid-template-columns: 1fr !important;
  }
  .donut-wrap {
    align-items: flex-start;
  }
  .friendly-login-shell {
    width: min(960px, 100%);
  }
  .friendly-login-brand {
    padding: 42px;
  }
  .friendly-login-card {
    padding: 44px 38px 26px;
  }
}

@media (max-width: 980px) {
  .sidebar {
    width: min(320px, 86vw);
    transform: translateX(-105%);
    transition: transform .25s ease;
    box-shadow: 18px 0 60px rgba(2, 8, 23, .28);
  }
  body.menu-open .sidebar {
    transform: translateX(0);
  }
  .sidebar-overlay {
    position: fixed;
    inset: 0;
    display: none;
    background: rgba(15, 23, 42, .52);
    backdrop-filter: blur(2px);
    z-index: 35;
  }
  body.menu-open .sidebar-overlay {
    display: block;
  }
  .content {
    margin-left: 0;
    width: 100%;
  }
  .hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .topbar {
    height: auto;
    min-height: 74px;
    align-items: stretch;
    flex-direction: column;
    padding: 14px 18px;
  }
  .topbar-left {
    width: 100%;
    justify-content: flex-start;
  }
  .topbar-right {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
  }
  .user-pill {
    margin-left: auto;
  }
  .app-stage {
    padding: 20px 18px;
  }
  .friendly-login-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .friendly-login-brand {
    min-height: auto;
    padding: 34px 30px;
  }
  .friendly-brand-copy h1 {
    max-width: none;
  }
  .friendly-brand-copy p {
    max-width: none;
  }
  .friendly-login-card {
    padding: 34px 30px 24px;
  }
}

@media (max-width: 820px) {
  .login-body,
  .friendly-login-body {
    min-height: 100dvh;
  }
  .grid-cards,
  .form-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .metric-card {
    min-height: auto;
  }
  .metric-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    font-size: 22px;
    border-radius: 15px;
  }
  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .toolbar input,
  .toolbar .btn {
    max-width: none;
    width: 100%;
  }
  .detail-actions {
    justify-content: stretch;
  }
  .detail-actions .btn,
  .actions .btn {
    flex: 1 1 auto;
  }
  .modal-backdrop {
    padding: 10px;
    align-items: end;
  }
  .modal {
    width: 100%;
    max-height: 94dvh;
    border-radius: 20px 20px 0 0;
  }
  .modal-header {
    padding: 14px 16px;
  }
  #modalBody {
    padding: 16px;
  }
  .item-line {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f8fafc;
  }
  .item-line .btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 14px;
  }
  .app-stage {
    padding: 16px 12px;
  }
  .topbar {
    padding: 12px;
  }
  .topbar-left {
    gap: 10px;
  }
  .topbar h1 {
    font-size: 19px;
  }
  .topbar p {
    font-size: 12px;
  }
  .topbar-right {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .topbar-right > * {
    width: 100%;
  }
  .topbar-right .notify,
  .topbar-right .date-filter {
    min-width: 0;
  }
  .user-pill {
    grid-column: 1 / -1;
    order: -1;
    margin-left: 0;
    justify-content: flex-start;
    background: #f8fafc;
    border: 1px solid var(--line);
    padding: 8px 10px;
  }
  #primaryAction {
    grid-column: 1 / -1;
  }
  .grid-cards {
    gap: 12px;
  }
  .metric-card,
  .card,
  .report-card {
    border-radius: 14px;
  }
  .metric-card {
    padding: 16px;
  }
  .metric-value,
  .card .number {
    font-size: 24px;
  }
  .panel-title {
    padding: 16px 16px 0;
    gap: 12px;
    align-items: flex-start;
    flex-direction: column;
  }
  .panel-title .btn {
    width: 100%;
  }
  th, td {
    padding: 12px;
  }
  .donut-wrap {
    flex-direction: column;
  }
  .donut {
    width: 108px;
    height: 108px;
  }
  .legend {
    width: 100%;
  }
  .services-list {
    gap: 10px;
  }
  .service-row {
    grid-template-columns: 24px minmax(0, 1fr) auto;
  }
  .service-row span {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .app-footer {
    padding: 0 12px 16px;
    gap: 6px;
    flex-direction: column;
    align-items: flex-start;
  }
  .friendly-login-body {
    padding: 12px;
    place-items: stretch;
  }
  .friendly-login-shell {
    border-radius: 22px;
  }
  .friendly-login-brand {
    padding: 26px 22px;
    gap: 18px;
  }
  .friendly-brand-logo {
    width: 190px;
  }
  .friendly-brand-copy h1 {
    font-size: 26px;
    line-height: 1.1;
    margin-top: 14px;
  }
  .friendly-brand-copy p {
    font-size: 14px;
    line-height: 1.5;
  }
  .friendly-benefits {
    gap: 9px;
  }
  .friendly-benefits div {
    align-items: flex-start;
    font-size: 13px;
  }
  .friendly-login-card {
    padding: 26px 22px 20px;
  }
  .login-card-header {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 10px;
    margin-bottom: 22px;
  }
  .login-card-logo {
    width: 82px;
  }
  .login-card-header h2 {
    font-size: 24px;
  }
  .friendly-login-options {
    flex-direction: column;
    align-items: flex-start;
  }
  .friendly-demo-access {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 420px) {
  .friendly-login-body {
    padding: 0;
  }
  .friendly-login-shell {
    min-height: 100dvh;
    border-radius: 0;
    border: 0;
  }
  .friendly-login-brand {
    padding: 22px 18px;
  }
  .brand-pill {
    font-size: 10px;
    padding: 7px 10px;
  }
  .friendly-brand-copy h1 {
    font-size: 23px;
  }
  .friendly-benefits {
    display: none;
  }
  .friendly-login-card {
    padding: 24px 18px 18px;
  }
  .friendly-password-field input {
    padding-right: 78px;
  }
  .friendly-password-field button {
    padding: 0 9px;
    font-size: 12px;
  }
  .sidebar {
    width: 88vw;
    padding: 18px 12px;
  }
  .sidebar-brand {
    min-height: 112px;
  }
  .sidebar-brand img {
    width: 145px;
  }
  .nav-item {
    padding: 11px 12px;
  }
  .topbar-right {
    grid-template-columns: 1fr;
  }
  .notify,
  .date-filter,
  .btn,
  input,
  select,
  textarea {
    min-height: 44px;
  }
  .actions {
    flex-direction: column;
  }
  .actions .btn {
    width: 100%;
  }
  .modal-backdrop {
    padding: 0;
  }
  .modal {
    min-height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }
}

@media (pointer: coarse) {
  .nav-item,
  .btn,
  .icon-btn,
  .hamburger,
  .notify,
  .date-filter,
  .logout-btn,
  .friendly-password-field button {
    min-height: 44px;
  }
}

/* ==========================================================
   Login Consult Cell - estilo ilustração amigável
   ========================================================== */
.cc-login-body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow-x: hidden;
  color: #07152d;
  background:
    radial-gradient(circle at 84% 24%, rgba(255, 70, 148, .28), transparent 27%),
    radial-gradient(circle at 18% 35%, rgba(16, 191, 194, .18), transparent 31%),
    radial-gradient(circle at 62% 78%, rgba(81, 64, 255, .22), transparent 34%),
    linear-gradient(135deg, #020b24 0%, #061b3f 46%, #020817 100%);
  position: relative;
}
.cc-login-body:before,
.cc-login-body:after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
}
.cc-login-body:before {
  inset: auto -12% -28% -12%;
  height: 54%;
  background: repeating-radial-gradient(ellipse at center, rgba(20, 209, 196, .20) 0 1px, transparent 2px 28px);
  opacity: .28;
  transform: rotate(-7deg);
}
.cc-login-body:after {
  width: 560px;
  height: 560px;
  right: -190px;
  top: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(71, 78, 255, .42), rgba(255, 77, 141, .34));
  filter: blur(8px);
  opacity: .48;
}
.cc-login-page {
  width: min(1260px, calc(100% - 48px));
  min-height: calc(100vh - 78px);
  margin: 24px auto 8px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, .88fr);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
  position: relative;
  z-index: 1;
}
.cc-login-visual {
  position: relative;
  min-height: 650px;
  display: grid;
  align-content: center;
  isolation: isolate;
}
.cc-visual-bg {
  position: absolute;
  border-radius: 38% 62% 64% 36% / 46% 40% 60% 54%;
  z-index: -2;
}
.cc-visual-bg-one {
  width: min(720px, 94vw);
  height: 555px;
  left: -55px;
  top: 52px;
  background: linear-gradient(135deg, #10c8f6 0%, #464ef7 42%, #e33aa5 73%, #ff7a45 100%);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .24);
}
.cc-visual-bg-two {
  width: 280px;
  height: 280px;
  left: 52%;
  bottom: 22px;
  background: linear-gradient(135deg, rgba(20, 241, 208, .28), rgba(89, 71, 245, .18));
  filter: blur(4px);
  opacity: .9;
}
.cc-dot-pattern {
  position: absolute;
  left: 42px;
  top: 54px;
  width: 92px;
  height: 92px;
  background-image: radial-gradient(rgba(255,255,255,.42) 2px, transparent 2.4px);
  background-size: 18px 18px;
  opacity: .72;
}
.cc-gear {
  position: absolute;
  left: 54px;
  top: 96px;
  font-size: 78px;
  line-height: 1;
  color: rgba(125, 113, 255, .65);
  transform: rotate(-16deg);
  text-shadow: 0 12px 28px rgba(0,0,0,.16);
}
.cc-illustration-card {
  position: relative;
  width: min(760px, 100%);
  margin-left: -10px;
  filter: drop-shadow(0 35px 60px rgba(0, 10, 40, .34));
}
.cc-login-illustration {
  width: 100%;
  height: auto;
  display: block;
}
.cc-visual-caption {
  width: min(660px, 100%);
  margin-top: -4px;
  color: #dbeafe;
  text-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.cc-secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  margin-bottom: 14px;
  color: #eaffff;
  font-weight: 900;
  font-size: 13px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(8, 169, 173, .22);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .16);
  backdrop-filter: blur(8px);
}
.cc-visual-caption h1 {
  margin: 0 0 10px;
  max-width: 620px;
  font-size: clamp(28px, 3.4vw, 47px);
  line-height: 1.04;
  letter-spacing: -.045em;
  color: #ffffff;
}
.cc-visual-caption p {
  max-width: 610px;
  margin: 0;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.62;
  color: rgba(226, 244, 255, .82);
}
.cc-login-card {
  justify-self: end;
  width: min(540px, 100%);
  padding: 1px;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(255,255,255,.88), rgba(255,255,255,.38));
  box-shadow: 0 34px 90px rgba(0, 7, 26, .36);
}
.cc-login-card-inner {
  min-height: 610px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 4.6vw, 56px);
  border-radius: 33px;
  background:
    radial-gradient(circle at 18% 0%, rgba(16,191,194,.08), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.94));
}
.cc-login-header {
  text-align: center;
  margin-bottom: 30px;
}
.cc-login-logo {
  width: min(330px, 86%);
  max-height: 118px;
  object-fit: contain;
  display: block;
  margin: 0 auto 28px;
  filter: drop-shadow(0 8px 14px rgba(15, 23, 42, .08));
}
.cc-login-header h2 {
  margin: 0;
  color: #07152d;
  font-size: clamp(31px, 3.25vw, 46px);
  line-height: 1.05;
  letter-spacing: -.05em;
  font-weight: 950;
}
.cc-login-header p {
  width: min(380px, 100%);
  margin: 12px auto 0;
  color: #64708b;
  font-size: 16px;
  line-height: 1.45;
}
.cc-login-form {
  display: grid;
  gap: 18px;
}
.cc-field-group {
  display: grid;
  gap: 8px;
}
.cc-field-group label {
  color: #07152d;
  font-size: 14px;
  font-weight: 900;
}
.cc-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.cc-input-icon {
  position: absolute;
  left: 16px;
  z-index: 1;
  color: #7b8799;
  font-size: 19px;
  line-height: 1;
  filter: grayscale(1);
  opacity: .88;
}
.cc-input-wrap input {
  width: 100%;
  height: 58px;
  padding: 0 52px 0 52px;
  border: 1px solid #cad4e2;
  border-radius: 13px;
  background: #fff;
  color: #0f172a;
  font-size: 16px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.cc-input-wrap input::placeholder {
  color: #94a3b8;
}
.cc-input-wrap input:focus {
  border-color: #10bfc2;
  box-shadow: 0 0 0 4px rgba(16, 191, 194, .15);
}
.cc-pass-toggle {
  position: absolute;
  right: 8px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 18px;
  transition: background .18s ease, transform .18s ease;
}
.cc-pass-toggle:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
}
.cc-login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #334155;
  font-size: 14px;
  margin-top: 2px;
}
.cc-check-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}
.cc-check-line input {
  width: 18px;
  height: 18px;
  accent-color: #10bfc2;
}
.cc-login-options a {
  color: #244dff;
  font-weight: 800;
}
.cc-login-button {
  width: 100%;
  height: 62px;
  margin-top: 2px;
  border: 0;
  border-radius: 13px;
  cursor: pointer;
  color: #fff;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: -.01em;
  background: linear-gradient(105deg, #2459ff 0%, #7349f4 33%, #e83b91 68%, #ff6b3a 100%);
  box-shadow: 0 18px 34px rgba(71, 71, 245, .26);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.cc-login-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 23px 42px rgba(71, 71, 245, .32);
  filter: saturate(1.06);
}
.cc-login-button:active {
  transform: translateY(0);
}
.cc-message {
  min-height: 22px;
  margin: 0;
  color: #64748b;
  font-size: 14px;
}
.cc-message.error,
.cc-login-form .message.error {
  padding: 12px 14px;
  border: 1px solid #ffc9d0;
  border-radius: 13px;
  background: #fff1f3;
  color: #b42318;
  font-weight: 800;
}
.cc-secure-note {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid #e8eef5;
  display: flex;
  justify-content: center;
  gap: 10px;
  text-align: center;
  color: #64748b;
  line-height: 1.45;
  font-size: 14px;
}
.cc-secure-note span:first-child {
  color: #10bfc2;
  filter: grayscale(.3);
}
.cc-login-footer {
  position: relative;
  z-index: 1;
  padding: 4px 18px 22px;
  color: rgba(226, 232, 240, .78);
  text-align: center;
  font-size: 14px;
}
.cc-login-footer strong {
  color: #10d7d5;
}

@media (max-width: 1180px) {
  .cc-login-page {
    grid-template-columns: 1fr minmax(360px, 500px);
    gap: 32px;
  }
  .cc-login-visual {
    min-height: 590px;
  }
  .cc-visual-caption h1 {
    font-size: clamp(28px, 3.2vw, 38px);
  }
}

@media (max-width: 980px) {
  .cc-login-page {
    width: min(720px, calc(100% - 32px));
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 18px;
  }
  .cc-login-visual {
    min-height: auto;
    padding: 28px 24px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 30px;
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(12px);
  }
  .cc-visual-bg-one {
    width: 760px;
    height: 470px;
    left: -165px;
    top: -46px;
    opacity: .95;
  }
  .cc-visual-bg-two,
  .cc-dot-pattern,
  .cc-gear {
    display: none;
  }
  .cc-illustration-card {
    width: min(460px, 76vw);
    margin: 0 auto 8px;
  }
  .cc-visual-caption {
    margin: 0 auto;
    text-align: center;
  }
  .cc-visual-caption h1 {
    margin-left: auto;
    margin-right: auto;
    max-width: 560px;
  }
  .cc-visual-caption p {
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
  }
  .cc-login-card {
    justify-self: center;
    width: 100%;
  }
  .cc-login-card-inner {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .cc-login-body {
    display: block;
    background:
      radial-gradient(circle at 50% -5%, rgba(255, 70, 148, .24), transparent 30%),
      radial-gradient(circle at 0% 35%, rgba(16, 191, 194, .18), transparent 28%),
      linear-gradient(135deg, #020b24 0%, #061b3f 48%, #020817 100%);
  }
  .cc-login-page {
    width: 100%;
    min-height: 100dvh;
    margin: 0;
    padding: 14px;
    gap: 14px;
  }
  .cc-login-visual {
    padding: 20px 18px;
    border-radius: 24px;
  }
  .cc-illustration-card {
    display: none;
  }
  .cc-secure-badge {
    margin-bottom: 12px;
    font-size: 12px;
    padding: 8px 11px;
  }
  .cc-visual-caption h1 {
    font-size: 24px;
    line-height: 1.1;
  }
  .cc-visual-caption p {
    font-size: 14px;
    line-height: 1.48;
  }
  .cc-login-card {
    border-radius: 25px;
  }
  .cc-login-card-inner {
    padding: 26px 20px;
    border-radius: 24px;
  }
  .cc-login-logo {
    width: min(260px, 90%);
    margin-bottom: 22px;
  }
  .cc-login-header {
    margin-bottom: 24px;
  }
  .cc-login-header h2 {
    font-size: 31px;
  }
  .cc-login-header p {
    font-size: 14px;
  }
  .cc-input-wrap input {
    height: 54px;
    font-size: 15px;
  }
  .cc-login-options {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .cc-login-button {
    height: 58px;
  }
  .cc-secure-note {
    font-size: 13px;
  }
  .cc-login-footer {
    margin-top: -4px;
    padding-bottom: 18px;
    font-size: 12px;
  }
}

@media (max-width: 390px) {
  .cc-login-page {
    padding: 0;
  }
  .cc-login-visual {
    border-radius: 0 0 22px 22px;
    border-top: 0;
    border-left: 0;
    border-right: 0;
  }
  .cc-login-card {
    border-radius: 22px 22px 0 0;
  }
  .cc-login-card-inner {
    border-radius: 21px 21px 0 0;
    padding: 24px 16px;
  }
  .cc-login-header h2 {
    font-size: 28px;
  }
  .cc-input-icon {
    left: 13px;
  }
  .cc-input-wrap input {
    padding-left: 44px;
    padding-right: 48px;
  }
}


.app-footer-centered { justify-content: center; text-align: center; }

/* Log de mensagens do WhatsApp no dashboard */
.whatsapp-log-card {
  margin-top: 22px;
}
.whatsapp-log-card .panel-title {
  align-items: flex-start;
}
.whatsapp-log-card .panel-title p {
  margin: 6px 0 0;
  font-size: 13px;
}
.wa-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}
.wa-status.sent {
  background: #d9fbe5;
  color: #0c8a3d;
}
.wa-status.failed {
  background: #fee2e2;
  color: #b91c1c;
}

/* Notificações do sistema / WhatsApp */
.cc-toast-host {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 9999;
  display: grid;
  gap: 12px;
  width: min(420px, calc(100vw - 32px));
  pointer-events: none;
}
.cc-toast {
  pointer-events: auto;
  display: grid;
  grid-template-columns: 46px 1fr 34px;
  gap: 12px;
  align-items: start;
  padding: 16px 14px 16px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .97);
  border: 1px solid rgba(226, 232, 240, .98);
  box-shadow: 0 22px 54px rgba(15, 23, 42, .18);
  transform: translateX(24px) translateY(-8px) scale(.98);
  opacity: 0;
  transition: transform .22s ease, opacity .22s ease;
  overflow: hidden;
  position: relative;
}
.cc-toast::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--teal), var(--teal-2));
}
.cc-toast.is-visible {
  transform: translateX(0) translateY(0) scale(1);
  opacity: 1;
}
.cc-toast.is-leaving {
  transform: translateX(24px) translateY(-8px) scale(.98);
  opacity: 0;
}
.cc-toast-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 20px;
  font-weight: 950;
  background: linear-gradient(135deg, var(--teal), var(--teal-2));
  box-shadow: 0 12px 26px rgba(16, 191, 194, .24);
}
.cc-toast-content strong {
  display: block;
  color: #0f172a;
  font-size: 15px;
  line-height: 1.25;
  margin-top: 2px;
}
.cc-toast-content p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 13.5px;
  line-height: 1.42;
}
.cc-toast-close {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 10px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.cc-toast-close:hover { background: #e2e8f0; color: #0f172a; }
.cc-toast-action {
  margin-top: 10px;
  border: 0;
  border-radius: 11px;
  padding: 9px 12px;
  cursor: pointer;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--teal), var(--teal-2));
  box-shadow: 0 10px 22px rgba(16, 191, 194, .18);
}
.cc-toast-success::before { background: linear-gradient(180deg, #22c55e, #10b981); }
.cc-toast-success .cc-toast-icon { background: linear-gradient(135deg, #22c55e, #10b981); box-shadow: 0 12px 26px rgba(34, 197, 94, .22); }
.cc-toast-error::before { background: linear-gradient(180deg, #ef4444, #b91c1c); }
.cc-toast-error .cc-toast-icon { background: linear-gradient(135deg, #ef4444, #b91c1c); box-shadow: 0 12px 26px rgba(239, 68, 68, .22); }
.cc-toast-warning::before { background: linear-gradient(180deg, #f59e0b, #f97316); }
.cc-toast-warning .cc-toast-icon { background: linear-gradient(135deg, #f59e0b, #f97316); box-shadow: 0 12px 26px rgba(245, 158, 11, .22); }
.cc-toast-info::before { background: linear-gradient(180deg, #38a3ff, #2563eb); }
.cc-toast-info .cc-toast-icon { background: linear-gradient(135deg, #38a3ff, #2563eb); box-shadow: 0 12px 26px rgba(56, 163, 255, .22); }
.cc-toast-whatsapp::before { background: linear-gradient(180deg, #10bfc2, #25d366); }
.cc-toast-whatsapp .cc-toast-icon { background: linear-gradient(135deg, #10bfc2, #25d366); box-shadow: 0 12px 26px rgba(37, 211, 102, .22); }
@media (max-width: 640px) {
  .cc-toast-host {
    top: 12px;
    right: 12px;
    left: 12px;
    width: auto;
  }
  .cc-toast {
    grid-template-columns: 42px 1fr 32px;
    border-radius: 16px;
    padding: 14px 12px 14px 14px;
  }
  .cc-toast-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }
}
