/* =========================================================
   CONTA DO CLIENTE (conta.js)
   ========================================================= */
.header-icons a.logged { position: relative; }
.header-icons a.logged::after { content: ""; position: absolute; top: 8px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 2px var(--white); }

.spin { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: acc-spin .7s linear infinite; }
.spin.dark { color: var(--ink); width: 28px; height: 28px; }
@keyframes acc-spin { to { transform: rotate(360deg); } }
.btn.loading { pointer-events: none; opacity: .85; }
.btn:disabled { cursor: default; }
.acc-loading { display: grid; place-items: center; min-height: 220px; }

/* ---------- login / cadastro ---------- */
.auth-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); max-width: 1180px; margin: 40px auto 80px; border: 1px solid var(--line); background: var(--white); }
.auth-side { background: var(--black); color: var(--cream); padding: 56px 48px; display: flex; flex-direction: column; gap: 28px; position: relative; overflow: hidden; }
.auth-side::after { content: "RJ"; position: absolute; right: -20px; bottom: -70px; font-family: var(--display); font-size: 260px; line-height: 1; color: rgba(242, 163, 27, .08); pointer-events: none; }
.auth-kicker { font-size: 11px; font-weight: 800; letter-spacing: .2em; color: var(--orange); }
.auth-side h1 { font-family: var(--display); font-size: clamp(44px, 5vw, 72px); line-height: .95; text-transform: uppercase; }
.auth-side ul { list-style: none; display: grid; gap: 18px; position: relative; z-index: 1; }
.auth-side li { display: grid; gap: 2px; padding-left: 22px; position: relative; }
.auth-side li::before { content: ""; position: absolute; left: 0; top: 6px; width: 10px; height: 10px; background: var(--orange); }
.auth-side li b { font-size: 15px; }
.auth-side li span { font-size: 13px; color: rgba(242, 234, 219, .65); }
.auth-main { padding: 40px 48px 48px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--black); margin-bottom: 32px; }
.seg a { text-align: center; padding: 13px 0; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; transition: background .2s, color .2s; }
.seg a.on { background: var(--black); color: var(--white); }
.acc-form h2 { font-family: var(--display); font-size: 34px; text-transform: uppercase; line-height: 1; margin-bottom: 6px; }
.acc-form h3 { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.acc-form .sub { color: var(--muted); font-size: 14px; margin-bottom: 22px; line-height: 1.5; }
.acc-form .btn { margin-top: 6px; }
.acc-form .row2 > .field { min-width: 0; }
.acc-form .field input { width: 100%; min-width: 0; }
.field .err { color: #c0392b; font-size: 12px; font-weight: 600; }
.field .err:empty { display: none; }
.field .hint { font-size: 12px; color: var(--muted); }
.field .hint a { text-decoration: underline; }
.field.bad input { border-color: #c0392b; background: #fff7f6; }
.field input:disabled { background: var(--gray); color: var(--muted); }
.form-msg { padding: 12px 14px; font-size: 13px; font-weight: 600; margin-bottom: 16px; border-left: 3px solid; }
.form-msg.bad { background: #fdecea; border-color: #c0392b; color: #8e2a1f; }
.form-msg.ok { background: #edf3e8; border-color: var(--green); color: var(--green); }
.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 50px; }
.eye { position: absolute; right: 0; top: 0; height: 48px; width: 48px; display: grid; place-items: center; color: var(--muted); }
.eye svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.eye.on { color: var(--ink); }
.meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 4px; }
.meter i { height: 4px; background: var(--line); transition: background .25s; }
.meter[data-s="1"] i:nth-child(-n+1) { background: #c0392b; }
.meter[data-s="2"] i:nth-child(-n+2) { background: var(--orange); }
.meter[data-s="3"] i:nth-child(-n+3) { background: #7a9a3a; }
.meter[data-s="4"] i { background: var(--green); }
.rules { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); }
.rules li::before { content: "○ "; }
.rules li.ok { color: var(--green); }
.rules li.ok::before { content: "✓ "; }
.acc-form .check { align-items: flex-start; line-height: 1.45; margin: 4px 0 12px; }
.acc-form .check input { margin-top: 3px; flex: none; width: 16px; height: 16px; accent-color: var(--black); }
.acc-form .check a { text-decoration: underline; }
.acc-form [data-f="terms"] { margin-bottom: 4px; }
.acc-form [data-f="terms"] .check { margin-bottom: 0; }
.link-sm { font-size: 13px; text-decoration: underline; color: var(--ink); display: inline-block; }
.link-sm.red { color: #c0392b; }
.acc-form > .link-sm { margin: -4px 0 18px; }
.switch { text-align: center; font-size: 13px; color: var(--muted); margin-top: 18px; }
.switch a { color: var(--ink); font-weight: 700; text-decoration: underline; }
.auth-solo { max-width: 460px; margin: 20px auto; border: 1px solid var(--line); padding: 40px; }
.auth-solo > h2 { font-family: var(--display); font-size: 34px; text-transform: uppercase; margin-bottom: 8px; }
.auth-solo > .sub, .auth-solo > p { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
#verifyBox { text-align: center; display: grid; justify-items: center; gap: 10px; }
#verifyBox .btn { width: 100%; }
.back { font-size: 13px; color: var(--muted); display: inline-block; margin-bottom: 16px; }
.big-check { width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: var(--white); display: grid; place-items: center; font-size: 30px; margin-bottom: 14px; }
.acc-form .big-check { margin-inline: auto; }

/* ---------- minha conta ---------- */
.acc { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; max-width: 1180px; margin: 0 auto; padding: 48px 32px 90px; }
.acc-nav { position: sticky; top: 100px; align-self: start; min-width: 0; }
.acc-me { display: flex; gap: 12px; align-items: center; padding-bottom: 20px; margin-bottom: 12px; border-bottom: 1px solid var(--line); min-width: 0; }
.acc-me > div { min-width: 0; display: grid; }
.acc-me b { font-size: 16px; }
.acc-me small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--orange); color: var(--black); display: grid; place-items: center; font-family: var(--display); font-size: 18px; }
.acc-nav nav { display: grid; gap: 2px; }
.acc-nav nav a, .acc-nav nav button { display: flex; align-items: center; gap: 12px; padding: 12px 14px; font-size: 14px; font-weight: 600; text-align: left; border-left: 3px solid transparent; transition: background .15s; }
.acc-nav nav a:hover, .acc-nav nav button:hover { background: var(--gray); }
.acc-nav nav a.on { border-left-color: var(--orange); background: var(--gray); font-weight: 800; }
.acc-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; flex: none; }
.acc-nav nav button { color: var(--muted); margin-top: 8px; }
.acc-title { font-family: var(--display); font-size: clamp(36px, 5vw, 60px); text-transform: uppercase; line-height: 1; margin-bottom: 28px; }
.verify-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #fff6e3; border: 1px solid #f3d38e; padding: 12px 16px; font-size: 13px; margin-bottom: 24px; flex-wrap: wrap; }
.card-form { border: 1px solid var(--line); padding: 28px; max-width: 640px; }
.card-form + .danger { margin-top: 24px; }
.acc-empty { border: 1px dashed var(--line); padding: 56px 24px; text-align: center; display: grid; justify-items: center; gap: 10px; }
.acc-empty svg { width: 44px; height: 44px; fill: none; stroke: var(--muted); stroke-width: 1.4; }
.acc-empty h3 { font-size: 18px; }
.acc-empty p { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.danger { max-width: 640px; border: 1px solid #f0c6c0; padding: 22px 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.danger h3 { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px; }
.danger p { font-size: 13px; color: var(--muted); }
.danger-btn { border-color: #c0392b; color: #c0392b; height: 44px; padding: 0 20px; }
.danger-fill { background: #c0392b; border-color: #c0392b; color: var(--white); }
.addr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.addr { border: 1px solid var(--line); padding: 20px; display: flex; flex-direction: column; gap: 10px; text-align: left; min-height: 190px; }
.addr.is-default { border: 2px solid var(--black); }
.addr-top { display: flex; justify-content: space-between; align-items: center; }
.addr p { font-size: 14px; line-height: 1.55; color: #3a3833; flex: 1; }
.addr-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.pill { font-size: 10px; font-weight: 800; letter-spacing: .12em; background: var(--orange); padding: 4px 8px; }
.addr-new { border-style: dashed; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: var(--muted); transition: border-color .2s, color .2s; }
.addr-new span { font-size: 34px; line-height: 1; font-weight: 400; }
.addr-new:hover { border-color: var(--black); color: var(--ink); }
.row-street { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 12px; }
.row-city { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 70px; gap: 12px; }
.modal.acc-modal { width: min(560px, 100%); }
.confirm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.confirm-row .btn { margin: 0; padding: 0 12px; }

@media (max-width: 900px) {
  .auth-page { grid-template-columns: minmax(0, 1fr); margin: 0 0 60px; border: 0; }
  .auth-side { padding: 32px 20px; gap: 18px; }
  .auth-side ul { grid-template-columns: 1fr 1fr; gap: 14px; }
  .auth-main { padding: 28px 16px 40px; }
  .acc { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 24px 16px 70px; }
  .acc-nav { position: static; }
  .acc-nav nav { display: flex; overflow-x: auto; gap: 6px; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .acc-nav nav::-webkit-scrollbar { display: none; }
  .acc-nav nav a, .acc-nav nav button { flex: none; border: 1px solid var(--line); padding: 10px 14px; font-size: 13px; margin: 0; }
  .acc-nav nav a.on { border-color: var(--black); background: var(--black); color: var(--white); }
  .card-form { padding: 20px 16px; }
  .auth-solo { padding: 28px 16px; border: 0; margin: 0 auto; }
}
@media (max-width: 480px) {
  .acc-form .row2, .row-city { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .row-street { grid-template-columns: minmax(0, 1fr) 90px; }
  .auth-side ul { grid-template-columns: minmax(0, 1fr); }
  .auth-side li span { display: none; }
  .auth-side h1 { font-size: 40px; }
  .danger { padding: 18px 16px; }
}

/* corta o 1px que os ícones do header vazavam no celular (já existia antes) */
body { overflow-x: clip; }

/* anti-robô e atividade */
.cf-field { margin: 4px 0 10px; }
.cf-box:empty { display: none; }
.activity { margin-top: 24px; }
.activity h3 { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
.activity .hint { display: block; margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.card-form > .hint { display: block; margin-top: 10px; }
.ev-list { list-style: none; display: grid; }
.ev-list li { display: grid; gap: 2px; padding: 11px 0 11px 14px; border-bottom: 1px solid var(--line); position: relative; font-size: 14px; }
.ev-list li::before { content: ""; position: absolute; left: 0; top: 17px; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.ev-list li.warn::before { background: #c0392b; }
.ev-list li.warn b { color: #8e2a1f; }
.ev-list li span { font-size: 12px; color: var(--muted); }
.ev-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; font-size: 13px; color: var(--muted); }
.ev-foot .btn { height: 42px; padding: 0 16px; font-size: 11px; }
