/* Cuentas públicas (cuenta.js). Usa las variables del tema de app.css. */
.cu-open { flex: none; height: 34px; min-width: 34px; padding: 0 14px; border-radius: 17px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 750; font-size: 13px; }
.cu-open:hover { background: var(--surface-3); }
.cu-open.cu-in { padding: 0; width: 34px; background: var(--accent); border-color: var(--accent); color: #fff; }
.cu-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .55); display: grid; place-items: center; padding: 16px; }
.cu-backdrop[hidden] { display: none; }
.cu-panel { position: relative; width: min(448px, 100%); max-height: calc(100dvh - 32px); overflow: auto; padding: 28px 26px 24px; box-shadow: var(--shadow); }
.cu-close { position: absolute; top: 8px; right: 10px; width: 36px; height: 36px; border-radius: 18px; font-size: 22px; color: var(--text-2); }
.cu-close:hover { background: var(--surface-3); }
.cu-panel h2 { margin: 0 0 6px; font-size: 19px; }
.cu-intro { padding-right: 18px; margin-bottom: 20px; }
.cu-intro h2 { font-size: 23px; line-height: 1.18; letter-spacing: -.4px; margin: 6px 0 8px; }
.cu-intro p { color: var(--text-2); font-size: 13px; line-height: 1.6; margin: 0; }
.cu-eyebrow { color: var(--accent); font-size: 10px; letter-spacing: 1.1px; font-weight: 800; }
.cu-trust { margin: 14px 0 0; color: var(--text-2); line-height: 1.55; font-size: 11.5px; }
.cu-account-head { display: flex; align-items: center; gap: 12px; margin: 0 26px 20px 0; }
.cu-account-head h2 { margin: 3px 0 0; }
.cu-avatar { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--accent); color: #fff; font-size: 20px; font-weight: 800; }
.cu-sub, .cu-hint { margin: 0 0 12px; color: var(--text-2); font-size: 13px; }
.cu-hint { margin: -4px 0 10px; }
.cu-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 4px 0 16px; border-radius: 12px; background: var(--surface-3); }
.cu-tabs button { height: 34px; border-radius: 9px; font-weight: 750; font-size: 13px; color: var(--text-2); }
.cu-tabs button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.cu-google { width: 100%; height: 44px; margin: 4px 0; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; color: #1f1f1f; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.cu-google:hover { background: #f2f2f2; }
.cu-or { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: var(--text-2); font-size: 12px; }
.cu-or::before, .cu-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.cu-panel form { display: grid; gap: 12px; }
.cu-panel label { display: grid; gap: 6px; font-size: 13px; font-weight: 650; color: var(--text-2); }
.cu-panel input[type=email], .cu-panel input[type=password], .cu-panel input[type=text] { height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font-size: 16px; width: 100%; }
.cu-panel input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.cu-pass { position: relative; display: block; }
.cu-pass input { padding-right: 70px !important; }
.cu-eye { position: absolute; right: 6px; top: 6px; height: 32px; padding: 0 10px; border-radius: 8px; font-size: 12px; font-weight: 700; color: var(--text-2); }
.cu-check { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 8px !important; font-weight: 500 !important; line-height: 1.4; }
.cu-check input { margin-top: 2px; width: 18px; height: 18px; flex: none; }
.cu-check a, .cu-link { color: var(--accent); }
.cu-check a { text-decoration: underline; text-underline-offset: 2px; }
.cu-wide { width: 100%; height: 44px; justify-content: center; }
.cu-link { display: block; margin: 14px auto 0; font-size: 13px; font-weight: 650; }
.cu-msg { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; font-size: 13px; line-height: 1.4; }
.cu-msg.error { background: rgba(235, 87, 87, .14); color: var(--text); border: 1px solid rgba(235, 87, 87, .45); }
.cu-msg.ok { background: rgba(39, 174, 96, .14); color: var(--text); border: 1px solid rgba(39, 174, 96, .45); }
.cu-msg.info { background: var(--surface-3); color: var(--text); }
.cu-data { margin: 6px 0 14px; display: grid; gap: 10px; }
.cu-data div { display: grid; gap: 2px; }
.cu-data dt { font-size: 12px; color: var(--text-2); }
.cu-data dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.cu-tag { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 750; vertical-align: 1px; }
.cu-tag.ok { background: rgba(39, 174, 96, .18); color: #4cd58a; }
.cu-tag.wait { background: rgba(242, 153, 74, .18); color: #f2a65a; }
.cu-box { margin: 0 0 12px; padding: 12px; border-radius: 10px; border: 1px solid var(--line); font-size: 13px; }
.cu-box p { margin: 0 0 10px; }
.cu-box summary { cursor: pointer; font-weight: 700; }
.cu-box form { margin-top: 10px; }
.cu-row { display: flex; flex-wrap: wrap; gap: 8px; }
.cu-out { margin-top: 6px; }
@media (max-width: 640px) {
  .cu-backdrop { align-items: end; padding: 0; }
  .cu-panel { width: 100%; border-radius: 20px 20px 0 0; max-height: 94dvh; padding: 26px 20px calc(20px + env(safe-area-inset-bottom)); }
  .cu-open:not(.cu-in) { padding: 0 11px; font-size: 12.5px; }
}
.cu-danger { margin-top: 14px; border-color: rgba(235, 87, 87, .45); }
.cu-danger summary { color: #f08a8a; }
.cu-del { background: rgba(235, 87, 87, .9); color: #fff; }
.cu-del:hover { background: #eb5757; }
.cu-plan { margin: 16px 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.cu-plan-head { display:flex; align-items:center; justify-content:space-between; gap:12px; font-size:13px; color:var(--text-2); }
.cu-plan-head b { color:var(--text); }
.cu-plan p { font-size:13px; line-height:1.5; overflow-wrap:anywhere; }
.cu-plan .section-title { margin:14px 0 8px; font-size:14px; }
.cu-plan .lz-sub { padding:12px; margin-bottom:12px; }
.cu-plan .lz-sub h3 { font-size:14px; margin:0 0 8px; }
.cu-plan .lz-buys { padding-left:16px; font-size:12px; max-height:180px; overflow:auto; }
.cu-plan button { white-space:normal; min-height:40px; }
