/* ============================================================
   VenoPay/SimplesPay — tema PRETO + DOURADO (inspirado no HKPay)
   Fundo quase preto, cards com gradiente dourado-escuro,
   ícones em quadrado arredondado dourado, CTAs em dourado vivo.
   ============================================================ */

:root {
  --radius: .875rem;

  /* dourado */
  --gold: #e8c15a;
  --gold-bright: #f4d989;
  --gold-dark: #a9791f;
  --gold-deep: #7a5714;

  /* gradiente vivo (botões, ativos, progresso) */
  --gradient-gold: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 55%, var(--gold-dark) 100%);
  /* gradiente escuro dourado (cards hero / stat cards, estilo HKPay) */
  --gradient-card: linear-gradient(135deg, #2c2312 0%, #171208 55%, #0e0b06 100%);
  --shadow-gold: 0 18px 40px -18px rgba(0,0,0,.6);
  --ring-gold: 0 0 0 3px rgba(232,193,90,.18);

  --bg: #0b0a08;
  --surface: #151209;
  --surface-2: #1e1810;
  --input-bg: #1a150c;
  --border: #2c2415;
  --border-soft: #221c11;

  --sidebar-bg: #0b0a08;
  --sidebar-bg-2: #17130b;
  --sidebar-text: #a89f8c;
  --sidebar-text-dim: #6e6858;

  --text: #f3ecdd;
  --text-dim: #cfc4ac;
  --muted: #948a76;
  --muted-2: #625a49;

  --success: #3fae6a;
  --success-soft: #16261c;
  --danger: #d9564f;
  --danger-soft: #2a1613;
  --info: #4d8fe0;
  --info-soft: #12202e;

  --radius-lg: 20px;
  --radius-sm: 11px;
  --shadow-card: 0 1px 2px rgba(0,0,0,.35), 0 10px 26px -14px rgba(0,0,0,.6);

  --bottom-nav-h: 64px;
}

* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-bright); }
h1, h2, h3, h4 {
  margin: 0 0 .5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
}
.num, .value, .balance-amount { font-family: 'Inter', sans-serif; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.hint { font-size: .78rem; color: var(--muted); }
.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; }
img { max-width: 100%; }
.icon { width: 20px; height: 20px; flex-shrink: 0; display: inline-block; }

/* ---------- botões ---------- */
.btn {
  display: inline-block;
  padding: .7rem 1.3rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: .01em;
  text-align: center;
  transition: transform .15s ease, filter .15s ease, background .15s ease, box-shadow .15s ease;
  font-family: 'Inter', sans-serif;
}
.btn-primary {
  background: var(--gradient-gold);
  color: #221a05;
  box-shadow: 0 10px 24px -10px rgba(232,193,90,.4);
}
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-outline {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.btn-outline:hover { border-color: var(--gold-dark); color: var(--gold); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(1.15); }
.btn-sm { padding: .42rem .85rem; font-size: .78rem; border-radius: 9px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------- cartões ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 1.35rem;
}

/* Hero / cartão gradiente escuro dourado (estilo stat card HKPay) */
.hero-card {
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.9rem;
  background: var(--gradient-card);
  border: 1px solid rgba(232,193,90,.22);
  box-shadow: var(--shadow-gold);
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
  color: var(--text);
}
.hero-card h2, .hero-card strong, .hero-card .balance-amount { color: var(--text); }
.hero-card p, .hero-card .label, .hero-card .acct-sub { color: var(--muted); }
.hero-card::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 90% 0%, rgba(232,193,90,.10), transparent 55%);
  pointer-events: none;
}
.hero-card .hero-icon {
  position: absolute; top: 1.5rem; right: 1.6rem;
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--gradient-gold);
  display: flex; align-items: center; justify-content: center; color: #221a05;
}
.hero-card .hero-icon .icon { width: 22px; height: 22px; }
.hero-card .eyebrow-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(232,193,90,.14); color: var(--gold);
  font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: .3rem .8rem; border-radius: 999px; margin-bottom: .8rem;
}
.hero-card .status-pill { background: rgba(232,193,90,.14); color: var(--gold); }

