/* ============================================================
   Internet Way — Customer Portal styles
   Nectar component overrides + project-specific generic
   components. All design tokens live in theme-way.css and are
   referenced here via Nectar's variable names (--color-*,
   --gray-*, --radius-*, --shadow-*).
   ============================================================ */

/* ============================================================
   REUSABLE PRIMITIVES (Nectar-aligned, no iw- prefix)
   ============================================================ */

/* Step number badge — circular accent for numbered form sections (sized + colored below in overrides) */
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Input loading indicator — pulse on the input-group-text icon while async work runs */
.input.is-loading + .input-group-text,
.input-group-text:has(+ .input.is-loading),
.input-group:has(.input.is-loading) .input-group-text {
  animation: pulse-fade 1s ease-in-out infinite;
}
@keyframes pulse-fade { 0%, 100% { opacity: 1 } 50% { opacity: 0.4 } }

/* ============================================================
   NECTAR COMPONENT OVERRIDES
   Re-skins Nectar's components (.card, .input, .btn, etc.) so
   pages using Nectar class names render with the project's
   existing iw-* look (white surfaces, thin borders, small radii,
   orange focus ring). When a page migrates from iw-* to Nectar
   class names, the visual stays identical.
   ============================================================ */

/* Card — match .iw-card */
.card {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-2xl);
  padding: 28px;
  box-shadow: var(--shadow-xs);
}
.card > .card-body { padding: 0; }

/* Standalone input — match .iw-input */
.input {
  height: 44px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  width: 100%;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary);
  transition: border-color .15s, box-shadow .15s;
  margin: 0;
}
.input::placeholder { color: var(--gray-400); }
.input:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(252,92,0,.12);
}

/* Input group — match .iw-input-wrap (single bordered row, icon inline) */
.input-group {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
.input-group:focus-within {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(252,92,0,.12);
}
.input-group > .input-group-text {
  background: transparent;
  border: 0;
  padding: 0;
  min-width: auto;
  color: var(--gray-500);
  border-radius: 0;
  display: inline-flex;
  align-items: center;
}
.input-group:focus-within > .input-group-text { color: var(--color-secondary); }
.input-group > .input-group-text .lucide {
  background-color: currentColor;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.input-group > .input {
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  width: auto;
  flex: 1;
  border-radius: 0;
}
.input-group > .input:focus { box-shadow: none; }

/* Button base — match .iw-btn */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, transform .08s, border-color .15s;
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn .lucide { background-color: currentColor; width: 18px; height: 18px; }

/* Primary (navy) — kept for completeness; uses brand navy */
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--color-primary-strong); color: #fff; }

/* Secondary (orange) — match .iw-btn--primary (project's main CTA) */
.btn-secondary { background: var(--color-secondary); color: #fff; border: 0; }
.btn-secondary:hover:not(:disabled) { background: var(--color-secondary-hover); color: #fff; }

/* Ghost — match .iw-btn--ghost (white with grey border) */
.btn-ghost {
  background: #fff;
  border: 1px solid var(--gray-300);
  color: var(--color-primary);
}
.btn-ghost:hover:not(:disabled) {
  background: #fff;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Button size modifiers — match .iw-btn--lg/.iw-btn--sm */
.btn-lg { height: 52px; padding: 0 24px; font-size: 15px; }
.btn-sm { height: 36px; padding: 0 12px; font-size: 13px; }

/* Form labels — match .iw-field > label (uppercase, small, grey) */
form label:not([class]),
form .label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
  margin: 0 0 6px;
}
form label small {
  font-size: 11px;
  font-weight: 500;
  color: var(--gray-500);
  text-transform: none;
  letter-spacing: 0;
  margin-left: 4px;
}

/* Re-skin the step badge to match .iw-ni__step (orange ring + tint) */
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(252,92,0,.45);
  background: rgba(252,92,0,.08);
  color: var(--color-secondary);
  font-weight: 800;
  font-size: 14px;
}

/* Back-link — match .iw-crumb */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  text-decoration: none;
  margin-bottom: 24px;
}
.back-link:hover { color: var(--color-secondary); }
.back-link .lucide { background-color: currentColor; width: 16px; height: 16px; }

/* Card header — override Nectar to match .iw-ni__sec (divider style, not header bar) */
.card > .card-header {
  background: none;
  border: 0;
  border-bottom: 1px solid var(--gray-100);
  padding: 0 0 18px;
  margin: 0 0 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-weight: 400;
}
.card > .card-header > div { min-width: 0; flex: 1; }
.card > .card-header h1,
.card > .card-header h2,
.card > .card-header h3,
.card > .card-header h4 {
  font-size: 18px;
  margin: 0;
  color: var(--color-primary);
  font-weight: 700;
}
.card > .card-header p {
  font-size: 13px;
  color: var(--gray-600);
  margin: 4px 0 0;
}

/* Eyebrow — small orange caption above page/section headings (match .iw-eyebrow) */
.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 14px;
  color: var(--color-secondary);
  margin-bottom: 8px;
}
.eyebrow-sm { font-size: 12px; letter-spacing: .04em; }

