/* Client dashboard — Seguidor SMM */
.dash-page {
  --d-card: #ffffff;
  --d-text: #1F2937;
  --d-muted: #6B7280;
  --d-ok: #059669;
  --d-radius: 12px;
  font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  font-style: normal;
  font-weight: 500;
  color: var(--d-text);
  font-size: 13.5px;
  line-height: 1.45;
}
.dash-page * { box-sizing: border-box; }
.dash-wrap { max-width: none; width: 100%; margin: 0; padding: 0 14px 32px; }

.dash-hero {
  background: var(--brand-hero-grad);
  border-radius: 16px;
  padding: 26px 28px;
  color: #fff;
  margin-bottom: 16px;
  box-shadow: var(--d-hero-shadow, 0 14px 32px rgba(76, 29, 149, .22));
  position: relative;
  overflow: hidden;
}
.dash-hero::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -50px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  pointer-events: none;
}
.dash-hero h1 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 800;
  font-style: normal;
  color: #fff;
  letter-spacing: -.02em;
  line-height: 1.15;
  position: relative;
  z-index: 1;
}
.dash-hero p {
  margin: 0 0 18px;
  opacity: .95;
  font-size: 14px;
  font-weight: 500;
  font-style: normal;
  max-width: 640px;
  line-height: 1.5;
  color: rgba(255,255,255,.92);
  position: relative;
  z-index: 1;
}
.dash-hero__actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: relative;
  z-index: 1;
}
.dash-hero__actions::-webkit-scrollbar { display: none; }

.dash-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  background: #fff;
  color: #1F2937;
  border-radius: 10px;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: .01em;
  text-decoration: none !important;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.dash-chip i {
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}
.dash-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,.14);
  color: #111827;
}

.dash-chip--pedido {
  background: #fff;
  color: var(--d-navy) !important;
}
.dash-chip--pedido:hover { color: var(--d-primary) !important; }

.dash-chip--saldo {
  background: rgba(255,255,255,.16);
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(4px);
}
.dash-chip--saldo:hover { color: #fff !important; background: rgba(255,255,255,.24); }

.dash-chip--light {
  background: rgba(255,255,255,.12);
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.22);
}
.dash-chip--light:hover { color: #fff !important; background: rgba(255,255,255,.2); }

.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.dash-stat {
  background: var(--d-card);
  border: 1px solid var(--d-border);
  border-radius: var(--d-radius);
  padding: 14px 16px;
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(49, 30, 90, .05);
}
.dash-stat__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--d-icon-bg, linear-gradient(145deg, var(--d-soft), color-mix(in srgb, var(--d-soft) 65%, var(--d-primary-2))));
  color: var(--d-primary);
  font-size: 15px;
  flex: 0 0 42px;
}
.dash-stat__icon i { font-style: normal; }
.dash-stat__body { min-width: 0; flex: 1; }
.dash-stat__label {
  color: var(--d-muted);
  font-size: 12px;
  font-weight: 600;
  font-style: normal;
  margin-bottom: 2px;
  letter-spacing: .01em;
}
.dash-stat__number {
  color: var(--d-text);
  font-size: 22px;
  font-weight: 800;
  font-style: normal;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}
.dash-col { display: grid; gap: 14px; }

.dash-card {
  background: var(--d-card);
  border: 1px solid var(--d-border);
  border-radius: var(--d-radius);
  padding: 0;
  box-shadow: 0 4px 16px rgba(49, 30, 90, .05);
  overflow: hidden;
}
.dash-card--last { margin-bottom: 14px; }
.dash-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--d-border);
  background: var(--d-card-head-bg, linear-gradient(180deg, var(--d-soft) 0%, #fff 100%));
}
.dash-card__head h2,
.dash-card h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 750;
  font-style: normal;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--d-text);
}
.dash-card h2 i,
.dash-card__head h2 i {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--d-soft);
  color: var(--d-primary);
  font-style: normal;
  font-size: 12px;
  line-height: 1;
  flex: 0 0 28px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.dash-card h2 i::before,
