/* =====================================================================
   PERDEU ACHOU — App Mobile
   Design system alinhado com o site Desktop (perdeuachou-frontend):
   azul marinho (#1F3A5F) + laranja de destaque (#C2702E), tipografia
   Manrope, raios e sombras consistentes com o site oficial.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root{
  /* Paleta principal — igual ao site Desktop */
  --ink:        #1A1F2B;   /* --text-dark no desktop */
  --ink-soft:   #62687A;   /* --text-gray no desktop */
  --paper:      #F8F7F4;   /* --bg-light no desktop */
  --paper-2:    #F1EFE9;   /* tom intermédio derivado do bg-light/border */
  --card:       #FFFFFF;   /* --bg-white no desktop */

  --brand:      #1F3A5F;   /* --primary no desktop */
  --brand-dark: #15293F;   /* --primary-dark no desktop */
  --brand-glow: rgba(31, 58, 95, 0.14);

  --accent:     #C2702E;   /* --accent no desktop */
  --accent-dark:#9C5A24;   /* --accent-dark no desktop */
  --accent-glow:rgba(194, 112, 46, 0.16);

  --gold:       #D97706;   /* alinhado ao --warning do desktop */
  --gold-glow:  rgba(217, 119, 6, 0.18);

  --danger:     #DC2626;   /* --danger no desktop */
  --danger-bg:  #FBEAEA;
  --warn:       #D97706;   /* --warning no desktop */
  --warn-bg:    #FBF1DD;
  --ok:         #16A34A;   /* --success no desktop */
  --ok-bg:      #E8F2EC;
  --info:       #1F3A5F;   /* --primary no desktop */
  --info-bg:    #E8EFFD;

  --line:       #E4E2DC;   /* --border no desktop */
  --line-soft:  #EFEDE7;

  /* Raios alinhados à escala do site Desktop (cards 12-14px, botões ~8px) */
  --radius-lg:  14px;
  --radius-md:  12px;
  --radius-sm:  8px;
  --radius-pill: 10px;

  /* Sombras alinhadas ao --shadow do site Desktop */
  --shadow-card: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-float: 0 10px 24px rgba(15,23,42,0.10);

  --tabbar-h: 64px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  --font-display: 'Manrope', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-body: 'Manrope', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

*,*::before,*::after{ box-sizing:border-box; }
html,body{ height:100%; }

html{ -webkit-text-size-adjust:100%; }

body{
  margin:0;
  font-family:var(--font-body);
  background:var(--paper);
  color:var(--ink);
  -webkit-font-smoothing:antialiased;
  overscroll-behavior-y:none;
  line-height:1.45;
}

img{ max-width:100%; display:block; }
button{ font-family:inherit; }
a{ color:inherit; text-decoration:none; }

/* =====================================================================
   APP SHELL
   ===================================================================== */

#app{
  max-width:560px;
  margin:0 auto;
  min-height:100%;
  position:relative;
  background:var(--paper);
  display:flex;
  flex-direction:column;
}

.screen{
  display:none;
  flex-direction:column;
  min-height:100%;
  padding-bottom:calc(var(--tabbar-h) + var(--safe-bottom) + 18px);
  animation:screenIn .28s cubic-bezier(.22,.61,.36,1);
}
.screen.active{ display:flex; }

@keyframes screenIn{
  from{ opacity:0; transform:translateY(10px); }
  to{ opacity:1; transform:translateY(0); }
}

/* Top bar -------------------------------------------------------- */