/* Page head — flex container for page heading (left) + optional actions (right) */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.page-head h1 {
  font-size: 36px;
  line-height: 1;
  margin: 4px 0 0;
  color: var(--color-primary);
}
.page-head p {
  margin-top: 8px;
  color: var(--gray-600);
  font-size: 14px;
  max-width: 640px;
}

/* Card large — form-card variant with bigger padding and 28px title */
.card-lg { padding: 36px 40px; }
.card-lg > .card-header {
  border: 0;
  padding: 0;
  margin: 0 0 28px;
  display: block;
}
.card-lg > .card-header h1,
.card-lg > .card-header h2 {
  font-size: 28px;
  margin: 6px 0 0;
  color: var(--color-primary);
  font-weight: 700;
}
.card-lg > .card-header p {
  color: var(--gray-600);
  margin-top: 8px;
  max-width: 520px;
  font-size: 14px;
}

/* Sidebar layout — fixed 240px aside + flexible content */
.with-sidebar {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
}
@media (max-width: 1024px) {
  .with-sidebar { grid-template-columns: 1fr; }
}

/* Sidebar nav — extends Nectar's .sidebar-nav with anchor styling */
.sidebar-nav {
  border-right: 0;
  padding-right: 0;
  padding-top: 8px;
}
.sidebar-nav nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
}
.sidebar-nav a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 0;
  border-radius: var(--radius-lg);
  background: none;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  color: var(--gray-600);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
}
.sidebar-nav a:hover {
  background: var(--gray-50);
  color: var(--color-primary);
  text-decoration: none;
}
.sidebar-nav a.is-active {
  background: rgba(252,92,0,.08);
  color: var(--color-secondary);
}
.sidebar-nav a .lucide {
  background-color: currentColor;
  width: 18px;
  height: 18px;
}

/* Label with inline link — for "Forgot password?" style label rows */
.label-row {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
}
.label-row a {
  font-weight: 700;
  color: var(--color-secondary);
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
}
.label-row a:hover { color: var(--color-secondary-hover); text-decoration: none; }

/* Button full-width modifier (match .iw-btn--full) */
.btn-block { width: 100%; }

/* Outline-primary — white fill with navy border + text, subtle navy hover */
.btn-outline-primary {
  background: #fff;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
}
.btn-outline-primary:hover:not(:disabled) {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.btn-outline-primary .lucide { background-color: currentColor; }

/* Ghost button on dark background (match .iw-btn--ghost-light) */
.btn-ghost-light {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
}
.btn-ghost-light:hover:not(:disabled) {
  background: rgba(255,255,255,.2);
  color: #fff;
}

/* Badge — pill-shaped status indicator (extends Nectar .badge with iw-pill colors) */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 0 10px; height: 24px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 700; letter-spacing: 0; white-space: nowrap; }
.badge-overdue { background: #fee2e2; color: #b91c1c; }
.badge-open    { background: #fef3c7; color: #92400e; }
.badge-paid    { background: rgba(0,166,62,.12); color: var(--color-success); }
.badge-neutral { background: var(--gray-100); color: var(--gray-700); }
.badge-lg      { height: 32px; padding: 0 14px; font-size: 13px; }

/* Pagination — override Nectar to match .iw-pager visuals */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 28px; list-style: none; padding: 0; }
.pagination-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  min-width: auto;
  padding: 0 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-primary);
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: border-color .15s;
}
.pagination-item:hover:not(.is-active):not(.is-disabled) {
  background: #fff;
  border-color: var(--color-primary);
  transform: none;
}
.pagination-item.is-active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.pagination-item.is-disabled {
  color: var(--gray-400);
  cursor: not-allowed;
  pointer-events: none;
  opacity: 1;
  background: #fff;
}

/* Row-card — clickable list-item card with icon + main + side (match .iw-fat-card) */
.row-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  padding: 20px 24px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, box-shadow .15s, transform .08s;
}
.row-card:hover { border-color: var(--gray-300); box-shadow: var(--shadow-xs); text-decoration: none; }
.row-card.is-overdue { border-left: 3px solid var(--color-secondary); }
.row-card.is-paid    { border-left: 3px solid var(--color-success); }
.row-card-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-lg);
  background: var(--gray-50);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.row-card-icon .lucide { background-color: var(--color-primary); width: 22px; height: 22px; }
