:root {
  /* Identidade CUIDADO: roxo + laranja e a interseção entre eles (site). */
  --orange: #5A1A8F; /* cor principal (roxo); o nome da variável veio do app base */
  --laranja: #FF7A1A;
  --magenta: #C8327A;
  --roxo-escuro: #1F0A36;
  --grad: linear-gradient(120deg, #FF7A1A 0%, #C8327A 50%, #5A1A8F 100%);
  --grad-escuro: linear-gradient(135deg, #2A0D4A 0%, #4A1475 55%, #7A1F6E 100%);
  --black: #24132F;
  --bg-app: #FCFAFE;
  --bg-app2: #EFE8F4;
  --text-secondary: #5E5068;
  --border: #EADFF2;
  --border2: #EFE6F5;
  --success: #2E9E4A;
  --success-bg: #E7F6EA;
  --warn: #B36B00;
  --warn-bg: #FFF1E0;
  --error: #B33;
  --error-bg: #FBE8E8;
  --orange-bg: #F3ECFA;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; background: var(--bg-app2); }
body { font-family: 'Exo 2', 'Exo', 'Noto Sans SC', sans-serif; color: var(--black); -webkit-tap-highlight-color: transparent; }
button, input, select { font-family: inherit; }
a { color: var(--orange); text-decoration: none; }
img { max-width: 100%; }

/* height (not min-height): these must be capped to exactly one viewport so
   .content below is the thing that scrolls, not the whole page — otherwise
   flex items default to min-height:auto and grow past the viewport to fit
   their content, pushing the tabbar off-screen until you scroll the page. */
#app { height: 100vh; height: 100dvh; display: flex; justify-content: center; background: var(--bg-app2); }
.phone { width: 100%; max-width: 460px; height: 100vh; height: 100dvh; background: var(--bg-app); display: flex; flex-direction: column; position: relative; box-shadow: 0 0 60px rgba(0,0,0,0.06); }

/* ---------- shared ---------- */
.screen { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.header { padding: calc(24px + env(safe-area-inset-top, 0)) 20px 14px; display: flex; align-items: center; gap: 14px; background: #fff; border-bottom: 1px solid var(--border2); flex-shrink: 0; }
.header-title { font-size: 18px; font-weight: 800; }
.back-btn { width: 36px; height: 36px; border-radius: 18px; background: var(--bg-app); display: flex; align-items: center; justify-content: center; cursor: pointer; border: none; flex-shrink: 0; }
.content { flex: 1; min-height: 0; overflow: auto; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
/* Tela inicial e Indique e ganhe: itens rolam em vez de serem espremidos (o cartão da carteirinha chegava a altura zero). */
.card-hero, .indique-banner, .qa-grid, .help-banner, .indique-hero, .indique-opcoes, .indique-form, .indique-passos, .indique-lista, .content > .section-label { flex-shrink: 0; }

.btn { border: none; border-radius: 14px; font-size: 16px; font-weight: 700; cursor: pointer; height: 52px; }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(90,26,143,0.35); }
.btn-primary:disabled { opacity: 0.6; cursor: default; }
.btn-outline { background: #fff; color: var(--black); border: 1.5px solid var(--border); }
.btn-dark { background: var(--black); color: #fff; border: none; }
.btn-danger-outline { background: #fff; color: var(--error); border: 1.5px solid #F3D0D0; }
.btn-sm { height: 46px; font-size: 13px; border-radius: 12px; }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }

.field-label { font-size: 12px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 6px; }
.input { width: 100%; height: 48px; border-radius: 12px; border: 1.5px solid var(--border); padding: 0 14px; font-size: 15px; color: var(--black); outline: none; background: #fff; }
.input:focus { border-color: var(--orange); }

.card { background: #fff; border-radius: 16px; border: 1px solid var(--border2); padding: 16px; }
.error-msg { font-size: 13px; font-weight: 600; color: var(--error); background: var(--error-bg); padding: 10px 12px; border-radius: 10px; }
.success-msg { font-size: 13px; font-weight: 700; color: var(--success); background: var(--success-bg); padding: 10px 12px; border-radius: 10px; }

.lang-pills { display: flex; gap: 6px; }
.lang-pill { font-size: 11px; font-weight: 700; padding: 5px 9px; border-radius: 8px; cursor: pointer; color: var(--text-secondary); background: var(--bg-app); }
.lang-pill.active { color: #fff; background: var(--orange); }
.lang-pill.dark { color: rgba(255,255,255,0.85); background: rgba(0,0,0,0.32); }
.lang-pill.dark.active { color: var(--black); background: #fff; }

/* ---------- onboarding ---------- */
.ob-top { display: flex; justify-content: space-between; align-items: center; padding: calc(56px + env(safe-area-inset-top, 0)) 20px 0; }
.ob-skip { font-size: 13px; font-weight: 700; color: var(--text-secondary); cursor: pointer; background: none; border: none; }
.ob-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 32px; text-align: center; gap: 20px; }
.ob-icon { width: 96px; height: 96px; border-radius: 26px; background: var(--orange-bg); display: flex; align-items: center; justify-content: center; }
.ob-title { font-size: 22px; font-weight: 800; line-height: 1.3; }
.ob-text { font-size: 14px; color: var(--text-secondary); margin-top: 10px; line-height: 1.5; }
.ob-footer { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 0 24px 40px; }
.ob-dots { display: flex; gap: 6px; }
.ob-dot { height: 6px; border-radius: 3px; background: var(--border); transition: width .2s, background .2s; }
.ob-dot.active { background: var(--orange); }

/* ---------- login ---------- */
.login-hero { position: relative; height: 240px; padding-top: env(safe-area-inset-top, 0); flex-shrink: 0; overflow: hidden; background: var(--grad-escuro); }
.login-hero::before { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(255,122,26,.55) 0%, rgba(255,122,26,0) 70%); top: -120px; right: -90px; }
.login-hero img { position: absolute; top: 34px; left: 50%; transform: translateX(-50%); height: 128px; width: auto; }
.login-hero .lang-pills { position: absolute; top: 20px; right: 20px; }
.login-tagline { position: absolute; left: 24px; right: 24px; bottom: 24px; color: #fff; font-size: 15px; font-weight: 600; line-height: 1.4; }
.login-body { flex: 1; padding: 28px 24px 24px; display: flex; flex-direction: column; gap: 16px; }
.login-title { font-size: 22px; font-weight: 800; }
.login-sub { font-size: 14px; color: var(--text-secondary); margin-top: 4px; }
.login-forgot { text-align: right; font-size: 13px; font-weight: 600; color: var(--orange); cursor: pointer; }
.login-footer { text-align: center; font-size: 12px; color: var(--text-secondary); margin-top: auto; padding-top: 16px; }

/* ---------- home ---------- */
.home-header { padding: calc(24px + env(safe-area-inset-top, 0)) 24px 18px; display: flex; align-items: center; justify-content: space-between; background: #fff; border-bottom: 1px solid var(--border2); flex-shrink: 0; }
.greeting { font-size: 13px; color: var(--text-secondary); font-weight: 600; }
.user-name { font-size: 19px; font-weight: 800; }
.bell-wrap { position: relative; flex-shrink: 0; }
.bell-btn { position: relative; width: 42px; height: 42px; border-radius: 21px; background: var(--bg-app); display: flex; align-items: center; justify-content: center; cursor: pointer; border: none; }
.bell-dot { position: absolute; top: 8px; right: 9px; width: 9px; height: 9px; border-radius: 5px; background: var(--laranja); border: 2px solid #fff; }
.menu-pop { position: absolute; top: 50px; right: 0; width: 180px; background: #fff; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,0.18); border: 1px solid var(--border2); overflow: hidden; z-index: 41; }
.menu-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; font-size: 13.5px; font-weight: 600; border-top: 1px solid #F0F0F0; }
.menu-item:first-child { border-top: none; }
.menu-item.danger { color: var(--error); }
.menu-backdrop { position: fixed; inset: 0; z-index: 40; }

.search-bar { display: flex; align-items: center; gap: 10px; height: 44px; border-radius: 12px; background: #fff; border: 1.5px solid var(--border); padding: 0 14px; }
.search-bar input { flex: 1; border: none; outline: none; font-size: 14px; background: transparent; }

.card-hero { border-radius: 18px; overflow: hidden; position: relative; height: 150px; cursor: pointer; box-shadow: 0 10px 24px rgba(0,0,0,0.12); background: #E4E4E4; }
.card-hero img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.card-hero .grad { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.35) 100%); }
.card-hero .cta { position: absolute; bottom: 14px; right: 16px; color: #fff; font-size: 13px; font-weight: 700; }
.card-hero .badge { position: absolute; top: 12px; left: 14px; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.3px; text-transform: uppercase; background: rgba(0,0,0,0.28); padding: 4px 10px; border-radius: 8px; }

.section-label { font-size: 13px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 10px; }
.qa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qa-card { background: #fff; border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; border: 1px solid var(--border2); text-decoration: none; color: inherit; }
.qa-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--orange-bg); display: flex; align-items: center; justify-content: center; }
.qa-title { font-size: 14px; font-weight: 700; }

.help-banner { background: var(--grad); border-radius: 16px; padding: 18px; display: flex; align-items: center; gap: 12px; }
.help-banner .logo-dot { width: 34px; height: 34px; border-radius: 17px; background: #fff; flex-shrink: 0; display: flex; align-items: center; justify-content: center; padding: 6px; }
.help-banner .logo-dot img { width: 100%; height: 100%; object-fit: contain; }
.help-banner p { font-size: 13px; color: #fff; line-height: 1.4; margin: 0; }

.tabbar { display: flex; padding: 8px 8px calc(14px + env(safe-area-inset-bottom, 0)); background: #fff; border-top: 1px solid var(--border2); flex-shrink: 0; }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; background: none; border: none; padding: 4px; }
.tab-label { font-size: 11px; font-weight: 600; color: #9a9a9a; }
.tab.active .tab-label { color: var(--orange); font-weight: 700; }

/* ---------- perfil ---------- */
.avatar-lg { width: 76px; height: 76px; border-radius: 38px; background: var(--orange-bg); color: var(--orange); font-size: 26px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.perfil-info-card { width: 100%; background: #fff; border-radius: 14px; border: 1px solid var(--border2); overflow: hidden; }
.perfil-row { padding: 14px 16px; border-bottom: 1px solid #F0F0F0; }
.perfil-row:last-child { border-bottom: none; }
.perfil-row .k { font-size: 11.5px; font-weight: 700; color: #9a9a9a; text-transform: uppercase; }
.perfil-row .v { font-size: 14px; color: var(--black); font-weight: 600; margin-top: 2px; }

/* ---------- carteirinha ---------- */
.cardflip { width: 100%; max-width: 340px; aspect-ratio: 1004/638; border-radius: 16px; overflow: hidden; box-shadow: 0 14px 30px rgba(0,0,0,0.18); position: relative; cursor: pointer; border: 1px solid var(--border); margin: 0 auto; }
.cardflip img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: opacity .3s; }
.card-backdrop { position: absolute; transition: opacity .3s; }
/* A arte da CUIDADO não tem texto de exemplo para esconder: fundos transparentes. */
.card-backdrop.front-backdrop { right: 0; bottom: 0; width: 46%; height: 26%; background: transparent; }
.card-backdrop.back-backdrop { left: 0; top: 28%; width: 100%; height: 72%; background: transparent; }
.cardflip .front-info { position: absolute; right: 9%; bottom: 10%; text-align: right; transition: opacity .3s; }
.cardflip .front-info .n { font-size: 15px; font-weight: 800; color: var(--roxo-escuro); }
.cardflip .front-info .c { font-size: 11px; color: var(--text-secondary); font-weight: 600; }
.cardflip .back-info { position: absolute; transition: opacity .3s; }
.cardflip .back-info.left { left: 6%; top: 31%; }
.cardflip .back-info.right { left: 56%; top: 31%; }
.cardflip .back-info .k { font-size: 10px; font-weight: 800; margin-top: 10px; }
.cardflip .back-info .k:first-child { margin-top: 0; }
.cardflip .back-info .v { font-size: 11px; color: var(--text-secondary); margin-top: 1px; }

/* ---------- apolices ---------- */
.policy-card { display: flex; flex-direction: column; gap: 8px; }
.policy-top { display: flex; align-items: center; justify-content: space-between; }
.policy-tipo { font-size: 14px; font-weight: 800; }
.status-pill { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 8px; }
.policy-meta { font-size: 12px; color: var(--text-secondary); }
.policy-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

/* ---------- concierge ---------- */
.concierge-header { padding: calc(24px + env(safe-area-inset-top, 0)) 20px 14px; display: flex; align-items: center; gap: 12px; background: #fff; border-bottom: 1px solid var(--border2); flex-shrink: 0; }
.concierge-avatar { width: 34px; height: 34px; border-radius: 17px; background: var(--orange); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: #fff; }
.concierge-online { font-size: 11px; color: var(--success); font-weight: 600; }
.chat-scroll { flex: 1; min-height: 0; overflow: auto; padding: 16px 16px 8px; display: flex; flex-direction: column; gap: 10px; }
.bubble-row { display: flex; }
.bubble-row.user { justify-content: flex-end; }
.bubble { max-width: 78%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.4; background: #fff; color: var(--black); border: 1px solid var(--border2); }
.bubble-row.user .bubble { background: var(--orange); color: #fff; border: none; }
.quick-replies { display: flex; gap: 8px; padding: 8px 16px 4px; overflow: auto; flex-shrink: 0; }
.quick-reply { flex-shrink: 0; padding: 8px 14px; border-radius: 20px; border: 1.5px solid var(--orange); color: var(--orange); font-size: 12px; font-weight: 700; white-space: nowrap; cursor: pointer; background: #fff; }
.chat-input-row { display: flex; gap: 10px; padding: 10px 16px calc(14px + env(safe-area-inset-bottom, 0)); align-items: center; background: #fff; border-top: 1px solid var(--border2); flex-shrink: 0; }
.chat-input-row input { flex: 1; height: 44px; border-radius: 22px; border: 1.5px solid var(--border); padding: 0 16px; font-size: 14px; outline: none; background: var(--bg-app); }
.chat-send { width: 44px; height: 44px; border-radius: 22px; background: var(--orange); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; border: none; }
.chat-attach { width: 40px; height: 40px; border-radius: 20px; background: var(--bg-app); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; border: none; }
.chat-attach:disabled { opacity: 0.5; cursor: default; }
.atendimento-item { display: flex; gap: 12px; padding: 14px; background: #fff; border-radius: 14px; border: 1px solid var(--border2); cursor: pointer; }
.anexo-imagem { max-width: 220px; max-height: 220px; border-radius: 12px; display: block; }
.anexo-audio { max-width: 220px; }
.anexo-documento { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: underline; font-size: 13.5px; }
.anexo-pendente { font-size: 13px; color: var(--text-secondary); font-style: italic; }
.gravando-indicator { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--black); padding-left: 4px; }
.gravando-dot { width: 10px; height: 10px; border-radius: 5px; background: #E23; flex-shrink: 0; animation: gravando-pulse 1.1s ease-in-out infinite; }
@keyframes gravando-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ---------- avisos ---------- */
.avisos-header { padding: calc(24px + env(safe-area-inset-top, 0)) 20px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border-bottom: 1px solid var(--border2); flex-shrink: 0; }
.mark-all { font-size: 12px; font-weight: 700; color: var(--orange); cursor: pointer; background: none; border: none; }
.aviso-item { display: flex; gap: 12px; padding: 14px; background: #fff; border-radius: 14px; border: 1px solid var(--border2); }
.aviso-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--orange-bg); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.aviso-title-row { display: flex; justify-content: space-between; gap: 8px; }
.aviso-title { font-size: 14px; font-weight: 700; }
.aviso-unread-dot { width: 8px; height: 8px; border-radius: 4px; background: var(--orange); margin-top: 4px; flex-shrink: 0; }
.aviso-body { font-size: 13px; color: var(--text-secondary); margin-top: 2px; line-height: 1.4; }
.aviso-time { font-size: 11px; color: #9a9a9a; margin-top: 6px; font-weight: 600; }
.push-banner { display: flex; align-items: center; gap: 10px; background: var(--orange-bg); border-radius: 12px; padding: 12px 14px; font-size: 12.5px; color: #3D1466; font-weight: 600; }
.push-banner button { flex-shrink: 0; border: none; background: var(--orange); color: #fff; font-weight: 700; font-size: 12px; padding: 8px 12px; border-radius: 10px; cursor: pointer; }


/* ---------- misc ---------- */
.empty { text-align: center; font-size: 13.5px; color: #9a9a9a; padding: 40px 20px; }
.loading { text-align: center; font-size: 13.5px; color: #9a9a9a; padding: 40px 20px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--black); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 13.5px; font-weight: 600; z-index: 100; box-shadow: 0 10px 24px rgba(0,0,0,0.25); max-width: 90%; text-align: center; }
.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,0.4); border-top-color: #fff; border-radius: 50%; display: inline-block; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- questionário de saúde ---------- */
.q-header { display: flex; align-items: center; gap: 10px; padding: calc(16px + env(safe-area-inset-top, 0)) 16px 14px; background: #fff; border-bottom: 1px solid var(--border2); flex-shrink: 0; }
.q-bar { flex: 1; height: 6px; border-radius: 3px; background: var(--border2); overflow: hidden; }
.q-bar-fill { height: 100%; background: var(--orange); transition: width .25s ease; }
.q-head { border-left: 4px solid var(--black); padding-left: 14px; margin-bottom: 20px; }
.q-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 4px; }
.q-title { margin: 0 0 8px; font-size: 22px; font-weight: 800; line-height: 1.15; }
.q-note { margin: 0 0 6px; color: var(--text-secondary); font-size: 13.5px; line-height: 1.5; }
.q-block { margin-bottom: 22px; }
.q-label { font-weight: 700; font-size: 14.5px; margin-bottom: 10px; }
.q-opts { display: grid; gap: 8px; }
.q-opts-list { grid-template-columns: 1fr; }
.q-opts-grid { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); }
.q-opts-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.q-opt { cursor: pointer; }
.q-opt-box { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px; background: #fff; font-size: 14px; font-weight: 500; }
.q-opt-box small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--text-secondary); font-weight: 400; }
.q-opt.selected .q-opt-box { background: var(--black); border-color: var(--black); color: #fff; }
.q-opt.selected .q-opt-box small { color: rgba(255,255,255,0.7); }
.q-opt-check { flex-shrink: 0; width: 18px; height: 18px; border-radius: 9px; border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 11px; color: #fff; }
.q-opt.selected .q-opt-check { background: var(--orange); border-color: var(--orange); }
.q-opt.small .q-opt-box { padding: 10px 12px; font-size: 13px; justify-content: center; text-align: center; }
.q-grid-item { margin-bottom: 16px; }
.q-grid-legend { font-size: 13.5px; margin-bottom: 8px; }
.q-grid-legend b { color: var(--text-secondary); margin-right: 4px; }
.q-input { width: 100%; font: inherit; font-size: 14px; color: var(--black); background: #fff; border: 1.5px solid var(--border); border-radius: 10px; padding: 12px 14px; min-height: 46px; }
.q-input:focus { outline: none; border-color: var(--orange); }
.q-field-unit { display: flex; align-items: center; gap: 10px; }
.q-field-unit .q-input { flex: 1; }
.q-unit { color: var(--text-secondary); font-weight: 600; font-size: 13px; }
.q-readout { min-height: 46px; display: flex; align-items: center; gap: 8px; padding: 12px 14px; border: 1.5px dashed var(--border); border-radius: 10px; font-weight: 700; }
.q-readout small { font-weight: 500; color: var(--text-secondary); }
.q-error { margin: -8px 0 16px; color: var(--error); font-size: 12.5px; font-weight: 600; }
.q-summary-card { border: 1.5px solid var(--border); border-radius: 12px; padding: 6px 16px; }
.q-summary-row { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-top: 1px solid var(--border2); font-size: 13.5px; }
.q-summary-row:first-child { border-top: none; }
.btn-outline-q { border: 1.5px solid var(--black); background: #fff; color: var(--black); border-radius: 14px; font-weight: 700; font-size: 15px; padding: 0 18px; cursor: pointer; }

/* ---------- programas de saúde (modal) ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.45); display: flex; align-items: flex-end; justify-content: center; z-index: 200; }
.modal-card { width: 100%; max-width: 420px; max-height: 82vh; background: #fff; border-radius: 20px 20px 0 0; display: flex; flex-direction: column; overflow: hidden; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--border2); flex-shrink: 0; }
.modal-body { padding: 16px 20px calc(20px + env(safe-area-inset-bottom, 0)); overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.programa-card { border: 1.5px solid var(--border2); border-radius: 14px; padding: 16px; }
.programa-icon { font-size: 26px; margin-bottom: 8px; }
.programa-titulo { font-weight: 800; font-size: 15px; margin-bottom: 4px; }
.programa-texto { font-size: 13px; color: var(--text-secondary); line-height: 1.45; }
.modal-header .header-title { flex: 1; }
.modal-header { gap: 10px; }
.programa-card.clicavel { cursor: pointer; transition: border-color .15s, background .15s; }
.programa-card.clicavel:active { background: #F8F3FC; border-color: var(--orange); }
.programa-titulo { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.programa-seta { color: var(--orange); font-size: 22px; font-weight: 800; line-height: 1; }
.programa-card { flex-shrink: 0; }
.programa-peca { flex-shrink: 0; display: block; width: 100%; padding: 0; border: 1.5px solid var(--border2); border-radius: 14px; overflow: hidden; background: #fff; cursor: zoom-in; text-align: left; font-family: inherit; }
.programa-peca img { display: block; width: 100%; height: auto; aspect-ratio: 1080 / 1350; background: #f4f4f4; }
.programa-peca span { display: block; padding: 10px 14px; font-size: 13px; font-weight: 700; color: var(--black); }
.peca-lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,0.92); overflow: auto; -webkit-overflow-scrolling: touch; padding: calc(56px + env(safe-area-inset-top, 0)) 0 calc(24px + env(safe-area-inset-bottom, 0)); }
.peca-lightbox img { display: block; width: 100%; max-width: 820px; height: auto; margin: 0 auto; }
.peca-lightbox-fechar { position: fixed; top: calc(12px + env(safe-area-inset-top, 0)); right: 14px; width: 38px; height: 38px; border-radius: 19px; border: none; background: rgba(255,255,255,0.18); color: #fff; font-size: 18px; cursor: pointer; }

/* Textos enormes sem espaço (avisos, chat) quebram dentro da caixa em vez de esticar a tela. */
.aviso-item > div { min-width: 0; }
.aviso-title, .aviso-body, .bubble { overflow-wrap: anywhere; }

/* Aviso de privacidade da análise de uso (aparece uma vez, no Início). */
.aviso-privacidade { display: flex; align-items: center; gap: 10px; margin: calc(10px + env(safe-area-inset-top, 0)) 16px 0; padding: 10px 12px; background: #FFF1E6; border: 1px solid #FFD9BF; border-radius: 12px; font-size: 12px; line-height: 1.4; color: #7A3A08; }
.aviso-privacidade span { flex: 1; }
.aviso-privacidade button { flex-shrink: 0; border: none; background: var(--orange); color: #fff; font-weight: 700; font-size: 12px; border-radius: 8px; padding: 7px 12px; cursor: pointer; font-family: inherit; }

/* Avaliação do atendimento (aparece na conversa encerrada). */
.avaliacao-card { margin: 0 16px 10px; padding: 14px; background: #fff; border: 1.5px solid var(--border2); border-radius: 16px; display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }
.avaliacao-card.feita { background: #F8F3FC; border-color: #E4D3F1; }
.avaliacao-titulo { font-size: 14px; font-weight: 700; }
.avaliacao-estrelas { display: flex; gap: 6px; }
.estrela { font-size: 30px; line-height: 1; color: #D9D9D9; background: none; border: none; padding: 2px; cursor: pointer; }
span.estrela { font-size: 20px; cursor: default; }
.estrela.on { color: #FFB400; }
.avaliacao-card textarea { width: 100%; border: 1.5px solid var(--border2); border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 13.5px; resize: none; outline: none; }
.avaliacao-card textarea:focus { border-color: var(--orange); }

/* Primeiro acesso / esqueci minha senha */
.login-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.login-link { background: none; border: none; padding: 4px 0; color: var(--orange); font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; }
.acesso-sub { font-size: 13.5px; color: var(--text-secondary); line-height: 1.5; margin: 0; }
.acesso-codigo { font-size: 22px; letter-spacing: 6px; text-align: center; font-weight: 700; }

/* ---------- dependentes ---------- */
.faixa-dependente { display: flex; align-items: center; gap: 10px; padding: calc(8px + env(safe-area-inset-top, 0)) 14px 8px; background: #6A1B9A; color: #fff; font-size: 12.5px; }
.faixa-dependente span { flex: 1; }
.faixa-dependente button { border: none; background: #fff; color: #6A1B9A; font-weight: 800; font-size: 12px; border-radius: 8px; padding: 6px 10px; cursor: pointer; font-family: inherit; flex-shrink: 0; }
.dep-chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.dep-chip { border: 1.5px solid var(--border2); background: #fff; border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; color: var(--black); }
.dep-chip.on { background: var(--orange); border-color: var(--orange); color: #fff; }
.dep-secao { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.dep-secao-titulo { font-size: 13px; font-weight: 800; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .04em; }
.dep-card { background: #fff; border: 1px solid var(--border2); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.dep-topo { display: flex; gap: 12px; align-items: center; }
.avatar-sm { width: 40px; height: 40px; border-radius: 20px; background: var(--orange-bg); color: var(--orange); font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dep-nome { font-size: 14.5px; font-weight: 700; overflow-wrap: anywhere; }
.dep-info { font-size: 12.5px; color: var(--text-secondary); }
.dep-status { font-size: 11.5px; font-weight: 700; color: #9a9a9a; margin-top: 2px; }
.dep-status.ok { color: #2E9E4A; }
.dep-botoes { display: flex; gap: 8px; flex-wrap: wrap; }
.dep-btn { flex: 1 1 auto; border: 1.5px solid var(--border2); background: #fff; border-radius: 10px; padding: 9px 10px; font-size: 12.5px; font-weight: 700; cursor: pointer; font-family: inherit; color: var(--black); }
.dep-btn.destaque { background: var(--orange); border-color: var(--orange); color: #fff; }
.dep-btn:disabled { opacity: .5; }
.dep-nota { font-size: 11.5px; color: var(--text-secondary); line-height: 1.4; }
.dep-senha { display: flex; flex-direction: column; gap: 8px; }

/* pedido de notificação na entrada */
.notif-prompt-fundo { align-items: center; padding: 20px; }
.notif-prompt { width: 100%; max-width: 360px; background: #fff; border-radius: 20px; padding: 24px 20px 14px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.notif-prompt-icone { font-size: 38px; line-height: 1; }
.notif-prompt-titulo { font-size: 18px; font-weight: 800; }
.notif-prompt-texto { font-size: 13.5px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 6px; }
.notif-prompt-passos { text-align: left; font-size: 13px; line-height: 1.5; color: #333; margin: 0 0 8px; padding-left: 20px; }
.notif-prompt-depois { border: none; background: none; color: var(--text-secondary); font-size: 13.5px; font-weight: 700; padding: 10px; cursor: pointer; font-family: inherit; }

/* ---------- benefícios CUIDADO ---------- */
.plano-hero { background: var(--grad); border-radius: 18px; padding: 18px 20px; color: #fff; box-shadow: 0 12px 28px rgba(200,50,122,0.25); }
.plano-hero-k { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; opacity: .9; }
.plano-hero-v { font-size: 22px; font-weight: 800; margin-top: 2px; }
.plano-hero-e { font-size: 13px; opacity: .9; margin-top: 2px; }
.beneficio-item { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--border2); border-radius: 16px; padding: 14px; cursor: pointer; }
.beneficio-item.bloqueado { opacity: .72; }
.beneficio-titulo { font-size: 14.5px; font-weight: 800; }
.beneficio-texto { font-size: 12.5px; color: var(--text-secondary); margin-top: 2px; line-height: 1.4; }
.beneficio-tag { display: inline-block; margin-top: 8px; font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--success-bg); color: var(--success); }
.beneficio-tag.off { background: #FFF1E6; color: #B4520B; }
.aviso-legal { font-size: 11.5px; color: var(--text-secondary); line-height: 1.5; text-align: center; padding: 4px 8px 10px; }
.ben-hero { background: var(--grad); border-radius: 18px; padding: 18px 20px; color: #fff; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 12px 28px rgba(200,50,122,0.25); }
.ben-hero-k { font-size: 13px; font-weight: 700; opacity: .95; }
.ben-hero-tel { color: #fff; font-size: 30px; font-weight: 800; letter-spacing: .5px; }
.ben-hero-big { font-size: 28px; font-weight: 800; }
.ben-passos { display: flex; flex-direction: column; gap: 10px; }
.ben-passo { display: flex; gap: 12px; background: #fff; border: 1px solid var(--border2); border-radius: 14px; padding: 14px; font-size: 13px; color: var(--text-secondary); line-height: 1.45; }
.ben-passo b { flex-shrink: 0; width: 30px; height: 30px; border-radius: 15px; background: var(--laranja); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.ben-passo strong, .ben-alerta strong, .ben-farmacia strong { display: block; color: var(--black); font-size: 14px; margin-bottom: 2px; }
.ben-alerta { background: #FFF1E6; border-left: 4px solid var(--laranja); border-radius: 12px; padding: 12px 14px; font-size: 13px; color: #7A3A08; line-height: 1.45; }
.ben-intro { font-size: 13.5px; color: var(--text-secondary); line-height: 1.55; }
.ben-lista { display: flex; flex-direction: column; padding: 4px 16px; }
.ben-li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border2); font-size: 13px; color: var(--text-secondary); line-height: 1.4; }
.ben-li:last-child { border-bottom: none; }
.ben-li::before { content: ""; flex-shrink: 0; width: 7px; height: 7px; border-radius: 4px; background: var(--grad); margin-top: 6px; }
.ben-rodape { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--text-secondary); font-weight: 600; padding-bottom: 10px; }
.ben-rodape img { height: 38px; width: auto; }
/* Com mais atalhos no Início o conteúdo passa da altura da tela: os blocos
   rolam em vez de encolher (o banner da carteirinha sumia, com altura 0). */
.content > * { flex-shrink: 0; }
/* Banner do Início com a arte da carteirinha CUIDADO: selo à direita, longe do logo. */
.card-hero .grad { background: linear-gradient(90deg, rgba(31,10,54,0) 50%, rgba(31,10,54,0.45) 100%); }
.card-hero .badge { left: auto; right: 14px; background: rgba(31,10,54,0.45); }

/* ---------- Indique e ganhe ---------- */
.indique-banner { display: flex; align-items: center; gap: 12px; background: var(--grad); border-radius: 16px; padding: 14px 16px; color: #fff; cursor: pointer; box-shadow: 0 8px 20px rgba(200,50,122,0.25); }
.indique-banner-icone { font-size: 28px; line-height: 1; }
.indique-banner-texto { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.indique-banner-texto strong { font-size: 15px; }
.indique-banner-texto span { font-size: 12.5px; opacity: .95; }
.indique-banner-cta { font-size: 13px; font-weight: 800; background: rgba(255,255,255,0.22); padding: 7px 10px; border-radius: 10px; white-space: nowrap; }
.indique-hero { background: var(--grad); color: #fff; border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.indique-hero-titulo { font-size: 19px; font-weight: 800; }
.indique-hero-texto { font-size: 14px; line-height: 1.5; }
.indique-hero-link { align-self: flex-start; background: none; border: none; color: #fff; font-size: 12.5px; font-weight: 700; text-decoration: underline; padding: 0; cursor: pointer; font-family: inherit; text-align: left; }
.indique-opcoes { display: flex; flex-direction: column; gap: 10px; }
.indique-opcao { display: flex; align-items: center; gap: 14px; background: #fff; border: 1.5px solid var(--border); border-radius: 16px; padding: 14px 16px; cursor: pointer; }
.indique-opcao-icone { font-size: 26px; width: 44px; height: 44px; border-radius: 22px; background: var(--orange-bg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.indique-opcao div:last-child { display: flex; flex-direction: column; gap: 2px; }
.indique-opcao strong { font-size: 15px; }
.indique-opcao span { font-size: 12.5px; color: var(--text-secondary); }
.indique-form { background: #fff; border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; border: 1.5px solid var(--border); }
.indique-form-titulo { font-size: 16px; font-weight: 800; }
.indique-textarea { height: auto; min-height: 70px; padding: 10px 14px; resize: vertical; font-family: inherit; }
.indique-consentimento { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: #333; cursor: pointer; }
.indique-consentimento input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--orange); flex-shrink: 0; }
.indique-cancelar { border: none; background: none; color: var(--text-secondary); font-weight: 700; font-size: 14px; padding: 6px; cursor: pointer; font-family: inherit; }
.indique-passos { margin: 0; padding-left: 20px; font-size: 13.5px; line-height: 1.55; color: #333; }
.indique-lista { display: flex; flex-direction: column; gap: 8px; }
.indique-item { background: #fff; border-radius: 14px; padding: 12px 14px; border: 1.5px solid var(--border); display: flex; flex-direction: column; gap: 4px; }
.indique-item-topo { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.indique-item-topo strong { font-size: 14px; overflow-wrap: anywhere; }
.indique-item-sub { font-size: 12px; color: var(--text-secondary); }
.indique-item-comissao { font-size: 13px; color: #1E7B34; }
.indique-status { font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: #EFEFEF; color: #606060; white-space: nowrap; }
.indique-status.st-em_contato, .indique-status.st-proposta { background: #FFF1E0; color: #B36B00; }
.indique-status.st-fechou { background: #E7F6EA; color: #2E9E4A; }
.indique-status.st-nao_fechou { background: #F4F4F4; color: #8a8a8a; }
.indique-convite { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; text-align: center; }
.indique-provisorio { font-size: 12px; font-weight: 700; color: #B36B00; background: #FFF1E0; border-radius: 10px; padding: 8px 10px; }
.indique-regulamento { margin: 0; padding-left: 20px; font-size: 13.5px; line-height: 1.55; color: #333; display: flex; flex-direction: column; gap: 6px; }