.dash-card__head h2 i::before {
  margin: 0 !important;
  width: auto !important;
  line-height: 1 !important;
}
.dash-card__link {
  font-size: 12px;
  font-weight: 700;
  color: var(--d-primary-2);
  text-decoration: none !important;
  white-space: nowrap;
}
.dash-card__link:hover { color: var(--d-navy); }
.dash-card > .dash-last,
.dash-card > .dash-news-list,
.dash-card > .dash-consume,
.dash-card > .dash-empty,
.dash-card > .dash-tags,
.dash-card > .dash-orders,
.dash-card > .dash-ref__stats,
.dash-card > .dash-copy,
.dash-card > .dash-steps,
.dash-card > .dash-manual-search,
.dash-card > .dash-manual-top,
.dash-card > .dash-lead,
.dash-card > .dash-muted,
.dash-card > .dash-field-label,
.dash-card > p,
.dash-card > a.dash-step-btn {
  margin-left: 18px;
  margin-right: 18px;
}
.dash-card > .dash-last,
.dash-card > .dash-news-list,
.dash-card > .dash-consume,
.dash-card > .dash-empty,
.dash-card > .dash-tags,
.dash-card > .dash-orders,
.dash-card > .dash-steps,
.dash-card > .dash-lead {
  margin-top: 14px;
}
.dash-card > .dash-empty,
.dash-card > .dash-consume,
.dash-card > .dash-tags,
.dash-card > .dash-orders,
.dash-card > .dash-steps,
.dash-card > .dash-manual-search,
.dash-card > a.dash-step-btn,
.dash-card > .dash-muted--pad,
.dash-card > .dash-copy {
  margin-bottom: 16px;
}
.dash-card > .dash-ref__stats { margin-top: 4px; margin-bottom: 12px; }
.dash-card > .dash-field-label { margin-top: 0; }

.dash-lead {
  margin: 0 16px 12px;
  color: var(--d-muted);
  font-size: 13px;
  line-height: 1.5;
}

.dash-last {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  padding-bottom: 16px;
}
.dash-last__cell {
  min-width: 0;
  width: 100%;
  height: 100%;
  min-height: 78px;
  padding: 12px;
  background: var(--d-soft);
  border: 1px solid var(--d-border);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.dash-last__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--d-muted);
  margin-bottom: 6px;
}
.dash-last__cell strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  color: var(--d-text);
  line-height: 1.35;
  word-break: break-word;
}
.dash-last__svc { min-width: 0; }
.dash-last__cell .dash-badge {
  align-self: flex-start;
  margin-top: 2px;
}

