/* App Trust Capital · negro y plata */
body.appbody { background: #050506; min-height: 100svh; }
.device { max-width: 460px; margin: 0 auto; min-height: 100svh; position: relative; background: #050506; overflow-x: hidden; }
@media (min-width: 700px) { body.appbody { background: radial-gradient(80% 60% at 50% 0%, #1a1b1e, #050506 70%); } .device { margin: 24px auto; min-height: calc(100svh - 48px); border: 1px solid var(--line); border-radius: 32px; overflow: hidden; box-shadow: 0 40px 100px rgba(0, 0, 0, .6); } }
.app { min-height: 100%; display: flex; flex-direction: column; padding-bottom: 30px; }
.scr { animation: stepin .45s var(--ease) both; flex: 1; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 6px; gap: 10px; }
.top .brand img { width: 28px; }
.top .brand .wordmark { font-size: 13px; letter-spacing: .3em; }
.iconbtn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #121316; border: 1px solid var(--line); transition: background .25s; }
.iconbtn:hover { background: #1b1c20; }
.iconbtn svg { width: 20px; height: 20px; stroke: #e6e8e9; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ttl { font-size: 17px; font-weight: 500; letter-spacing: -.02em; }
.pad { padding: 0 20px; }
.hello { padding: 8px 20px 0; color: var(--mute); font-size: 14px; }
.hello b { display: block; color: #fff; font-weight: 500; font-size: 22px; letter-spacing: -.03em; margin-top: 2px; }

/* Saldo */
.bal { margin: 16px 20px 0; padding: 24px 22px 22px; border-radius: 24px; position: relative; overflow: hidden; background: linear-gradient(135deg, #2a2c30 0%, #121316 45%, #1e2024 100%); border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 24px 60px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .12); }
.bal::before { content: ""; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; background: url("../assets/img/emblem.png") center/contain no-repeat; opacity: .13; }
.bal::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .09) 50%, transparent 60%); pointer-events: none; }
.bal small { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #a3a6aa; display: flex; justify-content: space-between; align-items: center; }
.bal .amt { font-size: clamp(34px, 11vw, 46px); font-weight: 500; letter-spacing: -.045em; margin-top: 10px; line-height: 1; position: relative; z-index: 1; }
.bal .amt span { font-size: 16px; color: #a3a6aa; letter-spacing: 0; margin-left: 6px; font-weight: 400; }
.bal .eye { color: #a3a6aa; position: relative; z-index: 2; padding: 4px; }
.bal .eye svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; }

/* Cuatro botones */
.quad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 18px 20px 0; }
.quad button { display: grid; justify-items: center; gap: 9px; padding: 14px 4px 12px; border-radius: 18px; background: #0f1012; border: 1px solid var(--line); font-size: 12.5px; color: #dcdee0; transition: transform .3s var(--ease), background .25s, border-color .25s; }
.quad button:hover { background: #17181b; border-color: rgba(255, 255, 255, .3); transform: translateY(-2px); }
.quad svg { width: 26px; height: 26px; stroke: #fff; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.sect { padding: 26px 20px 8px; display: flex; justify-content: space-between; align-items: baseline; }
.sect h3 { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.list { margin: 0 20px; border-top: 1px solid var(--line); }
.item { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.item .ic { width: 40px; height: 40px; border-radius: 50%; background: #131417; border: 1px solid var(--line); display: grid; place-items: center; }
.item .ic svg { width: 18px; height: 18px; stroke: #dfe0e2; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.item b { font-weight: 500; font-size: 15px; display: block; letter-spacing: -.01em; }
.item small { color: var(--mute); font-size: 12.5px; }
.item .v { font-weight: 500; font-size: 15px; text-align: right; font-variant-numeric: tabular-nums; }
.item .v.in { color: #fff; }
.item .v.out { color: #a9acb0; }
.empty { padding: 28px 0; text-align: center; color: var(--mute); font-size: 14px; }

/* Segmentado */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; margin: 16px 20px 0; padding: 4px; border-radius: 14px; background: #0e0f11; border: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { padding: 10px 8px; font-size: 13px; border-radius: 10px; color: #a3a6aa; white-space: nowrap; transition: all .25s; min-width: max-content; }
.seg button.on { background: #e6e8e9; color: #0a0a0a; font-weight: 500; }
.form { padding: 20px; display: grid; gap: 16px; }
.form .field input, .form .field select { height: 52px; }
.note { font-size: 12.5px; color: #8d9094; line-height: 1.5; }
.box { margin: 16px 20px 0; padding: 18px; border-radius: 18px; background: #0e0f11; border: 1px solid var(--line); }
.kv { display: grid; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.kv:last-child { border-bottom: 0; }
.kv small { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.kv .big { font-family: var(--mono); font-size: clamp(15px, 4.6vw, 19px); letter-spacing: .06em; color: #fff; word-break: break-all; }
.kv .copy { justify-self: start; font-size: 12px; color: #c9cbce; text-decoration: underline; text-underline-offset: 3px; margin-top: 2px; }
.bars { height: 54px; margin: 12px 0 4px; background: repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 4px, #fff 4px 5px, transparent 5px 9px, #fff 9px 12px, transparent 12px 14px); opacity: .9; border-radius: 4px; }
.btn.block { width: 100%; }

/* Tarjetas */
.cardrow { margin: 14px 20px 0; padding: 14px; border-radius: 20px; background: #0e0f11; border: 1px solid var(--line); display: grid; gap: 12px; }
.cardrow .img { border-radius: 14px; overflow: hidden; background: #000; position: relative; }
.cardrow .img img { width: 100%; height: auto; display: block; }
/* candado plateado (trazo como los demás íconos), no emoji de color */
.cardrow .img.locked::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e6e8e9' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / 30px no-repeat; }
.cardrow .meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cardrow b { font-weight: 500; font-size: 16px; letter-spacing: -.02em; display: block; }
.cardrow small { color: var(--mute); font-size: 12.5px; }
.tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; border: 1px solid var(--line); color: #b9bcc0; white-space: nowrap; }
.acts { display: flex; gap: 8px; flex-wrap: wrap; }
.acts button { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: #d4d6d8; transition: background .25s; }
.acts button:hover { background: #1b1c20; }
.legalnote { margin: 18px 20px 0; font-size: 11px; color: #6f7276; line-height: 1.5; }

/* Pagos */
.paygrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 18px 20px 0; }
.paygrid button { text-align: left; padding: 18px 16px; border-radius: 18px; background: #0f1012; border: 1px solid var(--line); display: grid; gap: 14px; transition: all .3s var(--ease); }
.paygrid button:hover { background: #17181b; border-color: rgba(255, 255, 255, .3); transform: translateY(-2px); }
.paygrid svg { width: 26px; height: 26px; stroke: #fff; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.paygrid b { font-weight: 500; font-size: 15px; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; align-items: end; background: rgba(0, 0, 0, .66); backdrop-filter: blur(6px); animation: fade .3s both; }
@keyframes fade { from { opacity: 0; } }
.sheet { max-width: 460px; width: 100%; margin: 0 auto; background: #0e0f11; border: 1px solid var(--line); border-radius: 28px 28px 0 0; padding: 26px 22px calc(28px + env(safe-area-inset-bottom)); animation: up .45s var(--ease) both; max-height: 92svh; overflow: auto; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet h3 { font-size: 20px; font-weight: 500; letter-spacing: -.03em; margin: 0 0 6px; }
.sheet p { color: #a3a6aa; font-size: 14px; margin: 0 0 18px; line-height: 1.45; }
.sheet .sum { padding: 14px 16px; border-radius: 14px; background: #08090a; border: 1px solid var(--line); margin-bottom: 18px; font-size: 14px; }
.sheet .sum b { display: block; font-size: 24px; letter-spacing: -.03em; font-weight: 500; margin-top: 2px; }
.sheet .otp input { height: 54px; }
.sheet .btns { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 18px; }
.sheet .btns.one { grid-template-columns: 1fr; }
.sheet .item.opt { text-align: left; width: 100%; border: 1px solid var(--line); border-radius: 16px; padding: 16px; grid-template-columns: 1fr; }
.result { text-align: center; padding: 10px 0 4px; }
.result .tick { width: 64px; height: 64px; border-radius: 50%; margin: 6px auto 16px; display: grid; place-items: center; background: var(--silver); color: #000; }
.result .tick.no { background: #2a1517; color: #ffb3b3; }
.result .tick svg { width: 30px; height: 30px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Login de la app */
.login { padding: 44px 24px 0; display: grid; gap: 22px; }
.login .logo { display: grid; justify-items: center; gap: 14px; margin-bottom: 8px; }
.login .logo img { width: 74px; filter: drop-shadow(0 0 30px rgba(255, 255, 255, .22)); }
.login .logo .wordmark { font-size: 22px; }
.login h1 { font-size: 26px; font-weight: 500; letter-spacing: -.04em; text-align: center; }
.noacct { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: #0c0d0f; color: #b9bcc0; font-size: 13.5px; line-height: 1.5; }
.noacct a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.tc { max-height: 190px; overflow: auto; padding: 14px; border-radius: 14px; background: #08090a; border: 1px solid var(--line); font-size: 12.5px; color: #9ea1a5; line-height: 1.55; margin-bottom: 14px; }
.demo-flag { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: #8d9094; border: 1px dashed rgba(255, 255, 255, .22); padding: 3px 10px; border-radius: 999px; z-index: 3; pointer-events: none; }

/* Menú lateral */
.drawer { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, .6); animation: fade .25s both; }
.drawer nav { width: min(86%, 340px); height: 100%; background: #0b0c0d; border-right: 1px solid var(--line); padding: 22px 20px; display: flex; flex-direction: column; gap: 4px; animation: slide .4s var(--ease) both; overflow: auto; margin-right: auto; }
@keyframes slide { from { transform: translateX(-30px); opacity: 0; } }
.drawer nav a, .drawer nav button { text-align: left; padding: 14px 8px; font-size: 18px; letter-spacing: -.02em; border-bottom: 1px solid var(--line); color: #e3e4e6; display: flex; justify-content: space-between; align-items: center; }
.drawer nav small { color: var(--mute); font-size: 12px; font-family: var(--mono); }
.drawer .who { padding: 10px 8px 18px; color: var(--mute); font-size: 13px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.drawer .who b { display: block; color: #fff; font-size: 18px; font-weight: 500; margin-bottom: 2px; letter-spacing: -.02em; }
