/*==========================================================================
  TiC-TaC — Portal do Cliente (users.tictac.co.mz)
  Camada de design sobre vendor/css/design-system.css

  Princípios
  1. Uma cor de acção (azul TiC-TaC). Tudo o resto é neutro ou semântico.
  2. Hierarquia por peso e espaço, não por caixas dentro de caixas.
  3. Superfícies elevam-se com luz, não com sombras pesadas.
  4. Cada estado (pago, vencido, a vencer) tem cor + ícone + texto.
==========================================================================*/

:root {
  --pt-ink:          #0B1220;
  --pt-ink-2:        #1E293B;
  --pt-body:         #475569;
  --pt-muted:        #7A879B;
  --pt-line:         #E7ECF3;
  --pt-line-soft:    #F1F5F9;

  --pt-surface:      #FFFFFF;
  --pt-canvas:       #F5F7FB;
  --pt-canvas-deep:  #EEF2F9;

  --pt-brand:        #2563EB;
  --pt-brand-600:    #1D4ED8;
  --pt-brand-700:    #1741A6;
  --pt-brand-050:    #EEF4FF;
  --pt-brand-100:    #DBE7FE;

  --pt-navy:         #0F2A5B;
  --pt-navy-2:       #17457F;

  --pt-ok:           #0E9F6E;
  --pt-ok-bg:        #E7F8F1;
  --pt-warn:         #D97706;
  --pt-warn-bg:      #FEF4E6;
  --pt-bad:          #DC2626;
  --pt-bad-bg:       #FDECEC;

  --pt-r-sm:  10px;
  --pt-r:     14px;
  --pt-r-lg:  20px;
  --pt-r-xl:  28px;

  --pt-shadow-xs: 0 1px 2px rgba(15,42,91,.05);
  --pt-shadow-sm: 0 2px 6px rgba(15,42,91,.06), 0 1px 2px rgba(15,42,91,.04);
  --pt-shadow:    0 6px 24px -8px rgba(15,42,91,.14), 0 2px 6px -2px rgba(15,42,91,.06);
  --pt-shadow-lg: 0 24px 60px -20px rgba(15,42,91,.28), 0 8px 20px -12px rgba(15,42,91,.14);

  --pt-ease: cubic-bezier(.4,0,.2,1);
  --pt-spring: cubic-bezier(.34,1.4,.5,1);
}

/*--------------------------------------------------------------------------
  Base
--------------------------------------------------------------------------*/
/* Rodapé sempre encostado ao fundo, mesmo em páginas curtas. */
body {
  background: var(--pt-canvas);
  color: var(--pt-body);
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;

  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > .pt-main,
body > main { flex: 1 0 auto; }
body > .pt-footer { flex: none; margin-top: auto; }

h1, h2, h3, h4, h5, h6, .pt-h { color: var(--pt-ink); font-weight: 600; letter-spacing: -0.02em; }

a, a:hover, a:focus { text-decoration: none; }

::selection { background: var(--pt-brand-100); color: var(--pt-navy); }

.pt-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--pt-muted);
}
.pt-num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/*--------------------------------------------------------------------------
  Cabeçalho
--------------------------------------------------------------------------*/
.pt-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--pt-line);
}
.pt-header-row {
  display: flex; align-items: center; gap: 24px;
  height: 70px;
}
.pt-logo { display: flex; align-items: center; gap: 12px; flex: none; }
.pt-logo img { height: 30px; width: auto; display: block; }
.pt-logo-sep { width: 1px; height: 22px; background: var(--pt-line); }
.pt-logo-tag {
  font-size: 12px; font-weight: 600; color: var(--pt-muted);
  letter-spacing: .01em; white-space: nowrap;
}

.pt-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.pt-nav-link {
  position: relative;
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 9px 12px; border-radius: var(--pt-r-sm);
  color: var(--pt-body); font-size: 13px; font-weight: 500;
  transition: color .18s var(--pt-ease), background .18s var(--pt-ease);
}
@media (max-width: 1299.98px) {
  .pt-nav-link { padding: 9px 9px; font-size: 12.5px; gap: 6px; }
  .pt-logo-tag { display: none; }
}
.pt-nav-link i { font-size: 13px; color: var(--pt-muted); transition: color .18s var(--pt-ease); }
.pt-nav-link:hover { background: var(--pt-brand-050); color: var(--pt-brand-700); }
.pt-nav-link:hover i { color: var(--pt-brand); }
.pt-nav-link.is-active { color: var(--pt-brand-700); font-weight: 600; background: var(--pt-brand-050); }
.pt-nav-link.is-active i { color: var(--pt-brand); }

.pt-header-actions { display: flex; align-items: center; gap: 10px; flex: none; margin-left: 8px; }

.pt-icon-btn {
  position: relative;
  width: 40px; height: 40px; border-radius: var(--pt-r-sm);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--pt-canvas-deep); color: var(--pt-ink-2);
  border: 1px solid transparent;
  transition: all .18s var(--pt-ease);
}
.pt-icon-btn:hover { background: var(--pt-brand-050); color: var(--pt-brand-700); border-color: var(--pt-brand-100); }
.pt-badge-count {
  position: absolute; top: -5px; right: -5px;
  min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: var(--pt-bad); color: #fff;
  font-size: 10.5px; font-weight: 700; line-height: 19px; text-align: center;
  border: 2px solid #fff;
}

.pt-user {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 12px 5px 5px; border-radius: 999px;
  background: var(--pt-canvas-deep); border: 1px solid transparent;
  transition: all .18s var(--pt-ease);
}
.pt-user:hover { background: #fff; border-color: var(--pt-line); box-shadow: var(--pt-shadow-sm); }
.pt-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, var(--pt-brand) 0%, var(--pt-navy) 100%);
  color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .02em;
}
.pt-user-meta { display: flex; flex-direction: column; line-height: 1.25; text-align: left; }
.pt-user-meta strong { font-size: 13px; color: var(--pt-ink); font-weight: 600; }
.pt-user-meta small { font-size: 11px; color: var(--pt-muted); }

.pt-dropdown {
  border: 1px solid var(--pt-line); border-radius: var(--pt-r);
  box-shadow: var(--pt-shadow); padding: 6px; min-width: 218px; margin-top: 10px;
}
.pt-dropdown .dropdown-item {
  border-radius: var(--pt-r-sm); padding: 9px 12px; font-size: 13.5px; color: var(--pt-body);
}
.pt-dropdown .dropdown-item:hover { background: var(--pt-brand-050); color: var(--pt-brand-700); }
.pt-dropdown .dropdown-item i { width: 16px; color: var(--pt-muted); }