.dash-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
}
.dash-badge--ok { background: #ECFDF5; color: var(--d-ok); }
.dash-badge--run { background: var(--d-soft); color: var(--d-primary); }
.dash-badge--wait { background: #FFFBEB; color: #B45309; }
.dash-badge--off { background: #F3F4F6; color: #6B7280; }

.dash-news-list { display: grid; gap: 0; padding-bottom: 6px; }
.dash-news-item {
  border-bottom: 1px solid var(--d-border);
  padding: 12px 0;
}
.dash-news-item:last-child { border-bottom: 0; }
.dash-news-title {
  font-weight: 700;
  font-style: normal;
  color: var(--d-text);
  margin-bottom: 4px;
  font-size: 13.5px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.dash-news-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex: 0 0 20px;
  margin-top: 1px;
  border-radius: 4px;
}
.dash-news-icon-fallback {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin-top: 1px;
  border-radius: 5px;
  background: var(--d-soft);
  color: var(--d-primary-2);
  align-items: center;
  justify-content: center;
  font-size: 11px;
}
.dash-news-icon-fallback i { margin: 0; color: inherit; font-style: normal; }
.dash-news-title i { color: var(--d-primary-2); margin-right: 0; font-style: normal; font-size: 12px; }
.dash-news-body {
  color: #4B5563;
  font-size: 13px;
  font-style: normal;
  font-weight: 450;
  line-height: 1.55;
}
.dash-news-body p { margin: 0 0 6px; }
.dash-news-body ul { margin: 0 0 8px; padding-left: 16px; }
.dash-news-body li { margin-bottom: 3px; }
.dash-news-body b,
.dash-news-body strong {
  font-weight: 750;
  color: inherit;
}
.dash-news-body i,
.dash-news-body em {
  font-style: italic;
  color: inherit;
}
/* Cores do editor (Summernote) devem aparecer no dashboard */
.dash-news-body font[color] b,
.dash-news-body font[color] strong,
.dash-news-body font[color] i,
.dash-news-body font[color] em,
.dash-news-body span[style*="color"] b,
.dash-news-body span[style*="color"] strong,
.dash-news-body span[style*="color"] i,
.dash-news-body span[style*="color"] em,
.dash-news-body *[style*="color"] b,
.dash-news-body *[style*="color"] strong {
  color: inherit !important;
}

.dash-muted {
  color: var(--d-muted);
  font-size: 12px;
  font-style: normal;
  margin: 0;
  line-height: 1.45;
}
.dash-muted--pad { margin-top: 10px !important; }

.dash-empty {
  text-align: center;
  color: var(--d-muted);
  padding: 22px 12px;
  font-size: 13px;
  font-style: normal;
  background: var(--d-soft);
  border: 1px dashed var(--d-border);
  border-radius: 10px;
}
.dash-empty i {
  font-size: 24px;
  color: var(--brand-accent-light, #C4B5FD);
  display: block;
  margin-bottom: 8px;
  font-style: normal;
}

.dash-tags { display: flex; flex-direction: column; gap: 8px; }
.dash-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--d-soft);
  color: var(--d-text);
  border: 1px solid var(--d-border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12.5px;
  font-weight: 600;
  font-style: normal;
}
.dash-tag__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dash-tag__count {
  flex: 0 0 auto;
  background: #fff;
  border: 1px solid var(--d-border);
  color: var(--d-primary);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 800;
}

.dash-orders { display: grid; gap: 0; padding-bottom: 6px; }
.dash-recent-item,
.dash-order {
  border-bottom: 1px solid var(--d-border);
  padding: 12px 0;
}
.dash-recent-item:last-child,
.dash-order:last-child { border-bottom: 0; }
.dash-order__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.dash-order__name {
  font-size: 13.5px;
  font-weight: 700;
  font-style: normal;
  color: var(--d-text);
  min-width: 0;
  line-height: 1.35;
}
.dash-order__link {
  display: inline-block;
  margin-top: 8px;
  color: var(--d-primary-2);
  font-weight: 700;
  font-style: normal;
  font-size: 12px;
  text-decoration: none !important;
}
.dash-order__link:hover { color: var(--d-navy); }

.dash-ref__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.dash-ref__box,
.dash-consume__box {
  background: var(--d-soft);
  border: 1px solid var(--d-border);
  border-radius: 10px;
  padding: 12px 14px;
  min-height: 76px;
}
.dash-ref__box span,
.dash-consume__box span {
  display: block;
  font-size: 11.5px;
  font-weight: 650;
  color: var(--d-muted);
  margin-bottom: 6px;
  font-style: normal;
}
.dash-ref__box strong,
.dash-consume__box strong {
  font-size: 20px;
  color: var(--d-text);
  font-weight: 800;
  font-style: normal;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.dash-field-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--d-muted);
  margin: 0 16px 6px;
}
.dash-copy {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.dash-copy input {
  flex: 1;
  min-width: 180px;
  height: 38px;
  border: 1px solid var(--d-border);
  border-radius: 9px;
  padding: 0 12px;
  background: #fff;
  font-size: 12.5px;
  font-style: normal;
  color: var(--d-text);
}
.dash-copy button {
  height: 38px;
  border: 0;
  border-radius: 9px;
background: var(--brand-btn-grad);
  color: #fff;
  font-weight: 700;
  font-style: normal;
  font-size: 12.5px;
  padding: 0 14px;
  cursor: pointer;
}

.dash-steps { display: grid; gap: 8px; }
.dash-step-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  border-radius: 10px;
  font-weight: 700;
  font-style: normal;
  font-size: 13px;
  text-decoration: none !important;
  border: 0;
  cursor: pointer;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-left: 0;
  margin-right: 0;
  padding: 0 14px;
  text-align: center;
  white-space: nowrap;
}
.dash-step-btn i { font-style: normal; font-size: 13px; margin: 0 !important; }
.dash-step-btn--primary {
background: linear-gradient(135deg, var(--d-primary), var(--d-primary-2));
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(109, 40, 217, .22);
}
.dash-step-btn--soft {
  background: var(--d-soft);
  color: var(--d-navy) !important;
}
.dash-step-btn--ghost {
  background: #fff;
  border: 1px solid var(--d-border);
  color: var(--d-text) !important;
}

/* Dentro do card: NÃO usar width 100% + margin (corta na direita) */
.dash-card > a.dash-step-btn,
.dash-card > .dash-manual-search,
.dash-card > .dash-steps {
  width: calc(100% - 36px) !important;
  max-width: calc(100% - 36px) !important;
  box-sizing: border-box !important;
  margin-left: 18px !important;
  margin-right: 18px !important;
}
.dash-card > a.dash-step-btn {
  justify-content: center !important;
  margin-top: 12px;
  margin-bottom: 16px;
}

.dash-consume {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.dash-manual-search {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}
.dash-manual-search input {
  flex: 1;
  height: 38px;
  font-style: normal;
  font-size: 13px;
  border-radius: 9px;
}
.dash-manual-top {
  margin-top: 14px;
  margin-bottom: 4px;
}
.dash-manual-top__title {
  margin: 0 0 6px;
  font-weight: 700;
  font-size: 12px;
  color: var(--d-navy);
}
.dash-manual-link {
  display: block;
  padding: 10px 2px;
  border-top: 1px solid #E8E4F4;
  font-size: 13px;
  font-weight: 650;
  color: var(--d-primary);
  text-decoration: none;
  line-height: 1.35;
}
.dash-manual-link:hover {
  color: var(--d-navy);
}
.dash-manual-link span {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #9CA3AF;
  margin-top: 2px;
}
.dash-step-btn i {
  color: inherit;
  margin: 0 !important;
}
.dash-step-btn--ghost i {
  color: var(--d-primary);
}

.dash-modal .modal-content {
  border-radius: 12px;
  overflow: hidden;
  border: 0;
}
.dash-modal .modal-header {
  background: var(--brand-btn-grad);
  color: #fff;
  border: 0;
  padding: 16px 18px;
}
.dash-modal .modal-header .modal-title {
  color: #fff;
  font-weight: 750;
  font-style: normal;
  font-size: 16px;
  margin: 0;
}
.dash-modal .modal-header p {
  margin: 4px 0 0;
  font-size: 12.5px;
  font-style: normal;
  color: rgba(255,255,255,.85);
}
.dash-modal .modal-header .close {
  color: #fff;
  opacity: .85;
  text-shadow: none;
  font-weight: 400;
}
.dash-modal .modal-header .close:hover { opacity: 1; color: #fff; }
.dash-modal .modal-body { padding: 16px 18px 18px; }

.np-search { position: relative; margin-bottom: 14px; }
.np-search > i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9AA9B8;
  font-style: normal;
  font-size: 14px;
}
.np-search input {
  width: 100%;
  height: 46px;
  padding: 0 14px 0 40px;
  border: 1px solid var(--d-border);
  border-radius: 12px;
  font-size: 14px;
  font-style: normal;
  color: var(--d-text);
  outline: none;
  background: #FAFBFC;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.np-search input:focus {
  border-color: var(--d-primary-2);
  background: #fff;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--d-primary-2) 15%, transparent);
}

.np-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.np-card {
  border: 1px solid var(--d-border);
  border-radius: 14px;
  background: #fff;
  padding: 16px 10px 14px;
  text-align: center;
  cursor: pointer;
  transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease, background .14s ease;
  text-decoration: none !important;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 118px;
  font: inherit;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}
.np-card:hover {
  border-color: var(--d-primary-2);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(76, 29, 149, .12);
  background: #FBF9FF;
  color: inherit;
}
.np-card .ico {
  width: 46px;
  height: 46px;
  margin: 0 auto 10px;
  color: var(--d-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border-radius: 14px;
  background: var(--d-soft);
  border: 1px solid #E8E0FF;
}
/* Força ícones roxos iguais no local e na Hostinger (vence navy.css + cache) */
#novoPedidoModal .np-card .ico i,
#novoPedidoModal .np-card .ico i.fab,
#novoPedidoModal .np-card .ico i.fas,
#historicoModal .np-card .ico i,
#historicoModal .np-card .ico i.fab,
#historicoModal .np-card .ico i.fas,
.np-card .ico i,
.np-card .ico i.fab,
.np-card .ico i.fas,
.np-card .ico i.fab.fa-instagram {
  font-style: normal !important;
  line-height: 1 !important;
  color: var(--d-primary) !important;
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: var(--d-primary) !important;
  filter: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  font-size: 22px !important;
  opacity: 1 !important;
  text-shadow: none !important;
}
.np-card .ico i.fas,
#novoPedidoModal .np-card .ico i.fas {
  font-weight: 900 !important;
  font-family: "Font Awesome 5 Free", "Font Awesome 5 Pro", "FontAwesome" !important;
}
.np-card .ico i.fab,
#novoPedidoModal .np-card .ico i.fab,
.np-card .ico i.fab.fa-instagram {
  font-weight: 400 !important;
  font-family: "Font Awesome 5 Brands", "Font Awesome 6 Brands", "FontAwesome" !important;
}
.np-card:hover .ico {
  color: var(--d-navy);
  background: #EDE5FF;
  border-color: #D8CBFF;
}
.np-card:hover .ico i,
#novoPedidoModal .np-card:hover .ico i {
  color: var(--d-navy) !important;
  -webkit-text-fill-color: var(--d-navy) !important;
}
.np-card .nm {
  display: block;
  font-size: 13px;
  font-weight: 700;
  font-style: normal;
  color: var(--d-text);
  line-height: 1.25;
}
.np-card .ct {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #F1F5F9;
  color: #64748B;
  font-size: 11px;
  font-weight: 600;
  font-style: normal;
  line-height: 1.2;
}
.np-card:hover .ct {
  background: #EDE5FF;
  color: var(--d-navy);
}

/* Lista de serviços: ícones também em roxo sólido */
.np-list .ri i {
  color: var(--d-primary) !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: currentColor !important;
  filter: none !important;
  padding: 0 !important;
  margin: 0 !important;
  font-weight: 900 !important;
  font-family: "Font Awesome 5 Free", "Font Awesome 5 Pro", "FontAwesome" !important;
}
.np-list .ri i.fab {
  font-weight: 400 !important;
  font-family: "Font Awesome 5 Brands", "FontAwesome" !important;
}

.np-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--d-border);
  border-radius: 8px;
  padding: 6px 10px;
  margin-bottom: 10px;
  color: #5A738E;
  font-size: 12px;
  font-weight: 700;
  font-style: normal;
  cursor: pointer;
}
.np-back i { font-style: normal; font-size: 11px; }
.np-back:hover { border-color: var(--d-primary-2); color: var(--d-navy); }