/* ações rápidas dentro do hero */
.hero-actions { display: flex; gap: .7rem; margin-top: 1.4rem; flex-wrap: wrap; }
.hero-actions a {
  flex: 1; min-width: 90px; text-align: center;
  background: rgba(255,255,255,.05); border: 1px solid rgba(232,193,90,.14); border-radius: 14px; padding: .8rem .5rem;
  color: var(--text); font-size: .78rem; font-weight: 700;
}
.hero-actions a:hover { background: rgba(232,193,90,.1); }
.hero-actions .a-icon {
  width: 34px; height: 34px; border-radius: 10px; background: rgba(232,193,90,.16); color: var(--gold);
  display: flex; align-items: center; justify-content: center; margin: 0 auto .4rem;
}
.hero-actions .a-icon .icon { width: 17px; height: 17px; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 1rem; }
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap table { min-width: 560px; }

/* ---------- logomarca (avatar quadrado arredondado "V") ---------- */
.logo-avatar {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--gradient-gold);
  color: #221a05; font-weight: 800; font-size: .95rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-avatar.sm { width: 26px; height: 26px; border-radius: 8px; font-size: .8rem; }
.logo-avatar.lg { width: 56px; height: 56px; border-radius: 14px; font-size: 1.2rem; background: rgba(232,193,90,.16); color: var(--gold); }

/* ---------- páginas de autenticação (split hero) ---------- */
.auth-wrap { min-height: 100vh; display: flex; }
.auth-hero {
  flex: 1.1;
  background:
    radial-gradient(circle at 15% 15%, rgba(232,193,90,.12), transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(0,0,0,.4), transparent 55%),
    var(--gradient-card);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem;
  color: var(--text);
  border-right: 1px solid rgba(232,193,90,.14);
}
.auth-hero .eyebrow { color: var(--gold); opacity:.9; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; margin-bottom: 1rem; }
.auth-hero h1 { font-size: 2.5rem; line-height: 1.12; max-width: 480px; color: var(--text); font-weight: 800; }
.auth-hero p { color: var(--muted); max-width: 420px; margin-top: 1rem; }
.auth-hero .stat-row { display:flex; gap:2rem; margin-top: 2.5rem; }
.auth-hero .stat-row .s-value { font-size: 1.6rem; font-weight: 800; color: var(--gold); }
.auth-hero .stat-row .s-label { font-size: .72rem; opacity: .75; text-transform: uppercase; letter-spacing: .08em; }
.auth-hero .card-visual {
  margin-top: 2.5rem;
  width: 320px;
  border-radius: var(--radius-lg);
  background: rgba(232,193,90,.06);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(232,193,90,.25);
  position: relative;
  padding: 1.2rem 1.3rem;
  box-shadow: var(--shadow-gold);
}
.auth-hero .card-visual .cv-top { display:flex; justify-content:space-between; align-items:center; margin-bottom: .9rem; }
.auth-hero .card-visual .cv-title { font-size: .78rem; opacity: .8; }
.auth-hero .card-visual .cv-badge { background: rgba(232,193,90,.18); color: var(--gold); font-size: .65rem; padding: .15rem .5rem; border-radius: 999px; }
.auth-hero .card-visual .cv-balance { font-size: 1.7rem; font-weight: 800; }
.auth-hero .card-visual .cv-delta { font-size: .72rem; opacity: .8; margin-top: .2rem; }

.auth-form-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 2rem;
}
.auth-card { width: 100%; max-width: 380px; }
.auth-card .logo-row { display:flex; align-items:center; gap:.6rem; margin-bottom: 1.6rem; }
.auth-card .logo-row span.brand-name { font-family:'Inter',sans-serif; font-size: 1.1rem; font-weight: 800; color: var(--text); }

