@font-face {
  font-family: "Vixel UI";
  src: url("/fonts/InterVariable.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #141512;
  --ink-2: #343531;
  --canvas: #e6e6e4;
  --paper: #f5f5f2;
  --line: rgba(130, 131, 126, .20);
  --muted: #72736f;
  --orange: #f56e18;
  --orange-deep: #a74716;
  --orange-soft: rgba(245, 110, 24, .10);
  --yellow: #ffc429;
  --green: #24976b;
  --red: #c8493e;
  --glass-fill: rgba(255, 255, 255, .16);
  --glass-fill-strong: rgba(255, 255, 255, .29);
  --glass-edge: rgba(255, 255, 255, .72);
  --glass-shadow: 0 20px 42px rgba(38, 39, 36, .13), 0 5px 14px rgba(38, 39, 36, .07), inset 0 1.5px 1px rgba(255, 255, 255, .92), inset 0 -1px 1px rgba(92, 93, 88, .12);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  font-family: "Vixel UI", sans-serif;
  font-optical-sizing: auto;
  color: var(--ink);
}

html { background: var(--canvas); font-synthesis: none; }
body {
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at -8% 18%, rgba(255,255,255,.72), transparent 30%),
    radial-gradient(circle at 108% 74%, rgba(223,205,177,.32), transparent 31%),
    linear-gradient(180deg, #ececea 0%, var(--canvas) 100%);
  font-family: "Vixel UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before, body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(52px);
  pointer-events: none;
}
body::before { width: 240px; height: 240px; right: -145px; top: 9%; background: rgba(198, 199, 195, .42); }
body::after { width: 190px; height: 190px; left: -120px; bottom: 12%; background: rgba(255, 255, 255, .42); }
button, input, textarea { font-family: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(245,110,24,.28); outline-offset: 3px; }

/* Estrutura: uma tela plena, com controles flutuando acima do conteúdo. */
.app, .shell { min-height: 100dvh; background: transparent; }
.shell { display: block; padding-bottom: calc(106px + env(safe-area-inset-bottom, 0px)); }
.sidebar { display: none !important; }
.content {
  width: min(100%, 500px);
  margin: 0 auto;
  padding: max(30px, calc(env(safe-area-inset-top, 0px) + 20px)) 22px calc(34px + env(safe-area-inset-bottom, 0px));
}
.topbar { align-items: flex-start; margin-bottom: 31px; }
.topbar .pretitle { margin-bottom: 9px; color: var(--muted); font-size: .64rem; letter-spacing: .12em; }
.topbar .pretitle::before { display: none; }
.topbar h1 { max-width: 360px; color: var(--ink); font-size: clamp(2rem, 8vw, 2.48rem); line-height: 1; letter-spacing: -.07em; }
.preview { border-color: rgba(255,255,255,.7); color: #6b5424; background: rgba(255,255,255,.16); box-shadow: inset 0 1px 1px rgba(255,255,255,.85); backdrop-filter: blur(16px); }

/* Conteúdo sem caixas sólidas. */
.contract-hero, .card, .router-card.router-card-compact, .support-hero, .row-card, .paid-invoices-toggle, .profile-summary, .profile-action, .info-stat, .usage-chart, .wifi-name-preview, .wifi-rename-toggle, .router-reboot-warning {
  color: var(--ink);
  background: transparent;
  box-shadow: none;
}
.contract-hero, .card, .router-card.router-card-compact, .support-hero {
  min-height: 0;
  padding: 26px 0;
  border: 0;
  border-top: 1px solid rgba(255,255,255,.86);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  overflow: visible;
}
.contract-hero::before, .contract-hero::after, .router-card.router-card-compact::before, .router-card.router-card-compact::after, .wifi-overview-card::before, .wifi-overview-card::after { display: none !important; }
.contract-top p, .contract-address, .contract-address svg, .contract-hero h2, .speed-line b { color: var(--ink); }
.contract-top p { font-size: .65rem; letter-spacing: .12em; }
.contract-hero h2, .home-stack .contract-hero h2, .home-stack .contract-hero h2.contract-name-compact {
  max-width: none !important;
  margin: 25px 0 10px;
  color: var(--ink);
  font-size: clamp(1.22rem, 5.6vw, 1.56rem) !important;
  line-height: 1.08;
  letter-spacing: -.055em;
  white-space: nowrap;
}
.contract-address { font-size: .76rem; }
.contract-hero .contract-picker {
  color: var(--ink);
  border-color: rgba(255,255,255,.78);
  background: rgba(255,255,255,.28);
  box-shadow: 0 10px 20px rgba(38,39,36,.07), inset 0 1px 1px rgba(255,255,255,.88);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.contract-hero .contract-picker svg:first-child { color: var(--orange); }
.speed-line { margin-top: 19px; align-items: center; }
.contract-status { color: #497133; background: rgba(118,178,80,.12); }
.online-pill, .router-status, .wifi-online {
  border: 1px solid rgba(70,166,111,.23);
  color: #307251;
  background: rgba(127,217,167,.12);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.74);
}
.online-pill i, .router-status i, .wifi-online i { background: #48bb7c; }

.home-stack { max-width: none; gap: 0; }
.home-stack > * { margin: 0; }
.home-stack .invoice-card, .invoice-card { padding: 24px 2px; border-color: transparent; border-bottom-color: var(--line); }
.invoice-card .label, .invoice-card.invoice-upcoming .label, .invoice-card.invoice-overdue .label { color: var(--muted); }
.invoice-card .label::before { background: var(--orange); }
.invoice-card.invoice-upcoming .label::before { background: var(--green); }
.invoice-card h2 { color: var(--ink); font-size: 1.75rem; }
.invoice-rule { background: var(--line); }
.invoice-plan { color: var(--muted); }
.invoice-card .invoice-plan b, .invoice-card.invoice-upcoming .invoice-plan b { color: #4f6f40; background: rgba(118,178,80,.10); }
.home-invoice-due { flex-wrap: wrap; color: var(--muted) !important; }

.service-actions {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  gap: 6px;
  margin: 25px 0;
  padding: 7px;
  border: 1px solid var(--glass-edge);
  border-radius: 29px;
  background: var(--glass-fill);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(22px) saturate(150%) contrast(1.04);
  -webkit-backdrop-filter: blur(22px) saturate(150%) contrast(1.04);
}
.service-actions::after, .mobile-nav::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mx, 20%) var(--my, 8%), rgba(255,255,255,.9), rgba(255,255,255,.18) 18%, transparent 42%), linear-gradient(125deg, rgba(255,255,255,.43), rgba(255,255,255,.03) 40%, rgba(255,255,255,.22) 76%, rgba(255,255,255,.07));
  opacity: .66;
  pointer-events: none;
}
.service-action {
  min-height: 76px;
  padding: 11px;
  border: 1px solid rgba(255,255,255,.24) !important;
  border-radius: 23px;
  background: rgba(255,255,255,.05);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.46);
}
.service-icon, .service-action:nth-child(n) .service-icon { color: var(--ink); background: transparent; }

/* Visão de Wi-Fi da página inicial, agora integrada ao conteúdo pleno. */
.wifi-overview-card, .wifi-overview-card.wifi-card {
  min-height: 0 !important;
  padding: 27px 0 !important;
  color: var(--ink);
  background: transparent !important;
  box-shadow: none !important;
}
.wifi-overview-card .label, .wifi-overview-head h2, .wifi-overview-head > p:last-child, .wifi-overview-note {
  color: var(--ink) !important;
}
.wifi-overview-card .label { color: var(--muted) !important; }
.wifi-overview-head h2 { margin-top: 23px; font-size: 1.45rem; }
.wifi-overview-head > p:last-child { color: var(--muted) !important; }
.connection-grid { gap: 8px !important; }
.connection-stat {
  position: relative;
  overflow: hidden;
  min-height: 106px;
  border: 1px solid var(--glass-edge) !important;
  border-radius: 22px !important;
  color: var(--ink);
  background: var(--glass-fill) !important;
  box-shadow: var(--glass-shadow) !important;
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}
.connection-stat b { color: var(--ink) !important; font-size: 1.42rem !important; }
.connection-stat span:not(.connection-icon), .connection-stat small, .wifi-overview-note { color: var(--muted) !important; }
.connection-stat .connection-icon { color: var(--orange); }

/* Página do roteador e equipamentos conectados. */
.wifi-wide { grid-template-columns: 1fr; gap: 0; }
.router-card.router-card-compact { padding: 27px 0 25px; }
.router-overline, .router-card-compact .router-overline { color: var(--muted); }
.router-card-compact h3 { margin-top: 22px; color: var(--ink); }
.router-card-compact .router-description { max-width: 350px; color: var(--muted); }
.router-model-chip {
  color: var(--ink);
  border-color: rgba(255,255,255,.56);
  background: linear-gradient(140deg, rgba(255,198,64,.58), rgba(245,110,24,.40));
  box-shadow: inset 0 1px 1px rgba(255,255,255,.62), 0 8px 19px rgba(193,95,27,.12);
  backdrop-filter: blur(14px) saturate(150%);
}
.router-compact-summary { grid-template-columns: minmax(115px,.78fr) minmax(0,1.55fr); border-top-color: var(--line); }
.router-uptime, .router-network-strip { border-color: var(--line); border-radius: 0; background: transparent; backdrop-filter: none; }
.router-uptime { border-width: 0; }
.router-network-strip { border-width: 0; border-left: 1px solid var(--line); }
.router-uptime span:not(.router-uptime-icon), .router-network-compact > span, .router-network-compact > div > span, .router-network-compact small { color: var(--muted); }
.router-uptime b, .router-network-compact b { color: var(--ink); }
.router-uptime-icon { color: var(--orange); background: var(--orange-soft); }
.router-network-compact + .router-network-compact { border-left-color: var(--line); }
.router-network-icon { color: var(--orange); }
.router-actions { gap: 10px; margin: 18px 0 27px; }
.router-action, .button-primary, .button-secondary, .pay-button, .pix-copy-cta, .payment-option, .contract-picker, .profile-button, .close, .wifi-filter, .usage-period {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--glass-edge);
  background: var(--glass-fill);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(19px) saturate(150%) contrast(1.03);
  -webkit-backdrop-filter: blur(19px) saturate(150%) contrast(1.03);
  transition: transform 120ms var(--ease-out), background 160ms var(--ease-out), box-shadow 160ms var(--ease-out), border-color 160ms ease;
}
.router-action::after, .button-primary::after, .button-secondary::after, .pay-button::after, .pix-copy-cta::after, .payment-option::after, .contract-picker::after, .profile-button::after, .close::after, .wifi-filter::after, .usage-period::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 1px;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mx,22%) var(--my,7%), rgba(255,255,255,.94), rgba(255,255,255,.19) 17%, transparent 43%), linear-gradient(132deg, rgba(255,255,255,.46), transparent 35%, rgba(255,255,255,.15) 72%, rgba(255,255,255,.31));
  opacity: .62;
  pointer-events: none;
}
.router-action.network-settings, .router-actions .network-settings { color: #276f4f; background: rgba(172,232,198,.16); }
.router-action.restart { color: #a34d20; background: rgba(255,188,150,.16); }
.router-action.support { color: #276f4f; background: rgba(172,232,198,.16); }
.router-action:disabled { filter: grayscale(.3); opacity: .42; box-shadow: none; }
.router-action:active, .button-primary:active, .button-secondary:active, .pay-button:active, .pix-copy-cta:active, .payment-option:active, .contract-picker:active, .profile-button:active, .close:active, .wifi-filter:active, .usage-period:active, .service-action:active { transform: scale(.97); }

.section-title { margin-top: 27px; }
.section-title h2 { color: var(--ink); font-size: 1.03rem; }
.page-header { padding: 0 0 23px; border-bottom: 1px solid var(--line); }
.page-header h2::after { background: var(--orange); }
.row-card {
  gap: 13px;
  padding: 16px 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}
.row-card .row-icon { color: var(--ink); background: transparent; border-radius: 0; }
.row-card p, .wifi-device-meta { color: var(--muted); }
.device-list, .invoice-list, .support-list { gap: 0; }
.wifi-filter-row {
  position: relative;
  gap: 5px;
  padding: 5px;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 22px;
  background: rgba(255,255,255,.055);
  box-shadow: 0 13px 28px rgba(38,39,36,.075), inset 0 1px 1px rgba(255,255,255,.62);
  backdrop-filter: blur(22px) saturate(138%);
  -webkit-backdrop-filter: blur(22px) saturate(138%);
}
.wifi-filter { flex: 1; border-color: transparent; border-radius: 17px; background: rgba(255,255,255,.035); box-shadow: none; }
.wifi-filter::after { opacity: .38; }
.wifi-filter.active { color: var(--ink); background: rgba(255,255,255,.25); box-shadow: inset 0 1px 1px rgba(255,255,255,.78), 0 7px 15px rgba(38,39,36,.055); }
.wifi-device-network { color: #4a5b83; background: rgba(255,255,255,.27); }
.wifi-device-signal { background: transparent; }

/* Faturas, ajuda, perfil e folhas modais. */
.paid-invoices-toggle, .profile-action, .help-option {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.help-options { gap: 0; }
.help-option span, .profile-action > span, .payment-option span { color: var(--ink); background: transparent; }
.support-hero { align-items: center; }
.support-hero h2 { color: var(--ink); }
.support-hero p { color: var(--muted); }
.profile-summary { padding: 18px 0; border-bottom: 1px solid var(--line); }
.profile-summary p, .profile-summary small { color: var(--muted); }
.profile-summary h3 { color: var(--ink); }
.profile-summary .avatar { color: var(--ink); background: rgba(255,173,55,.28); }
.profile-button { width: 44px; height: 44px; border-radius: 17px; color: var(--ink); background: rgba(255,255,255,.16); }
.profile-button .avatar { color: #ff6417; background: transparent; }

.customer-name-accent { color: #ff6417; }
.service-action:first-child b,
.service-action:first-child .service-icon { color: #ff6417; }

/* Faturas em uma lista leve, mantendo somente os dados necessários. */
.invoice-minimal-page { margin-top: -9px; }
.invoice-intro {
  padding: 0 0 22px;
  border-bottom: 1px solid var(--line);
}
.invoice-intro > p {
  max-width: 34ch;
  margin: 0;
  color: var(--muted);
  font-size: .79rem;
  line-height: 1.5;
}
.invoice-address {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
  color: var(--ink-2);
  font-size: .72rem;
}
.invoice-address svg { width: 15px; height: 15px; flex: none; color: var(--orange); }
.invoice-address span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Ícones e ações da rede com leitura visual consistente. */
.contract-address svg { color: var(--orange) !important; }
.connection-stat .connection-icon { color: var(--orange) !important; }
.wifi-device-signal {
  display: inline-flex;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
}
.wifi-device-signal .wifi-signal {
  width: 25px;
  height: 25px;
  border: 0;
  border-radius: 0;
  color: var(--ink) !important;
  background: transparent !important;
  box-shadow: none;
}
.wifi-device-signal .wifi-signal svg { width: 22px; height: 22px; }
.wifi-signal.excellent,
.signal-meter.excellent { color: #16a36b; background: rgba(22,163,107,.075); }
.wifi-signal.good,
.signal-meter.good { color: #ee8a18; background: rgba(238,138,24,.075); }
.wifi-signal.poor,
.signal-meter.poor { color: #d9534f; background: rgba(217,83,79,.07); }
.wifi-device-signal .wifi-signal.excellent,
.wifi-device-signal .wifi-signal.good,
.wifi-device-signal .wifi-signal.poor { color: var(--ink) !important; background: transparent !important; }
.wifi-device-card > .text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 76px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(255,255,255,.64);
  border-radius: 999px;
  color: var(--orange);
  background: rgba(255,255,255,.11);
  box-shadow: 0 7px 15px rgba(38,39,36,.065), inset 0 1px 1px rgba(255,255,255,.76);
  backdrop-filter: blur(15px) saturate(140%);
  -webkit-backdrop-filter: blur(15px) saturate(140%);
  font-size: .66rem;
  font-weight: 820;
}
.wifi-device-card > .text-button::after {
  content: "›";
  font-size: .92rem;
  line-height: 1;
  transform: translateY(-.5px);
}
.wifi-device-card > .text-button, .invoice-pay-button { transition: transform 120ms var(--ease-out), background 160ms var(--ease-out), box-shadow 160ms var(--ease-out); }
.wifi-device-card > .text-button:active, .invoice-pay-button:active { transform: scale(.97); }
.wifi-device-card .status-chip {
  color: #147d55;
  background: rgba(22,163,107,.09);
}
.invoice-ledger { margin-top: 9px; }
.invoice-row {
  display: grid;
  grid-template-columns: 30px minmax(0,1fr) auto;
  gap: 13px;
  min-height: 82px;
  padding: 16px 2px;
}
.invoice-row .row-icon {
  width: 30px;
  height: 30px;
  align-self: center;
  color: var(--ink);
}
.invoice-row .row-icon svg { width: 21px; height: 21px; }
.invoice-row main { align-self: center; }
.invoice-row main h3 { margin: 0 0 5px; font-size: .96rem; letter-spacing: -.025em; }
.invoice-row .invoice-due { color: var(--muted) !important; font-size: .68rem !important; }
.invoice-row .invoice-due b { color: inherit; font-weight: 650; }
.invoice-row-actions {
  display: grid;
  justify-items: end;
  align-content: center;
  gap: 7px;
}
.invoice-row-status {
  color: #5c7750;
  font-size: .61rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.invoice-row.is-overdue .invoice-row-status { color: #b64b26; }
.invoice-pay-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 82px;
  min-height: 37px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg,#ff8a1d,#f45f17);
  box-shadow: 0 8px 16px rgba(226,87,20,.18), inset 0 1px 1px rgba(255,255,255,.42);
  font-size: .7rem;
  font-weight: 850;
}
.invoice-pay-button svg { width: 13px; height: 13px; }
.invoice-empty {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 23px 2px;
  border-bottom: 1px solid var(--line);
}
.invoice-empty > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #4c7640; background: rgba(118,178,80,.12); }
.invoice-empty svg { width: 17px; height: 17px; }
.invoice-empty h2 { margin: 0 0 4px; font-size: .92rem; }
.invoice-empty p { margin: 0; color: var(--muted); font-size: .7rem; }
.invoice-history { margin-top: 16px !important; }
.invoice-history .paid-invoices-toggle { padding: 15px 2px; }
.invoice-history .invoice-ledger { margin-top: 0 !important; }

@media (max-width: 390px) {
  .invoice-row { grid-template-columns: 27px minmax(0,1fr) auto; gap: 9px; }
  .invoice-pay-button { min-width: 72px; padding-inline: 10px; }
}
.profile-button > svg { display: none; }
.profile-action.danger { color: #9f473d; background: transparent; }

.modal { z-index: 40; background: rgba(39,40,37,.22); backdrop-filter: blur(12px) saturate(115%); }
.sheet {
  border: 1px solid rgba(255,255,255,.78);
  color: var(--ink);
  background: rgba(239,239,236,.72);
  box-shadow: 0 30px 75px rgba(34,35,32,.27), inset 0 1.5px 1px rgba(255,255,255,.92);
  backdrop-filter: blur(30px) saturate(145%);
  -webkit-backdrop-filter: blur(30px) saturate(145%);
  transform-origin: center bottom;
  animation: sheet-materialize 220ms var(--ease-drawer);
}
@keyframes sheet-materialize {
  from { transform: translateY(14px) scale(.985); opacity: 0; filter: blur(2px); }
  to { transform: translateY(0) scale(1); opacity: 1; filter: blur(0); }
}
.close { color: var(--ink); background: rgba(255,255,255,.18); box-shadow: inset 0 1px 1px rgba(255,255,255,.86), 0 8px 18px rgba(37,38,35,.08); }
.payment-total, .info-hero {
  color: var(--ink);
  background: transparent;
  border-top: 1px solid rgba(255,255,255,.82);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}
.payment-total span, .info-hero span, .info-hero small { color: var(--muted); }
.payment-option { background: rgba(255,255,255,.12); }
.payment-option.selected { outline: 0; border-color: rgba(61,173,127,.48); background: rgba(176,234,204,.18); }
.payment-method-note { margin: 17px 2px 8px; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.payment-method-list { display: grid; gap: 9px; }
.payment-method-list .payment-option { margin-top: 0; }
.payment-method-list .pix-method-option { color: var(--ink); border-color: var(--glass-edge); background: var(--glass-fill); }
.payment-method-list .pix-method-option > span,
.payment-method-current.pix-method-option > span { color: #32bcad; }
.payment-method-current { display: flex; align-items: center; gap: 12px; margin-top: 9px; padding: 14px; color: var(--ink); }
.payment-method-current > span { display: grid; place-items: center; width: 39px; height: 39px; }
.payment-method-current > span svg { width: 23px; height: 23px; }
.payment-method-current b { display: block; font-size: .83rem; }
.payment-method-current small { display: block; margin-top: 3px; color: var(--muted); font-size: .68rem; }
.payment-back { margin-top: 14px; }
.payment-unavailable { display: grid; justify-items: center; gap: 8px; margin-top: 17px; padding: 24px 18px; color: var(--ink); text-align: center; }
.payment-unavailable > span { display: grid; place-items: center; width: 48px; height: 48px; color: var(--orange); border: 1px solid var(--glass-edge); border-radius: 17px; background: var(--glass-fill); box-shadow: var(--glass-shadow); }
.payment-unavailable > span svg { width: 24px; height: 24px; }
.payment-unavailable b { font-size: .94rem; }
.payment-unavailable p { max-width: 34ch; margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.pix-panel { border-color: rgba(255,255,255,.65); background: rgba(255,255,255,.16); }
.code-box { background: rgba(255,255,255,.27); }
.button-primary, .pay-button {
  color: var(--ink);
  border-color: rgba(255,255,255,.58);
  background: linear-gradient(140deg, rgba(255,204,66,.68), rgba(245,110,24,.55));
  box-shadow: inset 0 1.5px 1px rgba(255,255,255,.59), inset 0 -1px 1px rgba(142,57,9,.13), 0 15px 28px rgba(197,89,24,.17);
}
.invoice-card .pix-home-button {
  color: var(--ink) !important;
  border-color: rgba(255,255,255,.58);
  background: rgba(255,255,255,.12) !important;
  box-shadow: inset 0 1.5px 1px rgba(255,255,255,.72), inset 0 -1px 1px rgba(25,34,78,.07), 0 10px 20px rgba(17,27,80,.055);
}
.invoice-card .pix-home-button svg { color: #32bcad !important; }
.pix-copy-cta {
  color: var(--ink) !important;
  border-color: var(--glass-edge);
  background: var(--glass-fill) !important;
  box-shadow: var(--glass-shadow);
}
.pix-copy-cta.copied { color: var(--ink) !important; background: var(--glass-fill-strong) !important; box-shadow: var(--glass-shadow); }
.pix-copy-cta.copied svg { color: var(--orange); }
.button-secondary { color: var(--ink); background: rgba(255,255,255,.15); }
.usage-period.active { color: #276f4f; background: rgba(164,226,191,.21); }
.usage-chart { border-top: 1px solid rgba(255,255,255,.8); border-bottom: 1px solid var(--line); border-radius: 0; }
.info-stat { border-bottom: 1px solid var(--line); border-radius: 0; }
.wifi-name-preview, .wifi-rename-toggle, .router-reboot-warning { border-color: var(--line); border-radius: 19px; background: rgba(255,255,255,.14); }

/* Navegação Liquid Glass inspirada na camada funcional do iOS. */
.mobile-nav {
  position: fixed;
  z-index: 30;
  left: 50%;
  right: auto;
  bottom: max(14px, env(safe-area-inset-bottom, 0px));
  display: flex !important;
  align-items: center;
  gap: 2px;
  width: min(calc(100% - 40px), 420px);
  height: 72px;
  padding: 5px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.66);
  border-radius: 36px;
  background: rgba(245,245,242,.08);
  box-shadow: 0 16px 32px rgba(36,37,34,.10), inset 0 1px 0 rgba(255,255,255,.38);
  backdrop-filter: blur(20px) saturate(158%) contrast(1.04);
  -webkit-backdrop-filter: blur(20px) saturate(158%) contrast(1.04);
  transform: translateX(-50%);
}
.mobile-nav .nav-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  height: 62px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 31px;
  color: var(--muted);
  background: transparent;
  transition: background 160ms var(--ease-out), box-shadow 160ms var(--ease-out), color 140ms ease;
}
.mobile-nav .nav-button svg { width: 23px; height: 23px; flex: none; color: currentColor; }
.mobile-nav .nav-button span { max-width: 0; overflow: hidden; opacity: 0; white-space: nowrap; font-size: .69rem; font-weight: 750; transition: none; }
.mobile-nav .nav-button.active {
  flex: 2.12 1 0;
  color: var(--ink);
  border-color: rgba(255,255,255,.68);
  background: rgba(255,255,255,.31);
  box-shadow: inset 0 1.5px 1px rgba(255,255,255,.95), inset 0 -1px 1px rgba(100,101,97,.10), 0 11px 22px rgba(30,31,29,.09);
  backdrop-filter: blur(16px) saturate(145%);
}
.mobile-nav .nav-button.active svg { color: var(--ink); }
.mobile-nav .nav-button.active span { max-width: 76px; opacity: 1; }

/* Lente móvel: uma única camada de vidro percorre a barra, em vez de cada
   botão criar o próprio cartão. O brilho cromático é uma aproximação web da
   refração do iOS — o conteúdo continua legível e o movimento é discreto. */
.mobile-nav {
  isolation: isolate;
  --liquid-lens-x: 0px;
  --liquid-lens-w: 0px;
}
.mobile-nav .nav-button {
  position: relative;
  z-index: 1;
  background: transparent;
  box-shadow: none;
  transition: color 160ms var(--ease-out), opacity 160ms ease, transform 120ms ease-out;
}
.mobile-nav .nav-button.active {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.mobile-nav .nav-button:active { transform: scale(.975); }
.mobile-nav .nav-lens {
  position: absolute;
  z-index: 0;
  top: 5px;
  left: 5px;
  width: var(--liquid-lens-w);
  height: 62px;
  box-sizing: border-box;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  border: 1px solid rgba(255,255,255,.68);
  border-radius: 31px;
  background:
    linear-gradient(116deg, rgba(255,255,255,.36) 0%, rgba(255,255,255,.035) 34%, rgba(255,255,255,.10) 67%, rgba(255,255,255,.30) 100%),
    rgba(244,244,240,.035);
  box-shadow:
    inset 0 1.5px 1px rgba(255,255,255,.76),
    inset 0 -1px 1px rgba(88,89,85,.08),
    0 12px 24px rgba(30,31,29,.06);
  backdrop-filter: blur(3px) saturate(145%) contrast(1.10);
  -webkit-backdrop-filter: blur(3px) saturate(145%) contrast(1.10);
  transform: translate3d(var(--liquid-lens-x),0,0);
  transform-origin: center;
  transition: transform 300ms cubic-bezier(.22,1,.36,1), width 300ms cubic-bezier(.22,1,.36,1), opacity 130ms ease;
  will-change: transform, width;
}
.mobile-nav.is-lens-ready .nav-lens { opacity: 1; }
.mobile-nav .nav-lens::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .64;
  background: linear-gradient(112deg, rgba(255,255,255,.36), transparent 25%, rgba(255,255,255,.08) 57%, transparent 76%, rgba(255,255,255,.26));
  mix-blend-mode: soft-light;
  transition: opacity 150ms ease;
}
.mobile-nav .nav-lens::after {
  content: '';
  position: absolute;
  inset: 1px 2px auto;
  height: 26px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.56), rgba(255,255,255,0));
  opacity: .45;
}
.mobile-nav.is-lens-moving .nav-lens::before { opacity: .82; }
.mobile-nav.is-lens-moving .nav-lens { filter: saturate(1.08); }
.liquid-nav-ghost {
  position: fixed;
  z-index: 90;
  overflow: hidden;
  box-sizing: border-box;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,.64);
  border-radius: 31px;
  background:
    linear-gradient(116deg, rgba(255,255,255,.42) 0%, rgba(255,255,255,.035) 31%, rgba(255,255,255,.13) 64%, rgba(255,255,255,.36) 100%),
    rgba(245,245,242,.04);
  box-shadow:
    inset 0 1.5px 1px rgba(255,255,255,.78),
    inset 0 -1px 1px rgba(80,81,78,.08),
    0 13px 26px rgba(26,28,26,.07);
  backdrop-filter: blur(3px) saturate(155%) contrast(1.12);
  -webkit-backdrop-filter: blur(3px) saturate(155%) contrast(1.12);
  transform: translate3d(0,0,0) scaleX(1);
  transform-origin: center;
  transition: transform 400ms cubic-bezier(.22,1,.36,1), opacity 180ms ease;
  will-change: transform, opacity;
}
.liquid-nav-ghost::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .72;
  background: linear-gradient(112deg, rgba(255,255,255,.42), transparent 24%, rgba(255,255,255,.08) 54%, transparent 76%, rgba(255,255,255,.30));
  mix-blend-mode: soft-light;
}
.liquid-nav-ghost::after {
  content: '';
  position: absolute;
  inset: 1px 3px auto;
  height: 28px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.48), rgba(255,255,255,0));
}
@media (prefers-reduced-motion: reduce) {
  .mobile-nav .nav-lens { transition: opacity 140ms ease; transform: translate3d(var(--liquid-lens-x),0,0) !important; }
  .mobile-nav.is-lens-moving .nav-lens::before { opacity: .48; }
  .mobile-nav .nav-button { transition: color 120ms ease; }
  .liquid-nav-ghost { display: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .mobile-nav { background: rgba(238,238,234,.90); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .mobile-nav .nav-lens { background: rgba(255,255,255,.94); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .mobile-nav .nav-lens::before { display: none; }
}
@media (prefers-contrast: more) {
  .mobile-nav { border-color: rgba(35,36,34,.46); }
  .mobile-nav .nav-lens { border-color: rgba(35,36,34,.48); }
}

.pull-refresh { border: 1px solid var(--glass-edge); color: var(--ink); background: rgba(245,245,242,.35); box-shadow: var(--glass-shadow); backdrop-filter: blur(22px); transition: transform 180ms var(--ease-out), opacity 140ms ease; }
.toast { bottom: calc(101px + env(safe-area-inset-bottom,0px)); border: 1px solid rgba(255,255,255,.25); border-radius: 17px; background: rgba(20,21,18,.87); backdrop-filter: blur(18px); transition: transform 180ms var(--ease-out), opacity 140ms ease; }
.wifi-sync-loading { color: var(--ink); background: transparent; box-shadow: none; }
.wifi-sync-orb { color: var(--orange); border: 1px solid var(--glass-edge); background: var(--glass-fill); box-shadow: var(--glass-shadow); backdrop-filter: blur(20px); }
.wifi-sync-loading > p, .wifi-sync-loading > span:not(.wifi-sync-orb), .wifi-sync-loading small { color: var(--muted); }
.wifi-sync-track { background: rgba(120,121,117,.13); }

/* Login com a mesma linguagem visual e fonte fixa. */
.welcome { min-height: 100dvh; grid-template-columns: minmax(0,1fr) minmax(390px,.78fr); background: transparent; }
.brand-side { color: var(--ink); background: transparent; border-right: 1px solid rgba(255,255,255,.55); }
.brand-side::before { background: radial-gradient(circle, rgba(255,187,69,.25), rgba(245,110,24,.04) 54%, transparent 70%); }
.brand-side::after { border-color: rgba(90,91,87,.11); }
.brand-logo { filter: none; }
.brand-copy .eyebrow, .brand-copy > div > p:last-child, .proof { color: var(--muted); }
.brand-copy h1 { color: var(--ink); }
.brand-copy h1 em { color: var(--orange); }
.proof-dot { color: var(--green); border: 1px solid var(--glass-edge); background: var(--glass-fill); box-shadow: var(--glass-shadow); }
.login-side { background: rgba(255,255,255,.12); }
.login-card { padding: 30px; border: 1px solid rgba(255,255,255,.68); border-radius: 34px; background: rgba(255,255,255,.16); box-shadow: var(--glass-shadow); backdrop-filter: blur(24px) saturate(145%); }
.field input { border-color: rgba(255,255,255,.72); background: rgba(255,255,255,.18); box-shadow: inset 0 1px 1px rgba(255,255,255,.8); }
.field input:focus { border-color: rgba(245,110,24,.38); box-shadow: 0 0 0 4px rgba(245,110,24,.10), inset 0 1px 1px rgba(255,255,255,.9); }
.login-loading, .boot-loading { background: var(--canvas); }
.login-loading-button, .boot-loading-button { color: var(--orange); border: 1px solid var(--glass-edge); background: var(--glass-fill); box-shadow: var(--glass-shadow); backdrop-filter: blur(20px); }

@media (hover: hover) and (pointer: fine) {
  .router-action:hover::after, .button-primary:hover::after, .button-secondary:hover::after, .pay-button:hover::after, .payment-option:hover::after, .contract-picker:hover::after, .profile-button:hover::after, .close:hover::after, .wifi-filter:hover::after, .usage-period:hover::after { opacity: .9; }
  .service-action:hover { border-color: rgba(255,255,255,.68) !important; background: rgba(255,255,255,.18); box-shadow: inset 0 1px 1px rgba(255,255,255,.8); }
  .connection-stat:hover, .router-action:hover, .button-secondary:hover, .payment-option:hover, .pix-copy-cta:hover { background: var(--glass-fill-strong) !important; }
  .wifi-device-card > .text-button:hover { color: #e85e0e; background: rgba(255,255,255,.24); transform: translateY(-1px); }
  .invoice-pay-button:hover { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(226,87,20,.24), inset 0 1px 1px rgba(255,255,255,.48); }
  .invoice-card .pix-home-button:hover { background: rgba(255,255,255,.22) !important; }
}
@media (max-width: 900px) {
  .welcome { display: block; }
  .brand-side { display: none; }
  .login-side { display: grid; min-height: 100dvh; padding: max(54px,calc(env(safe-area-inset-top,0px) + 30px)) 22px max(30px,env(safe-area-inset-bottom,0px)); background: transparent; }
  .login-card { margin: 0 auto; padding: 24px; }
  .login-card .mini-logo { display: block; }
}
@media (max-width: 520px) {
  .content { padding-left: 20px; padding-right: 20px; }
  .topbar { margin-bottom: 27px; }
  .home-stack .contract-hero, .home-stack .card { padding: 24px 0; border-radius: 0; }
  .contract-hero h2, .home-stack .contract-hero h2, .home-stack .contract-hero h2.contract-name-compact { font-size: clamp(1.02rem, 5.2vw, 1.34rem) !important; }
  .router-actions { grid-template-columns: 1fr; }
  .router-compact-summary { grid-template-columns: 1fr; }
  .router-network-strip { border-left: 0; border-top: 1px solid var(--line); }
  .connection-stat { min-height: 101px; }
  .sheet { border-radius: 31px; }
}
@media (max-width: 360px) {
  .content { padding-left: 16px; padding-right: 16px; }
  .mobile-nav { width: calc(100% - 30px); height: 66px; }
  .mobile-nav .nav-button { height: 56px; }
  .mobile-nav .nav-button svg { width: 21px; height: 21px; }
  .mobile-nav .nav-button span { font-size: .63rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (prefers-reduced-transparency: reduce) {
  :root { --glass-fill: rgba(245,245,242,.84); --glass-fill-strong: rgba(245,245,242,.93); --glass-edge: rgba(255,255,255,.92); }
  .service-actions, .mobile-nav, .sheet, .router-action, .button-primary, .button-secondary, .pay-button, .pix-copy-cta, .payment-option, .contract-picker, .profile-button, .close, .wifi-filter, .usage-period { backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --glass-fill: rgba(255,255,255,.48); --glass-edge: rgba(44,45,42,.42); --line: rgba(44,45,42,.36); }
}

/* Revisão de composição: menos caixas, hierarquia mais legível e ritmo consistente. */
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
}
.content {
  padding: max(34px, calc(env(safe-area-inset-top, 0px) + 24px)) 24px calc(42px + env(safe-area-inset-bottom, 0px));
}
.topbar {
  align-items: center;
  margin-bottom: var(--space-4);
}
.topbar .pretitle {
  margin-bottom: 7px;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .14em;
}
.topbar h1 {
  font-size: clamp(2.14rem, 8.8vw, 2.68rem);
  line-height: .96;
  letter-spacing: -.075em;
}
.preview {
  align-items: flex-start;
  margin: 0 0 var(--space-6);
  padding: 12px 14px;
  border-color: rgba(255,255,255,.84);
  border-radius: 18px;
  color: #5f5b50;
  background: rgba(255,255,255,.13);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.92);
  font-size: .74rem;
  line-height: 1.38;
}
.preview svg { width: 17px; margin-top: 1px; color: var(--orange); }

.home-stack .contract-hero {
  position: relative;
  padding: 0 0 30px;
  border-top: 0;
  border-bottom-color: rgba(104,105,100,.20);
}
.contract-top { align-items: center; margin-bottom: 17px; }
.contract-top p { font-size: .61rem; letter-spacing: .15em; }
.contract-hero h2,
.home-stack .contract-hero h2,
.home-stack .contract-hero h2.contract-name-compact {
  margin: 0 0 12px;
  font-size: clamp(1.52rem, 6.5vw, 1.88rem) !important;
  line-height: 1.02;
  letter-spacing: -.067em;
}
.contract-address { gap: 7px; font-size: .78rem; line-height: 1.45; }
.contract-address svg { width: 15px; height: 15px; color: var(--orange); }
.speed-line { margin-top: 22px; }
.contract-status { padding: 7px 10px; font-size: .68rem; letter-spacing: .015em; }
.online-pill { padding: 8px 11px; font-size: .7rem; }

.home-stack .invoice-card,
.invoice-card {
  padding: 30px 0 28px;
  border-bottom-color: rgba(104,105,100,.20);
}
.invoice-card .label,
.invoice-card.invoice-upcoming .label,
.invoice-card.invoice-overdue .label {
  font-size: .63rem;
  letter-spacing: .14em;
}
.invoice-card h2 { margin: 12px 0 7px; font-size: 2rem; line-height: .92; letter-spacing: -.08em; }
.home-invoice-due { gap: 8px; margin-top: 10px !important; }
.invoice-rule { margin: 20px 0 15px; }
.invoice-plan { align-items: center; font-size: .74rem; }
.invoice-card .pix-home-button { min-height: 52px; margin-top: 22px; border-radius: 18px; }

/* Um único material para ações relacionadas; o divisor substitui cartões dentro de cartões. */
.service-actions {
  gap: 0;
  margin: 28px 0 31px;
  padding: 6px;
  border-radius: 26px;
  background: rgba(255,255,255,.18);
}
.service-action {
  min-height: 82px;
  padding: 12px 14px;
  border: 0 !important;
  border-radius: 20px;
  background: transparent;
  box-shadow: none;
}
.service-action + .service-action { border-left: 1px solid rgba(117,118,112,.16) !important; }
.service-action:hover { background: transparent; box-shadow: none; }
.service-action:active { background: rgba(255,255,255,.26); }
.service-action b { font-size: .8rem; letter-spacing: -.018em; }
.service-action small { margin-top: 3px; font-size: .67rem; line-height: 1.35; }
.service-icon,
.service-action:nth-child(n) .service-icon { width: 34px; height: 34px; color: var(--orange); }

.wifi-overview-card,
.wifi-overview-card.wifi-card { padding: 30px 0 0 !important; }
.wifi-overview-head h2 { margin-top: 19px; font-size: 1.58rem; letter-spacing: -.06em; }
.wifi-overview-head > p:last-child { margin-top: 6px; font-size: .77rem; }
.connection-grid { gap: 10px !important; margin-top: 19px; }
.connection-stat { min-height: 114px; border-radius: 24px !important; }
.connection-stat b { font-size: 1.58rem !important; letter-spacing: -.07em; }
.connection-stat span:not(.connection-icon) { margin-top: 6px !important; font-size: .72rem !important; }

/* As páginas internas usam o mesmo ritmo, sem aproximar informação demais. */
.page-header { padding-bottom: 27px; margin-bottom: 8px; }
.page-header h2 { font-size: clamp(1.72rem, 7vw, 2rem); line-height: 1; letter-spacing: -.07em; }
.page-header p { margin-top: 8px; font-size: .79rem; line-height: 1.45; }
.row-card { min-height: 78px; padding: 18px 2px; }
.row-card h3 { font-size: .92rem; letter-spacing: -.025em; }
.row-card p { margin-top: 4px; font-size: .74rem; line-height: 1.4; }
.wifi-filter-row { margin: 20px 0 16px; }

.mobile-page-clean { gap: 28px; padding-bottom: 28px; }
.mobile-line-overview { padding: 3px 1px 23px; border-bottom-color: rgba(104,105,100,.20); }
.mobile-line-copy h2 { font-size: 1.25rem; line-height: 1.05; letter-spacing: -.065em; }
.mobile-balance-surface { gap: 19px; padding-bottom: 24px; border-bottom-color: rgba(104,105,100,.20); }
.mobile-eyebrow { font-size: .62rem; letter-spacing: .14em; }
.mobile-available { margin-top: 15px; }
.mobile-available b { font-size: clamp(2.8rem, 11vw, 3.55rem); letter-spacing: -.1em; }
.mobile-tabs.mobile-tabs-clean,
.mobile-line-selector.clean { padding: 5px; border-radius: 22px; }
.mobile-tabs-clean .mobile-tab,
.mobile-line-selector.clean .mobile-line-button { min-height: 41px; border-radius: 17px; }
.mobile-summary-grid { gap: 12px; }
.mobile-summary-card { min-height: 154px; padding: 17px; border-radius: 24px; }
.mobile-summary-card strong { font-size: 1.38rem; letter-spacing: -.065em; }
.mobile-detail-row { min-height: 78px; border-bottom-color: rgba(104,105,100,.20); }
.mobile-detail-copy b { font-size: .86rem; }
.mobile-detail-copy span { margin-top: 4px; font-size: .7rem; }

@media (hover: hover) and (pointer: fine) {
  .service-action:hover { background: rgba(255,255,255,.16); }
}
@media (max-width: 390px) {
  .content { padding-left: 20px; padding-right: 20px; }
  .topbar h1 { font-size: clamp(2rem, 9vw, 2.35rem); }
  .contract-hero h2,
  .home-stack .contract-hero h2,
  .home-stack .contract-hero h2.contract-name-compact { font-size: clamp(1.34rem, 6.3vw, 1.6rem) !important; }
  .service-action { padding-inline: 11px; }
  .service-action b { font-size: .75rem; }
  .service-action small { font-size: .63rem; }
  .connection-stat { min-height: 106px; }
}
