/* =====================================================
   header-fix.css — cabeçalho laranja fixo + menu da conta
   ===================================================== */
#rs-header { position: sticky; top: 0; z-index: 60; background: var(--primary); color: #fff; }
.hdr { max-width: 1480px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 28px; height: 64px; }
#rs-header .logo { color: #fff; font-size: 26px; }
#rs-header .logo span { color: #fff; opacity: .85; }
.logo-mark { display: none; width: 40px; height: 40px; border-radius: 10px; background: #fff; color: var(--primary); font-style: italic; font-weight: 900; font-size: 19px; place-items: center; letter-spacing: -.06em; }
.hdr-nav { display: flex; gap: 2px; align-self: stretch; }
.hdr-nav a { display: flex; align-items: center; padding: 0 9px; color: #fff; font-weight: 700; font-size: 14px; text-transform: uppercase; border-bottom: 3px solid transparent; }
.hdr-nav a:hover, .hdr-nav a.active { border-bottom-color: #fff; }
.hdr-right { margin-left: auto; display: flex; align-items: center; gap: 8px; position: relative; }
.hdr-right .icon-btn { color: #fff; }
.hdr-right .icon-btn:hover { background: rgba(255,255,255,.15); }
.hdr-right svg.i { width: 23px; height: 23px; }
.btn-hdr-out { background: transparent; color: #fff; border: 2px solid #fff; text-transform: uppercase; }
.btn-hdr-out:hover { background: rgba(255,255,255,.12); }
.balance { display: flex; flex-direction: column; align-items: center; line-height: 1.1; padding: 5px 12px; background: rgba(0,0,0,.18); border-radius: 8px; color: #fff; cursor: pointer; border: none; font: inherit; }
.balance small { font-size: 10px; text-transform: uppercase; opacity: .85; }
.balance b { font-size: 15px; transition: .3s; }
.balance b.flash { color: #fff3a8; transform: scale(1.08); }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--primary); border: none; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; text-transform: uppercase; }
.acct-pop { position: absolute; top: 52px; right: 0; width: 320px; background: #fff; color: var(--text); border-radius: 14px; box-shadow: 0 12px 40px rgba(20,30,60,.25); padding: 16px; z-index: 100; }
.acct-who { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.acct-who .avatar { background: var(--primary); color: #fff; width: 44px; height: 44px; cursor: default; }
.acct-who b { display: block; font-size: 15px; }
.acct-who small { color: var(--muted); }
.acct-bal { background: var(--card-2); border-radius: 10px; padding: 12px; margin-bottom: 12px; }
.acct-bal div { display: flex; justify-content: space-between; padding: 3px 0; color: var(--muted); }
.acct-bal b { color: var(--text); }
.acct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.acct-grid.three { grid-template-columns: repeat(3, 1fr); }
.acct-pop .btn { width: 100%; padding: 11px; }
.acct-pop .btn-outline.orange { color: var(--primary); }
.acct-pop .btn-dark { margin-bottom: 8px; }
/* painel da conta */
.acct-panel { position: fixed; inset: 0; z-index: 105; background: rgba(10,14,30,.5); display: flex; justify-content: flex-end; }
.ap-box { width: 100%; max-width: 760px; height: 100%; background: var(--bg); display: flex; flex-direction: column; }
.ap-head { background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; height: 64px; font-size: 19px; font-weight: 700; }
.ap-head .icon-btn { background: rgba(255,255,255,.2); border-radius: 50%; width: 38px; height: 38px; color: #fff; }
.ap-head #ap-title { flex: 1; margin-left: 10px; }
.ap-main { flex: 1; display: flex; min-height: 0; position: relative; }
.ap-side { width: 230px; flex: none; background: #fff; border-right: 1px solid var(--line); padding: 10px 8px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.ap-side button { display: flex; align-items: center; gap: 12px; background: none; border: none; padding: 11px 12px; border-radius: 10px; font: inherit; font-size: 15px; cursor: pointer; color: var(--text); text-align: left; }
.ap-side button svg.i { width: 20px; height: 20px; color: var(--primary); flex: none; }
.ap-side button.active { background: #ffe1d4; color: var(--primary); font-weight: 700; }
.ap-head .ap-menu { display: none; }
.ap-body { flex: 1; overflow-y: auto; padding: 14px; }
.ap-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 14px; }
.ap-card h3 { font-size: 17px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ap-saldo { background: var(--card-2); border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.ap-saldo b { font-size: 26px; display: block; margin-top: 8px; }
.ap-saldo hr { border: none; border-top: 1px solid var(--line); margin: 12px 0; }
.ap-saldo div { display: flex; justify-content: space-between; color: var(--muted); padding: 3px 0; }
.ap-saldo div span:last-child { color: var(--text); }
.ap-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ap-btns .btn { padding: 13px; }
.ap-list .mb-item:last-child { border-bottom: none; }
.ap-field label { color: var(--text); font-weight: 700; font-size: 13px; }
.ap-field .input { font-size: 15px; }
@media (max-width: 1100px) { .hdr-nav a { font-size: 13px; padding: 0 6px; } .hdr { gap: 14px; } }
@media (max-width: 1000px) {
  .hdr { height: 60px; gap: 8px; padding: 0 12px; }
  .hdr-nav { display: none; }
  .logo-word { display: none; }
  .logo-mark { display: grid; }
  .hdr-right { gap: 6px; }
  .hdr-right .btn { padding: 9px 12px; font-size: 13px; }
  .acct-pop { position: fixed; top: auto; bottom: 0; left: 0; right: 0; width: auto; border-radius: 18px 18px 0 0; padding: 22px 18px 28px; }
  .ap-box { max-width: none; }
  .ap-head .ap-menu { display: inline-flex; }
  .ap-side { position: absolute; top: 0; bottom: 0; left: 0; width: 78%; max-width: 300px; z-index: 2; transform: translateX(-102%); transition: transform .25s; box-shadow: 4px 0 20px rgba(0,0,0,.18); }
  .ap-box.side-open .ap-side { transform: none; }
  .ap-box.side-open .ap-body { filter: brightness(.6); }
}
@media (max-width: 380px) { .hdr-right .icon-btn.hide-xs { display: none; } }
@media (max-width: 400px) { .hdr-right.logged #hdr-search { display: none; } }
#rs-header .logo span.logo-word { opacity: 1; color: #fff; }
.logo-word em { font-style: inherit; opacity: .8; }
.bell-dot { position: absolute; top: 4px; right: 4px; width: 9px; height: 9px; border-radius: 50%; background: #ffe14d; border: 2px solid var(--primary); }

.app-banner { display: flex; align-items: center; gap: 10px; background: var(--card, #fff); border: 1px solid var(--line, #e3e7f0); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; }
.app-banner.hidden { display: none; }
.app-banner img { border-radius: 10px; flex: none; }
.app-banner div { flex: 1; min-width: 0; line-height: 1.25; }
.app-banner b { display: block; font-size: 14px; }
.app-banner small { color: var(--muted); font-size: 12px; }
.app-banner .btn { flex: none; }