.auth-tabs { display: flex; gap: .4rem; margin-bottom: 1.5rem; background: var(--surface-2); padding: .3rem; border-radius: 12px; }
.auth-tabs a { flex: 1; text-align: center; padding: .55rem; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: .85rem; }
.auth-tabs a.active { background: var(--gradient-gold); color: #221a05; box-shadow: var(--shadow-card); }

.form-group { margin-bottom: 1.1rem; }
label { display: block; font-size: .78rem; font-weight: 600; margin-bottom: .35rem; color: var(--text-dim); letter-spacing: .01em; }
label.icon-label { display: flex; align-items: center; gap: .4rem; }
label.icon-label .icon { width: 15px; height: 15px; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=date], select, textarea {
  width: 100%;
  padding: .65rem .8rem;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: .92rem;
  font-family: inherit;
}
input::placeholder, textarea::placeholder { color: var(--muted-2); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold-dark);
  box-shadow: var(--ring-gold);
  background: var(--surface-2);
}
input[type=color] { padding: .2rem; height: 40px; }
input[type=checkbox] { accent-color: var(--gold); margin-right: .35rem; }

@media (max-width: 900px) { .auth-hero { display: none; } }

/* ---------- segmented control (abas PIX / Boleto) ---------- */
.segmented { display: flex; gap: .4rem; background: var(--surface-2); padding: .35rem; border-radius: 14px; margin-bottom: 1.25rem; }
.segmented label { flex: 1; margin: 0; }
.segmented input { display: none; }
.segmented .seg-opt {
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .7rem .5rem; border-radius: 11px; cursor: pointer;
  font-weight: 700; font-size: .88rem; color: var(--muted);
  transition: all .15s ease;
}
.segmented input:checked + .seg-opt {
  background: var(--gradient-gold); color: #221a05;
  box-shadow: 0 6px 16px -6px rgba(232,193,90,.4);
}
.seg-badge { font-size: .62rem; background: rgba(255,255,255,.2); padding: .1rem .5rem; border-radius: 999px; }
.segmented input:not(:checked) + .seg-opt .seg-badge { background: rgba(232,193,90,.14); color: var(--gold); }

/* ---------- pills de valor rápido ---------- */
.quick-pills { display: flex; gap: .5rem; flex-wrap: wrap; margin: .75rem 0 1.1rem; }
.quick-pill {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px;
  padding: .4rem 1rem; font-size: .82rem; font-weight: 700; color: var(--text-dim); cursor: pointer;
}
.quick-pill:hover { border-color: var(--gold-dark); color: var(--gold); }

/* ---------- resumo de taxas (mini recibo) ---------- */
.fee-box { background: var(--surface-2); border-radius: 14px; padding: 1rem 1.1rem; margin: 1rem 0; }
.fee-row { display: flex; justify-content: space-between; padding: .35rem 0; font-size: .88rem; color: var(--text-dim); }
.fee-row.total { border-top: 1px dashed var(--border); margin-top: .3rem; padding-top: .6rem; font-weight: 800; color: var(--text); }
.fee-row .fv { font-weight: 700; }
.fee-row.total .fv { color: var(--gold); font-size: 1.05rem; }

.notice-box {
  display: flex; gap: .6rem; align-items: flex-start;
  background: rgba(232,193,90,.08); border: 1px solid rgba(232,193,90,.25); border-radius: 12px;
  padding: .8rem 1rem; font-size: .82rem; color: var(--text-dim); margin-bottom: 1.1rem;
}
.notice-box .icon { color: var(--gold); margin-top: .1rem; }

/* ---------- shell do app ---------- */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 250px;
  background: var(--sidebar-bg);
  border-right: 1px solid rgba(232,193,90,.1);
  color: var(--sidebar-text);
  padding: 1.4rem 1rem;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}
