/* The Dznye Wallet app (wallet.dznye.com), on top of style.css. An app, not a document: a fixed bar, one view at a time,
   a tab bar (bottom on phones, centred at the top on wide screens), and sheets that slide up for sending and receiving. */
body.app { min-height: 100dvh; overscroll-behavior: none; }
body.app section + section::before { display: none; }

/* ---------- the bar ---------- */
.abar { position: fixed; inset: 0 0 auto; z-index: 40; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 12px; height: calc(58px + env(safe-area-inset-top));
	padding: env(safe-area-inset-top) max(12px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
	background: linear-gradient(#faf7ffc7, #faf7ff80); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid #28194612; }
.abar .brand b { color: var(--dim); }
.abar .right { justify-self: end; display: flex; align-items: center; gap: 6px; }
.chipname { height: 30px; padding: 0 12px; display: inline-flex; align-items: center; border: 1px solid var(--edge); background: #ffffff8c; font: 400 11px var(--mono); letter-spacing: 0.06em; color: var(--fg); cursor: pointer; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- tabs: centred in the bar on wide screens, a bar at the bottom on phones ---------- */
.tabs { display: flex; gap: 2px; }
.tabs a { position: relative; display: flex; align-items: center; gap: 8px; height: 58px; padding: 0 12px; color: var(--dim); text-decoration: none; font: 400 11px/1 var(--mono); letter-spacing: 0.15em; text-transform: uppercase; transition: color 0.25s; }
.tabs a svg { display: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.tabs a:hover, .tabs a.on { color: var(--fg); }
.tabs a.on::after { content: ''; position: absolute; left: 50%; bottom: 8px; width: 8px; height: 8px; margin-left: -4px; background: var(--fg); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: spin 6s linear infinite; }
.btabs { display: none; }
@media (max-width: 760px) {
	.abar { grid-template-columns: 1fr auto; }
	.abar .tabs { display: none; }
	.btabs { position: fixed; inset: auto 0 0; z-index: 40; display: grid !important; grid-template-columns: repeat(4, 1fr); padding: 0 0 env(safe-area-inset-bottom);
		background: linear-gradient(#faf7ff99, #faf7ffe6); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border-top: 1px solid #28194612; }
	.btabs a { flex-direction: column; justify-content: center; gap: 5px; height: 62px; font-size: 9px; letter-spacing: 0.14em; }
	.btabs a svg { display: block; }
	.btabs a.on::after { bottom: auto; top: 4px; width: 6px; height: 6px; margin-left: -3px; }
	.live span { display: none; }
}

/* ---------- views ---------- */
.views { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: calc(88px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 120px max(16px, env(safe-area-inset-left)); }
@media (max-width: 760px) { .views { padding-bottom: calc(110px + env(safe-area-inset-bottom)); } }
.view { display: none; animation: in 0.6s var(--ease) both; }
.view.on { display: block; }
@keyframes in { from { opacity: 0; transform: translateY(12px); } }
.vh { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 34px 0 12px; }
.vh h2 { margin: 0; font-size: 1.6rem; }
.vh .kick { margin: 0; }
.block2 { margin-top: 36px; }

/* ---------- home: the balance, four actions, what you hold, what happened ---------- */
.bal { text-align: center; padding: 26px 0 8px; }
.bal .who { display: inline-flex; align-items: center; gap: 8px; font: 400 10px var(--mono); letter-spacing: 0.24em; text-transform: uppercase; color: var(--dim); }
.bal .num { font: 400 clamp(3.2rem, 12vw, 5.2rem)/1 var(--serif); letter-spacing: -0.03em; margin: 14px 0 6px; font-variant-numeric: tabular-nums; }
.bal .num small { font: 400 12px var(--mono); letter-spacing: 0.2em; color: var(--dim); margin-left: 8px; vertical-align: middle; }
.bal .addr { font: 400 11px var(--mono); color: var(--dim); letter-spacing: 0.04em; cursor: pointer; border: 0; background: none; padding: 4px 8px; }
.bal .addr:hover { color: var(--fg); }
.acts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 520px; margin: 26px auto 0; }
.act { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 4px 13px; text-decoration: none; cursor: pointer; color: var(--fg); font: 400 9.5px var(--mono); letter-spacing: 0.2em; text-transform: uppercase;
	border: 1px solid var(--edge); background: var(--sweep) -120% 0/250% 100% no-repeat, linear-gradient(165deg, #ffffffd1, #ffffff6b); box-shadow: inset 0 1px 0 #fffffff2, inset 0 0 12px #ffffff8c, 0 10px 28px -20px #6e8cd2b3;
	transition: background-position 0.8s var(--ease), transform 0.25s var(--ease), border-color 0.25s; }
.act:hover { background-position: 120% 0, 0 0; transform: translateY(-2px); border-color: #1c162880; }
.act svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.act.primary { background: linear-gradient(112deg, #fff0, #ffffffa6 45%, #fff0 60%) -150% 0/250% 100% no-repeat, var(--foil); border-color: #1c16288c; }

/* a list of rows in one glass pane */
.list { position: relative; background: linear-gradient(160deg, #ffffff9e, #ffffff47); border: 1px solid #ffffff99; box-shadow: inset 0 1px 0 #ffffffd9, 0 24px 60px -34px #82aaff80; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); color: var(--fg); text-decoration: none; }
.li:last-child { border-bottom: 0; }
.li .ic { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--edge); background: #ffffffb3; font: 400 10px var(--mono); letter-spacing: 0.04em; }
.li .ic.sol { background: linear-gradient(135deg, #e7fff6, #efe6ff); }
.li .t { min-width: 0; }
.li .t b { display: block; font-weight: 400; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li .t i { display: block; font-style: normal; font-size: 10.5px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li .v { text-align: right; font: 400 1.15rem/1.2 var(--serif); font-variant-numeric: tabular-nums; white-space: nowrap; }
.li .v i { display: block; font: 400 10px var(--mono); font-style: normal; color: var(--dim); letter-spacing: 0.06em; }
.li.empty { grid-template-columns: 1fr; color: var(--dim); font-size: 11.5px; }
.feed .li { grid-template-columns: 1fr auto; font-size: 11.5px; }
.feed .li .when { font-size: 10px; color: var(--dim); white-space: nowrap; }
.feed .li a { color: var(--fg); }

/* ---------- sheets: slide up from the bottom (phones) or open in the middle (wide) ---------- */
.scrim { position: fixed; inset: 0; z-index: 60; background: #2819461f; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: fade 0.25s both; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: fixed; z-index: 61; left: 50%; bottom: 0; width: min(560px, 100vw); max-height: 92dvh; overflow-y: auto; transform: translateX(-50%); padding: 22px 22px calc(24px + env(safe-area-inset-bottom));
	background: linear-gradient(165deg, #fffffff2, #faf7ffeb); border: 1px solid var(--edge); border-bottom: 0; box-shadow: 0 -30px 80px -30px #6e8cd299; animation: up 0.42s var(--ease) both; }
@keyframes up { from { transform: translate(-50%, 40px); opacity: 0; } }
@media (min-width: 761px) { .sheet { bottom: auto; top: 50%; transform: translate(-50%, -50%); border-bottom: 1px solid var(--edge); animation: pop 0.35s var(--ease) both; } @keyframes pop { from { opacity: 0; transform: translate(-50%, -48%) scale(0.98); } } }
.sheet-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.sheet-h h2 { margin: 0; font-size: 1.7rem; }
.x { width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: none; cursor: pointer; font: 300 22px/1 var(--mono); color: var(--dim); }
.x:hover { color: var(--fg); }
.sheet .btn.wide, .btn.wide { width: 100%; margin-top: 18px; }
.center { text-align: center; }
.qrbox { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 16px 0 6px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--edge); margin: 14px 0 4px; }
.seg button { height: 38px; border: 0; background: #ffffff66; font: 400 10px var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); cursor: pointer; }
.seg button.on { background: var(--foil); color: var(--fg); }

/* ---------- start: no account in this browser yet ---------- */
.start { text-align: center; padding-top: 6vh; }
.start h1 { margin: 18px auto 14px; max-width: 12ch; }
.start .lead { margin: 0 auto 28px; }
.start .card { text-align: left; max-width: 460px; margin: 12px auto 0; }
.start .btn.wide { margin-top: 0; }
.mark { width: 56px; height: 56px; margin: 0 auto; background: var(--foil); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: spin 14s linear infinite; }
.filebtn { position: relative; overflow: hidden; }
.filebtn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; height: 100%; }

/* ---------- pay: one card in the middle ---------- */
.paybox { max-width: 520px; margin: 4vh auto 0; }
.paybox .card { padding: 26px; text-align: center; }
.paybox .big { margin: 10px 0 6px; }
.shrink { flex: 0 0 auto !important; }
.card > .small:first-child { margin-top: 0; }
.start .lead { font: 400 clamp(1.1rem, 2vw, 1.3rem)/1.6 var(--serif); letter-spacing: 0; color: var(--ink2); max-width: 520px; }
a.li { cursor: pointer; transition: background-color 0.2s; }
a.li:hover { background: #ffffff66; }
a.li.sel { box-shadow: inset 2px 0 0 var(--fg); background: #ffffff8c; }
.li .v i.up { color: var(--mint); } .li .v i.down { color: var(--pink); }