.topbar{
  position:sticky;
  top:0;
  z-index:30;
  padding:calc(var(--safe-top) + 14px) 18px 14px;
  background:var(--paper);
  display:flex;
  align-items:center;
  gap:12px;
  border-bottom:1px solid transparent;
  transition:border-color .2s, background .2s;
}
.topbar.is-elevated{
  border-bottom-color:var(--line);
  background:var(--paper);
}
.topbar-back{
  width:38px; height:38px;
  border-radius:var(--radius-pill);
  border:none;
  background:var(--paper-2);
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
  color:var(--ink);
  cursor:pointer;
}
.topbar-back svg{ width:20px; height:20px; }
.topbar-title{
  font-family:var(--font-display);
  font-weight:700;
  font-size:1.18rem;
  flex:1;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.topbar-action{
  width:38px; height:38px;
  border-radius:var(--radius-pill);
  border:none;
  background:var(--paper-2);
  display:flex; align-items:center; justify-content:center;
  color:var(--ink);
  cursor:pointer;
  flex-shrink:0;
  position:relative;
}
.topbar-action svg{ width:19px; height:19px; }

/* Content padding -------------------------------------------------- */

.content{
  padding:0 18px 8px;
  flex:1;
}
.content-flush{ padding:0; }

/* =====================================================================
   BOTTOM TAB BAR
   ===================================================================== */

.tabbar{
  position:fixed;
  left:50%;
  bottom:0;
  transform:translateX(-50%);
  width:100%;
  max-width:560px;
  height:calc(var(--tabbar-h) + var(--safe-bottom));
  padding-bottom:var(--safe-bottom);
  background:var(--card);
  border-top:1px solid var(--line);
  display:flex;
  z-index:50;
}
.tab-item{
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:3px;
  border:none;
  background:none;
  color:var(--ink-soft);
  font-size:0.68rem;
  font-weight:600;
  letter-spacing:0.01em;
  cursor:pointer;
  position:relative;
  -webkit-tap-highlight-color:transparent;
}
.tab-item svg{
  width:23px; height:23px;
  stroke-width:2;
  transition:transform .18s;
}
.tab-item.active{ color:var(--brand); }
.tab-item.active svg{ transform:translateY(-1px); }
.tab-item .tab-fab{
  width:46px; height:46px;
  border-radius:var(--radius-pill);
  background:var(--brand);
  color:#fff;
  display:flex; align-items:center; justify-content:center;
  margin-top:-26px;
  box-shadow:0 8px 18px -6px rgba(31,58,95,0.5);
  border:5px solid var(--card);
}
.tab-item .tab-fab svg{ width:24px; height:24px; }
.tab-item.active .tab-fab{ background:var(--brand-dark); }

/* =====================================================================
   TYPOGRAPHY HELPERS
   ===================================================================== */

.h1{ font-family:var(--font-display); font-weight:700; font-size:1.7rem; line-height:1.18; letter-spacing:-0.01em; }
.h2{ font-family:var(--font-display); font-weight:700; font-size:1.32rem; line-height:1.2; }
.h3{ font-family:var(--font-display); font-weight:600; font-size:1.08rem; }
.muted{ color:var(--ink-soft); }
.tiny{ font-size:0.78rem; }
.eyebrow{
  font-size:0.72rem;
  font-weight:700;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:var(--brand);
}

/* =====================================================================
   BUTTONS
   ===================================================================== */

.btn{
  appearance:none;
  border:none;
  border-radius:var(--radius-pill);
  font-family:var(--font-body);
  font-weight:700;
  font-size:0.95rem;
  padding:14px 22px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  cursor:pointer;
  transition:transform .12s, box-shadow .12s, opacity .12s, background .15s;
  text-align:center;
  line-height:1.1;
}
.btn:active{ transform:scale(0.97); }
.btn[disabled]{ opacity:0.55; cursor:default; }
.btn svg{ width:18px; height:18px; flex-shrink:0; }

.btn-primary{ background:var(--brand); color:#fff; box-shadow:0 10px 22px -10px rgba(31,58,95,0.55); }
.btn-accent{ background:var(--accent); color:#fff; box-shadow:0 10px 22px -10px rgba(194,112,46,0.55); }
.btn-soft{ background:var(--paper-2); color:var(--ink); }
.btn-outline{ background:transparent; color:var(--ink); border:1.5px solid var(--line); }
.btn-ghost{ background:transparent; color:var(--brand); padding:10px 6px; }
.btn-danger{ background:var(--danger-bg); color:var(--danger); }
.btn-block{ width:100%; }
.btn-sm{ padding:9px 16px; font-size:0.82rem; border-radius:var(--radius-pill); }
.btn-lg{ padding:17px 24px; font-size:1.02rem; border-radius:18px; }

/* =====================================================================
   FORMS
   ===================================================================== */

.field{ margin-bottom:14px; }
.field label{
  display:block;
  font-size:0.82rem;
  font-weight:700;
  margin-bottom:6px;
  color:var(--ink);
}
.field-hint{ font-size:0.75rem; color:var(--ink-soft); margin-top:5px; }
.input, select.input, textarea.input{
  width:100%;
  border:1.5px solid var(--line);
  background:var(--card);
  border-radius:14px;
  padding:14px 16px;
  font-size:0.96rem;
  font-family:inherit;
  color:var(--ink);
  transition:border-color .15s, box-shadow .15s;
}
.input:focus, select.input:focus, textarea.input:focus{
  outline:none;
  border-color:var(--brand);
  box-shadow:0 0 0 4px var(--brand-glow);
}
textarea.input{ resize:vertical; min-height:84px; }
.input-wrap{ position:relative; }
.input-wrap .input{ padding-right:54px; }
.input-icon-btn{
  position:absolute; right:6px; top:50%; transform:translateY(-50%);
  width:38px; height:38px; border:none; background:none;
  display:flex; align-items:center; justify-content:center;
  color:var(--ink-soft); cursor:pointer; border-radius:var(--radius-pill);
}
.input-icon-btn svg{ width:19px; height:19px; }

.checkrow{
  display:flex; align-items:flex-start; gap:10px;
  font-size:0.86rem; color:var(--ink-soft); line-height:1.4;
}
.checkrow input{ width:19px; height:19px; margin-top:1px; accent-color:var(--brand); flex-shrink:0; }
.checkrow a{ color:var(--brand); font-weight:700; }

/* select chevron */
select.input{
  -webkit-appearance:none; appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6878' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 14px center;
  background-size:18px;
  padding-right:42px;
}

/* =====================================================================
   CARDS / SURFACES
   ===================================================================== */

.card{
  background:var(--card);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-card);
  padding:18px;
}
.card-flat{
  background:var(--paper-2);
  border-radius:var(--radius-md);
  padding:14px 16px;
}
.section{ margin:22px 0; }
.section-head{
  display:flex; align-items:baseline; justify-content:space-between;
  margin-bottom:12px; gap:10px;
}
.section-head .h2{ margin:0; }
.link-more{ font-size:0.82rem; font-weight:700; color:var(--brand); white-space:nowrap; }

/* =====================================================================
   BADGES / CHIPS / STATUS
   ===================================================================== */

.badge{
  display:inline-flex; align-items:center; gap:5px;
  font-size:0.72rem; font-weight:700;
  padding:5px 11px; border-radius:var(--radius-pill);
  letter-spacing:0.01em;
}
.badge-pendente{ background:var(--warn-bg); color:var(--warn); }
.badge-publicado{ background:var(--info-bg); color:var(--info); }
.badge-aguardando{ background:var(--gold-glow); color:#8A5E12; }
.badge-disponivel{ background:var(--accent-glow); color:var(--accent-dark); }
.badge-entregue{ background:var(--ok-bg); color:var(--ok); }
.badge-rejeitado{ background:var(--danger-bg); color:var(--danger); }

.chip{
  display:inline-flex; align-items:center; gap:6px;
  border:1.5px solid var(--line);
  border-radius:var(--radius-pill);
  padding:9px 16px;
  font-size:0.84rem; font-weight:600;
  background:var(--card);
  cursor:pointer;
  white-space:nowrap;
  transition:border-color .15s, background .15s, color .15s;
}
.chip.active{ border-color:var(--brand); background:var(--brand-glow); color:var(--brand-dark); }
.chip-row{ display:flex; gap:8px; overflow-x:auto; padding-bottom:4px; scrollbar-width:none; }
.chip-row::-webkit-scrollbar{ display:none; }

/* =====================================================================
   HOME — HERO
   ===================================================================== */

.hero{
  margin:4px 0 0;
  border-radius:var(--radius-lg);
  background:var(--brand-dark);
  color:#fff;
  padding:26px 20px 76px;
  position:relative;
  overflow:visible;
  isolation:isolate;
}
.hero-eyebrow{
  font-size:0.7rem; font-weight:800; letter-spacing:0.18em; text-transform:uppercase;
  opacity:0.78; margin-bottom:8px;
}
.hero h1{
  font-family:var(--font-display);
  font-size:1.85rem; line-height:1.18; font-weight:700;
  margin:0 0 10px; max-width:88%;
}
.hero p{ font-size:0.92rem; opacity:0.92; max-width:90%; margin:0; }

.hero-search{
  position:absolute;
  left:18px; right:18px; bottom:-28px;
  background:var(--card);
  border-radius:18px;
  padding:6px;
  box-shadow:var(--shadow-float);
  display:flex; align-items:center; gap:8px;
  z-index:2;
}
.hero-search input{
  border:none; outline:none; flex:1; font-size:0.94rem;
  padding:12px 10px; background:none; color:var(--ink); font-family:inherit;
}
.hero-search button{
  width:46px; height:46px; border-radius:14px; border:none;
  background:var(--brand); color:#fff; display:flex; align-items:center; justify-content:center;
  flex-shrink:0; cursor:pointer;
}
.hero-search button svg{ width:20px; height:20px; }

/* Quick actions ----------------------------------------------------- */

.quick-grid{
  margin-top:52px;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
}
.quick-item{
  display:flex; flex-direction:column; align-items:center; gap:8px;
  text-align:center; font-size:0.74rem; font-weight:700; color:var(--ink);
  background:none; border:none; cursor:pointer; padding:0;
}
.quick-icon{
  width:54px; height:54px; border-radius:18px;
  display:flex; align-items:center; justify-content:center;
  background:var(--paper-2);
}
.quick-icon svg{ width:24px; height:24px; color:var(--brand); }
.quick-icon.accent{ background:var(--accent-glow); }
.quick-icon.accent svg{ color:var(--accent); }
.quick-icon.gold{ background:var(--gold-glow); }
.quick-icon.gold svg{ color:#9C5A24; }
.quick-icon.info{ background:var(--info-bg); }
.quick-icon.info svg{ color:var(--info); }

/* Stats strip --------------------------------------------------------*/
.stats-row{
  display:grid; grid-template-columns:repeat(2,1fr); gap:10px;
}
.stat-tile{
  background:var(--card); border-radius:var(--radius-md);
  padding:16px; box-shadow:var(--shadow-card);
}
.stat-num{ font-family:var(--font-display); font-size:1.5rem; font-weight:700; color:var(--brand); }
.stat-label{ font-size:0.76rem; color:var(--ink-soft); margin-top:2px; }

/* =====================================================================
   DOC CARDS (lista de buscar)
   ===================================================================== */

.doc-card{
  display:flex; gap:12px;
  background:var(--card);
  border-radius:var(--radius-md);
  padding:12px;
  box-shadow:var(--shadow-card);
  margin-bottom:10px;
  cursor:pointer;
  align-items:stretch;
}
.doc-card-img{
  width:78px; height:78px; flex-shrink:0; border-radius:13px; overflow:hidden;
  background:var(--paper-2); position:relative;
}
.doc-card-img img{ width:100%; height:100%; object-fit:cover; }
.doc-card-body{ flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; }
.doc-card-title{ font-weight:800; font-size:0.96rem; }
.doc-card-meta{
  font-size:0.79rem; color:var(--ink-soft);
  display:flex; align-items:center; gap:5px;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.doc-card-meta svg{ width:13px; height:13px; flex-shrink:0; }
.doc-card-footer{ margin-top:auto; display:flex; align-items:center; justify-content:space-between; gap:8px; }

/* Skeleton ------------------------------------------------------------*/
.skel{
  background:linear-gradient(100deg, var(--paper-2) 30%, var(--line-soft) 50%, var(--paper-2) 70%);
  background-size:200% 100%;
  animation:skelShine 1.3s ease-in-out infinite;
  border-radius:10px;
}
@keyframes skelShine{ from{ background-position:140% 0; } to{ background-position:-40% 0; } }
.skel-card{ display:flex; gap:12px; padding:12px; border-radius:var(--radius-md); background:var(--card); margin-bottom:10px; box-shadow:var(--shadow-card); }
.skel-img{ width:78px; height:78px; border-radius:13px; flex-shrink:0; }
.skel-lines{ flex:1; display:flex; flex-direction:column; gap:8px; justify-content:center; }
.skel-line{ height:11px; border-radius:6px; }

/* =====================================================================
   EMPTY / ERROR STATES
   ===================================================================== */

.empty{
  text-align:center;
  padding:50px 20px;
  color:var(--ink-soft);
}
.empty-icon{
  width:64px; height:64px; border-radius:20px;
  background:var(--paper-2);
  display:flex; align-items:center; justify-content:center;
  margin:0 auto 16px;
}
.empty-icon svg{ width:28px; height:28px; color:var(--brand); }
.empty h3{ font-family:var(--font-display); color:var(--ink); margin-bottom:6px; font-size:1.05rem; }
.empty p{ font-size:0.86rem; max-width:280px; margin:0 auto; }

.alert{
  border-radius:14px; padding:13px 15px;
  font-size:0.86rem; font-weight:600;
  display:flex; align-items:flex-start; gap:10px;
  margin-bottom:14px;
}
.alert svg{ width:18px; height:18px; flex-shrink:0; margin-top:1px; }
.alert-danger{ background:var(--danger-bg); color:var(--danger); }
.alert-success{ background:var(--ok-bg); color:var(--ok); }
.alert-warning{ background:var(--warn-bg); color:var(--warn); }
.alert-info{ background:var(--info-bg); color:var(--info); }

/* =====================================================================
   AUTH SCREENS
   ===================================================================== */

.auth-wrap{ padding:32px 22px 40px; display:flex; flex-direction:column; min-height:100%; flex:1; }
.auth-logo{
  display:flex; align-items:center; gap:10px; margin-bottom:30px;
}
.auth-logo img{ width:42px; height:42px; border-radius:12px; object-fit:cover; }
.auth-logo span{ font-family:var(--font-display); font-weight:700; font-size:1.1rem; }
.auth-illustration{
  width:100%; aspect-ratio:16/10; border-radius:var(--radius-lg);
  background:var(--brand-dark);
  display:flex; align-items:center; justify-content:center; margin-bottom:24px;
  position:relative; overflow:hidden;
}
.auth-illustration svg{ width:64px; height:64px; color:#fff; opacity:0.92; }
.auth-divider{
  display:flex; align-items:center; gap:10px;
  color:var(--ink-soft); font-size:0.78rem; margin:18px 0;
}
.auth-divider::before, .auth-divider::after{ content:''; flex:1; height:1px; background:var(--line); }
.auth-switch{ text-align:center; font-size:0.88rem; color:var(--ink-soft); margin-top:auto; padding-top:18px; }
.auth-switch a{ color:var(--brand); font-weight:800; }

/* OTP boxes */
.otp-row{ display:flex; gap:8px; justify-content:center; margin:18px 0; }
.otp-box{
  width:46px; height:56px; border-radius:14px; border:1.5px solid var(--line);
  text-align:center; font-size:1.4rem; font-weight:800; font-family:var(--font-body);
  background:var(--card);
}
.otp-box:focus{ outline:none; border-color:var(--brand); box-shadow:0 0 0 4px var(--brand-glow); }

/* =====================================================================
   PUBLICAR — STEP FLOW
   ===================================================================== */

.steps-track{
  display:flex; align-items:center; gap:6px; margin:6px 0 24px;
}
.step-dot{
  flex:1; height:4px; border-radius:99px; background:var(--line);
  transition:background .25s;
}
.step-dot.done, .step-dot.active{ background:var(--brand); }

.photo-drop{
  border:1.5px dashed var(--line);
  border-radius:var(--radius-lg);
  padding:30px 18px;
  text-align:center;
  background:var(--card);
}
.photo-drop .icon{
  width:56px; height:56px; border-radius:18px; background:var(--brand-glow);
  display:flex; align-items:center; justify-content:center; margin:0 auto 14px;
}
.photo-drop .icon svg{ width:26px; height:26px; color:var(--brand); }
.photo-actions{ display:flex; gap:10px; margin-top:16px; }

.photo-preview{
  border-radius:var(--radius-lg); overflow:hidden; position:relative;
  aspect-ratio:4/3; background:var(--paper-2);
}
.photo-preview img{ width:100%; height:100%; object-fit:cover; }
.photo-preview .retake{
  position:absolute; bottom:12px; right:12px;
  background:rgba(28,26,23,0.65); color:#fff; border:none;
  border-radius:var(--radius-pill); padding:9px 16px; font-size:0.8rem; font-weight:700;
  display:flex; align-items:center; gap:6px; cursor:pointer;
}
.photo-preview .retake svg{ width:15px; height:15px; }

.camera-box{
  border-radius:var(--radius-lg); overflow:hidden; position:relative; background:#000;
  aspect-ratio:4/3;
}
.camera-box video{ width:100%; height:100%; object-fit:cover; }
.camera-shutter{
  position:absolute; bottom:16px; left:50%; transform:translateX(-50%);
  width:64px; height:64px; border-radius:50%; background:#fff; border:4px solid rgba(255,255,255,0.4);
  cursor:pointer;
}

.extra-check{
  display:flex; align-items:center; gap:10px;
  padding:13px 14px; border:1.5px solid var(--line); border-radius:14px;
  margin-bottom:8px; cursor:pointer; font-size:0.9rem; font-weight:600;
  transition:border-color .15s, background .15s;
}
.extra-check input{ width:19px; height:19px; accent-color:var(--brand); }
.extra-check.checked{ border-color:var(--brand); background:var(--brand-glow); }

.review-row{
  display:flex; justify-content:space-between; gap:14px;
  padding:11px 0; border-bottom:1px solid var(--line-soft);
  font-size:0.88rem;
}
.review-row:last-child{ border-bottom:none; }
.review-row .label{ color:var(--ink-soft); flex-shrink:0; }
.review-row .value{ font-weight:700; text-align:right; }

/* =====================================================================
   DETALHES
   ===================================================================== */

.detail-photo{
  border-radius:var(--radius-lg); overflow:hidden; position:relative;
  aspect-ratio:4/3; background:var(--paper-2);
}
.detail-photo img{ width:100%; height:100%; object-fit:cover; filter:blur(0px); }
.detail-photo .watermark{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  background:rgba(28,26,23,0.16);
}
.detail-photo .watermark span{
  color:rgba(255,255,255,0.92); font-weight:800; font-size:0.85rem;
  letter-spacing:0.18em; text-transform:uppercase; transform:rotate(-28deg);
  border:2px solid rgba(255,255,255,0.65); padding:6px 18px; border-radius:6px;
}

.kv-table{ width:100%; }
.kv-table tr td{ padding:9px 0; font-size:0.9rem; border-bottom:1px solid var(--line-soft); }
.kv-table tr:last-child td{ border-bottom:none; }
.kv-table td:first-child{ color:var(--ink-soft); width:38%; }
.kv-table td:last-child{ font-weight:700; text-align:right; }

.share-row{ display:flex; gap:8px; }
.share-row .btn{ flex:1; }

/* =====================================================================
   PAGAMENTO
   ===================================================================== */

.method-toggle{ display:flex; gap:8px; margin-bottom:16px; }
.method-toggle button{
  flex:1; padding:13px; border-radius:14px; border:1.5px solid var(--line);
  background:var(--card); font-weight:700; font-size:0.88rem; cursor:pointer; color:var(--ink-soft);
}
.method-toggle button.active{ border-color:var(--brand); background:var(--brand-glow); color:var(--brand-dark); }

.ref-row{
  display:flex; justify-content:space-between; align-items:center;
  padding:12px 0; border-bottom:1px solid var(--line-soft); font-size:0.92rem;
}
.ref-row:last-child{ border-bottom:none; }
.ref-row .ref-val{ font-weight:800; font-family:monospace; font-size:1rem; }

.qr-box{
  display:flex; flex-direction:column; align-items:center; gap:10px; padding:18px 0;
}
.qr-box img{ width:180px; height:180px; border-radius:14px; border:1px solid var(--line); }

.spinner{
  width:20px; height:20px; border-radius:50%;
  border:3px solid rgba(255,255,255,0.35); border-top-color:#fff;
  animation:spin .7s linear infinite; display:inline-block;
}
.spinner.dark{ border-color:var(--line); border-top-color:var(--brand); }
@keyframes spin{ to{ transform:rotate(360deg); } }

.progress-track{ height:6px; border-radius:99px; background:var(--paper-2); overflow:hidden; margin:14px 0; }
.progress-fill{ height:100%; background:var(--brand); border-radius:99px; transition:width .4s; width:0%; }

/* =====================================================================
   RECOMPENSAS
   ===================================================================== */

.rewards-hero{
  border-radius:var(--radius-lg);
  background:var(--brand);
  color:#fff; padding:22px;
  display:flex; flex-direction:column; gap:14px;
}
.rewards-points{ display:flex; align-items:baseline; gap:8px; }
.rewards-points .num{ font-family:var(--font-display); font-size:2.4rem; font-weight:700; }
.rewards-points .lbl{ font-size:0.85rem; opacity:0.9; }
.rewards-progress{ height:8px; border-radius:99px; background:rgba(255,255,255,0.3); overflow:hidden; }
.rewards-progress > div{ height:100%; background:#fff; border-radius:99px; transition:width .5s; }

.benefit-card{
  display:flex; align-items:center; gap:12px;
  background:var(--card); border-radius:var(--radius-md); padding:14px;
  box-shadow:var(--shadow-card); margin-bottom:10px; cursor:pointer; border:1.5px solid transparent;
}
.benefit-card.selected{ border-color:var(--brand); }
.benefit-icon{
  width:44px; height:44px; border-radius:14px; background:var(--gold-glow);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.benefit-icon svg{ width:20px; height:20px; color:#9C5A24; }
.benefit-info{ flex:1; min-width:0; }
.benefit-points{
  font-weight:800; color:var(--brand); font-size:0.86rem; white-space:nowrap;
}

.history-row{
  display:flex; justify-content:space-between; align-items:center;
  padding:13px 0; border-bottom:1px solid var(--line-soft); font-size:0.86rem;
}
.history-row:last-child{ border-bottom:none; }
.history-row .pts{ font-weight:800; }
.history-row .pts.pos{ color:var(--accent); }
.history-row .pts.neg{ color:var(--danger); }

/* =====================================================================
   MEUS ACHADOS
   ===================================================================== */

.found-row{
  display:flex; align-items:center; gap:12px;
  background:var(--card); border-radius:var(--radius-md); padding:13px;
  box-shadow:var(--shadow-card); margin-bottom:10px;
}
.found-row .ic{
  width:44px; height:44px; border-radius:13px; background:var(--paper-2);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.found-row .ic svg{ width:20px; height:20px; color:var(--brand); }
.found-row .info{ flex:1; min-width:0; }
.found-row .info .t{ font-weight:800; font-size:0.92rem; }
.found-row .info .s{ font-size:0.78rem; color:var(--ink-soft); }

/* =====================================================================
   PERFIL
   ===================================================================== */

.profile-head{
  display:flex; align-items:center; gap:14px; padding:8px 0 22px;
}
.profile-avatar{
  width:64px; height:64px; border-radius:50%;
  background:var(--brand);
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-family:var(--font-display); font-weight:700; font-size:1.5rem;
  flex-shrink:0;
}
.profile-name{ font-family:var(--font-display); font-weight:700; font-size:1.2rem; }
.profile-email{ font-size:0.84rem; color:var(--ink-soft); }

.menu-list{ display:flex; flex-direction:column; gap:6px; }
.menu-item{
  display:flex; align-items:center; gap:13px;
  padding:15px 16px; background:var(--card); border-radius:14px;
  box-shadow:var(--shadow-card); cursor:pointer; border:none; width:100%; text-align:left;
  font-family:inherit; font-size:0.92rem; font-weight:700; color:var(--ink);
}
.menu-item svg{ width:20px; height:20px; color:var(--ink-soft); flex-shrink:0; }
.menu-item .chev{ margin-left:auto; width:16px; height:16px; color:var(--line); }
.menu-item.danger{ color:var(--danger); }
.menu-item.danger svg{ color:var(--danger); }

/* =====================================================================
   PONTOS DE ENTREGA
   ===================================================================== */

.point-card{
  background:var(--card); border-radius:var(--radius-md); padding:14px;
  box-shadow:var(--shadow-card); margin-bottom:10px;
}
.point-card .name{ font-weight:800; font-size:0.96rem; margin-bottom:4px; }
.point-card .addr{ font-size:0.84rem; color:var(--ink-soft); margin-bottom:8px; }
.point-card .meta-row{ display:flex; gap:14px; font-size:0.8rem; color:var(--ink-soft); }
.point-card .meta-row span{ display:flex; align-items:center; gap:5px; }
.point-card .meta-row svg{ width:14px; height:14px; }

/* =====================================================================
   MODAL / SHEET
   ===================================================================== */

.sheet-overlay{
  position:fixed; inset:0; background:rgba(28,26,23,0.45);
  z-index:90; display:none; align-items:flex-end; justify-content:center;
}
.sheet-overlay.active{ display:flex; }
.sheet{
  background:var(--paper); width:100%; max-width:560px;
  border-radius:24px 24px 0 0; padding:22px 20px calc(24px + var(--safe-bottom));
  max-height:85vh; overflow-y:auto;
  animation:sheetUp .25s cubic-bezier(.22,.61,.36,1);
}
@keyframes sheetUp{ from{ transform:translateY(100%); } to{ transform:translateY(0); } }
.sheet-handle{ width:40px; height:4px; border-radius:99px; background:var(--line); margin:0 auto 16px; }

/* =====================================================================
   TOAST
   ===================================================================== */

#toast{
  position:fixed; left:50%; bottom:calc(var(--tabbar-h) + var(--safe-bottom) + 18px);
  transform:translateX(-50%) translateY(20px);
  background:var(--ink); color:#fff; padding:13px 22px; border-radius:var(--radius-pill);
  font-size:0.86rem; font-weight:700; box-shadow:var(--shadow-float);
  z-index:200; opacity:0; transition:opacity .25s, transform .25s; max-width:88%; text-align:center;
  pointer-events:none;
}
#toast.show{ opacity:1; transform:translateX(-50%) translateY(0); }
#toast.success{ background:var(--accent-dark); }
#toast.danger{ background:#991B1B; }

/* =====================================================================
   SPLASH
   ===================================================================== */

#splash{
  position:fixed; inset:0; z-index:999;
  background:var(--brand-dark);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:16px;
  color:#fff; transition:opacity .4s, visibility .4s;
}
#splash.hide{ opacity:0; visibility:hidden; pointer-events:none; }
#splash img{ width:84px; height:84px; border-radius:22px; box-shadow:0 16px 40px -10px rgba(0,0,0,0.4); }
#splash .splash-name{ font-family:var(--font-display); font-weight:700; font-size:1.5rem; }
#splash .splash-tag{ font-size:0.82rem; opacity:0.85; letter-spacing:0.04em; }

/* =====================================================================
   MISC
   ===================================================================== */

.mt-0{ margin-top:0 !important; }
.row-between{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.fade-in{ animation:screenIn .3s; }
.hidden{ display:none !important; }
.full-bleed{ margin-left:-18px; margin-right:-18px; }
.scroll-x{ overflow-x:auto; scrollbar-width:none; }
.scroll-x::-webkit-scrollbar{ display:none; }

/* =====================================================================
   NOTIFICAÇÕES
   ===================================================================== */

.notif-row {
  display: flex; align-items: flex-start; gap: 13px;
  background: var(--card); border-radius: var(--radius-md);
  padding: 14px; box-shadow: var(--shadow-card);
  margin-bottom: 10px; cursor: pointer; position: relative;
  border: 1.5px solid transparent;
  transition: border-color .15s;
}
.notif-row.notif-new { border-color: var(--brand-glow); background: var(--brand-glow); }
.notif-icon {
  width: 44px; height: 44px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1.2rem;
}
.notif-body { flex: 1; min-width: 0; }
.notif-title { font-weight: 800; font-size: 0.92rem; margin-bottom: 3px; }
.notif-msg { font-size: 0.81rem; color: var(--ink-soft); line-height: 1.4; }
.notif-date { font-size: 0.74rem; color: var(--ink-soft); margin-top: 5px; opacity: 0.75; }
.notif-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--brand); flex-shrink: 0; margin-top: 4px;
}
.notif-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--brand); color: #fff;
  font-size: 0.62rem; font-weight: 800;
  padding: 2px 5px; border-radius: 99px;
  min-width: 16px; text-align: center;
  line-height: 1.5;
}