.sidebar .brand {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  display: flex; align-items: center; gap: .6rem;
  padding-left: .25rem;
  color: var(--gold);
  letter-spacing: .02em;
}
.sidebar nav { display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.sidebar nav a {
  display: flex; align-items:center; gap:.7rem;
  padding: .65rem .85rem;
  border-radius: 11px;
  color: var(--sidebar-text);
  font-size: .87rem;
  font-weight: 600;
}
.sidebar nav a:hover { background: var(--sidebar-bg-2); color: var(--text); }
.sidebar nav a.active { background: rgba(232,193,90,.12); border: 1px solid rgba(232,193,90,.3); color: var(--gold); font-weight: 700; }
.sidebar nav a.subtle { color: var(--sidebar-text-dim); font-weight: 600; }
.sidebar .sidebar-foot { border-top: 1px solid rgba(232,193,90,.1); margin-top: .6rem; padding-top: .6rem; }
.sidebar nav .icon { width:18px; height:18px; flex-shrink:0; }

.main { flex: 1; min-width: 0; background: var(--bg); }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 1.75rem;
  background: var(--sidebar-bg);
  border-bottom: 1px solid rgba(232,193,90,.1);
  position: sticky; top: 0; z-index: 20;
  gap: .75rem;
}
.topbar .balance-block .label { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.topbar .balance-block .amount { font-weight: 800; font-size: 1.15rem; color: var(--gold); }
.topbar .top-right { display: flex; align-items: center; gap: 1.1rem; }
.topbar .bell-wrap { position: relative; color: var(--text-dim); display:flex; }
.topbar .bell-wrap .icon { width: 21px; height: 21px; }
.topbar .user-block { display: flex; align-items: center; gap: .6rem; }
.topbar .user-block .u-text { text-align: right; line-height: 1.25; }
.topbar .user-block .u-email { font-size: .74rem; color: var(--muted); }
.topbar .user-block .u-name { font-size: .85rem; font-weight: 700; color: var(--text); }
.topbar .hamburger-btn { display: none; background: none; border: none; cursor: pointer; color: var(--text-dim); padding: 0; }

.content { padding: 1.75rem; }

/* ---------- menu inferior mobile ---------- */
.bottom-nav { display: none; }
.more-sheet { display: none; }

@media (max-width: 860px) {
  .app-shell { flex-direction: column; }
  .sidebar { display: none; }
  .content { padding: 1rem; padding-bottom: calc(var(--bottom-nav-h) + 1.25rem); }
  .topbar { padding: .8rem 1rem; }
  .topbar .balance-block .amount { font-size: .95rem; }
  .topbar .user-block .u-text { display: none; }
  .topbar .hamburger-btn { display: inline-flex; }

  .bottom-nav {
    display: flex;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--sidebar-bg);
    border-top: 1px solid rgba(232,193,90,.12);
    box-shadow: 0 -6px 20px -10px rgba(0,0,0,.5);
    padding-bottom: env(safe-area-inset-bottom, 0);
    height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0));
  }
  .bottom-nav a {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem;
    color: var(--muted); font-size: .66rem; font-weight: 700;
  }
  .bottom-nav a.active { color: var(--gold); }
  .bottom-nav .icon { width: 22px; height: 22px; }
  .bottom-nav .fab {
    margin-top: -22px;
    width: 50px; height: 50px; border-radius: 16px;
    background: var(--gradient-gold);
    color: #221a05; display:flex; align-items:center; justify-content:center;
    box-shadow: var(--shadow-gold);
  }
  .bottom-nav .fab .icon { width: 24px; height: 24px; }
  .admin-menu-btn { display: inline-block !important; }

  .more-sheet.open { display: block; }
  .more-sheet {
    position: fixed; inset: 0; z-index: 50;
    background: rgba(0,0,0,.6);
  }
  .more-sheet .sheet-inner {
    position: absolute; top: 0; left: 0; bottom: 0;
    width: 78%; max-width: 300px;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    border-radius: 0 20px 20px 0;
    padding: 1.1rem 1rem calc(1.5rem + env(safe-area-inset-bottom,0));
    box-shadow: 14px 0 30px rgba(0,0,0,.5);
    transform: translateX(-100%);
    transition: transform .25s ease;
    overflow-y: auto;
    border-right: 1px solid rgba(232,193,90,.14);
  }
  .more-sheet.open .sheet-inner { transform: translateX(0); }
  .more-sheet .sheet-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 1px solid rgba(232,193,90,.12);
  }
  .more-sheet .sheet-head strong { font-size: .95rem; color: var(--gold); }
  .more-sheet .sheet-close {
    background: var(--sidebar-bg-2); border: none; width: 30px; height: 30px; border-radius: 50%;
    color: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer;
  }
  .more-sheet nav a {
    display: flex; align-items:center; gap:.7rem;
    padding: .8rem .5rem; font-weight: 600; color: var(--sidebar-text); font-size: .92rem;
    border-bottom: 1px solid rgba(232,193,90,.08);
  }
  .more-sheet nav a:last-child { border-bottom: none; }
  .more-sheet nav a.active { color: var(--gold); }
}

