/* ════════════════════════════════════════════════════════
   Akcenta app – shared stylesheet (Vivid design language)
   Used by:
     akcenta-app-mocks.html            (Figma replicas, 3 screens)
     experiments/akcenta-grid-flow.html (interactive wallet-flow prototype)
   Load this BEFORE the page's own <style> so pages can override.
   Font inside the phone: Inter (each page links it itself).
   ════════════════════════════════════════════════════════ */

:root {
	--navy:        #061950;
	--navy-brand:  #0C1F54;
	--grey-label:  #9A9A9A;
	--grey-60:     #747474;
	--grey-70:     #525252;
	--grey-90:     #262626;
	--grey-10:     #F4F4F4;
	--grey-20:     #E2E2E2;
	--blue-10:     #EFF4FD;
	--blue-20:     #D5E3FB;
	--blue-30:     #B9D2F9;
	--blue-70:     #005495;
	--green:       #45EB9B;
	--green-40:    #28CC82;
	--green-ink:   #062C19;
	--green-10:    #D2FEE2;
	--up:          #1FAE62;
	--red:         #E61631;

	--canvas:      #ECECEA;  /* gray showcase background, matches the case-study figure */
	--line:        #ebedf0;  /* hairline borders on white surfaces */
	--focus-border: #9BB8F5;
	--focus-ring:  0 0 0 3px rgba(155, 184, 245, 0.22);
	--press-ease:  cubic-bezier(0.2, 0, 0, 1);
}

* { box-sizing: border-box; }