.np-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  padding: 11px 12px;
  margin-bottom: 8px;
  border: 1px solid var(--d-border);
  border-radius: 10px;
  background: #fff;
  color: var(--d-text);
  font-weight: 650;
  font-style: normal;
  font-size: 13px;
  transition: border-color .12s, background .12s;
}
.np-list a:hover {
  border-color: var(--d-primary-2);
  background: #F7F5FF;
  color: var(--d-text);
}
.np-list .ri {
  width: 18px;
  height: 18px;
  color: var(--d-navy);
  flex: 0 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.np-list .ri i { font-style: normal; font-size: 14px; }
.np-list a:hover .ri { color: var(--d-primary-2); }
.np-list .txt { flex: 1; min-width: 0; }
.np-list .txt small {
  display: block;
  font-weight: 500;
  font-size: 11px;
  font-style: normal;
  color: #9AA9B8;
  margin-top: 2px;
}
.np-list .chev { color: #C4CDD6; font-size: 11px; font-style: normal; }
.np-list a:hover .chev { color: var(--d-primary-2); }
.np-list .np-price {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--d-primary-2);
  margin-right: 6px;
  font-style: normal;
}
.np-list a.np-cat-row { cursor: pointer; }
.np-empty {
  text-align: center;
  color: #9AA9B8;
  padding: 22px 10px;
  font-size: 13px;
  font-style: normal;
}
.np-empty i {
  display: block;
  font-size: 28px;
  color: #D3DBE2;
  margin-bottom: 6px;
  font-style: normal;
}

.video-modal-wrap {
  position: relative;
  width: 100%;
  min-height: 360px;
  height: 0;
  padding-bottom: 56.25%;
  overflow: hidden;
  border-radius: 10px;
  background: #111827;
}
.video-modal-wrap .video-modal-frame,
.video-modal-frame {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100% !important;
  height: 100% !important;
  min-height: 360px;
  border: 0;
  border-radius: 10px;
  z-index: 2;
  background: #000;
}
.video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: #111827;
  z-index: 3;
}
.video-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-poster__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--d-primary-2) 95%, transparent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 10px 28px rgba(76, 29, 149, .45);
}
.video-poster:hover .video-poster__play {
  filter: brightness(1.08);
  transform: translate(-50%, -50%) scale(1.05);
}
.video-modal-fallback {
  margin: 10px 0 0;
  text-align: center;
  font-size: 13px;
  font-style: normal;
}
.video-modal-fallback a {
  color: var(--d-primary-2);
  font-weight: 700;
}