/*--------------------------------------------------------------------------
  Barra inferior (telemóvel)
--------------------------------------------------------------------------*/
.pt-tabbar { display: none; }

@media (max-width: 991.98px) {
  .pt-tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 950;
    display: grid; grid-template-columns: repeat(5, 1fr);
    background: rgba(255,255,255,.94);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-top: 1px solid var(--pt-line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .pt-tab {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px; padding: 9px 2px 8px; min-height: 58px;
    color: var(--pt-muted); font-size: 10.5px; font-weight: 500; line-height: 1.2;
    text-align: center;
  }
  .pt-tab i { font-size: 17px; transition: transform .2s var(--pt-spring); }
  .pt-tab.is-active { color: var(--pt-brand); font-weight: 600; }
  .pt-tab.is-active i { transform: translateY(-1px); }
  .pt-tab:active { background: var(--pt-brand-050); }
  /* A folga do rodapé para esta barra está no fim do ficheiro, para não ser
     sobreposta pelas regras base do rodapé. */
}

/*--------------------------------------------------------------------------
  Estrutura de página
--------------------------------------------------------------------------*/
.pt-main { padding: 32px 0 64px; }
.pt-page-head { margin-bottom: 26px; }
.pt-page-head h1 { font-size: 26px; margin: 0 0 4px; }
.pt-page-head p { margin: 0; color: var(--pt-muted); font-size: 14px; }

.pt-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 14px;
}
.pt-section-head h2 { font-size: 16px; margin: 0; }
.pt-section-head a { font-size: 13px; font-weight: 500; color: var(--pt-brand); }
.pt-section-head a:hover { color: var(--pt-brand-700); }

/*--------------------------------------------------------------------------
  Cartão base
--------------------------------------------------------------------------*/
.pt-card {
  background: var(--pt-surface);
  border: 1px solid var(--pt-line);
  border-radius: var(--pt-r-lg);
  box-shadow: var(--pt-shadow-xs);
}
.pt-card-pad { padding: 22px 24px; }
.pt-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 24px; border-bottom: 1px solid var(--pt-line-soft);
}
.pt-card-head h2, .pt-card-head h3 { font-size: 15px; margin: 0; }

/*--------------------------------------------------------------------------
  Cartão da carteira (herói do dashboard)
--------------------------------------------------------------------------*/
.pt-hero {
  position: relative; overflow: hidden;
  border-radius: var(--pt-r-xl);
  background:
    radial-gradient(120% 140% at 88% 8%, rgba(59,130,246,.55) 0%, rgba(59,130,246,0) 55%),
    radial-gradient(90% 120% at 4% 96%, rgba(13,148,136,.34) 0%, rgba(13,148,136,0) 60%),
    linear-gradient(135deg, #10275A 0%, #0B1B3F 55%, #0A1730 100%);
  color: #fff;
  padding: 30px 32px;
  box-shadow: var(--pt-shadow-lg);
}
.pt-hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,.10) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .5; pointer-events: none;
}
.pt-hero > * { position: relative; z-index: 1; }
.pt-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.pt-hero .pt-eyebrow { color: rgba(255,255,255,.62); }
.pt-hero h1 { color: #fff; font-size: 25px; margin: 6px 0 2px; letter-spacing: -.025em; }
.pt-hero-sub { color: rgba(255,255,255,.70); font-size: 13.5px; margin: 0; }

.pt-hero-balance { text-align: right; }
.pt-hero-balance .pt-eyebrow { color: rgba(255,255,255,.55); }
.pt-hero-amount {
  font-size: 34px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1;
  color: #fff; margin-top: 4px;
}
.pt-hero-amount span { font-size: 16px; font-weight: 500; opacity: .65; margin-left: 4px; }

.pt-hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; margin-top: 26px;
  background: rgba(255,255,255,.12);
  border-radius: var(--pt-r); overflow: hidden;
}
.pt-hero-stat { background: rgba(255,255,255,.06); padding: 14px 18px; backdrop-filter: blur(4px); }
.pt-hero-stat .k { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.60); }
.pt-hero-stat .v { font-size: 19px; font-weight: 600; color: #fff; margin-top: 3px; letter-spacing: -.02em; }
.pt-hero-stat .v small { font-size: 12px; font-weight: 400; opacity: .6; margin-left: 3px; }

/*--------------------------------------------------------------------------
  Acções rápidas
--------------------------------------------------------------------------*/
.pt-quick {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
}
.pt-quick-item {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 18px 10px 15px;
  background: var(--pt-surface); border: 1px solid var(--pt-line);
  border-radius: var(--pt-r); text-align: center;
  transition: transform .22s var(--pt-spring), box-shadow .22s var(--pt-ease), border-color .22s var(--pt-ease);
}
.pt-quick-item:hover { transform: translateY(-3px); box-shadow: var(--pt-shadow); border-color: transparent; }
.pt-quick-icon {
  width: 44px; height: 44px; border-radius: 13px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 17px; color: #fff;
  box-shadow: 0 6px 14px -6px currentColor;
}
.pt-quick-item span { font-size: 12.5px; font-weight: 500; color: var(--pt-ink-2); line-height: 1.3; }

/*--------------------------------------------------------------------------
  Emblema do serviço — logótipo redondo da marca
--------------------------------------------------------------------------*/
.pt-badge {
  flex: none; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px var(--pt-line) inset, 0 1px 3px rgba(15,42,91,.06);
}
/* contain, não cover: há logótipos largos (Apple, Nintendo, Roblox) que
   ficariam cortados. Assim cabem sempre inteiros dentro do círculo. */
.pt-badge img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  padding: 9%; border-radius: 50%; background: #fff;
}
.pt-badge.is-icon { box-shadow: none; }

.pt-badge-xs    { width: 20px; height: 20px; font-size: 9px; }
.pt-badge-sm    { width: 32px; height: 32px; font-size: 12px; }
.pt-badge-row   { width: 40px; height: 40px; font-size: 15px; }
.pt-badge-tile  { width: 42px; height: 42px; font-size: 16px; }
.pt-badge-quick { width: 48px; height: 48px; font-size: 18px; }
.pt-badge-lg    { width: 56px; height: 56px; font-size: 21px; }

/* Sobre fundo escuro (herói, plano, pagar-tudo) o anel branco destaca */
.pt-hero .pt-badge,
.pt-plan-hero .pt-badge,
.pt-payall .pt-badge { box-shadow: 0 0 0 2px rgba(255,255,255,.28), 0 6px 14px -6px rgba(0,0,0,.5); }