.row-card-main { display: flex; flex-direction: column; gap: 2px; }
.row-card-id { font-family: var(--font-mono); font-size: 12px; color: var(--gray-500); letter-spacing: .02em; }
.row-card-price { font-size: 22px; font-weight: 700; color: var(--color-primary); margin-top: 2px; }
.row-card-meta { font-size: 13px; color: var(--gray-600); }
.row-card-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.row-card-cta {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
@media (max-width: 720px) {
  .row-card { grid-template-columns: 1fr; padding: 16px; }
  .row-card-icon { display: none; }
}

/* Key-value list — definition list with right-aligned dd (match .iw-kv) */
.kv-list { margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.kv-list > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-100);
}
.kv-list > div:last-child { border-bottom: 0; }
.kv-list dt { color: var(--gray-600); font-size: 14px; font-weight: 500; margin: 0; white-space: nowrap; }
.kv-list dd { color: var(--color-primary); font-size: 14px; font-weight: 700; margin: 0; white-space: nowrap; text-align: right; }
.kv-list .is-total { margin-top: 8px; padding-top: 18px !important; border-top: 1px solid var(--gray-200); }
.kv-list .is-total dt { font-weight: 700; color: var(--color-primary); }
.kv-list .is-total dd { font-size: 22px; color: var(--color-secondary); }

/* Empty state — placeholder card for empty lists (match .iw-empty-cards / .iw-empty) */
.empty-state {
  background: #fff;
  border: 1px dashed var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 48px;
  text-align: center;
  color: var(--gray-500);
}
.empty-state-sm { padding: 32px; }

/* Filter bar — horizontal form row with date pickers + submit (match .iw-filter) */
.filter-bar {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 16px;
  align-items: end;
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-2xl);
  padding: 20px 24px;
  margin-bottom: 20px;
}
.filter-bar label { /* labels here use the form label styling already */ }
.filter-bar .filter-reset {
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 600;
  text-decoration: none;
  margin-left: 8px;
}
.filter-bar .filter-reset:hover { color: var(--color-secondary); }
@media (max-width: 1024px) {
  .filter-bar { grid-template-columns: 1fr; }
}

/* Address picker — label + select in a horizontal group (match .iw-address-picker) */
.address-picker { display: flex; align-items: center; gap: 12px; }
.address-picker > label,
.address-picker > .picker-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0;
  white-space: nowrap;
}
.address-picker select {
  height: 44px;
  padding: 0 16px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  color: var(--color-primary);
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  min-width: 280px;
}

/* Page-head detail variant — for "back, title with status badge, subtitle" pattern */
.page-head h1.is-mono {
  font-family: var(--font-mono);
  letter-spacing: -.01em;
  font-size: 28px;
  margin: 6px 0 0;
}
.page-head .page-sub { color: var(--gray-600); margin-top: 8px; }

/* Payment section — block with heading, action, and helper text (match .iw-pay-section) */
.payment-section { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.payment-section-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
}
.payment-section-head .lucide { background-color: currentColor; width: 18px; height: 18px; }
.payment-divider {
  position: relative;
  text-align: center;
  margin: 24px 0;
  color: var(--gray-400);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.payment-divider::before, .payment-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: var(--gray-200);
}
.payment-divider::before { left: 0; }
.payment-divider::after  { right: 0; }
.payment-divider span { background: #fff; padding: 0 12px; position: relative; z-index: 2; }
.payment-help {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--gray-500);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.payment-help .lucide { background-color: currentColor; width: 14px; height: 14px; }

/* Barcode display — dashed-border code block + copy button (match .iw-barcode) */
.barcode {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--gray-50);
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 12px;
}
.barcode code {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-primary);
  word-break: break-all;
  background: none;
}

/* Hero — dark gradient surface for page headers (match .iw-hero / .iw-ind-hero base) */
.hero {
  position: relative;
  background: linear-gradient(135deg, #001839 0%, #03071a 100%);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  color: #fff;
  padding: 36px 40px 40px;
  text-align: left; /* reset Nectar .hero's text-align: center */
}
.hero h1, .hero h2, .hero h3 { color: #fff; }

/* Hero split — two-column hero with content + stats panel (match .iw-ind-hero) */
.hero-split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
  padding: 0;
  position: relative;
}
.hero-split::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 50%, rgba(252,92,0,.30), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(252,92,0,.15), transparent 40%);
}
.hero-split-main { position: relative; padding: 48px; z-index: 2; }
.hero-split-main h1 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 6px 0 12px;
}
.hero-split-main p {
  color: rgba(255,255,255,.7);
  font-size: 15px;
  max-width: 460px;
  margin: 0 0 24px;
}
.hero-split-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: repeat(auto-fit, 1fr);
  gap: 0;
  padding: 32px;
  border-left: 1px solid rgba(255,255,255,.08);
}
@media (max-width: 1024px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-split-main { padding: 32px 24px; }
  .hero-split-main h1 { font-size: 32px; }
  .hero-split-stats { padding: 24px; border-left: 0; border-top: 1px solid rgba(255,255,255,.08); }
}