@media (max-width: 991px) {
  .dash-grid, .dash-stats { grid-template-columns: 1fr 1fr; }
  .dash-last { grid-template-columns: 1fr 1fr; }
  /* Mantém 4 por fileira no tablet/celular */
  .np-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin: 0 auto;
    justify-items: center;
  }
}
@media (max-width: 640px) {
  .dash-stats,
  .dash-grid,
  .dash-consume,
  .dash-ref__stats,
  .dash-last { grid-template-columns: 1fr; }
  .dash-hero { padding: 18px 14px; }
  .dash-hero h1 { font-size: 22px; }
  .dash-hero p { margin-bottom: 12px; font-size: 13px; }
  .dash-stat__number { font-size: 20px; }
  .dash-card > a.dash-step-btn,
  .dash-card > .dash-manual-search,
  .dash-card > .dash-steps,
  .dash-card > .dash-manual-top,
  .dash-card > .dash-muted,
  .dash-card > p {
    width: calc(100% - 28px) !important;
    max-width: calc(100% - 28px) !important;
    margin-left: 14px !important;
    margin-right: 14px !important;
  }
  .dash-card__head {
    padding-left: 14px;
    padding-right: 14px;
  }
  .dash-step-btn {
    white-space: normal;
    height: auto;
    min-height: 42px;
    padding: 10px 12px;
    line-height: 1.25;
  }
  .dash-hero__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    overflow: visible;
  }
  .dash-chip {
    flex: none;
    width: 100%;
    min-width: 0;
    max-width: none;
    justify-content: center;
    padding: 10px 8px;
    font-size: 12px;
    gap: 6px;
    border-radius: 8px;
    letter-spacing: 0;
    line-height: 1.2;
    white-space: normal;
    text-align: center;
  }

  /* Modal Novo pedido — compacto, 4 colunas, centralizado */
  .dash-modal .modal-dialog {
    width: calc(100% - 20px);
    max-width: 420px;
    margin: 12px auto;
  }
  .dash-modal .modal-header {
    padding: 12px 14px;
    text-align: center;
  }
  .dash-modal .modal-header .modal-title {
    font-size: 15px;
  }
  .dash-modal .modal-header p {
    font-size: 11.5px;
  }
  .dash-modal .modal-body {
    padding: 12px 12px 14px;
  }
  .np-search { margin-bottom: 10px; }
  .np-search input { height: 40px; font-size: 13px; border-radius: 10px; }
  .np-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    justify-items: stretch;
  }
  .np-card {
    width: 100%;
    min-height: 0;
    padding: 8px 4px 8px;
    border-radius: 10px;
    box-sizing: border-box;
  }
  .np-card .ico {
    width: 34px;
    height: 34px;
    margin: 0 auto 6px;
    font-size: 16px;
    border-radius: 10px;
  }
  .np-card .nm {
    font-size: 10px;
    line-height: 1.15;
    word-break: break-word;
  }
  .np-card .ct {
    margin-top: 4px;
    padding: 2px 5px;
    font-size: 9px;
    border-radius: 999px;
  }

  /* Bootstrap 3 JS usa .in — garantir compatibilidade no iPhone */
  .modal.dash-modal.in,
  .modal.dash-modal.show {
    display: block !important;
  }

  .modal-backdrop.in,
  .modal-backdrop.show {
    opacity: 0.45 !important;
  }

  /* Novo pedido — sheet nativo (sem backdrop preso do Bootstrap no iOS) */
  body.dash-np-sheet-active {
    overflow: hidden !important;
    touch-action: auto !important;
  }

  body.dash-np-sheet-active .modal-backdrop {
    display: none !important;
  }

  #novoPedidoModal.dash-np-sheet-open {
    display: flex !important;
    align-items: flex-start;
    justify-content: center;
    position: fixed !important;
    inset: 0 !important;
    z-index: 10050 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    padding: calc(58px + env(safe-area-inset-top, 0px)) 12px calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    background: rgba(17, 12, 40, 0.42) !important;
    touch-action: pan-y !important;
  }

  #novoPedidoModal.dash-np-sheet-open .modal-dialog {
    pointer-events: auto !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 440px !important;
    transform: none !important;
    flex: 0 0 auto;
  }

  #novoPedidoModal.dash-np-sheet-open .modal-content {
    pointer-events: auto !important;
    touch-action: manipulation;
    max-height: none !important;
    box-shadow: 0 16px 40px rgba(20, 15, 50, 0.18) !important;
  }

  #novoPedidoModal .np-card {
    pointer-events: auto !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(109, 40, 217, 0.12);
    cursor: pointer;
  }

  #historicoModal.dash-np-sheet-open {
    display: flex !important;
    align-items: flex-start;
    justify-content: center;
    position: fixed !important;
    inset: 0 !important;
    z-index: 10050 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    padding: calc(58px + env(safe-area-inset-top, 0px)) 12px 16px !important;
    background: rgba(17, 12, 40, 0.42) !important;
  }

  #historicoModal.dash-np-sheet-open .modal-dialog {
    pointer-events: auto !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 440px !important;
    transform: none !important;
  }
}
@media (max-width: 380px) {
  .dash-chip {
    font-size: 11px;
    padding: 9px 6px;
    gap: 4px;
  }
}