/* ---------- cartão de saldo (dashboard) ---------- */
.balance-card .top-row { display:flex; justify-content: space-between; align-items:center; }
.balance-card .top-row .acct-name { font-weight: 700; font-size: .92rem; color: var(--text); }
.balance-card .greeting { font-size: .8rem; color: var(--muted); }
.balance-card .status-pill { font-size: .68rem; font-weight: 700; padding: .3rem .8rem; border-radius: 999px; display:flex; align-items:center; gap:.3rem; }
.balance-card .label { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; margin-top: 1.3rem; display:flex; align-items:center; gap:.4rem; color: var(--muted); }
.balance-card .balance-amount { font-size: 2.4rem; margin-top: .2rem; display:flex; align-items:center; gap:.6rem; color: var(--text); }
.balance-card .balance-amount button { background:none; border:none; cursor:pointer; color: var(--muted); opacity:.8; }
.balance-card .delta { font-size: .8rem; margin-top: .3rem; font-weight: 700; color: var(--gold); }

/* ---------- mini stat bar (Saldo atual / Saldo disponível nas páginas internas) ---------- */
.mini-hero {
  background: var(--gradient-card); border: 1px solid rgba(232,193,90,.22); border-radius: var(--radius-lg); padding: 1.1rem 1.4rem;
  color: var(--text); display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.3rem; box-shadow: var(--shadow-gold);
}
.mini-hero .label { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; opacity: .8; color: var(--muted); }
.mini-hero .amount { font-size: 1.7rem; font-weight: 800; margin-top: .15rem; color: var(--text); }
.mini-hero .sub { font-size: .74rem; opacity: .8; margin-top: .2rem; color: var(--muted); }
.mini-hero .mh-icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--gradient-gold); color: #221a05;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.mini-hero .mh-icon .icon { width: 22px; height: 22px; }