/* Stat card — figure with big number + small label (works on dark or light) */
.stat-figure {
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.stat-figure:last-child { border-bottom: 0; }
.stat-figure-num { font-size: 32px; font-weight: 800; color: #fff; letter-spacing: -.02em; line-height: 1; }
.stat-figure-lbl { font-size: 12px; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .06em; }
.stat-figure.is-accent .stat-figure-num { color: var(--color-secondary); }

/* Steps — 3-column "how it works" cards grid (override Nectar .steps for this pattern) */
.card .steps,
section.steps,
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: none;
}
@media (max-width: 1024px) {
  .steps { grid-template-columns: 1fr; }
}
/* Step item — kill Nectar's circular counter, render as plain card (match .iw-step) */
.step {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-2xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  flex: initial;
  color: inherit;
  font-size: inherit;
}
.step::before, .step::after { content: none !important; display: none; }
.step strong { font-size: 18px; color: var(--color-primary); margin-top: 4px; }
.step p { font-size: 14px; color: var(--gray-600); margin: 0; }
.step-num-inline {
  font-size: 13px;
  font-weight: 800;
  color: var(--color-secondary);
  letter-spacing: .04em;
}

/* List rows — divided rows inside a card (match .iw-ind-rows / .iw-ind-row) */
.list-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.list-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--gray-100);
}
.list-row:last-child { border-bottom: 0; }
.list-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.list-row-main strong { font-size: 14px; color: var(--color-primary); font-weight: 700; }
.list-row-main span { font-size: 13px; color: var(--gray-600); }
.list-row-date { font-size: 13px; color: var(--gray-500); white-space: nowrap; }

/* Avatar — extend Nectar .avatar to match iw-ind-row__avatar (smaller, neutral) */
.avatar { background-color: var(--gray-100); color: var(--color-primary); font-weight: 700; }
.avatar-sm { width: 40px; height: 40px; font-size: 14px; }

/* Card head — "title + see-more link" header inside a regular card (match .iw-card__head) */
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}
.card-head h2 { font-size: 24px; margin: 4px 0 0; color: var(--color-primary); line-height: 1.1; }
.card-more {
  background: none;
  border: 0;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  color: var(--color-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}
.card-more:hover { color: var(--color-secondary-hover); text-decoration: none; }
.card-more .lucide { background-color: currentColor; width: 16px; height: 16px; }

/* ============================================================
   DASHBOARD COMPONENTS (hero, fat-row, action-list, banner, promo)
   ============================================================ */

/* Dashboard grid — main content (faturas) + sidebar (atalhos) */
.dashboard-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; }
@media (max-width: 1024px) { .dashboard-grid { grid-template-columns: 1fr; } }

/* Hero background decoration layer (for SVG) */
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg svg { width: 100%; height: 100%; }

/* Hero top row — greeting on left, address selector on right */
.hero-top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 36px;
}
@media (max-width: 1024px) { .hero-top { flex-direction: column; } }

.hero-greet { display: flex; flex-direction: column; gap: 8px; max-width: 520px; }
.hero-greet h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0;
  line-height: 1.1;
}
.hero-greet p {
  color: rgba(255,255,255,.65);
  margin: 0;
  font-size: 15px;
  max-width: 480px;
}
.hero-greet .eyebrow { color: var(--color-secondary); margin-bottom: 0; }

/* Hero address selector — pill-shaped dropdown on dark surface */
.hero-address {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}
@media (max-width: 1024px) { .hero-address { align-items: flex-start; } }
.hero-address-lbl {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.hero-address select {
  appearance: none;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-pill);
  height: 44px;
  padding: 0 36px 0 18px;
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  color: #fff;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255,255,255,.6) 50%),
    linear-gradient(135deg, rgba(255,255,255,.6) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) center,
    calc(100% - 13px) center;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.hero-address select option { color: var(--color-primary); background: #fff; }

/* Hero plan display — big number with status badge above */
.hero-plan { position: relative; z-index: 2; }
.hero-plan-line {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 4px;
}
.hero-plan-eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.hero-plan-row {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin: 0 0 24px;
  flex-wrap: wrap;
}
.hero-plan h3 {
  font-size: 60px;
  line-height: .9;
  margin: 0;
  font-weight: 800;
  color: #fff;
  display: inline-flex;
  align-items: flex-end;
  padding-right: 8px;
}
@media (max-width: 720px) { .hero-plan h3 { font-size: 72px; } }

/* Hero status badge — green dot pill (and warn variant) */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 26px;
  padding: 0 12px;
  background: rgba(74,222,128,.16);
  border: 1px solid rgba(74,222,128,.35);
  color: #4ade80;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
}
.hero-badge.is-warn {
  background: rgba(252,92,0,.16);
  border-color: rgba(252,92,0,.35);
  color: var(--color-secondary);
}
.hero-badge.is-warn .hero-badge-dot { background: var(--color-secondary); box-shadow: 0 0 0 4px rgba(252,92,0,.25); }
.hero-badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74,222,128,.25);
  animation: hero-badge-pulse 1.8s ease-out infinite;
}
@keyframes hero-badge-pulse { 0%, 100% { opacity: 1 } 50% { opacity: .35 } }

