/* ===== Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

html, body {
  height: 100%;
  overflow: hidden;
  background: #1a1a1c;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

body { display: flex; align-items: center; justify-content: center; }

/* ===== Telefone: tela cheia no mobile, moldura no desktop ===== */
.phone {
  position: relative;
  width: 100vw;
  height: 100vh;   /* fallback para navegadores antigos */
  height: 100svh;  /* "small viewport": nunca fica escondido atrás da barra do navegador */
  background: #000;
  overflow: hidden;
}

@media (min-width: 560px) and (min-height: 760px) {
  body { background: radial-gradient(circle at 50% 30%, #2c2c2e, #101012); }
  .phone {
    width: 402px;
    height: min(844px, calc(100svh - 32px));
    border-radius: 54px;
    border: 12px solid #2a2a2c;
    box-shadow: 0 0 0 2px #4a4a4e, 0 30px 80px rgba(0,0,0,.7);
  }
}

/* ===== Status bar ===== */
.statusbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px 0 32px;
  z-index: 60;
  pointer-events: none;
}
.sb-time { font-size: 16px; font-weight: 600; letter-spacing: .3px; }
.sb-island {
  position: absolute; left: 50%; top: 12px;
  transform: translateX(-50%);
  width: 122px; height: 34px;
  background: #000; border-radius: 20px;
}
.lockscreen ~ .statusbar .sb-island,
.statusbar .sb-island { box-shadow: 0 0 0 1px rgba(255,255,255,.04); }
.sb-right { display: flex; align-items: center; gap: 7px; }
.sb-ico { width: 18px; height: 12px; display: block; }
.sb-batt { display: flex; align-items: center; gap: 4px; }
.sb-batt-pct { font-size: 14px; font-weight: 600; color: #ff3b30; }
.sb-batt-ico { width: 26px; height: 13px; }

/* ===== Telas ===== */
.screen {
  position: absolute;
  inset: 0;
  padding-top: 54px;
}

/* ===== Lock screen ===== */
.lockscreen {
  background: url("../assets/lockscreen.svg") center/cover no-repeat #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}
.lockscreen::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.05) 40%, rgba(0,0,0,.35));
  pointer-events: none;
}
.lock-top { text-align: center; margin-top: 18px; position: relative; z-index: 2; }
.lock-padlock { width: 22px; height: 22px; margin-bottom: 14px; opacity: .9; }
.lock-date { font-size: 21px; font-weight: 500; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.lock-time {
  font-size: 82px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.05;
  text-shadow: 0 2px 14px rgba(0,0,0,.45);
}

.passcode-area { position: relative; z-index: 2; text-align: center; }
.passcode-label { font-size: 17px; font-weight: 500; margin-bottom: 14px; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.passcode-dots { display: flex; gap: 18px; justify-content: center; margin-bottom: 22px; height: 14px; }
.passcode-dots span {
  width: 13px; height: 13px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.85);
  transition: background .1s;
}
.passcode-dots span.filled { background: #fff; }
.passcode-dots.shake { animation: shake .45s; }
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-12px); }
  40% { transform: translateX(10px); }
  60% { transform: translateX(-7px); }
  80% { transform: translateX(5px); }
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 76px);
  gap: 12px 22px;
  justify-content: center;
}
.key {
  width: 76px; height: 76px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-family: inherit;
  transition: background .12s;
}
.key:active { background: rgba(255,255,255,.45); }
.key-num { font-size: 31px; font-weight: 400; line-height: 1.05; }
.key-let { font-size: 9.5px; font-weight: 600; letter-spacing: 2px; opacity: .9; }
.key-empty { background: transparent; pointer-events: none; backdrop-filter: none; }
.key-del { background: transparent; backdrop-filter: none; }
.key-del svg { width: 30px; height: 21px; }

.lock-hint {
  position: relative; z-index: 2;
  font-size: 14px;
  font-style: italic;
  color: rgba(255,255,255,.75);
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
  padding-bottom: 26px;
}

/* ===== iPhone desativado ===== */
.disabled-screen {
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 0 32px;
}
.disabled-title { font-size: 26px; font-weight: 600; }
.disabled-sub { font-size: 17px; color: rgba(255,255,255,.65); }