/* ---------- página de listagem (entradas/saídas/extratos) ---------- */
.page-head { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: 1.3rem; }
.page-head .ph-icon {
  width: 42px; height: 42px; border-radius: 12px; display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.page-head .ph-icon.in { background: var(--success-soft); color: var(--success); }
.page-head .ph-icon.out { background: var(--danger-soft); color: var(--danger); }
.page-head .ph-icon.neutral { background: rgba(232,193,90,.14); color: var(--gold); }
.page-head h2 { margin-bottom: .15rem; }
.page-head p { margin: 0; color: var(--muted); font-size: .88rem; }

.stat-mini-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-bottom: 1.3rem; }
.stat-mini-row.cols-4 { grid-template-columns: repeat(4,1fr); }
@media (max-width: 900px) { .stat-mini-row.cols-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 700px) { .stat-mini-row { grid-template-columns: 1fr; } }
.stat-mini { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 1.1rem 1.2rem; }
.stat-mini .sm-top { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.stat-mini .sm-icon { width: 30px; height: 30px; border-radius: 9px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.stat-mini .sm-icon.in { background: var(--success-soft); color: var(--success); }
.stat-mini .sm-icon.out { background: var(--danger-soft); color: var(--danger); }
.stat-mini .sm-icon.pending { background: rgba(232,193,90,.14); color: var(--gold); }
.stat-mini .sm-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.stat-mini .sm-value { font-size: 1.4rem; font-weight: 800; color: var(--text); }

.filter-row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.filter-pills { display: flex; gap: .5rem; flex-wrap: wrap; flex: 1; }
.filter-pill {
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: .45rem 1rem; font-size: .82rem; font-weight: 700; color: var(--text-dim);
  display: flex; align-items: center; gap: .35rem;
}
.filter-pill .icon { width: 15px; height: 15px; }
.filter-pill.active { background: var(--gradient-gold); color: #221a05; border-color: transparent; }
.search-box { position: relative; min-width: 200px; }
.search-box input { padding-left: 2.2rem; }
.search-box .icon { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); color: var(--muted); width: 16px; height: 16px; }

.tx-list { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); overflow: hidden; }
.tx-row { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--border-soft); }
.tx-row:hover { background: var(--surface-2); }
.tx-row:last-child { border-bottom: none; }
.tx-row .tx-icon { width: 38px; height: 38px; border-radius: 10px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.tx-row .tx-icon.in { background: var(--success-soft); color: var(--success); }
.tx-row .tx-icon.out { background: var(--danger-soft); color: var(--danger); }
.tx-row .tx-icon.neutral { background: rgba(232,193,90,.14); color: var(--gold); }
.tx-row .tx-main { flex: 1; min-width: 0; }
.tx-row .tx-title { font-weight: 700; font-size: .92rem; color: var(--text); }
.tx-row .tx-sub { font-size: .78rem; color: var(--muted); display: flex; align-items: center; gap: .4rem; margin-top: .1rem; }
.tx-row .tx-amount { font-weight: 800; font-size: .95rem; white-space: nowrap; }
.tx-row .tx-amount.in { color: var(--success); }
.tx-row .tx-amount.out { color: var(--text); }
.tx-empty { padding: 3rem 1.5rem; text-align: center; color: var(--muted); }
.tx-empty .tx-empty-icon {
  width: 56px; height: 56px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; color: var(--muted-2);
}

/* ---------- badges/pills gerais de identidade ---------- */
.id-pill { background: rgba(232,193,90,.14); color: var(--gold); font-size: .72rem; font-weight: 700; padding: .3rem .8rem; border-radius: 999px; display:inline-flex; align-items:center; gap:.35rem; }

/* fee tiles (taxas e tarifas) */
.fee-tile { border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 1.1rem 1.2rem; background: var(--surface-2); }
.fee-tile .ft-top { display: flex; align-items: center; gap: .7rem; margin-bottom: .6rem; }
.fee-tile .ft-icon { width: 34px; height: 34px; border-radius: 9px; background: rgba(232,193,90,.16); color: var(--gold); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.fee-tile .ft-title { font-weight: 700; font-size: .92rem; color: var(--text); }
.fee-tile .ft-desc { font-size: .78rem; color: var(--muted); margin-bottom: .7rem; }
.fee-tile .ft-value { font-size: 1.5rem; font-weight: 800; color: var(--gold); }
.fee-tile .ft-value .ft-plus { font-size: .78rem; font-weight: 600; color: var(--muted); margin-left: .3rem; }

/* ---------- progresso ---------- */
.progress-track { background: var(--surface-2); border-radius: 999px; height: 8px; overflow: hidden; margin: .6rem 0; }
.progress-fill { height: 100%; background: var(--gradient-gold); border-radius: 999px; }

/* ---------- cartão de meta/tier (premiações) ---------- */
.tier-card { position: relative; }
.tier-card .tier-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; margin-bottom: .8rem;
}
.tier-card .tier-icon.done { background: var(--success-soft); color: var(--success); }
.tier-card .tier-icon.pending { background: rgba(232,193,90,.14); color: var(--gold); }
.tier-card .tier-badge {
  position: absolute; top: 1.2rem; right: 1.2rem;
  font-size: .65rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--border);
}
.tier-card .reward-box {
  background: var(--surface-2); border-radius: 10px; padding: .6rem .8rem; margin-top: .8rem;
}
.tier-card .reward-box .label { font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.tier-card .reward-box .val { font-size: 1.05rem; font-weight: 800; color: var(--gold); }

/* ---------- tabelas ---------- */
table { width: 100%; border-collapse: collapse; font-size: .87rem; }
th, td { padding: .7rem .6rem; text-align: left; border-bottom: 1px solid var(--border-soft); white-space: nowrap; color: var(--text-dim); }
th { color: var(--muted); font-weight: 700; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
tr:hover td { background: var(--surface-2); }

.badge { display: inline-block; padding: .25rem .65rem; border-radius: 999px; font-size: .7rem; font-weight: 700; letter-spacing: .02em; border: 1px solid transparent; white-space: nowrap; }
.badge-pending { background: rgba(232,193,90,.14); color: var(--gold); border-color: rgba(232,193,90,.3); }
.badge-confirmed { background: var(--success-soft); color: var(--success); border-color: rgba(63,174,106,.35); }
.badge-failed, .badge-cancelled { background: var(--danger-soft); color: var(--danger); border-color: rgba(217,86,79,.35); }
.badge-expired { background: var(--surface-2); color: var(--muted); border-color: var(--border); }

.grid { display: grid; gap: 1.1rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.stat .label { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.stat .value { font-size: 1.7rem; font-weight: 800; margin-top: .2rem; color: var(--text); }

.flash { padding: .8rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1.1rem; font-size: .88rem; border: 1px solid transparent; }
.flash-success { background: var(--success-soft); color: var(--success); border-color: rgba(63,174,106,.35); }
.flash-error { background: var(--danger-soft); color: var(--danger); border-color: rgba(217,86,79,.35); }
.flash-info { background: var(--info-soft); color: var(--info); border-color: rgba(77,143,224,.35); }

.notif-dropdown { position: relative; }
.notif-panel {
  display: none; position: absolute; right: 0; top: 2.4rem; width: 330px; max-width: 88vw; max-height: 420px; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-gold); z-index: 30;
}
.notif-panel.open { display: block; }
.notif-item { padding: .75rem 1rem; border-bottom: 1px solid var(--border-soft); font-size: .84rem; color: var(--text-dim); }
.notif-item.unread { background: rgba(232,193,90,.06); }
.bell-badge {
  position: absolute; top: -6px; right: -8px; background: var(--danger); color: #fff;
  font-size: .62rem; border-radius: 999px; padding: 0 5px; min-width: 16px; text-align:center; font-weight:700;
  border: 2px solid var(--sidebar-bg);
}

hr { border: none; border-top: 1px solid var(--border-soft); }

/* ---------- checkout / produtos ---------- */
.product-thumb {
  width: 100%; aspect-ratio: 16/9; border-radius: 12px; object-fit: cover;
  background: var(--surface-2); display: block;
}
.product-thumb-empty {
  width: 100%; aspect-ratio: 16/9; border-radius: 12px; background: var(--surface-2);
  display: flex; align-items: center; justify-content: center; color: var(--muted-2);
}
.copy-link-box {
  display: flex; gap: .5rem; align-items: center; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 10px; padding: .55rem .7rem; font-size: .82rem;
  color: var(--text-dim); overflow: hidden;
}
.copy-link-box span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-link-box button { background: none; border: none; color: var(--gold); cursor: pointer; flex-shrink: 0; }
.product-card-actions { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .8rem; }