/* Hero stats — 4-column grid under the plan */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 22px;
  position: relative;
  z-index: 2;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 24px;
  border-right: 1px solid rgba(255,255,255,.08);
}
.hero-stat:last-child { border-right: 0; }
.hero-stat:not(:first-child) { padding-left: 24px; }
.hero-stat-num {
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}
.hero-stat-unit { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.55); }
.hero-stat-lbl { font-size: 12px; color: rgba(255,255,255,.55); letter-spacing: .04em; text-transform: uppercase; }
@media (max-width: 1024px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) {
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 16px; }
  .hero-stat { padding: 0; border-right: 0; }
  .hero-stat:not(:first-child) { padding-left: 0; }
}

/* Inline banner — alert-style row for in-card notices (match .iw-banner) */
.banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(252,92,0,.08);
  border: 1px solid rgba(252,92,0,.3);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  margin-bottom: 16px;
}
.banner-title { font-weight: 700; font-size: 14px; color: var(--color-secondary-hover); white-space: nowrap; }
.banner-amount { font-weight: 700; font-size: 16px; color: var(--color-primary); white-space: nowrap; padding-left: 12px; }

/* Card attention border — emphasizes a card that needs the user's attention */
.card.is-attention { border-color: rgba(252,92,0,.25); }

/* Fat row — compact invoice row for dashboard widget (match .iw-fat-row) */
.fat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.fat-row {
  display: grid;
  grid-template-columns: minmax(160px,1fr) auto auto auto;
  align-items: center;
  gap: 16px;
  padding: 14px 8px;
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer;
  transition: background .12s;
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
}
.fat-row:last-child { border-bottom: 0; }
.fat-row:hover { background: var(--gray-50); text-decoration: none; }
.fat-row-date { display: flex; align-items: center; gap: 10px; }
.fat-row-date > div { display: flex; flex-direction: column; }
.fat-row-date .lucide { background-color: var(--gray-500); width: 18px; height: 18px; }
.fat-row-due-lbl { font-size: 11px; color: var(--gray-500); text-transform: uppercase; letter-spacing: .04em; }
.fat-row-due { font-weight: 700; font-size: 14px; color: var(--color-primary); white-space: nowrap; }
.fat-row-amt { font-weight: 700; font-size: 16px; color: var(--color-primary); white-space: nowrap; }
.fat-row-chev { background-color: var(--gray-400); width: 18px; height: 18px; }
@media (max-width: 720px) {
  .fat-row { grid-template-columns: 1fr auto; gap: 8px; }
  .fat-row-amt { grid-column: 2; }
  .fat-row-chev { display: none; }
}

