/* "Mi cuenta". Builds on styles.css and login.css. */
.latest { display: flex; align-items: center; gap: 22px; margin: 22px 0 22px; }
#latest-score, #listen-score { font-size: 46px; font-weight: 900; line-height: 1; letter-spacing: -0.02em; }
.latest-date { margin: 2px 0 4px; font-weight: 900; font-size: 19px; }
.latest-change { margin: 0; color: var(--muted); font-weight: 700; }
.chart-card { margin-top: 12px; padding: 12px 8px 4px; border: 2px solid var(--line); border-radius: 20px; }
.chart-card svg { width: 100%; height: auto; display: block; }
.chart-card text { font-family: inherit; font-size: 11px; font-weight: 700; fill: var(--muted); }
.chart-card .value { fill: var(--ink); font-weight: 900; font-size: 12px; }
.history { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.history-item { padding: 14px 16px; border: 2px solid var(--line); border-radius: 18px; }
.history-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.history-item .muted { margin: 6px 0 0; font-size: 15px; }
.settings { display: grid; gap: 18px; margin-top: 12px; }
.settings h3 { margin: 0 0 4px; font-size: 18px; font-weight: 900; }
.account-form, .danger { padding: 18px; border-radius: 20px; background: var(--gray-50); }
.account-form .muted, .danger .muted { margin: 0 0 14px; }
.account-form button { width: 100%; }
.danger-btn { color: var(--red-dark); padding-left: 0; }
.foot a { margin: 0 2px; }
.practice .foot { padding-bottom: 110px; }
/* Same size as the practice page's tab buttons (practice.css .tabbar button), so the bar doesn't
   change height when moving between Cuenta and the practice page. */
.tabbar .tab-link {
  flex: 0 1 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  min-height: 0;
  padding: 2px 4px;
  border: 2px solid transparent; /* buttons get this from styles.css; links need it to match */
  border-radius: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 15px;
  font-weight: 800;
  text-decoration: none;
}
.tabbar .tab-link.active { color: var(--blue-dark); }
.tabbar .tab-link.active svg { background: var(--yellow); }
#reminder-choices { margin: 0; }
#reminder-choices .choice { min-height: 0; }
#recording-settings .fine { margin: 10px 0 0; }
.verify-note { margin: -6px 0 12px; padding: 10px 12px; border-radius: 12px; background: var(--yellow-50); font-weight: 700; }

/* "Invita y gana": the personal referral link (cuenta.js referral()) */
.referral { margin: 28px 0 8px; }
.referral h2 { margin-bottom: 6px; }
.referral-link { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 6px; }
.referral-link input { flex: 1 1 200px; min-height: 46px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 14px; font: inherit; font-size: 15px; color: var(--ink); background: #fff; }
.referral-link .secondary { min-height: 46px; display: inline-flex; align-items: center; }
/* WhatsApp share in WhatsApp's own style: brand green #25D366 with their dark ink #111B21 (9:1 contrast; white text on that green would be ~2:1) and the glyph. */
.referral-link .wa-button { min-height: 46px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 999px; background: #25d366; color: #111b21; font-weight: 800; text-decoration: none; box-shadow: 0 3px 0 #1da851; transition: background-color 0.15s ease, transform 0.08s ease; }
.referral-link .wa-button:hover { background: #1ebe5a; }
.referral-link .wa-button:active { transform: translateY(2px); box-shadow: 0 1px 0 #1da851; }
.referral-link .wa-icon { width: 20px; height: 20px; flex: none; }

/* Listener panel opt-in */
.listener-card p { margin: 0 0 10px; }
.listener-points { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 4px; font-size: 15px; }
.listener-bonus { padding: 10px 12px; border-radius: 12px; background: var(--yellow-50, #fff7d6); font-weight: 700; }
.listener-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.listener-actions button { flex: 1 1 200px; }
.listener-card.highlight { outline: 3px solid var(--blue, #1e5eff); outline-offset: 4px; border-radius: 16px; }
/* Yes and No look the same on purpose: consent has to be a free choice. */
.listener-actions button[aria-pressed="true"] { border-color: var(--blue, #1e5eff); background: var(--blue-50, #eef3ff); }

/* "¿Por qué te vas?" before deleting the account (Nov 1). */
.delete-ask { margin-top: 12px; }
.delete-ask h4 { margin: 0 0 10px; font-size: 17px; }
.delete-ask .choices { margin-bottom: 12px; }
.delete-ask .delete-mic { background: var(--yellow-50, #fff8e0); border-radius: 14px; padding: 12px 14px; font-size: 15px; line-height: 1.45; }
.delete-ask #delete-cancel { display: block; margin-top: 10px; }
.delete-ask .delete-final { background: var(--red-dark, #b42318); border-color: var(--red-dark, #b42318); color: #fff; }

/* WhatsApp reminder opt-in (EXP-D19) */
.wa-opt { margin: 4px 0 14px; text-align: left; }
.wa-opt label { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; line-height: 1.4; cursor: pointer; }
.wa-opt input[type=checkbox] { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.wa-opt .wa-fields { margin-top: 10px; }
.wa-opt input[type=tel] { width: 100%; box-sizing: border-box; font-size: 17px; padding: 12px 14px; border: 2px solid #d9dee8; border-radius: 14px; margin-bottom: 10px; }
.wa-opt .wa-consent { font-size: 14px; color: #5a6275; }
.wa-opt .error { margin: 8px 0 0; }
.wa-opt input[type=checkbox] { width: 20px; min-height: 0; height: 20px; margin: 2px 0 0; padding: 0; flex: none; }
.hour-pick { display: block; width: 100%; box-sizing: border-box; font: inherit; font-size: 17px; padding: 12px 14px; margin: 0 0 14px; border: 2px solid #d9dee8; border-radius: 14px; background: #fff; }
.hour-pick[hidden] { display: none; }
.wa-opt h4 { margin: 14px 0 10px; font-size: 17px; }
.wa-opt .wa-consent-line { margin: 8px 2px 0; font-size: 13px; line-height: 1.45; color: #5a6275; }
.wa-opt #acct-wa-save { width: 100%; margin-top: 2px; }

/* Nov 1 tidy: rarely used settings fold into "Más ajustes" rows that open in place. */
.progress-link { margin: 10px 0 0; font-size: 15px; }
.progress-link a { font-weight: 800; }
.more-title { margin-top: 28px; }
.settings.more { gap: 10px; }
.more-row { background: var(--gray-50); border-radius: 20px; padding: 0; }
.more-row > summary { list-style: none; cursor: pointer; padding: 16px 18px; font-weight: 800; font-size: 16px; display: flex; justify-content: space-between; align-items: center; }
.more-row > summary::-webkit-details-marker { display: none; }
.more-row > summary::after { content: "›"; font-size: 22px; line-height: 1; color: var(--muted, #5a6275); transition: transform .15s; }
.more-row[open] > summary::after { transform: rotate(90deg); }
.more-row > .account-form, .more-row > .danger { margin: 0; padding-top: 0; background: transparent; box-shadow: none; border: 0; }
.more-row > .account-form > h3:first-child, .more-row > .danger > h3:first-child { display: none; }
.more-row.more-danger > summary { color: var(--red-dark, #a61f1f); }
.referral.compact { margin-top: 18px; }
.referral.compact h2 { font-size: 19px; margin-bottom: 6px; }
.wa-opt .wa-invite { margin: 4px 2px 10px; font-size: 15px; font-weight: 700; }