html {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.screen h1, .screen h2, .screen h3, .screen .nav-title { text-wrap: balance; }
.screen p, .screen .tag, .screen .sub, .screen .note { text-wrap: pretty; }
.screen button { -webkit-tap-highlight-color: transparent; }
.screen button:focus-visible { outline: none; box-shadow: var(--focus-ring); }

.lucide { width: 22px; height: 22px; stroke-width: 1.75; display: block; }

.flag-defs { height: 0; overflow: hidden; position: absolute; width: 0; }

/* ── Device frame ──────────────────────────────────────── */
.device-wrap { height: calc(836px * var(--scale, 1)); width: calc(399px * var(--scale, 1)); }
.device {
	background: #0E1116; border-radius: 56px;
	box-shadow: inset 0 0 0 2px #34373d, inset 0 0 0 8px #0a0b0d, 0 36px 80px rgba(0, 0, 0, 0.22);
	height: 836px; padding: 12px; transform: scale(var(--scale, 1)); transform-origin: top left; width: 399px;
}
.screen {
	background: #fff; border-radius: 44px; height: 812px; overflow: hidden; position: relative; width: 375px;
	font-family: "Inter", system-ui, sans-serif; -webkit-font-smoothing: antialiased;
}
.island { background: #0a0b0d; border-radius: 999px; height: 26px; left: 50%; position: absolute; top: 11px; transform: translateX(-50%); width: 92px; z-index: 60; }
.statusbar { align-items: center; color: var(--navy); display: flex; height: 48px; justify-content: space-between; padding: 14px 26px 0; position: relative; z-index: 40; }
.statusbar .time { font-size: 13px; font-weight: 600; letter-spacing: 0.2px; }
.statusbar svg { display: block; }

/* ── Flags ─────────────────────────────────────────────── */
.flag-rect {
	background: #fff; border: 0; border-radius: 3px; box-shadow: inset 0 0 0 0.75px rgba(6, 25, 80, 0.16);
	display: block; flex-shrink: 0; height: 16px; overflow: hidden; width: 24px;
}
.flag-rect svg { display: block; height: 100%; width: 100%; }
.flag-pair { display: flex; }
.flag-chip {
	align-items: center; background: var(--grey-10); border: 1px solid #fff; border-radius: 16px;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.78);
	display: flex; flex-shrink: 0; height: 32px; justify-content: center; width: 32px;
}
.flag-pair .flag-chip:last-child { margin-left: -4px; }
.flag-chip .flag-rect { border-radius: 2.5px; box-shadow: inset 0 0 0 0.6px rgba(6, 25, 80, 0.16); height: 12px; width: 18px; }
.flag {
	border-radius: 50%; box-shadow: 0 0 0 1px rgba(6, 25, 80, 0.10); display: block;
	flex-shrink: 0; height: 22px; overflow: hidden; width: 22px;
}

/* ── Buttons ───────────────────────────────────────────── */
.btn { align-items: center; border: none; border-radius: 8px; cursor: default; display: inline-flex; font-family: inherit; font-size: 14px; font-weight: 600; gap: 4px; height: 40px; line-height: 1.8; padding: 4px 10px; white-space: nowrap; }
.btn .lucide { width: 16px; height: 16px; stroke-width: 2; }
.btn-primary { background: var(--green); color: var(--green-ink); }
.btn-ghost { background: var(--grey-10); color: var(--grey-70); }
.btn-blue { align-items: center; background: var(--blue-30); border: none; border-radius: 8px; color: var(--blue-70); display: inline-flex; font-family: inherit; font-size: 12px; font-weight: 600; gap: 2px; height: 40px; line-height: 1.8; padding: 2px 8px; white-space: nowrap; }
.btn-blue .lucide { width: 16px; height: 16px; }
.btn-blue.square { justify-content: center; padding: 2px; width: 40px; }

/* Full-width app CTAs (onboarding, sheets, flow confirmations) */
.cta, .cta-soft {
	width: 100%; height: 50px; border: none; border-radius: 14px; cursor: pointer;
	font-family: inherit; font-size: 15px; font-weight: 700;
	display: flex; align-items: center; justify-content: center; gap: 8px;
}
.cta { background: var(--green); color: var(--green-ink); }
.cta-soft { background: var(--grey-10); color: var(--grey-90); }
.btn, .btn-blue, .cta, .cta-soft {
	transition-duration: 150ms;
	transition-property: transform, opacity, background-color, color, box-shadow;
	transition-timing-function: var(--press-ease);
}
.screen button.btn:active, .screen button.btn-blue:active,
.screen button.cta:active, .screen button.cta-soft:active { transform: scale(0.96); }

/* ── Top nav (logo · company · bell) ───────────────────── */
.topnav { align-items: center; display: flex; gap: 12px; height: 60px; padding: 0 16px; }
.logo-a { align-items: center; color: var(--navy-brand); display: inline-flex; flex-shrink: 0; height: 30px; justify-content: center; line-height: 1; width: 30px; }
.logo-a .akcenta-symbol { display: block; height: 30px; width: 27px; }
.nav-item .logo-a { color: currentColor; height: 24px; width: 24px; }
.nav-item .logo-a .akcenta-symbol { height: 23px; width: 21px; }
.company { align-items: center; background: var(--blue-20); border-radius: 999px; color: var(--navy); display: inline-flex; font-size: 16px; font-weight: 600; gap: 6px; padding: 7px 12px; }
.company .lucide { width: 14px; height: 14px; opacity: 0.8; }
.topnav .bell { align-items: center; color: var(--navy); display: flex; height: 40px; justify-content: center; margin-left: auto; position: relative; width: 40px; }
.topnav .bell .lucide { transform-origin: 50% 8%; }
.topnav .bell-dot {
	background: var(--red); border: 2px solid #fff; border-radius: 50%; bottom: 6px; box-shadow: 0 4px 10px rgba(230, 22, 49, 0.32);
	height: 10px; opacity: 0; position: absolute; right: 7px; transform: scale(0); transform-origin: center; width: 10px;
}

/* ── Balance block ─────────────────────────────────────── */
.balance { padding: 0 16px; }
.balance .label { color: var(--grey-label); font-size: 18px; font-weight: 600; margin: 0; }
.balance .amount-row { align-items: baseline; display: flex; gap: 6px; margin-top: 6px; }
/* Money never wraps: the tel-detection defuser injects zero-width spaces between
   digits, and those are line-break opportunities. */
.balance .amount { color: var(--navy); font-size: 32px; font-weight: 700; font-feature-settings: "lnum","tnum"; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; line-height: 1.1; position: relative; display: inline-block; white-space: nowrap; }
.balance .cur { color: var(--grey-label); font-size: 21px; font-weight: 600; }
.balance .swap { color: var(--grey-60); margin-left: auto; align-self: center; }
.actions { display: flex; gap: 8px; margin-top: 14px; }

/* ── Sections + horizontal scrollers ───────────────────── */
.sec-head { align-items: center; display: flex; justify-content: space-between; padding: 0 16px; }
.sec-head h2 { color: var(--grey-label); font-size: 18px; font-weight: 600; margin: 0; }
.sec-head .gear { color: var(--grey-60); display: flex; }
.sec-head .gear .lucide { width: 20px; height: 20px; }
.h-scroll { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; padding: 2px 16px; scrollbar-width: none; }
.h-scroll::-webkit-scrollbar { display: none; }

/* ── Account cards ─────────────────────────────────────── */
.account { background: var(--blue-10); border: 1px solid var(--blue-20); border-radius: 12px; display: flex; flex-direction: column; flex-shrink: 0; gap: 8px; padding: 12px; width: 220px; }
.account .head { align-items: center; display: flex; gap: 8px; }
.account .name { color: var(--navy); font-size: 18px; font-weight: 600; opacity: 0.5; }
.account .amt { color: var(--navy); font-size: 21px; font-weight: 700; font-feature-settings: "lnum","tnum"; font-variant-numeric: tabular-nums; white-space: nowrap; }
.account .row { display: flex; gap: 6px; margin-top: 4px; }
.account.new { align-items: center; color: var(--blue-70); justify-content: center; width: 136px; }
.account.new .plus { align-items: center; background: var(--blue-30); border-radius: 50%; display: flex; height: 40px; justify-content: center; width: 40px; }
.account.new .plus .lucide { width: 20px; height: 20px; }
.account.new span { font-size: 14px; font-weight: 600; }

/* ── Bottom navigation (glass) ─────────────────────────── */
.bottom-nav {
	-webkit-backdrop-filter: blur(32px) saturate(185%); backdrop-filter: blur(32px) saturate(185%);
	background: rgba(252, 252, 253, 0.55); border: 1px solid rgba(255, 255, 255, 0.75); border-radius: 40px; bottom: 10px;
	box-shadow: 0 14px 34px rgba(6, 25, 80, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.95);
	display: flex; gap: 2px; align-items: center; justify-content: space-between; left: 50%; padding: 8px 14px; position: absolute; transform: translateX(-50%); width: 359px;
}
.nav-item { align-items: center; display: flex; flex: 1; flex-direction: column; gap: 4px; justify-content: center; min-width: 0; padding: 6px 2px; position: relative; }
.nav-item.more { flex: 0 0 30px; }
.nav-item .nav-ic { color: var(--grey-label); display: flex; height: 24px; align-items: center; }
.nav-item .nav-lbl { color: var(--grey-label); font-size: 11px; font-weight: 600; line-height: 1; white-space: nowrap; }
.nav-item.active .nav-ic, .nav-item.active .nav-lbl { color: var(--green-40); }
.nav-item .dot { background: var(--red); border-radius: 50%; height: 8px; position: absolute; right: 4px; top: 2px; width: 8px; }

/* Detail-screen bottom nav – inset to follow the phone's rounded bottom corners */
.detail-nav {
	-webkit-backdrop-filter: blur(32px) saturate(185%); backdrop-filter: blur(32px) saturate(185%);
	background: rgba(252, 252, 253, 0.55); border: 1px solid rgba(255, 255, 255, 0.75); border-radius: 34px; bottom: 16px;
	box-shadow: 0 14px 34px rgba(6, 25, 80, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.95);
	display: flex; align-items: center; left: 50%; padding: 7px 10px; position: absolute; transform: translateX(-50%); width: 351px; z-index: 20;
}
.detail-nav-item { align-items: center; color: var(--grey-label); display: inline-flex; flex: 1; font-size: 13px; font-weight: 600; gap: 8px; justify-content: center; padding: 11px 8px; white-space: nowrap; }
.detail-nav-item .lucide { width: 18px; height: 18px; }
.detail-nav-divider { background: rgba(38, 38, 38, 0.12); flex-shrink: 0; height: 22px; width: 1px; }