/* Action list — vertical stack of "action tiles" (match .iw-actions / .iw-action) */
.action-list { display: flex; flex-direction: column; gap: 8px; }
.action-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  background: #fff;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  text-decoration: none;
  color: inherit;
  transition: border-color .12s, transform .08s, box-shadow .12s;
  width: 100%;
}
.action-tile:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-xs);
  text-decoration: none;
}
.action-tile-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-lg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.action-tile-icon .lucide { width: 22px; height: 22px; }
.action-tile-icon.is-orange { background: rgba(252,92,0,.12); }
.action-tile-icon.is-orange .lucide { background-color: var(--color-secondary); }
.action-tile-icon.is-navy   { background: rgba(0,24,57,.08); }
.action-tile-icon.is-navy .lucide { background-color: var(--color-primary); }
.action-tile-icon.is-green  { background: rgba(0,166,62,.12); }
.action-tile-icon.is-green .lucide { background-color: var(--color-success); }
.action-tile-icon.is-blue   { background: rgba(124,196,248,.20); }
.action-tile-icon.is-blue .lucide { background-color: #0c63a8; }
.action-tile-txt { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.action-tile-txt strong { font-size: 14px; font-weight: 700; color: var(--color-primary); }
.action-tile-txt span { font-size: 13px; color: var(--gray-600); }
.action-tile-arrow { background-color: var(--gray-400); width: 18px; height: 18px; }

/* ============================================================
   APP SHELL — topbar + main + footer (match .iw-shell, .iw-topbar*, .iw-main, .iw-footer*)
   ============================================================ */
body.portal { background: #fbfbfc; }

.app-shell { display: flex; flex-direction: column; min-height: 100vh; }

.topbar {
  background: var(--color-primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(255,255,255,.04), 0 6px 24px rgba(0,0,0,.18);
}
.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 72px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.topbar-brand img { height: 36px; display: block; cursor: pointer; }
.topbar-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  align-items: center;
}
.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: none;
  border: 0;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  color: rgba(255,255,255,.78);
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.topbar-link:hover { color: #fff; background: rgba(255,255,255,.06); text-decoration: none; }
.topbar-link.is-active {
  color: #fff;
  background: rgba(252,92,0,.16);
  box-shadow: inset 0 0 0 1px rgba(252,92,0,.45);
}
.topbar-link.is-active .lucide { background-color: var(--color-secondary); }
.topbar-link.is-logout { margin-left: 12px; color: rgba(255,255,255,.55); }
.topbar-link.is-logout:hover { color: #fff; }

/* Mobile menu toggle — hidden on desktop, shown as hamburger on mobile */
.topbar-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 10px;
  background: none;
  border: 0;
  border-radius: var(--radius-lg);
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  cursor: pointer;
}
.topbar-toggle .lucide { background-color: #fff; width: 24px; height: 24px; }

@media (max-width: 768px) {
  .topbar-inner { position: relative; padding: 0 16px; gap: 0; }
  /* hamburger on the left */
  .topbar-toggle { display: inline-flex; }
  /* logo centered */
  .topbar-brand {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  /* nav collapses into a dropdown panel below the bar */
  .topbar-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 8px;
    background: var(--color-primary);
    border-top: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 12px 24px rgba(0,0,0,.22);
    display: none;
  }
  .topbar-nav.is-open { display: flex; }
  .topbar-link {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border-radius: var(--radius-lg);
    font-size: 15px;
  }
  .topbar-link.is-logout { margin-left: 0; border-top: 1px solid rgba(255,255,255,.08); margin-top: 4px; padding-top: 0; }
}

.app-main {
  flex: 1;
  padding: 40px 32px 80px;
}
@media (max-width: 720px) { .app-main { padding: 24px 16px 60px; } }

.app-container {
  max-width: 1280px;
  margin: 0 auto;
}

.app-footer {
  background: #fff;
  border-top: 1px solid var(--gray-100);
  padding: 24px 32px;
}
.app-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 1280px;
  margin: 0 auto;
}
.app-footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gray-600);
  font-size: 13px;
}
.app-footer-brand img { height: 28px; }
.app-footer-meta { color: var(--gray-500); font-size: 13px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.app-footer-dot { color: var(--gray-300); }

/* ============================================================
   AUTH LAYOUT (login, signup, recover, reset)
   ============================================================ */
body.auth { background: var(--gray-50); }
.auth-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--gray-50);
}
.auth-bar {
  background: #fff;
  padding: 18px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--gray-100);
}
.auth-bar-brand img { height: 32px; display: block; }
.auth-bar-back {
  font-size: 13px;
  color: var(--gray-600);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.auth-bar-back:hover { color: var(--color-secondary); }

.auth-stage {
  flex: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 32px;
  align-items: center;
}
@media (max-width: 1024px) { .auth-stage { grid-template-columns: 1fr; } }

.auth-pitch {
  position: relative;
  background: linear-gradient(135deg, #001839 0%, #03071a 100%);
  color: #fff;
  border-radius: var(--radius-2xl);
  padding: 56px;
  margin-right: -32px;
  min-height: 540px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 1;
}
.auth-pitch::after {
  content: "";
  position: absolute;
  bottom: -120px;
  left: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(252,92,0,.20), transparent 65%);
}
.auth-pitch .eyebrow { color: var(--color-secondary); margin-bottom: 0; }
.auth-pitch h1 { font-size: 40px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 4px 0 12px; color: #fff; }
.auth-pitch > p { color: rgba(255,255,255,.7); font-size: 15px; max-width: 420px; margin: 0 0 16px; }
.auth-pitch ul { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 2; }
.auth-pitch ul li {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  font-size: 15px;
  color: rgba(255,255,255,.92);
}
.auth-pitch-bullet {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(252,92,0,.5);
  color: var(--color-secondary);
  background: rgba(252,92,0,.10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}
.auth-pitch-icon {
  position: absolute;
  right: 32px;
  bottom: 32px;
  opacity: .45;
  width: 96px;
  height: 96px;
  background-color: var(--color-secondary);
}
@media (max-width: 1024px) { .auth-pitch { margin-right: 0; margin-bottom: -32px; } }
@media (max-width: 720px) {
  .auth-pitch { padding: 32px 24px; min-height: auto; }
  .auth-pitch h1 { font-size: 28px; }
}

.auth-card {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-2xl);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-card h1 { font-size: 36px; margin: 6px 0 8px; color: var(--color-primary); }
.auth-card-sub { color: var(--gray-600); margin: 0 0 28px; max-width: 380px; font-size: 14px; }
.auth-card-alt { margin-top: 18px; font-size: 13px; color: var(--gray-600); }
.auth-card-alt a { color: var(--color-secondary); font-weight: 700; text-decoration: none; }
.auth-card-alt a:hover { color: var(--color-secondary-hover); text-decoration: none; }
@media (max-width: 720px) {
  .auth-card { padding: 28px 24px; min-height: auto; }
  .auth-card h1 { font-size: 28px; }
}

.auth-foot { padding: 24px 32px; text-align: center; font-size: 13px; color: var(--gray-500); }

/* Recover success block — checkmark icon + message after password reset request */
.recover-ok {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 28px 0 8px;
}
.recover-ok-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--color-success);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.recover-ok-icon .lucide { background-color: #fff; width: 28px; height: 28px; }
.recover-ok p { color: var(--gray-600); margin: 0 0 12px; font-size: 14px; }

/* Terms checkbox — inline label with text + link(s) (match .iw-check) */
.terms-check {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.4;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  margin: 0;
}
.terms-check input { margin-top: 3px; accent-color: var(--color-secondary); }
.terms-check a { color: var(--color-secondary); font-weight: 700; text-decoration: none; }
.terms-check a:hover { text-decoration: underline; }

/* 2-column form row (match .iw-row-2) */
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 1024px) { .form-row-2 { grid-template-columns: 1fr; } }

/* Promo card — 2-col card with art + body + CTA (match .iw-promo) */
.promo-card {
  position: relative;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-2xl);
  padding: 28px;
  overflow: hidden;
}
.promo-card::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(252,92,0,.10), transparent 70%);
  pointer-events: none;
}
.promo-art { width: 200px; height: 200px; position: relative; }
.promo-body { display: flex; flex-direction: column; gap: 8px; position: relative; z-index: 2; }
.promo-body .eyebrow { font-size: 14px; letter-spacing: 0; text-transform: none; }
.promo-body h3 { font-size: 28px; font-weight: 700; color: var(--color-primary); margin: 0; line-height: 1.1; }
.promo-body p { font-size: 14px; color: var(--gray-600); margin: 4px 0 16px; max-width: 540px; }
.promo-cta { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
@media (max-width: 1024px) {
  .promo-card { grid-template-columns: 1fr; }
  .promo-art { display: none; }
}

/* Form actions — right-aligned button row at the bottom of a form (match .iw-form__actions) */
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 12px;
}
/* Sticky variant — pinned at viewport bottom with a fade-out gradient (match .iw-ni__actions) */
.form-actions.is-sticky {
  margin-top: 8px;
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, rgba(251,251,252,0), #fbfbfc 32%);
  padding: 16px 0 4px;
}