/* ===== Home ===== */
.home {
  background: url("../assets/lockscreen.svg") center/cover no-repeat #333;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 66px 20px 12px;
  animation: fadeIn .25s ease;
}
.home::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,0,0,.28);
  pointer-events: none;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.app-grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px 14px;
  align-content: start;
}
.app-item { display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer; }
.app-item:active .app-icon { filter: brightness(.75); }
.app-icon {
  width: 62px; height: 62px;
  border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.app-icon svg { width: 36px; height: 36px; }
.app-name {
  font-size: 11.5px; font-weight: 500;
  text-shadow: 0 1px 3px rgba(0,0,0,.6);
  max-width: 74px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.dock {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 12px 12px;
  margin: 0 2px;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 26px;
}
.dock .app-name { display: none; }

/* gradientes dos ícones */
.ic-msg    { background: linear-gradient(180deg, #6bf064, #0fc416); }
.ic-wpp    { background: linear-gradient(180deg, #5ee08a, #0faa53); }
.ic-fotos  { background: #f2f2f7; }
.ic-tel    { background: linear-gradient(180deg, #6bf064, #0fc416); }
.ic-mail   { background: linear-gradient(180deg, #5eb4f8, #1268e0); }
.ic-notas  { background: linear-gradient(180deg, #ffffff 26%, #f7f4e8 26%); }
.ic-bank   { background: linear-gradient(180deg, #3d5a80, #12233d); }
.ic-relogio{ background: #1c1c1e; }
.ic-camera { background: linear-gradient(180deg, #3a3a3c, #1c1c1e); }
.ic-ajustes{ background: linear-gradient(180deg, #b5b5bd, #7c7c84); }
.ic-safari { background: #f2f2f7; }

/* ===== Home indicator ===== */
.home-indicator {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: calc(34px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: calc(9px + env(safe-area-inset-bottom, 0px));
  z-index: 70;
  cursor: pointer;
}
.home-indicator span {
  width: 138px; height: 5px;
  border-radius: 3px;
  background: rgba(255,255,255,.85);
  pointer-events: none;
}
.home-indicator.hi-dark span { background: rgba(0,0,0,.85); } /* telas claras dos apps */
.home-indicator:active span { background: #fff; }

/* ===== Tela de app ===== */
.app-view { background: #fff; color: #000; z-index: 20; }
.app-screen {
  position: absolute; inset: 0;
  padding-top: 54px;
  display: flex; flex-direction: column;
  animation: slideUp .28s cubic-bezier(.3,.9,.35,1);
  background: inherit;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.app-screen.closing { animation: slideDown .24s cubic-bezier(.5,0,.8,.4) forwards; }
@keyframes slideDown {
  from { transform: translateY(0); }
  to { transform: translateY(100%); }
}

.app-nav {
  display: flex; align-items: center;
  min-height: 48px;
  padding: 4px 8px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  position: relative;
  flex: 0 0 auto;
}
.nav-back {
  border: none; background: none;
  color: #0a84ff;
  font-size: 17px;
  font-family: inherit;
  cursor: pointer;
  display: flex; align-items: center;
  padding: 6px 8px;
  z-index: 2;
}
.nav-back .chev { font-size: 26px; line-height: 1; margin-right: 2px; margin-top: -2px; }
.nav-title {
  position: absolute; left: 0; right: 0;
  text-align: center;
  font-size: 17px; font-weight: 600;
  pointer-events: none;
}
.app-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
}

/* ===== Mensagens (iMessage) ===== */
.imessage { background: #fff; }
.imessage .app-nav.im-thread-nav { flex-direction: column; align-items: center; min-height: 76px; padding-top: 2px; }
.im-nav-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(180deg, #c7c7cc, #a7a7ad);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 21px; font-weight: 500;
}
.im-nav-name { font-size: 12px; color: #666; margin-top: 2px; }
.im-nav-back { position: absolute; left: 8px; top: 6px; }
.msg-list { padding: 12px 12px 44px; display: flex; flex-direction: column; gap: 3px; }
.msg-day {
  text-align: center;
  font-size: 11.5px; color: #8e8e93;
  margin: 12px 0 6px;
}
.msg-row { display: flex; }
.msg-row.sent { justify-content: flex-end; }
.bubble {
  max-width: 72%;
  padding: 8px 13px;
  border-radius: 19px;
  font-size: 16px;
  line-height: 1.32;
  user-select: text;
  -webkit-user-select: text;
}
.msg-row.recv .bubble { background: #e9e9eb; color: #000; border-bottom-left-radius: 4px; }
.msg-row.sent .bubble { background: #0a84ff; color: #fff; border-bottom-right-radius: 4px; }
.msg-time { font-size: 10.5px; color: #8e8e93; margin: 1px 0 6px; }
.msg-time.sent { text-align: right; padding-right: 6px; }
.msg-time.recv { text-align: left; padding-left: 6px; }

/* ===== WhatsApp ===== */
.whatsapp { background: #fff; }
.wpp-list-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
}
.wpp-list-item:active { background: #f5f5f5; }
.wpp-avatar {
  width: 50px; height: 50px; border-radius: 50%;
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px; font-weight: 500;
  background: #9aa0a6;
}
.wpp-avatar.sofia { background: #7e57c2; }
.wpp-li-main { flex: 1; min-width: 0; }
.wpp-li-top { display: flex; justify-content: space-between; align-items: baseline; }
.wpp-li-name { font-size: 16.5px; font-weight: 600; }
.wpp-li-date { font-size: 12.5px; color: #8e8e93; }
.wpp-li-preview {
  font-size: 14px; color: #8e8e93;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wpp-chat { background: #e5ddd5; min-height: 100%; padding: 10px 10px 44px; display: flex; flex-direction: column; gap: 4px; }
.wpp-day {
  align-self: center;
  background: #dcf1f4;
  color: #5b6b70;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 8px;
  margin: 6px 0;
  box-shadow: 0 1px 1px rgba(0,0,0,.08);
}
.wpp-row { display: flex; }
.wpp-row.sent { justify-content: flex-end; }
.wpp-bubble {
  max-width: 78%;
  padding: 7px 9px 5px;
  border-radius: 9px;
  font-size: 15.5px;
  line-height: 1.3;
  box-shadow: 0 1px 1px rgba(0,0,0,.12);
  user-select: text;
  -webkit-user-select: text;
  position: relative;
}
.wpp-row.recv .wpp-bubble { background: #fff; border-top-left-radius: 2px; }
.wpp-row.sent .wpp-bubble { background: #d9fdd3; border-top-right-radius: 2px; }
.wpp-meta { display: block; text-align: right; font-size: 10.5px; color: #8696a0; margin-top: 2px; }
.wpp-header-num { font-size: 12.5px; color: #667781; text-align: center; padding: 4px; background: #f0f2f5; }

/* ===== Fotos ===== */
.fotos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 2px 2px 44px;
}
.foto-thumb { aspect-ratio: 1; overflow: hidden; cursor: pointer; background: #d8d8dc; }
.foto-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.foto-thumb:active { opacity: .7; }
.foto-viewer {
  background: #000;
  display: flex; flex-direction: column;
  height: 100%;
}
.foto-viewer .foto-img-wrap { flex: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.foto-viewer img { max-width: 100%; max-height: 100%; object-fit: contain; }
.foto-caption {
  padding: 12px 18px 46px;
  text-align: center;
  color: #fff;
}
.foto-caption .fc-date { font-size: 15px; font-weight: 600; }
.foto-caption .fc-desc { font-size: 13.5px; color: rgba(255,255,255,.75); margin-top: 4px; user-select: text; -webkit-user-select: text; }

/* ===== Telefone ===== */
.telefone { background: #fff; }
.recentes-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 16px;
  border-bottom: 1px solid #f0f0f0;
}
.rec-ico { width: 24px; flex: 0 0 auto; display: flex; justify-content: center; }
.rec-ico svg { width: 20px; height: 20px; }
.rec-main { flex: 1; min-width: 0; }
.rec-name { font-size: 16.5px; }
.rec-name.missed { color: #ff3b30; font-weight: 500; }
.rec-sub { font-size: 13px; color: #8e8e93; }
.rec-right { text-align: right; flex: 0 0 auto; }
.rec-date { font-size: 13px; color: #8e8e93; }
.rec-dur { font-size: 12px; color: #aeaeb2; }
.tabbar {
  flex: 0 0 auto;
  display: flex;
  border-top: 1px solid rgba(0,0,0,.1);
  background: #f9f9f9;
  padding: 6px 0 30px;
}
.tab-item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 10px;
  color: #8e8e93;
}
.tab-item.active { color: #0a84ff; }
.tab-item svg { width: 24px; height: 24px; }

/* ===== Mail ===== */
.mail { background: #fff; }
.mail-item { padding: 11px 16px; border-bottom: 1px solid #f0f0f0; cursor: pointer; }
.mail-item:active { background: #f5f5f5; }
.mail-item-top { display: flex; justify-content: space-between; align-items: baseline; }
.mail-from { font-size: 16px; font-weight: 600; }
.mail-date { font-size: 13px; color: #8e8e93; }
.mail-subject { font-size: 14.5px; margin-top: 1px; }
.mail-preview {
  font-size: 13.5px; color: #8e8e93; margin-top: 1px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mail-open { padding: 14px 16px 44px; }
.mail-open .mo-subject { font-size: 19px; font-weight: 600; }
.mail-open .mo-meta {
  margin: 10px 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
  font-size: 14px; color: #444;
}
.mail-open .mo-meta b { color: #000; }
.mail-open .mo-body { font-size: 15.5px; line-height: 1.5; white-space: pre-wrap; user-select: text; -webkit-user-select: text; }

/* ===== Notas ===== */
.notas { background: #fff; }
.nota-item { padding: 11px 16px; border-bottom: 1px solid #f0f0f0; cursor: pointer; }
.nota-item:active { background: #f5f5f5; }
.nota-title { font-size: 16.5px; font-weight: 600; }
.nota-sub { display: flex; gap: 8px; margin-top: 2px; }
.nota-date { font-size: 13.5px; color: #555; }
.nota-preview { font-size: 13.5px; color: #8e8e93; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.nota-open { padding: 16px 18px 44px; }
.nota-open .no-date { text-align: center; font-size: 12.5px; color: #8e8e93; margin-bottom: 12px; }
.nota-open .no-title { font-size: 21px; font-weight: 700; margin-bottom: 8px; }
.nota-open .no-body { font-size: 15.5px; line-height: 1.5; white-space: pre-wrap; user-select: text; -webkit-user-select: text; }

/* ===== FMBank ===== */
.bank { background: #f2f3f7; }
.bank-header {
  background: linear-gradient(160deg, #3d5a80, #12233d);
  color: #fff;
  padding: 18px 18px 22px;
}
.bank-logo { font-size: 13px; letter-spacing: 2px; opacity: .8; font-weight: 700; }
.bank-account { font-size: 14px; opacity: .85; margin-top: 10px; }
.bank-balance-label { font-size: 12px; opacity: .7; margin-top: 14px; }
.bank-balance { font-size: 30px; font-weight: 700; }
.bank-section-title { font-size: 13px; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: .6px; padding: 16px 16px 6px; }
.bank-tx {
  display: flex; align-items: center; gap: 12px;
  background: #fff;
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f2;
}
.bank-tx-ico {
  width: 38px; height: 38px; border-radius: 50%;
  background: #eef1f6;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.bank-tx-ico svg { width: 19px; height: 19px; }
.bank-tx-main { flex: 1; min-width: 0; }
.bank-tx-desc { font-size: 15px; font-weight: 600; color: #111; }
.bank-tx-sub { font-size: 12.5px; color: #8e8e93; }
.bank-tx-val { font-size: 15px; font-weight: 600; color: #c0392b; white-space: nowrap; }

/* ===== Apps decorativos ===== */
.decor {
  background: #000; color: #fff;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px;
  height: 100%;
  padding-bottom: 60px;
}
.decor .decor-ico { width: 60px; height: 60px; opacity: .4; }
.decor .decor-txt { font-size: 15px; color: rgba(255,255,255,.5); }

/* Safari offline */
.safari-offline {
  background: #fff; color: #000;
  height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 0 36px 70px;
  gap: 8px;
}
.safari-offline .so-ico { width: 64px; height: 64px; margin-bottom: 8px; opacity: .55; }
.safari-offline .so-title { font-size: 20px; font-weight: 700; }
.safari-offline .so-body { font-size: 15px; color: #555; line-height: 1.4; }

/* ============================================================
   EXPANSÃO — componentes novos
   ============================================================ */

/* ---- Badges na home ---- */
.app-icon { position: relative; }
.statusbar { pointer-events: auto; }
.bank-act svg path, .bank-act svg rect, .bank-act svg circle { stroke: #3d5a80; }
.badge {
  position: absolute;
  top: -6px; right: -6px;
  min-width: 21px; height: 21px;
  padding: 0 6px;
  border-radius: 11px;
  background: #ff3b30;
  color: #fff;
  font-size: 12.5px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.35);
}

/* ---- Genéricos ---- */
.empty-state {
  padding: 60px 30px;
  text-align: center;
  color: #8e8e93;
  font-size: 15px;
  line-height: 1.5;
}
.row-chevron { color: #c7c7cc; font-size: 22px; font-weight: 300; }
.search-bar {
  display: flex; align-items: center; gap: 7px;
  margin: 8px 12px;
  padding: 8px 10px;
  background: #e9e9eb;
  border-radius: 10px;
}
.search-bar svg { width: 17px; height: 17px; flex: 0 0 auto; }
.search-bar input {
  border: none; background: none; outline: none;
  font-size: 16px; font-family: inherit;
  width: 100%; color: #000;
}

/* ---- Toast ---- */
#toast {
  position: absolute;
  left: 50%; bottom: 90px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(30,30,32,.92);
  color: #fff;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 85;
  white-space: nowrap;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- Switch iOS ---- */
.switch { position: relative; display: inline-block; width: 51px; height: 31px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span {
  position: absolute; inset: 0;
  background: #e9e9eb;
  border-radius: 16px;
  transition: background .2s;
  cursor: pointer;
}
.switch span::before {
  content: "";
  position: absolute;
  width: 27px; height: 27px;
  left: 2px; top: 2px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0,0,0,.25);
  transition: transform .2s;
}
.switch input:checked + span { background: #34c759; }
.switch input:checked + span::before { transform: translateX(20px); }
.switch input:disabled + span { background: #d8d8dc; cursor: default; }

/* ---- Ajustes (settings) ---- */
.ajustes-app { background: #f2f2f7; }
.ajustes-app .app-content { background: #f2f2f7; }
.settings-profile {
  display: flex; align-items: center; gap: 14px;
  background: #fff;
  padding: 14px 16px;
  margin: 12px 0 0;
  cursor: pointer;
}
.sp-name { font-size: 19px; font-weight: 500; }
.sp-sub { font-size: 13px; color: #8e8e93; }
.settings-group {
  background: #fff;
  margin: 18px 0 0;
  border-top: 1px solid #e5e5ea;
  border-bottom: 1px solid #e5e5ea;
}
.settings-group-title {
  font-size: 13px; color: #6b7280;
  text-transform: uppercase; letter-spacing: .4px;
  padding: 10px 16px 4px;
  background: transparent;
}
.settings-row {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 16px;
  border-bottom: 1px solid #f0f0f2;
  min-height: 44px;
  cursor: pointer;
}
.settings-row:last-child { border-bottom: none; }
.settings-row.disabled { opacity: .55; cursor: default; }
.settings-label { flex: 1; font-size: 16px; color: #000; }
.settings-val { font-size: 15.5px; color: #8e8e93; }
.settings-note { font-size: 13px; color: #8e8e93; padding: 10px 18px; line-height: 1.4; }
.row-icon {
  width: 29px; height: 29px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.row-icon svg { width: 18px; height: 18px; }
.brightness-row input[type="range"] { flex: 1; accent-color: #0a84ff; }
.wifi-check { color: #0a84ff; font-size: 18px; font-weight: 600; }
.battery-bar, .storage-bar {
  height: 8px;
  background: #e5e5ea;
  border-radius: 4px;
  margin: 14px 16px 18px;
  overflow: hidden;
}
.battery-bar span { display: block; height: 100%; background: #ff3b30; }
.storage-bar span { display: block; height: 100%; background: #0a84ff; }
.wall-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 4px 16px 20px;
}
.wall-option { cursor: pointer; text-align: center; }
.wall-option img {
  width: 100%; aspect-ratio: 9/16;
  object-fit: cover;
  border-radius: 12px;
  border: 3px solid transparent;
}
.wall-option.selected img { border-color: #0a84ff; }
.wall-name { font-size: 12.5px; color: #333; margin-top: 4px; }

/* ---- Mensagens: lista de threads ---- */
.im-thread {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
}
.im-thread:active { background: #f5f5f5; }
.im-unread-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #0a84ff;
  flex: 0 0 auto;
}
.msg-row.sent .bubble.sms { background: #34c759; }

/* ---- WhatsApp extras ---- */
.wpp-avatar.marcos { background: #2e7d5b; }
.wpp-avatar.familia { background: #8a6d3b; }
.wpp-avatar.celia { background: #b06a8a; }
.wpp-avatar.fundacao { background: #3d5a80; }
.wpp-unread-badge {
  min-width: 21px; height: 21px;
  padding: 0 6px;
  border-radius: 11px;
  background: #25d366;
  color: #fff;
  font-size: 12.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.wpp-sender { display: block; font-size: 12.5px; font-weight: 600; color: #b06a3a; margin-bottom: 1px; }
.wpp-status-section {
  padding: 12px 16px 4px;
  font-size: 13.5px; color: #667781; font-weight: 600;
}
.wpp-status-plus {
  position: absolute; bottom: -2px; right: -2px;
  width: 20px; height: 20px;
  background: #0a84ff; color: #fff;
  border-radius: 50%;
  font-size: 14px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}
.wpp-status-seen { box-shadow: 0 0 0 2.5px #c7c7cc; }

/* ---- Fotos: segmentado / álbuns ---- */
.seg {
  display: flex;
  background: #e9e9eb;
  border-radius: 9px;
  margin: 10px 14px;
  padding: 2px;
}
.seg-btn {
  flex: 1;
  border: none; background: none;
  font-family: inherit; font-size: 13.5px; font-weight: 500;
  padding: 6px 0;
  border-radius: 7px;
  color: #000;
  cursor: pointer;
}
.seg-btn.active { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.albums {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 4px 14px;
}
.album-card { cursor: pointer; }
.album-cover {
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: #e9e9eb;
  display: flex; align-items: center; justify-content: center;
}
.album-cover img { width: 100%; height: 100%; object-fit: cover; }
.album-cover-fav svg { width: 40px; height: 40px; }
.album-name { font-size: 14.5px; font-weight: 600; margin-top: 5px; }
.album-count { font-size: 13px; color: #8e8e93; }
.fav-mark {
  position: absolute; bottom: 4px; right: 4px;
  width: 16px; height: 16px;
}
.fav-mark svg { width: 100%; height: 100%; }
.foto-thumb { position: relative; }
.foto-toolbar {
  display: flex;
  justify-content: space-around;
  padding: 8px 30px 42px;
}
.ft-btn {
  background: none; border: none;
  width: 28px; height: 28px;
  cursor: pointer;
  padding: 0;
}
.ft-btn svg { width: 24px; height: 24px; }

/* ---- Sheet / share ---- */
.sheet-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 82;
  display: flex; align-items: flex-end;
  animation: fadeIn .18s;
}
.sheet {
  width: 100%;
  background: #f2f2f7;
  border-radius: 16px 16px 0 0;
  padding: 14px 0 34px;
  animation: sheetUp .22s cubic-bezier(.3,.9,.35,1);
  color: #000;
}
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.sheet-title {
  text-align: center;
  font-size: 13.5px; color: #8e8e93;
  padding: 4px 0 10px;
}
.sheet-row {
  background: #fff;
  padding: 13px 18px;
  font-size: 16.5px;
  border-bottom: 1px solid #f0f0f2;
  cursor: pointer;
}
.sheet-row:active { background: #f5f5f5; }
.sheet-cancel {
  margin-top: 10px;
  text-align: center;
  color: #0a84ff;
  font-weight: 600;
  border-radius: 12px;
  margin-left: 10px; margin-right: 10px;
}
.edit-row {
  display: flex; align-items: center; gap: 12px;
  background: #fff;
  padding: 12px 18px;
  border-bottom: 1px solid #f0f0f2;
  font-size: 15px;
}
.edit-row span { width: 72px; }
.edit-row input { flex: 1; accent-color: #0a84ff; }

/* ---- Mail / Notas: caixas ---- */
.mailbox-row {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  background: #fff;
}
.mailbox-row:active { background: #f5f5f5; }
.mailbox-name { flex: 1; font-size: 17px; }
.mailbox-count { font-size: 15px; color: #8e8e93; }
.mail-item-top { display: flex; align-items: baseline; gap: 7px; }
.mail-unread-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #0a84ff;
  flex: 0 0 auto;
  align-self: center;
}
.mail-item .mail-from { flex: 1; }

/* ---- Telefone: contatos / discador / chamada ---- */
.contact-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(180deg, #c7c7cc, #a7a7ad);
  color: #fff;
  font-size: 18px; font-weight: 500;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.contact-avatar.big { width: 84px; height: 84px; font-size: 36px; }
.contact-head {
  display: flex; flex-direction: column;
  align-items: center;
  padding: 22px 16px 8px;
  gap: 5px;
}
.contact-name { font-size: 23px; font-weight: 600; }
.contact-num { font-size: 15.5px; color: #8e8e93; }
.contact-actions { display: flex; gap: 22px; margin-top: 12px; }
.contact-act {
  border: none; background: #e9e9eb;
  width: 62px; height: 62px;
  border-radius: 50%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2px;
  cursor: pointer;
  color: #0a84ff;
}
.contact-act svg { width: 24px; height: 24px; }
.contact-act span { font-size: 9.5px; }
.contact-row { cursor: pointer; }
.contact-row:active { background: #f5f5f5; }

.dialer { display: flex; flex-direction: column; align-items: center; padding-top: 26px; }
.dial-display {
  min-height: 44px;
  font-size: 33px; font-weight: 300;
  letter-spacing: 1px;
  margin-bottom: 18px;
}
.dial-grid {
  display: grid;
  grid-template-columns: repeat(3, 72px);
  gap: 10px 20px;
}
.dial-key {
  width: 72px; height: 72px;
  border-radius: 50%;
  border: none;
  background: #e9e9eb;
  font-size: 29px; font-weight: 300;
  cursor: pointer;
  font-family: inherit;
}
.dial-key:active { background: #d1d1d6; }
.dial-actions {
  display: flex; align-items: center; gap: 40px;
  margin-top: 14px;
}
.dial-spacer { width: 56px; }
.dial-call {
  width: 68px; height: 68px;
  border-radius: 50%;
  border: none;
  background: #34c759;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.dial-call svg { width: 30px; height: 30px; }
.dial-back {
  width: 56px; height: 56px;
  border: none; background: none;
  font-size: 25px; color: #555;
  cursor: pointer;
}

.call-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #1c1c1e, #000);
  z-index: 88;
  display: flex; flex-direction: column;
  align-items: center;
  padding-top: 56px;
  animation: fadeIn .2s;
}
.call-avatar {
  width: 84px; height: 84px; border-radius: 50%;
  background: linear-gradient(180deg, #5a5a5e, #3a3a3c);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 36px; font-weight: 500;
  margin-bottom: 14px;
}
.call-avatar svg { width: 34px; height: 34px; }
.call-name { font-size: 30px; font-weight: 500; color: #fff; padding: 0 20px; text-align: center; }
.call-num { font-size: 17px; color: rgba(255,255,255,.55); margin-top: 4px; }
.call-status { font-size: 16px; color: rgba(255,255,255,.6); margin-top: 8px; }
.call-actions {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px 24px;
  margin-top: 30px;
  padding: 0 34px;
  width: 100%; max-width: 340px;
  box-sizing: border-box;
}
.call-action-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.call-action {
  width: 62px; height: 62px; border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.14);
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .08s, background .15s;
}
.call-action svg { width: 26px; height: 26px; }
.call-action:active { transform: scale(.93); }
.call-action.on { background: #fff; color: #000; }
.call-action-label { font-size: 12px; color: rgba(255,255,255,.75); }
.call-end {
  position: absolute; bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  width: 68px; height: 68px;
  border-radius: 50%;
  border: none;
  background: #ff3b30;
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.call-end svg { width: 32px; height: 32px; transform: rotate(135deg); }

/* ---- Notas: checklist ---- */
.checklist { margin-top: 4px; }
.check-row {
  display: flex; align-items: center; gap: 11px;
  padding: 7px 0;
  cursor: pointer;
}
.check-circle {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.8px solid #c7a43a;
  color: #c7a43a;
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.check-circle.checked { background: #f7e9c3; }
.check-label { font-size: 16px; }
.check-label.done { text-decoration: line-through; color: #8e8e93; }

/* ---- FMBank: home ---- */
.bank-actions {
  display: flex;
  justify-content: space-around;
  padding: 16px 10px 6px;
}
.bank-act {
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
  border: none; background: none;
  cursor: pointer;
  color: #12233d;
  font-family: inherit;
}
.bank-act svg {
  width: 26px; height: 26px;
  background: #fff;
  border-radius: 50%;
  padding: 12px;
  width: 50px; height: 50px;
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
  color: #3d5a80;
}
.bank-act span { font-size: 12.5px; font-weight: 600; }
.card-visual {
  margin: 16px;
  border-radius: 16px;
  background: linear-gradient(140deg, #3d5a80, #0e1c30);
  color: #fff;
  padding: 20px;
  min-height: 150px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  box-shadow: 0 6px 18px rgba(18,35,61,.35);
}
.card-visual.blocked { filter: grayscale(1); opacity: .7; }
.card-chip {
  width: 38px; height: 28px;
  border-radius: 5px;
  background: linear-gradient(140deg, #e8d28a, #c9a84c);
  margin-bottom: auto;
}
.card-num { font-size: 20px; letter-spacing: 2.5px; font-weight: 500; }
.card-holder { font-size: 12.5px; letter-spacing: 1.5px; opacity: .8; }
.bank .settings-group { margin: 0 16px; border-radius: 12px; border: none; overflow: hidden; }

/* ---- Relógio app (tema escuro) ---- */
.relogio-app .app-content { background: #000; color: #fff; }
.relogio-app .app-nav { background: #000; color: #fff; border-bottom-color: #2c2c2e; }
.relogio-app .tabbar { background: #1c1c1e; border-top-color: #2c2c2e; }
.clock-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid #2c2c2e;
}
.clock-note { font-size: 12.5px; color: #8e8e93; }
.clock-city { font-size: 21px; font-weight: 500; }
.clock-time { font-size: 44px; font-weight: 200; }
.alarm-time.off { color: #636366; }
.sw-display {
  text-align: center;
  font-size: 64px; font-weight: 200;
  font-variant-numeric: tabular-nums;
  padding: 60px 0 30px;
}
.sw-btns { display: flex; justify-content: space-around; padding: 0 40px; }
.sw-btn {
  width: 82px; height: 82px;
  border-radius: 50%;
  border: none;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  background: #2c2c2e;
  color: #fff;
}
.sw-start { background: rgba(52,199,89,.2); color: #34c759; }
.sw-stop { background: rgba(255,59,48,.2); color: #ff3b30; }
.timer-presets {
  display: flex; justify-content: center; gap: 12px;
  margin-bottom: 34px;
}
.timer-preset {
  border: none;
  background: #2c2c2e;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  padding: 10px 18px;
  border-radius: 20px;
  cursor: pointer;
}
.timer-preset.active { background: #ff9f0a; color: #000; font-weight: 600; }

/* ---- Câmera ---- */
.camera-app .app-content { background: #000; }
.cam-wrap { display: flex; flex-direction: column; height: 100%; }
.cam-viewfinder { flex: 1; overflow: hidden; }
.cam-viewfinder img { width: 100%; height: 100%; object-fit: cover; }
.cam-flash {
  position: absolute; inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}
.cam-flash.go { animation: camFlash .4s; }
@keyframes camFlash { 0% { opacity: 0; } 15% { opacity: .95; } 100% { opacity: 0; } }
.cam-modes {
  display: flex; justify-content: center; gap: 26px;
  padding: 10px 0;
  background: #000;
}
.cam-mode { font-size: 13.5px; color: rgba(255,255,255,.6); cursor: pointer; }
.cam-mode.active { color: #f7d54a; font-weight: 600; }
.cam-controls {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 30px 46px;
  background: #000;
}
.cam-thumb {
  width: 46px; height: 46px;
  border-radius: 8px;
  background: #1c1c1e;
  overflow: hidden;
  cursor: pointer;
}
.cam-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cam-shutter {
  width: 70px; height: 70px;
  border-radius: 50%;
  border: 5px solid #fff;
  background: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.cam-shutter span {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: #fff;
  display: block;
}
.cam-shutter:active span { background: #d8d8dc; }
.cam-flip { width: 46px; text-align: center; font-size: 27px; color: #fff; opacity: .8; }

/* ---- Safari ---- */
.safari-app .app-content { background: #f2f2f7; }
.safari-start { display: flex; flex-direction: column; min-height: 100%; }
.safari-bar {
  display: flex; align-items: center; gap: 8px;
  margin: 12px 14px;
  padding: 10px 12px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.safari-bar svg { width: 17px; height: 17px; flex: 0 0 auto; }
.safari-bar input {
  border: none; outline: none;
  font-size: 16px; font-family: inherit;
  width: 100%;
}
.safari-section {
  font-size: 20px; font-weight: 700;
  padding: 14px 18px 8px;
  color: #000;
}
.safari-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 10px;
  padding: 6px 16px 20px;
}
.safari-bm { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; }
.safari-bm-tile {
  width: 58px; height: 58px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 25px; font-weight: 600; color: #333;
}
.safari-bm-name {
  font-size: 11px; color: #333;
  max-width: 74px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.safari-toolbar {
  margin-top: auto;
  display: flex; justify-content: space-around;
  align-items: center;
  background: #f9f9f9;
  border-top: 1px solid rgba(0,0,0,.1);
  padding: 10px 0 32px;
}
.safari-tb { font-size: 25px; color: #8e8e93; cursor: pointer; }
.safari-tb svg { width: 22px; height: 22px; }
.safari-tb svg path, .safari-tb svg rect { stroke: #8e8e93; }
.so-btn {
  margin-top: 18px;
  border: none;
  background: #e9e9eb;
  color: #0a84ff;
  font-size: 16px; font-weight: 600;
  font-family: inherit;
  padding: 10px 42px;
  border-radius: 10px;
  cursor: pointer;
}

/* ---- Overlay de brilho ---- */
#brightnessOverlay {
  position: absolute; inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  z-index: 95;
}

/* ---- Central de Notificações ---- */
#ncPanel {
  position: absolute; inset: 0;
  z-index: 80;
  background: rgba(20,20,24,.55);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  transform: translateY(-100%);
  transition: transform .25s cubic-bezier(.3,.9,.35,1);
}
#ncPanel.open { transform: translateY(0); }
.nc-inner {
  height: 100%;
  overflow-y: auto;
  padding: 60px 14px 40px;
  display: flex; flex-direction: column;
}
.nc-date { text-align: center; font-size: 19px; font-weight: 500; }
.nc-time { text-align: center; font-size: 66px; font-weight: 700; line-height: 1.05; margin-bottom: 20px; }
.nc-list { display: flex; flex-direction: column; gap: 10px; }
.nc-item {
  background: rgba(255,255,255,.16);
  border-radius: 18px;
  padding: 12px 14px;
  backdrop-filter: blur(10px);
}
.nc-item-head { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; }
.nc-app-ico {
  width: 21px; height: 21px;
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.nc-app-ico svg { width: 13px; height: 13px; }
.nc-app-name { font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.75); text-transform: uppercase; letter-spacing: .3px; flex: 1; }
.nc-time-sm { font-size: 12px; color: rgba(255,255,255,.55); }
.nc-name { font-size: 15px; font-weight: 600; }
.nc-text { font-size: 14px; color: rgba(255,255,255,.85); margin-top: 1px; }
.nc-hint {
  margin-top: auto;
  text-align: center;
  font-size: 12.5px;
  color: rgba(255,255,255,.45);
  padding-top: 22px;
}

/* ---- Corpos HTML ricos dos e-mails (contidos, sem vazar para o app) ---- */
.mo-html {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  font-size: 15px;
  line-height: 1.45;
  color: #222;
}
.mo-html div { box-sizing: border-box; }
.mail-open .mo-body { max-width: 600px; margin: 0 auto; }
