:root{
  --bg:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --card:#f8fafc;
  --line:#e5e7eb;
  --shadow: 0 8px 24px rgba(15, 23, 42, .08);
  --radius:18px;

  --nav-h: 70px;
  --top-h: 56px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a{ color: inherit; text-decoration:none; }

.app-shell{
  min-height:100vh;
  padding-bottom: calc(var(--nav-h) + 18px);
}

.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--top-h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 0 16px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229,231,235,.7);
}

.topbar__title{
  font-weight: 700;
  font-size: 18px;
}

.icon-btn{
  width: 40px;
  height: 40px;
  border: 1px solid rgba(229,231,235,.9);
  background: #fff;
  border-radius: 14px;
  display:grid;
  place-items:center;
  position:relative;
  box-shadow: 0 6px 18px rgba(15,23,42,.06);
  cursor:pointer;
}

.dot{
  position:absolute;
  right: 9px;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #3b82f6;
}

.dot--inline{
  position: static;
  margin-left: 8px;
  display:inline-block;
  vertical-align: middle;
}

.app-content{
  padding: 14px 2px 30px;
}

.account__header{
  position: relative;
  padding: 10px 0 12px;
}

.account__name{
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.account__meta{
  margin-top: 8px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill{
  display:inline-flex;
  gap: 8px;
  align-items:center;
  border: 1px solid rgba(229,231,235,.9);
  background: #fff;
  padding: 6px 6px;
  border-radius: 999px;
  font-size: 13px;
  color: #111827;
}

.pill--soft{
  background: #f8fafc;
}

.avatar{
  position:absolute;
  right:0;
  top: 6px;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: #e2e8f0;
  display:grid;
  place-items:center;
  color:#334155;
}

.quick{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.quick__btn{
  background: #f1f5f9;
  border: 1px solid rgba(229,231,235,.9);
  border-radius: 18px;
  padding: 14px 10px;
  display:flex;
  flex-direction: column;
  align-items:center;
  justify-content:center;
  gap: 8px;
  cursor:pointer;
}

.quick__btn i{ font-size: 18px; color:#0f172a; }
.quick__btn span{ font-size: 13px; color:#0f172a; font-weight: 600; }

.card{
  background: #fff;
  border: 1px solid rgba(229,231,235,.9);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(15,23,42,.06);
  padding: 14px;
}

.promo{
  margin-top: 14px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 12px;
}

.promo__title{ font-weight: 800; font-size: 14px; }
.promo__sub{ color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.promo__icon{
  width: 52px; height: 52px; border-radius: 16px;
  display:grid; place-items:center;
  background: #eef2ff;
  color:#4f46e5;
  font-size: 18px;
}

.row{
  margin-top: 12px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.row__left{ color:#111827; font-weight: 650; }
.row__right{ font-weight: 900; font-size: 18px; }
.row__right--green{ color:#16a34a; display:flex; align-items:center; gap:8px; font-size: 16px; }

.list{
  margin-top: 14px;
  border: 1px solid rgba(229,231,235,.9);
  border-radius: var(--radius);
  overflow:hidden;
  background:#fff;
  box-shadow: 0 10px 30px rgba(15,23,42,.05);
}

.list__item{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 14px 14px;
  border-bottom: 1px solid rgba(229,231,235,.75);
  background:#fff;
}

.list__item:last-child{ border-bottom:none; }
.list__item i{ width: 20px; text-align:center; color:#0f172a; }
.list__item span{ flex:1; font-weight: 650; }
.chevron{ color:#94a3b8 !important; }

.bottom-nav{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--nav-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(229,231,235,.75);
  display:flex;
  justify-content:space-around;
  align-items:center;
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 60;
}

.bottom-nav__item{
  width: 25%;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 6px;
  font-size: 11px;
  color:#64748b;
  padding: 8px 0;
}

.bottom-nav__item i{ font-size: 18px; }
.bottom-nav__item.is-active{ color:#0f172a; font-weight: 800; }

.fab{
  position: fixed;
  right: 18px;
  bottom: calc(var(--nav-h) + 18px);
  width: 56px;
  height: 56px;
  border-radius: 18px;
  border: none;
  background: #111827;
  color:#fff;
  box-shadow: var(--shadow);
  display:grid;
  place-items:center;
  font-size: 18px;
  cursor:pointer;
  z-index: 70;
}

.fab-menu{
  position: fixed;
  right: 18px;
  bottom: calc(var(--nav-h) + 86px);
  display:none;
  flex-direction: column;
  gap: 10px;
  z-index: 70;
}

.fab-menu.is-open{ display:flex; }

.fab-menu__item{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(229,231,235,.9);
  background:#fff;
  box-shadow: var(--shadow);
  cursor:pointer;
  font-weight: 700;
  color:#0f172a;
}

@media (min-width: 900px){
  .app-content{ max-width: 520px; margin: 0 auto; }
}


/* AUEBA_LAYOUT_FIX_05 */
/* ===== Anti-estouro / layout fiel ao print ===== */
html, body {
  width: 100%;
  overflow-x: hidden;
}

* { box-sizing: border-box; }

/* Container do app */
.container {
  width: 100%;
  max-width: 420px;           /* aparência “app” */
  margin: 0 auto;
  padding: 14px 14px 96px;    /* espaço do bottom-nav */
}

/* Cards nunca estouram */
.card {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

/* Grid e itens internos podem encolher sem estourar */
.card, .card * {
  min-width: 0;
}

input, select, textarea, button {
  max-width: 100%;
}

/* Pills não quebram a tela */
.pill {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Bottom nav fixo tipo app */
.bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 420px;
  z-index: 50;
}

/* FAB (botão +) sempre dentro do “app width” */
.fab {
  position: fixed;
  right: calc(50% - 420px/2 + 14px);
  bottom: 86px;
  z-index: 60;
}

/* Em telas menores que 420, FAB encosta na borda */
@media (max-width: 420px) {
  .fab { right: 14px; }
}

/* Busca (grid) – em telas pequenas vira 1 coluna */
.search-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.search-grid > * { min-width: 0; } /* chave do “não estoura” */

@media (max-width: 360px) {
  .search-grid { grid-template-columns: 1fr; }
  .search-grid .full { grid-column: auto; }
}

/* botão buscar ocupa a linha toda */
.search-grid .full { grid-column: 1 / -1; }


/* AUEBA_FIX03_05 */
.badge-price{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(229,231,235,.9);
  background:#f8fafc;
  font-weight:900;
  font-size:12.5px;
  color:#0f172a;
  max-width:100%;
}
.badge-price .muted{ color:#64748b; font-weight:800; }