/* Nectar's .row uses horizontal scroll; with our card padding that's not what
   we want for form rows. Reset overflow when row sits inside a card. */
.card .row { overflow-x: visible; }

/* Step number badge — refined to match .iw-ni__step exactly */
.step-num {
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(252,92,0,.45);
  background: rgba(252,92,0,.08);
  color: var(--color-secondary);
  font-weight: 800;
  font-size: 14px;
}

/* ============================================================
   TROCAR DE PLANO — plan list + confirmation
   Plan-card pattern from the design system: a navy (or orange,
   when current) head strip with a wifi glyph + plan name, then a
   white body with a big price, a checkmark feature list and a CTA.
   ============================================================ */

/* Price tag — "R$" + big integer + cents + period (match .iw-ptag) */
.ptag { display: inline-flex; align-items: baseline; gap: 2px; color: var(--color-primary); white-space: nowrap; }
.ptag-cur { font-size: 18px; font-weight: 700; margin-right: 2px; }
.ptag-int { font-size: 44px; font-weight: 800; line-height: .9; letter-spacing: -.03em; color: #000; }
.ptag-dec { font-size: 18px; font-weight: 700; }
.ptag-per { font-size: 13px; font-weight: 500; color: var(--gray-600); margin-left: 4px; }
.ptag-sm .ptag-cur { font-size: 14px; }
.ptag-sm .ptag-int { font-size: 28px; }
.ptag-sm .ptag-dec { font-size: 14px; }
.ptag-sm .ptag-per { font-size: 12px; }

/* Current-plan banner — orange-accented summary row (match .iw-current-banner) */
.plan-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  background: #fff;
  border: 1px solid rgba(252,92,0,.25);
  border-left: 4px solid var(--color-secondary);
  border-radius: var(--radius-xl);
  padding: 18px 24px;
  box-shadow: var(--shadow-xs);
}
.plan-banner-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-lg);
  background: rgba(252,92,0,.10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.plan-banner-icon .lucide { background-color: var(--color-secondary); width: 22px; height: 22px; }
.plan-banner-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.plan-banner-lbl { font-size: 12px; font-weight: 700; color: var(--color-secondary); }
.plan-banner-main strong { font-size: 18px; color: var(--color-primary); font-weight: 700; }
.plan-banner-price { padding-left: 16px; border-left: 1px solid var(--gray-200); }
@media (max-width: 720px) {
  .plan-banner { grid-template-columns: auto 1fr; }
  .plan-banner-price { grid-column: 1 / -1; padding-left: 0; border-left: 0; border-top: 1px solid var(--gray-200); padding-top: 12px; }
}

/* Plan-card grid — four across, collapsing on smaller screens */
.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1024px) { .plan-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .plan-grid { grid-template-columns: 1fr; } }

/* Plan card — colored head strip + white body (match .iw-pp) */
.plan-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.plan-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.plan-card.is-current { border-color: var(--color-secondary); box-shadow: 0 0 0 1px var(--color-secondary), var(--shadow-xs); }
.plan-card.is-current:hover { transform: none; box-shadow: 0 0 0 1px var(--color-secondary), var(--shadow-xs); }