/*--------------------------------------------------------------------------
  Azulejo de serviço (catálogo)
--------------------------------------------------------------------------*/
.pt-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pt-tile {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  background: var(--pt-surface); border: 1px solid var(--pt-line);
  border-radius: var(--pt-r);
  transition: transform .22s var(--pt-spring), box-shadow .22s var(--pt-ease), border-color .22s var(--pt-ease);
}
.pt-tile::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: currentColor; opacity: 0; transition: opacity .2s var(--pt-ease);
}
.pt-tile:hover { transform: translateY(-3px); box-shadow: var(--pt-shadow); border-color: transparent; }
.pt-tile:hover::before { opacity: 1; }
.pt-tile-icon {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 17px;
}
.pt-tile-body { min-width: 0; }
.pt-tile-name {
  display: block; font-size: 13.5px; font-weight: 600; color: var(--pt-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pt-tile-meta { display: block; font-size: 11.5px; color: var(--pt-muted); margin-top: 1px; }
.pt-tile-go { margin-left: auto; color: var(--pt-line); font-size: 13px; transition: color .2s var(--pt-ease), transform .2s var(--pt-ease); }
.pt-tile:hover .pt-tile-go { color: currentColor; transform: translateX(2px); }

/*--------------------------------------------------------------------------
  Linha de conta / factura / transacção
--------------------------------------------------------------------------*/
.pt-list { display: flex; flex-direction: column; }
.pt-row {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 24px;
  border-bottom: 1px solid var(--pt-line-soft);
  transition: background .16s var(--pt-ease);
}
.pt-row:last-child { border-bottom: 0; }
.pt-row:hover { background: #FBFCFE; }
.pt-row-icon {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  display: inline-flex; align-items: center; justify-content: center; font-size: 15px;
}
.pt-row-body { min-width: 0; flex: 1; }
.pt-row-title { font-size: 13.5px; font-weight: 600; color: var(--pt-ink); margin: 0; }
.pt-row-sub { font-size: 12px; color: var(--pt-muted); margin: 2px 0 0; }
.pt-row-side { text-align: right; flex: none; }
.pt-row-amount { font-size: 14.5px; font-weight: 600; color: var(--pt-ink); letter-spacing: -.02em; }
.pt-row-amount.is-out { color: var(--pt-ink); }
.pt-row-note { font-size: 11.5px; color: var(--pt-muted); margin-top: 2px; }

/*--------------------------------------------------------------------------
  Selos de estado
--------------------------------------------------------------------------*/
.pt-chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 22px; padding: 0 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .01em; white-space: nowrap;
}
.pt-chip i { font-size: 9px; }
.pt-chip-ok    { background: var(--pt-ok-bg);   color: #067A55; }
.pt-chip-warn  { background: var(--pt-warn-bg); color: #B45309; }
.pt-chip-bad   { background: var(--pt-bad-bg);  color: #B91C1C; }
.pt-chip-info  { background: var(--pt-brand-050); color: var(--pt-brand-700); }
.pt-chip-mute  { background: var(--pt-canvas-deep); color: var(--pt-muted); }

.pt-chip-auto {
  background: linear-gradient(135deg, var(--pt-brand-050), #E8F6F1);
  color: var(--pt-brand-700); border: 1px solid var(--pt-brand-100);
}

/*--------------------------------------------------------------------------
  Botões (afinação sobre o design system)
--------------------------------------------------------------------------*/
.pt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 20px; border-radius: var(--pt-r-sm);
  font-size: 13.5px; font-weight: 600; letter-spacing: -.01em;
  border: 1px solid transparent; cursor: pointer;
  transition: all .18s var(--pt-ease);
}
.pt-btn-primary {
  background: var(--pt-brand); color: #fff;
  box-shadow: 0 6px 16px -8px rgba(37,99,235,.85);
}
.pt-btn-primary:hover { background: var(--pt-brand-600); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(37,99,235,.9); }
.pt-btn-primary:active { transform: translateY(0); }
.pt-btn-ghost { background: #fff; color: var(--pt-ink-2); border-color: var(--pt-line); }
.pt-btn-ghost:hover { border-color: var(--pt-brand-100); background: var(--pt-brand-050); color: var(--pt-brand-700); }
.pt-btn-soft { background: var(--pt-brand-050); color: var(--pt-brand-700); }
.pt-btn-soft:hover { background: var(--pt-brand-100); color: var(--pt-brand-700); }
.pt-btn-sm { height: 34px; padding: 0 14px; font-size: 12.5px; border-radius: 9px; }
.pt-btn-lg { height: 50px; padding: 0 26px; font-size: 15px; border-radius: 12px; }
.pt-btn-block { width: 100%; }
.pt-btn:disabled, .pt-btn.is-disabled {
  background: var(--pt-canvas-deep); color: var(--pt-muted);
  border-color: transparent; box-shadow: none; pointer-events: none;
}

/*--------------------------------------------------------------------------
  Formulários
--------------------------------------------------------------------------*/
/* O tema base põe todos os <label> em maiúsculas — só o queremos nos rótulos de campo. */
label { text-transform: none; }
.pt-label {
  display: block; font-size: 11.5px; font-weight: 600; color: var(--pt-ink-2);
  margin-bottom: 7px; text-transform: uppercase; letter-spacing: .05em;
}
.pt-input, .pt-select {
  width: 100%; height: 48px; padding: 0 15px;
  border: 1.5px solid var(--pt-line); border-radius: 12px;
  background: #fff; color: var(--pt-ink); font-size: 14.5px; font-weight: 500;
  transition: border-color .18s var(--pt-ease), box-shadow .18s var(--pt-ease), background .18s var(--pt-ease);
}
.pt-input::placeholder { color: #A9B4C6; font-weight: 400; }
.pt-input:focus, .pt-select:focus {
  outline: none; border-color: var(--pt-brand);
  box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}
.pt-hint { font-size: 12px; color: var(--pt-muted); margin-top: 7px; }

.pt-input-group { display: flex; align-items: stretch; }
.pt-input-prefix {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 14px; border: 1.5px solid var(--pt-line); border-right: 0;
  border-radius: 12px 0 0 12px; background: var(--pt-canvas-deep);
  font-size: 14.5px; font-weight: 600; color: var(--pt-ink-2); white-space: nowrap;
}
.pt-input-group .pt-input { border-radius: 0 12px 12px 0; }
.pt-input-group:focus-within .pt-input-prefix { border-color: var(--pt-brand); background: var(--pt-brand-050); color: var(--pt-brand-700); }

/* Selector de opção (montantes, métodos de pagamento) */
.pt-choice { position: relative; display: block; cursor: pointer; }
.pt-choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.pt-choice-face {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border: 1.5px solid var(--pt-line); border-radius: var(--pt-r);
  background: #fff; transition: all .18s var(--pt-ease);
}
.pt-choice-face:hover { border-color: var(--pt-brand-100); background: var(--pt-brand-050); }
.pt-choice input:checked + .pt-choice-face {
  border-color: var(--pt-brand); background: var(--pt-brand-050);
  box-shadow: 0 0 0 3px rgba(37,99,235,.10);
}
.pt-choice input:focus-visible + .pt-choice-face { box-shadow: 0 0 0 4px rgba(37,99,235,.18); }
.pt-choice-title { font-size: 13.5px; font-weight: 600; color: var(--pt-ink); }
.pt-choice-sub { font-size: 11.5px; color: var(--pt-muted); }
.pt-choice-mark {
  margin-left: auto; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--pt-line); flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .18s var(--pt-ease);
}
.pt-choice input:checked + .pt-choice-face .pt-choice-mark { border-color: var(--pt-brand); background: var(--pt-brand); }
.pt-choice-mark::after {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff;
  transform: scale(0); transition: transform .18s var(--pt-spring);
}
.pt-choice input:checked + .pt-choice-face .pt-choice-mark::after { transform: scale(1); }

/* Montantes rápidos */
.pt-amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pt-amount .pt-choice-face { justify-content: center; padding: 13px 8px; }
.pt-amount .pt-choice-face strong { font-size: 15px; font-weight: 600; color: var(--pt-ink); letter-spacing: -.02em; }

/*--------------------------------------------------------------------------
  Ecrãs de autenticação
--------------------------------------------------------------------------*/
.pt-auth {
  min-height: 100vh;
  display: grid; grid-template-columns: 1.05fr 1fr;
  background: var(--pt-surface);
}
.pt-auth-aside {
  position: relative; overflow: hidden;
  padding: 52px 56px;
  display: flex; flex-direction: column; justify-content: space-between;
  background:
    radial-gradient(120% 120% at 85% 10%, rgba(59,130,246,.5) 0%, rgba(59,130,246,0) 55%),
    radial-gradient(90% 110% at 10% 92%, rgba(13,148,136,.34) 0%, rgba(13,148,136,0) 58%),
    linear-gradient(150deg, #10275A 0%, #0B1B3F 52%, #081228 100%);
  color: #fff;
}
.pt-auth-aside::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1px);
  background-size: 24px 24px; opacity: .45; pointer-events: none;
}
.pt-auth-aside > * { position: relative; z-index: 1; }
.pt-auth-logo {
  align-self: flex-start;
  display: inline-flex; align-items: center;
  padding: 11px 18px; border-radius: 14px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 10px 30px -12px rgba(0,0,0,.5);
}
.pt-auth-logo img { height: 26px; width: auto; display: block; }
.pt-auth-claim { max-width: 420px; }
.pt-auth-claim h2 {
  color: #fff; font-size: 34px; line-height: 1.18; letter-spacing: -.03em; margin: 0 0 14px;
  font-weight: 600;
}
.pt-auth-claim p { color: rgba(255,255,255,.72); font-size: 15px; line-height: 1.65; margin: 0; }

.pt-auth-bullets { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.pt-auth-bullets li { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.88); font-size: 13.5px; }
.pt-auth-bullets i {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.12); color: #fff; font-size: 12px;
  border: 1px solid rgba(255,255,255,.14);
}
.pt-auth-foot { color: rgba(255,255,255,.45); font-size: 12px; }

.pt-auth-main {
  display: flex; align-items: center; justify-content: center;
  padding: 48px 32px;
}
.pt-auth-box { width: 100%; max-width: 400px; }
.pt-auth-box .pt-auth-logo-mobile { display: none; height: 30px; margin-bottom: 28px; }
.pt-auth-box h1 { font-size: 25px; margin: 0 0 8px; letter-spacing: -.025em; }
.pt-auth-box .pt-auth-lead { color: var(--pt-muted); font-size: 14px; margin: 0 0 28px; line-height: 1.6; }

/* Passos */
.pt-steps { display: flex; align-items: center; gap: 8px; margin-bottom: 30px; }
.pt-step { display: flex; align-items: center; gap: 8px; }
.pt-step-dot {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 700;
  background: var(--pt-canvas-deep); color: var(--pt-muted);
  border: 1.5px solid transparent; transition: all .2s var(--pt-ease);
}
.pt-step.is-done .pt-step-dot { background: var(--pt-ok-bg); color: #067A55; }
.pt-step.is-active .pt-step-dot { background: var(--pt-brand); color: #fff; box-shadow: 0 0 0 4px rgba(37,99,235,.14); }
.pt-step-label { font-size: 12px; font-weight: 500; color: var(--pt-muted); }
.pt-step.is-active .pt-step-label { color: var(--pt-ink); font-weight: 600; }
.pt-step-bar { flex: 1; height: 2px; background: var(--pt-line); border-radius: 2px; min-width: 16px; }
.pt-step-bar.is-done { background: var(--pt-ok); }

/* Caixas de OTP */
.pt-otp { display: flex; gap: 10px; justify-content: space-between; }
.pt-otp input {
  width: 100%; height: 60px; text-align: center;
  font-size: 24px; font-weight: 600; color: var(--pt-ink);
  border: 1.5px solid var(--pt-line); border-radius: 13px; background: #fff;
  transition: all .18s var(--pt-ease);
}
.pt-otp input:focus {
  outline: none; border-color: var(--pt-brand);
  box-shadow: 0 0 0 4px rgba(37,99,235,.12); transform: translateY(-1px);
}
.pt-otp input.is-filled { border-color: var(--pt-brand); background: var(--pt-brand-050); }

/* Força da senha */
.pt-strength { display: flex; gap: 5px; margin-top: 10px; }
.pt-strength span {
  flex: 1; height: 4px; border-radius: 2px; background: var(--pt-line);
  transition: background .25s var(--pt-ease);
}
.pt-strength.lv1 span:nth-child(1) { background: var(--pt-bad); }
.pt-strength.lv2 span:nth-child(-n+2) { background: var(--pt-warn); }
.pt-strength.lv3 span:nth-child(-n+3) { background: #3B82F6; }
.pt-strength.lv4 span { background: var(--pt-ok); }

.pt-rules { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.pt-rules li { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--pt-muted); }
.pt-rules li i { font-size: 10px; color: var(--pt-line); transition: color .2s var(--pt-ease); }
.pt-rules li.ok { color: #067A55; }
.pt-rules li.ok i { color: var(--pt-ok); }

/*--------------------------------------------------------------------------
  Pagar todos os serviços de uma vez
--------------------------------------------------------------------------*/
.pt-payall {
  position: relative; overflow: hidden;
  border-radius: var(--pt-r-xl);
  background:
    radial-gradient(110% 150% at 92% 4%, rgba(59,130,246,.5) 0%, rgba(59,130,246,0) 58%),
    radial-gradient(90% 120% at 2% 98%, rgba(13,148,136,.3) 0%, rgba(13,148,136,0) 60%),
    linear-gradient(135deg, #10275A 0%, #0B1B3F 56%, #0A1730 100%);
  color: #fff; box-shadow: var(--pt-shadow-lg);
}
.pt-payall::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1px);
  background-size: 22px 22px; opacity: .5;
}
.pt-payall > * { position: relative; z-index: 1; }

.pt-payall-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; padding: 24px 28px;
}
.pt-payall .pt-eyebrow { color: rgba(255,255,255,.58); }
.pt-payall-amount {
  font-size: 34px; font-weight: 600; letter-spacing: -.035em; line-height: 1.1;
  color: #fff; margin: 5px 0 3px;
}
.pt-payall-amount span { font-size: 15px; font-weight: 500; opacity: .62; margin-left: 6px; }
.pt-payall-sub { color: rgba(255,255,255,.70); font-size: 13px; }

.pt-payall-actions { display: flex; align-items: center; gap: 12px; }
.pt-payall-cta {
  background: #fff; color: var(--pt-navy);
  box-shadow: 0 12px 30px -12px rgba(0,0,0,.65);
}
.pt-payall-cta:hover { background: #fff; color: var(--pt-brand-700); transform: translateY(-1px); }
.pt-payall-cta.is-disabled { background: rgba(255,255,255,.2); color: rgba(255,255,255,.55); pointer-events: none; }

.pt-payall-toggle {
  display: inline-flex; align-items: center; gap: 7px;
  height: 50px; padding: 0 16px; border-radius: 12px;
  background: rgba(255,255,255,.10); color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.16); font-size: 13px; font-weight: 500;
  transition: background .18s var(--pt-ease);
}
.pt-payall-toggle:hover { background: rgba(255,255,255,.18); color: #fff; }
.pt-payall-toggle i { transition: transform .22s var(--pt-ease); font-size: 12px; }
.pt-payall-toggle[aria-expanded="true"] i { transform: rotate(180deg); }

.pt-payall-list { background: rgba(255,255,255,.97); }
.pt-payall-row {
  display: flex; align-items: center; gap: 13px;
  padding: 13px 28px; margin: 0; cursor: pointer;
  border-top: 1px solid var(--pt-line-soft);
  transition: background .16s var(--pt-ease), opacity .16s var(--pt-ease);
}
.pt-payall-row:hover { background: var(--pt-brand-050); }
.pt-payall-row.is-off { opacity: .45; }
.pt-payall-row .pt-row-body { min-width: 0; flex: 1; }
.pt-payall-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  flex-wrap: wrap;
  padding: 13px 28px; background: #fff; border-top: 1px solid var(--pt-line-soft);
}

/*--------------------------------------------------------------------------
  Plano mensal — muitos serviços, um só pagamento
--------------------------------------------------------------------------*/
.pt-plan-hero {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  flex-wrap: wrap;
  padding: 26px 30px; border-radius: var(--pt-r-xl);
  background:
    radial-gradient(110% 150% at 92% 6%, rgba(59,130,246,.5) 0%, rgba(59,130,246,0) 58%),
    radial-gradient(90% 120% at 2% 96%, rgba(13,148,136,.3) 0%, rgba(13,148,136,0) 60%),
    linear-gradient(135deg, #10275A 0%, #0B1B3F 56%, #0A1730 100%);
  color: #fff; box-shadow: var(--pt-shadow-lg);
}
.pt-plan-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1px);
  background-size: 22px 22px; opacity: .5;
}
.pt-plan-hero > * { position: relative; z-index: 1; }
.pt-plan-hero .pt-eyebrow { color: rgba(255,255,255,.58); }
.pt-plan-amount {
  font-size: 38px; font-weight: 600; letter-spacing: -.035em; line-height: 1.1;
  color: #fff; margin: 6px 0 4px;
}
.pt-plan-amount span { font-size: 15px; font-weight: 500; opacity: .62; margin-left: 7px; letter-spacing: -.01em; }
.pt-plan-sub { color: rgba(255,255,255,.72); font-size: 13.5px; }

/* Diagrama: N serviços → 1 factura */
.pt-plan-hero-flow { display: flex; align-items: center; gap: 8px; }
.pt-plan-dot {
  width: 42px; height: 42px; border-radius: 50%; flex: none; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 15px; background: #fff;
  border: 2px solid rgba(255,255,255,.75);
  box-shadow: 0 8px 18px -8px rgba(0,0,0,.6);
}
.pt-plan-dot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pt-plan-dot + .pt-plan-dot { margin-left: -14px; }
.pt-plan-arrow { display: inline-flex; color: rgba(255,255,255,.4); margin: 0 6px; font-size: 15px; }
.pt-plan-arrow i + i { margin-left: -5px; }
.pt-plan-bill {
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  padding: 11px 18px; border-radius: 12px;
  background: rgba(255,255,255,.95); color: var(--pt-navy);
  font-size: 13.5px; font-weight: 600;
  box-shadow: 0 10px 26px -12px rgba(0,0,0,.6);
}

/* Linha de serviço do plano */
.pt-plan-row { gap: 12px; }
.pt-plan-row.is-off { background: #FCFDFE; }
.pt-plan-row.is-off .pt-row-icon,
.pt-plan-row.is-off .pt-row-body { opacity: .5; }

.pt-plan-amount-field {
  display: inline-flex; align-items: center; flex: none;
  border: 1.5px solid var(--pt-line); border-radius: 10px; overflow: hidden;
  background: #fff; transition: border-color .18s var(--pt-ease), box-shadow .18s var(--pt-ease);
}
.pt-plan-amount-field:focus-within { border-color: var(--pt-brand); box-shadow: 0 0 0 3px rgba(37,99,235,.10); }
.pt-plan-currency {
  padding: 0 9px; font-size: 11.5px; font-weight: 600; color: var(--pt-muted);
  background: var(--pt-canvas-deep); align-self: stretch;
  display: inline-flex; align-items: center;
}
.pt-plan-input {
  width: 104px; height: 38px; padding: 0 11px; border: 0; text-align: right;
  font-size: 14px; font-weight: 600; color: var(--pt-ink); background: transparent;
}
.pt-plan-input:focus { outline: none; }
.pt-plan-input:read-only { color: var(--pt-muted); }
.pt-plan-input:disabled { color: var(--pt-light); }

/* Interruptor */
.pt-switch { position: relative; display: inline-flex; flex: none; cursor: pointer; }
.pt-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.pt-switch-track {
  width: 40px; height: 23px; border-radius: 999px; background: var(--pt-line);
  position: relative; transition: background .2s var(--pt-ease);
}
.pt-switch-track::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 17px; height: 17px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: transform .22s var(--pt-spring);
}
.pt-switch input:checked + .pt-switch-track { background: var(--pt-brand); }
.pt-switch input:checked + .pt-switch-track::after { transform: translateX(17px); }
.pt-switch input:focus-visible + .pt-switch-track { box-shadow: 0 0 0 4px rgba(37,99,235,.18); }

.pt-plan-next {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; border-radius: var(--pt-r);
  background: var(--pt-brand-050); color: var(--pt-brand-700);
  font-size: 12.5px; line-height: 1.55;
}
.pt-plan-next i { margin-top: 2px; }

/*--------------------------------------------------------------------------
  Carrinho & checkout
--------------------------------------------------------------------------*/
.pt-summary { position: sticky; top: 94px; }
.pt-summary-line {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13.5px; padding: 7px 0; color: var(--pt-body);
}
.pt-summary-line strong { color: var(--pt-ink); font-weight: 500; }
.pt-summary-total {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-top: 16px; margin-top: 10px; border-top: 1px dashed var(--pt-line);
}
.pt-summary-total span { font-size: 13.5px; font-weight: 600; color: var(--pt-ink); }
.pt-summary-total strong { font-size: 24px; font-weight: 600; color: var(--pt-ink); letter-spacing: -.03em; }

.pt-qty { display: inline-flex; align-items: center; border: 1px solid var(--pt-line); border-radius: 9px; overflow: hidden; }
.pt-qty button {
  width: 30px; height: 30px; border: 0; background: #fff; color: var(--pt-body);
  font-size: 12px; transition: background .16s var(--pt-ease);
}
.pt-qty button:hover { background: var(--pt-brand-050); color: var(--pt-brand-700); }
.pt-qty span { min-width: 32px; text-align: center; font-size: 13px; font-weight: 600; color: var(--pt-ink); }

/*--------------------------------------------------------------------------
  Desconto — tem de se sentir
--------------------------------------------------------------------------*/
.pt-strike {
  text-decoration: line-through; color: var(--pt-light);
  font-weight: 400; margin-right: 6px;
}

.pt-save {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px; border-radius: var(--pt-r-lg);
  background: linear-gradient(120deg, #E7F8F1 0%, #EAF3FF 100%);
  border: 1px solid #BFE9D6;
}
.pt-save-icon {
  width: 46px; height: 46px; border-radius: 14px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--pt-ok); color: #fff; font-size: 19px;
  box-shadow: 0 8px 18px -8px rgba(14,159,110,.8);
}
.pt-save-body { flex: 1; min-width: 0; }
.pt-save-lead { font-size: 15px; font-weight: 500; color: #06553B; }
.pt-save-lead strong { font-weight: 700; }
.pt-save-sub { font-size: 12.5px; color: #2F7A62; }
.pt-save-badge {
  flex: none; text-align: right; color: var(--pt-ok);
  font-size: 24px; font-weight: 700; letter-spacing: -.03em; line-height: 1;
}
.pt-save-badge small { display: block; font-size: 11px; font-weight: 600; opacity: .8; letter-spacing: .04em; }

.pt-summary-line.pt-summary-save { color: #067A55; }
.pt-summary-line.pt-summary-save strong { color: #067A55; font-weight: 600; }

.pt-nudge {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; border-radius: var(--pt-r);
  background: var(--pt-warn-bg); color: #92400E;
  font-size: 12.5px; line-height: 1.55;
}
.pt-nudge i { margin-top: 3px; }
.pt-nudge a { color: #92400E; font-weight: 600; text-decoration: underline; }

/*--------------------------------------------------------------------------
  Saída para o Urafiki Pay
--------------------------------------------------------------------------*/
.pt-gateway {
  padding: 14px 16px; border-radius: var(--pt-r);
  background: var(--pt-canvas); border: 1px solid var(--pt-line);
}
.pt-gateway-top {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--pt-ink); margin-bottom: 6px;
}
.pt-gateway-top i { color: var(--pt-ok); }
.pt-gateway-sub { font-size: 12px; color: var(--pt-muted); }
.pt-gateway-channels { display: flex; flex-wrap: wrap; gap: 6px; }
.pt-gateway-channels span {
  padding: 4px 10px; border-radius: 999px;
  background: #fff; border: 1px solid var(--pt-line);
  font-size: 11.5px; font-weight: 500; color: var(--pt-body);
}

/*--------------------------------------------------------------------------
  Comprovativo
--------------------------------------------------------------------------*/
.pt-receipt-head { text-align: center; padding: 40px 32px 28px; }
.pt-receipt-check {
  width: 66px; height: 66px; border-radius: 22px; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  background: var(--pt-ok); color: #fff; font-size: 26px;
  box-shadow: 0 14px 30px -12px rgba(14,159,110,.85);
  animation: ptPop .45s var(--pt-spring) both;
}
@keyframes ptPop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.pt-receipt-head h1 { font-size: 23px; margin: 0 0 6px; }
.pt-receipt-head p { color: var(--pt-muted); font-size: 13.5px; max-width: 420px; margin: 0 auto; }
.pt-receipt-amount {
  font-size: 38px; font-weight: 600; letter-spacing: -.035em;
  color: var(--pt-ink); margin-top: 18px; line-height: 1.1;
}
.pt-receipt-amount span { font-size: 17px; font-weight: 500; color: var(--pt-muted); margin-left: 5px; }
.pt-receipt-save {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 12px;
  padding: 7px 15px; border-radius: 999px;
  background: var(--pt-ok-bg); color: #067A55;
  font-size: 13px; font-weight: 600;
}

.pt-receipt-meta {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--pt-line-soft);
  border-top: 1px solid var(--pt-line-soft);
}
.pt-receipt-meta > div { background: #fff; padding: 14px 18px; }
.pt-receipt-meta strong { font-size: 13px; color: var(--pt-ink); font-weight: 600; }

@media print {
  .pt-header, .pt-footer, .pt-nav-mobile, .pt-btn { display: none !important; }
  .pt-card { box-shadow: none; border-color: #ddd; }
}

/*--------------------------------------------------------------------------
  Produtos de recarga combináveis
--------------------------------------------------------------------------*/
.pt-prod-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

.pt-prod {
  display: flex; flex-direction: column; gap: 8px;
  padding: 14px 16px;
  border: 1.5px solid var(--pt-line); border-radius: var(--pt-r);
  background: #fff;
  transition: border-color .18s var(--pt-ease), box-shadow .18s var(--pt-ease), transform .18s var(--pt-spring);
}
.pt-prod:hover { border-color: var(--pt-brand-100); transform: translateY(-2px); }
.pt-prod.is-picked {
  border-color: var(--pt-brand); background: var(--pt-brand-050);
  box-shadow: 0 0 0 3px rgba(37,99,235,.10);
}
.pt-prod.is-out { opacity: .55; }

.pt-prod-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pt-prod-name { display: block; font-size: 13px; font-weight: 600; color: var(--pt-ink); }
.pt-prod-price {
  display: block; font-size: 19px; font-weight: 600;
  color: var(--pt-ink); letter-spacing: -.03em; margin-top: 1px;
}
.pt-prod-desc {
  font-size: 11.5px; color: var(--pt-muted); line-height: 1.5; margin: 0;
  flex: 1;
}
.pt-prod-foot { display: flex; align-items: center; gap: 8px; }

.pt-combo-list { display: flex; flex-direction: column; }
.pt-combo-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 0; border-bottom: 1px dashed var(--pt-line);
  font-size: 13px; color: var(--pt-body);
}
.pt-combo-item:last-child { border-bottom: 0; margin-bottom: 8px; }
.pt-combo-item strong { color: var(--pt-ink); font-weight: 600; }

/*--------------------------------------------------------------------------
  Recarga em lote
--------------------------------------------------------------------------*/
.pt-textarea {
  height: auto; padding: 14px 15px; line-height: 1.75; resize: vertical;
  font-size: 13.5px; letter-spacing: .02em;
}

.pt-lote-tabs { gap: 6px; border: 0; }
.pt-lote-tabs .nav-link {
  border-radius: var(--pt-r-sm); padding: 9px 15px;
  font-size: 13px; font-weight: 500; color: var(--pt-body);
  background: var(--pt-canvas-deep); border: 1px solid transparent;
}
.pt-lote-tabs .nav-link.active { background: var(--pt-brand); color: #fff; }

.pt-upload {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 34px 24px; cursor: pointer; text-align: center;
  border: 1.5px dashed var(--pt-line); border-radius: var(--pt-r);
  background: var(--pt-canvas);
  transition: all .18s var(--pt-ease);
}
.pt-upload:hover { border-color: var(--pt-brand); background: var(--pt-brand-050); }
.pt-upload strong { font-size: 14px; color: var(--pt-ink); }
.pt-upload-icon {
  width: 48px; height: 48px; border-radius: 15px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--pt-brand-050); color: var(--pt-brand); font-size: 19px;
}

.pt-lote-scroll { max-height: 460px; overflow: auto; }
.pt-lote-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pt-lote-table thead th {
  position: sticky; top: 0; z-index: 1;
  background: var(--pt-canvas); color: var(--pt-muted);
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  padding: 10px 16px; border-bottom: 1px solid var(--pt-line);
  text-align: left; white-space: nowrap;
}
.pt-lote-table tbody td { padding: 11px 16px; border-bottom: 1px solid var(--pt-line-soft); }
.pt-lote-table tbody tr:hover { background: #FBFCFE; }
.pt-lote-table tbody tr.is-bad { background: #FEF7F7; }
.pt-lote-table tbody tr.is-bad:hover { background: #FDEFEF; }
.pt-lote-op {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
}

/*--------------------------------------------------------------------------
  Estado vazio
--------------------------------------------------------------------------*/
.pt-empty { text-align: center; padding: 56px 24px; }
.pt-empty-icon {
  width: 72px; height: 72px; border-radius: 22px; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  background: var(--pt-brand-050); color: var(--pt-brand); font-size: 26px;
}
.pt-empty h3 { font-size: 17px; margin: 0 0 6px; }
.pt-empty p { color: var(--pt-muted); font-size: 13.5px; max-width: 340px; margin: 0 auto 20px; }

/*--------------------------------------------------------------------------
  Rodapé
--------------------------------------------------------------------------*/
.pt-footer { border-top: 1px solid var(--pt-line); background: var(--pt-surface); padding: 22px 0; }
.pt-footer-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pt-footer-links { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.pt-footer-links a { font-size: 13px; color: var(--pt-muted); transition: color .16s var(--pt-ease); }
.pt-footer-links a:hover { color: var(--pt-brand); }

/*--------------------------------------------------------------------------
  Animação de entrada
--------------------------------------------------------------------------*/
@keyframes ptRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.pt-rise { animation: ptRise .5s var(--pt-ease) both; }
.pt-rise-1 { animation-delay: .04s; }
.pt-rise-2 { animation-delay: .10s; }
.pt-rise-3 { animation-delay: .16s; }
.pt-rise-4 { animation-delay: .22s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/*--------------------------------------------------------------------------
  Responsivo
--------------------------------------------------------------------------*/
@media (max-width: 1199.98px) {
  .pt-tiles { grid-template-columns: repeat(3, 1fr); }
  .pt-quick { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 991.98px) {
  .pt-nav { display: none; }

  .pt-auth { grid-template-columns: 1fr; }
  .pt-auth-aside { display: none; }
  .pt-auth-box .pt-auth-logo-mobile { display: block; }
  .pt-auth-main { padding: 40px 24px 56px; align-items: flex-start; }
}

@media (max-width: 767.98px) {
  .pt-header-row { height: 58px; gap: 10px; }
  .pt-logo-sep, .pt-logo-tag { display: none; }
  .pt-logo img { height: 26px; }
  .pt-user-meta { display: none; }
  .pt-user { padding: 4px; }
  .pt-icon-btn { width: 38px; height: 38px; }
  .pt-header-actions { margin-left: auto; }

  /* Herói mais curto: o essencial cabe num ecrã */
  .pt-hero { padding: 20px 18px; border-radius: var(--pt-r-lg); }
  .pt-hero-top { flex-direction: column; gap: 14px; }
  .pt-hero h1 { font-size: 21px; }
  .pt-hero-sub { font-size: 12.5px; }
  .pt-hero-balance { text-align: left; width: 100%; }
  .pt-hero-amount { font-size: 30px; }
  .pt-hero-stats { grid-template-columns: repeat(3, 1fr); margin-top: 18px; }
  .pt-hero-stat { padding: 11px 10px; }
  .pt-hero-stat .k { font-size: 9.5px; letter-spacing: .03em; }
  .pt-hero-stat .v { font-size: 15px; }
  .pt-hero-stat .v small { display: block; margin: 0; font-size: 10px; }

  .pt-tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pt-tile { padding: 13px 14px; gap: 11px; }
  .pt-tile-icon { width: 36px; height: 36px; font-size: 15px; }
  .pt-tile-go { display: none; }

  .pt-quick { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .pt-quick-item { padding: 13px 4px 11px; gap: 7px; }
  .pt-quick-icon { width: 38px; height: 38px; font-size: 15px; border-radius: 12px; }
  .pt-quick-item span { font-size: 10.5px; }

  .pt-amounts { grid-template-columns: repeat(2, 1fr); }

  .pt-row { padding: 13px 16px; gap: 11px; }
  .pt-card-pad { padding: 18px 16px; }
  .pt-card-head { padding: 15px 16px; }
  .pt-page-head { margin-bottom: 18px; }
  .pt-page-head h1 { font-size: 21px; }
  .pt-main { padding: 18px 0 32px; }
  .pt-section-head h2 { font-size: 14.5px; }

  /* Alvos de toque confortáveis */
  .pt-btn { height: 46px; }
  .pt-btn-lg { height: 50px; }
  .pt-btn-sm { height: 36px; }
  .pt-input, .pt-select { height: 50px; font-size: 16px; } /* 16px evita zoom no iOS */

  .pt-otp { gap: 7px; }
  .pt-otp input { height: 52px; font-size: 20px; border-radius: 11px; }

  /* Poupança: o número grande passa para baixo do texto */
  .pt-save { flex-wrap: wrap; padding: 15px 16px; }
  .pt-save-badge { font-size: 22px; width: 100%; text-align: left; }
  .pt-save-badge small { display: inline; margin-left: 4px; }

  .pt-receipt-head { padding: 32px 20px 22px; }
  .pt-receipt-meta { grid-template-columns: repeat(2, 1fr); }
  .pt-receipt-amount { font-size: 32px; }

  /* Pagar todos: total e botão empilhados, botão a toda a largura */
  .pt-payall-top { padding: 20px 18px; gap: 16px; }
  .pt-payall-row, .pt-payall-foot { padding-left: 18px; padding-right: 18px; }
  .pt-payall-lead { width: 100%; }
  .pt-payall-amount { font-size: 30px; }
  .pt-payall-actions { width: 100%; }
  .pt-payall-cta { flex: 1; }
  .pt-payall-row { flex-wrap: wrap; row-gap: 4px; }
  .pt-payall-row .pt-row-body { flex: 1 1 60%; }
  /* o valor cai para a linha de baixo — encostado à direita, não ao checkbox */
  .pt-payall-row .pt-row-amount { margin-left: auto; text-align: right; }
  .pt-payall-foot { flex-direction: column; align-items: flex-start; gap: 8px; }

  /* Plano: valor mensal passa para a linha de baixo, alinhado à direita */
  .pt-plan-hero { padding: 20px 18px; }
  .pt-plan-amount { font-size: 30px; }
  .pt-plan-hero-flow { width: 100%; }
  .pt-plan-row { flex-wrap: wrap; row-gap: 10px; }
  .pt-plan-row .pt-row-body { flex: 1 1 55%; }
  .pt-plan-amount-field { margin-left: auto; }
  .pt-plan-input { width: 96px; height: 40px; font-size: 15px; }

  /* Tabela do lote roda dentro da própria caixa */
  .pt-lote-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .pt-lote-table { min-width: 520px; }
  .pt-lote-tabs .nav-link { flex: 1; justify-content: center; }
  .pt-upload { padding: 26px 18px; }

  /* Resumos deixam de colar ao topo: no telemóvel são só o último bloco */
  .pt-summary { position: static; }

  .pt-footer { padding-top: 18px; }
  .pt-footer-row { flex-direction: column; gap: 12px; text-align: center; }
  .pt-footer-links { flex-wrap: wrap; justify-content: center; gap: 14px 18px; }
}

/* Ecrãs muito estreitos */
@media (max-width: 359.98px) {
  .pt-quick { grid-template-columns: repeat(3, 1fr); }
  .pt-tiles { grid-template-columns: 1fr; }
  .pt-hero-stats { grid-template-columns: 1fr; }
  .pt-tab span { font-size: 9.5px; }
}

/*--------------------------------------------------------------------------
  Folga do rodapé para a barra inferior.
  Fica no fim do ficheiro de propósito: as regras base do rodapé usam o
  atalho `padding`, que sobreporia esta folga se ela viesse antes.
--------------------------------------------------------------------------*/
@media (max-width: 991.98px) {
  .pt-footer { padding-bottom: calc(20px + 58px + env(safe-area-inset-bottom)); }
}

/* Produtos combinados, listados dentro da linha do carrinho */
.pt-combo-inline {
  list-style: none; margin: 6px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 5px 8px;
}
.pt-combo-inline li {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px;
  background: var(--pt-canvas-deep); color: var(--pt-ink-2);
  font-size: 11.5px; font-weight: 500;
}
.pt-combo-inline i { font-size: 9px; color: var(--pt-brand); }

@media (max-width: 767.98px) {
  .pt-prod-grid { grid-template-columns: 1fr; }
}

/*--------------------------------------------------------------------------
  Barra de acção fixa (telemóvel) — total e CTA sempre à vista
--------------------------------------------------------------------------*/
.pt-stickybar { display: none; }

@media (max-width: 991.98px) {
  .pt-stickybar {
    position: fixed; left: 0; right: 0;
    bottom: calc(58px + env(safe-area-inset-bottom));
    z-index: 940;
    display: flex; align-items: center; gap: 12px;
    padding: 11px 16px;
    background: rgba(255,255,255,.97);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-top: 1px solid var(--pt-line);
    box-shadow: 0 -8px 24px -12px rgba(15,42,91,.25);
    animation: ptRise .28s var(--pt-ease) both;
  }
  .pt-stickybar[hidden] { display: none; }
  .pt-stickybar-info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
  .pt-stickybar-label {
    font-size: 11.5px; color: var(--pt-muted);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .pt-stickybar-info strong { font-size: 18px; font-weight: 600; color: var(--pt-ink); letter-spacing: -.02em; }
  .pt-stickybar .pt-btn { flex: none; }
}