/* Ribbon — small label hanging from the top edge (match .iw-pp__ribbon) */
.plan-card-ribbon {
  position: absolute;
  top: 0;
  left: 16px;
  background: var(--color-secondary);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 0 0 6px 6px;
  z-index: 2;
}

/* Head strip — navy by default, orange for the current plan */
.plan-card-head {
  min-height: 76px;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  text-align: center;
}
/* Current card carries the ribbon, so reserve top space to keep the
   plan name from sliding under it when the title wraps. */
.plan-card.is-current .plan-card-head { background: var(--color-secondary); padding-top: 30px; }
.plan-card-head .lucide { background-color: #fff; width: 22px; height: 22px; flex-shrink: 0; }
.plan-card-title { font-size: 19px; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; }

/* Body — price, optional blurb, feature checklist, CTA at the bottom */
.plan-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.plan-card-body .ptag { align-self: center; }
.plan-card-loyalty { align-self: center; }
.plan-card-blurb { font-size: 13px; color: var(--gray-600); text-align: center; line-height: 1.4; margin: 0; }
.plan-card-features {
  list-style: none;
  margin: 4px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.plan-card-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  line-height: 1.4;
}
.plan-card-features li .lucide { background-color: var(--color-success); width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }

/* "Plano em uso" CTA — full-opacity green, non-interactive (match .iw-btn--current) */
.btn-current {
  background: rgba(0,166,62,.10);
  color: var(--color-success);
  border: 1px solid rgba(0,166,62,.25);
}
.btn-current .lucide { background-color: var(--color-success); }
.btn-current[disabled], .btn-current:disabled { opacity: 1; cursor: default; }

/* Footer line under the plan grid */
.plan-foot { text-align: center; color: var(--gray-600); font-size: 14px; }
.plan-foot a { color: var(--color-secondary); font-weight: 700; text-decoration: none; }
.plan-foot a:hover { text-decoration: underline; }

/* Confirm — from→to comparison panel (match .iw-confirm__compare) */
.compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-2xl);
  padding: 28px 32px;
  box-shadow: var(--shadow-xs);
}
.compare-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.compare-col-lbl { font-size: 11px; font-weight: 800; color: var(--gray-500); text-transform: uppercase; letter-spacing: .08em; }
.compare-col-lbl.is-new { color: var(--color-secondary); }
.compare-arrow {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(252,92,0,.10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.compare-arrow .lucide { background-color: var(--color-secondary); width: 24px; height: 24px; }
@media (max-width: 720px) {
  .compare { grid-template-columns: 1fr; }
  .compare-arrow { transform: rotate(90deg); margin: 0 auto; }
}

/* Mini plan card — compact colored-head card used in the comparison (match .iw-mini-card) */
.mini-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #fff;
}
.mini-card-head {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  color: #fff;
  text-align: center;
}
.mini-card.is-current .mini-card-head { background: var(--color-primary); }
.mini-card.is-new .mini-card-head { background: var(--color-secondary); }
.mini-card-head .lucide { background-color: #fff; width: 18px; height: 18px; flex-shrink: 0; }
.mini-card-name { font-size: 14px; font-weight: 700; }
.mini-card-body { padding: 14px 18px 16px; display: flex; justify-content: center; }

/* Confirm grid — "incluso" features card + "resumo" summary card */
.confirm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 1024px) { .confirm-grid { grid-template-columns: 1fr; } }
.confirm-grid h2, .confirm-grid h3 { font-size: 18px; color: var(--color-primary); margin: 0; }

/* Feature checklist (confirm "incluso" card — slightly larger than the plan-card list) */
.confirm-features {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.confirm-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
}
.confirm-features li .lucide { background-color: var(--color-success); width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }

/* Monthly-difference row — tinted box under the summary kv-list (match .iw-kv__delta) */
.kv-delta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding: 16px;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
}
.kv-delta span { font-size: 14px; font-weight: 700; color: var(--color-primary); }
.kv-delta strong { font-size: 22px; font-weight: 800; }
.kv-delta.is-up strong { color: var(--color-secondary); }
.kv-delta.is-down strong { color: var(--color-success); }

/* Info note — light-blue callout (match .iw-confirm__note) */
.confirm-note {
  font-size: 13px;
  color: var(--gray-600);
  margin: 16px 0 0;
  padding: 14px 16px;
  background: rgba(124,196,248,.12);
  border-radius: var(--radius-lg);
  line-height: 1.5;
}
.confirm-note strong { color: var(--color-primary); }

/* Confirm action row — divider above right-aligned buttons (match .iw-confirm__actions) */
.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-100);
}
@media (max-width: 560px) {
  .confirm-actions { flex-direction: column-reverse; }
  .confirm-actions .btn { width: 100%; }
}

