:root {
  --ink: #07141a;
  --navy: #0c2430;
  --navy-2: #123040;
  --teal: #1aa3b8;
  --teal-deep: #0e7a8a;
  --gold: #d4a017;
  --gold-bright: #e8c547;
  --sand: #f3f0ea;
  --paper: #fafaf7;
  --line: rgba(7, 20, 26, 0.08);
  --muted: #6b7a80;
  --muted-2: #8a969b;
  --danger: #c45b4a;
  --success: #1f8a62;
  --white: #ffffff;
  --scrim: rgba(7, 20, 26, 0.46);
  --glass: rgba(250, 250, 247, 0.72);
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 22px;
  --phone-w: 390px;
  --phone-h: 844px;
  --safe-top: 54px;
  --tab-h: 84px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }

body {
  font-family: var(--font);
  background: #061014;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-transparency: reduce) {
  .tabbar, .glass, .pin-key, .sheet { backdrop-filter: none; }
  .tabbar { background: #fafaf7; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.2s !important;
    scroll-behavior: auto !important;
  }
}

/* —— Studio —— */
.studio {
  height: 100%;
  min-height: 100%;
  display: grid;
  grid-template-columns: 280px 1fr;
  overflow: hidden;
}
.presenter {
  padding: 28px 22px;
  border-right: 1px solid rgba(255,255,255,0.06);
  color: #d7e0e4;
  overflow: auto;
  scrollbar-width: none;
}
.presenter::-webkit-scrollbar { width: 0; height: 0; display: none; }
.presenter-brand { display: flex; gap: 12px; align-items: center; }
.presenter-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}
.presenter-sub { font-size: 12px; color: #8aa0a8; margin-top: 2px; letter-spacing: 0.01em; }
.presenter-note {
  margin: 22px 0 16px;
  font-size: 13px;
  line-height: 1.45;
  color: #9bb0b7;
}
.presenter-note strong { color: var(--gold-bright); font-weight: 600; }
.presenter-nav { display: flex; flex-direction: column; gap: 2px; }
.presenter-nav button {
  text-align: left;
  padding: 9px 10px;
  border-radius: 8px;
  color: #b7c6cc;
  font-size: 13px;
}
.presenter-nav button:hover { background: rgba(255,255,255,0.04); color: #fff; }
.presenter-nav button.active {
  background: rgba(232, 197, 71, 0.12);
  color: var(--gold-bright);
}
.presenter-nav .group {
  margin: 14px 0 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6d828a;
  padding: 0 10px;
}

.stage {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.28) transparent;
  background:
    radial-gradient(900px 500px at 70% 10%, rgba(26,163,184,0.12), transparent 50%),
    #061014;
}
.stage::-webkit-scrollbar { width: 10px; }
.stage::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.28);
  border-radius: 99px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.stage::-webkit-scrollbar-track { background: rgba(255,255,255,0.04); }
.stage-fit {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
}

.device {
  width: calc(var(--phone-w) + 18px);
  height: calc(var(--phone-h) + 18px);
  border-radius: 54px;
  background: #1a1a1c;
  padding: 9px;
  outline: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
  overflow: hidden;
}
.device-bezel {
  width: var(--phone-w);
  height: var(--phone-h);
  border-radius: 46px;
  overflow: hidden;
  clip-path: inset(0 round 46px);
  isolation: isolate;
  background: var(--sand);
  position: relative;
}
.device-screen {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: var(--sand);
  color: var(--ink);
}
.device-screen *,
.device-screen {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.device-screen::-webkit-scrollbar,
.device-screen *::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.island {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 126px;
  height: 36px;
  background: #000;
  border-radius: 20px;
  z-index: 40;
  pointer-events: none;
}

.status-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--safe-top);
  padding: 14px 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 32;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  pointer-events: none;
}
.status-bar.light { color: #fff; }
.status-icons { display: flex; align-items: center; gap: 6px; }
.status-5g { font-size: 11px; font-weight: 700; letter-spacing: 0.02em; }

.status-veil {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  z-index: 28;
  pointer-events: none;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 32%,
    rgba(0, 0, 0, 0.35) 62%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 32%,
    rgba(0, 0, 0, 0.35) 62%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 220ms ease;
}
.status-veil::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(243, 240, 234, 0.86) 0%,
    rgba(243, 240, 234, 0.4) 55%,
    rgba(243, 240, 234, 0) 100%
  );
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.status-veil.is-on { opacity: 1; }
.status-veil.dark::before {
  background: linear-gradient(
    to bottom,
    rgba(7, 20, 26, 0.82) 0%,
    rgba(7, 20, 26, 0.32) 55%,
    rgba(7, 20, 26, 0) 100%
  );
}

@media (prefers-reduced-transparency: reduce) {
  .status-veil::before {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--sand);
  }
  .status-veil.dark::before { background: var(--navy); }
}

.screen-root {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.screen-scroll {
  flex: 1;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: calc(var(--safe-top) + 8px) 20px 28px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.screen-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}
.screen-scroll.has-tabs { padding-bottom: calc(var(--tab-h) + 12px); }

.tabbar[hidden] { display: none !important; }
.tabbar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: var(--tab-h);
  padding: 8px 18px 22px;
  display: flex;
  justify-content: space-between;
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid rgba(255,255,255,0.45);
  z-index: 20;
}
.tabbar button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.tabbar button.active { color: var(--navy); }
.tabbar button:active { transform: scale(0.94); }
.tabbar svg { width: 24px; height: 24px; display: block; }

/* Press feedback — instant on down */
.press:active { transform: scale(0.97); }

/* Typography */
.display {
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 600;
  font-optical-sizing: auto;
}
.title {
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.022em;
  font-weight: 600;
}
.headline {
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -0.014em;
  font-weight: 600;
}
.body { font-size: 15px; line-height: 1.4; letter-spacing: -0.006em; }
.caption { font-size: 12px; line-height: 1.35; letter-spacing: 0.01em; color: var(--muted); }
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* —— Splash —— */
.splash {
  background: var(--navy);
  color: #fff;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.splash-mark {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  background: linear-gradient(180deg, #163646, #0c2430);
  display: grid;
  place-items: center;
  outline: 1px solid rgba(232,197,71,0.28);
}
.splash .wordmark {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}
.splash .arabic {
  font-size: 22px;
  color: var(--gold-bright);
  letter-spacing: 0.04em;
}
.splash .by {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-top: 4px;
}

/* —— Login —— */
.login {
  background: var(--sand);
}
.login-hero {
  padding-top: 18px;
  text-align: center;
}
.login-hero .wordmark {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--navy);
}
.login-hero .arabic { color: var(--gold); font-size: 16px; margin-top: 4px; }
.login-hero .by { margin-top: 8px; }

.pin-dots {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 28px 0 8px;
}
.pin-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid var(--navy);
  transition: background 120ms ease-out, transform 120ms ease-out;
}
.pin-dot.filled {
  background: var(--navy);
  transform: scale(1.08);
}
.pin-label { text-align: center; color: var(--muted); margin-bottom: 18px; }

.faceid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 18px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(12,36,48,0.06);
  color: var(--navy);
  font-size: 14px;
  font-weight: 500;
}
.faceid:active { transform: scale(0.97); }

.pin-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 18px;
  max-width: 280px;
  margin: 0 auto;
}
.pin-key {
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(12px);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.pin-key:active { background: rgba(12,36,48,0.12); transform: scale(0.94); }
.pin-key.ghost { background: transparent; font-size: 15px; font-weight: 500; }
.login-links {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  padding: 0 8px;
}
.login-links button {
  font-size: 13px;
  color: var(--teal-deep);
  font-weight: 500;
}

/* —— Home —— */
.home-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-bright);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.avatar:active { transform: scale(0.96); }

.balance-card {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-l);
  padding: 22px 22px 18px;
  position: relative;
  overflow: hidden;
}
.balance-card::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -50px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(26,163,184,0.22);
  pointer-events: none;
}
.balance-card .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}
.balance-amount {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  margin: 10px 0 14px;
  position: relative;
  z-index: 1;
}
.balance-amount span {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.7;
  margin-left: 6px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.hide-toggle {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  box-shadow: inset 0 0 0 0.5px rgba(255,255,255,0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  padding: 0;
  line-height: 0;
  overflow: hidden;
  position: relative;
  z-index: 2;
}
.hide-toggle svg { width: 18px; height: 18px; display: block; }
.hide-toggle:active { transform: scale(0.92); }

.balance-foot {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  z-index: 1;
  margin-top: 2px;
}
.balance-account {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
}
.balance-account-label {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.62);
}
.balance-account-num {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
}
.balance-statement {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--gold-bright);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.balance-statement:active { transform: scale(0.97); }

.quick-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 18px 0 22px;
}
.quick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.quick-ico {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--navy);
  line-height: 0;
  overflow: hidden;
  flex-shrink: 0;
}
.quick-ico svg {
  display: block;
  width: 22px;
  height: 22px;
}
.quick:active .quick-ico { transform: scale(0.94); }
.quick.accent .quick-ico { background: var(--navy); color: var(--gold-bright); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 8px 0 12px;
}
.link {
  font-size: 13px;
  font-weight: 500;
  color: var(--teal-deep);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 8px;
  margin-bottom: 22px;
}
.service {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.25;
  min-width: 0;
  padding: 0 2px;
}
.service-ico {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--teal-deep);
  line-height: 0;
  overflow: hidden;
  flex-shrink: 0;
}
.service-ico svg {
  display: block;
  width: 22px;
  height: 22px;
}
.service:active { transform: scale(0.96); }

.txn {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  width: 100%;
  text-align: left;
}
.txn:last-child { border-bottom: 0; }
.txn-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--navy);
  flex-shrink: 0;
  line-height: 0;
  overflow: hidden;
}
.txn-ico svg {
  display: block;
  width: 20px;
  height: 20px;
}
.txn-ico.accent-navy { background: var(--navy); color: #fff; }
.txn-ico.accent-gold { background: var(--gold-bright); color: var(--navy); }
.txn-body { flex: 1; min-width: 0; }
.txn-title {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.txn-amt {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  padding-left: 4px;
  white-space: nowrap;
}
.txn-amt.dr { color: var(--danger); }
.txn-amt.cr { color: var(--success); }

/* —— Nav header —— */
.nav-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  min-height: 36px;
}
.back {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.back:active { transform: scale(0.94); }
.nav-head h1 {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: center;
  margin-right: 36px;
}
.nav-head:has(.rev-plus) h1 { margin-right: 0; }
}

.segment {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  background: rgba(12,36,48,0.06);
  padding: 3px;
  border-radius: 12px;
  margin-bottom: 20px;
}
.segment button {
  padding: 9px 8px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.segment button.active {
  background: #fff;
  color: var(--navy);
}

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 6px;
}
.field-box {
  background: #fff;
  border-radius: 14px;
  padding: 14px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.field-box input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.field-box input::placeholder { color: #b0bbbf; }
.field-ico { color: var(--muted); display: grid; }

.cta {
  width: 100%;
  height: 54px;
  border-radius: 16px;
  background: var(--navy);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.cta:active { transform: scale(0.98); }
.cta.gold { background: var(--gold); color: var(--navy); }
.cta:disabled { opacity: 0.35; }

.sticky-cta {
  margin-top: auto;
  padding: 12px 20px calc(var(--tab-h) - 48px);
}
.sticky-cta.no-tab { padding-bottom: 28px; }

/* QR */
.qr-stage {
  flex: 1;
  margin: 0 -20px;
  background: #0a1216;
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
}
.qr-frame {
  width: 220px;
  height: 220px;
  border-radius: 28px;
  outline: 2px solid rgba(232,197,71,0.85);
  box-shadow: 0 0 0 400px rgba(0,0,0,0.45);
  position: relative;
}
.qr-frame::after {
  content: "";
  position: absolute;
  left: 18px; right: 18px;
  height: 2px;
  background: var(--gold-bright);
  top: 20%;
  animation: scan 2.2s ease-in-out infinite;
}
@keyframes scan {
  0%, 100% { top: 18%; opacity: 0.4; }
  50% { top: 78%; opacity: 1; }
}
.qr-hint {
  position: absolute;
  bottom: 28px;
  left: 0; right: 0;
  text-align: center;
  color: rgba(255,255,255,0.78);
  font-size: 13px;
}

/* Cards / lists */
.list-card {
  background: #fff;
  border-radius: var(--radius-m);
  overflow: hidden;
}
.list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  width: 100%;
  text-align: left;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.list-row .grow {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.list-row:last-child { border-bottom: 0; }
.list-row:active { background: rgba(12,36,48,0.04); }
.list-row .chev { color: var(--muted-2); flex-shrink: 0; }

.account-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 18px;
}
.account-pill .bp {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--gold-bright);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: -0.03em;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips button {
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
}
.chips button.active {
  background: var(--navy);
  color: #fff;
}

.operator {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  width: 100%;
  text-align: left;
  margin-bottom: 8px;
  outline: 1.5px solid transparent;
}
.operator.active { outline-color: var(--navy); }
.op-dot {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
  color: #fff;
}

.pcard {
  perspective: 1400px;
  position: relative;
  width: 100%;
  aspect-ratio: 1.586 / 1;
  margin-bottom: 6px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transition: transform 100ms ease-out;
}
.pcard:active { transform: scale(0.98); }
.pcard-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
}
.pcard-face {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  padding: 16px 18px 14px;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}
.pcard-back { transform: rotateY(180deg); padding: 0; }
.pcard-shine {
  position: absolute;
  inset: -40% -20%;
  z-index: 1;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,0.18) 48%, transparent 62%);
  pointer-events: none;
}
.pcard-top, .pcard-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}
.pcard-brand {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.contactless { width: 22px; height: 22px; opacity: 0.8; }
.pcard-mid { margin: 10px 0 8px; position: relative; z-index: 1; }
.emv-chip { width: 42px; height: 32px; display: block; }
.pcard-pan-mask {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.18em;
  font-variant-numeric: tabular-nums;
  margin-top: auto;
  position: relative;
  z-index: 1;
}
.pcard-name {
  font-size: 12px;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.pcard-product {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.scheme-logo { width: 68px; height: 42px; flex-shrink: 0; }
.visa-logo {
  width: 102px;
  height: 38px;
  object-fit: contain;
  display: block;
}
.visa-logo.on-dark {
  filter: brightness(0) invert(1);
}
.pcard-muted { color: currentColor; opacity: 0.55; }
.pcard-stripe {
  height: 38px;
  background: #0a0a0a;
  margin-top: 16px;
  position: relative;
  z-index: 2;
}
.pcard-secret {
  padding: 14px 18px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}
.pcard-secret-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.copy-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,0.12);
  color: inherit;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 600;
}
.copy-btn.copied { background: rgba(255,255,255,0.28); }
.pcard-fullpan {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  margin: 8px 0 16px;
}
.pcard-meta {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
  gap: 12px;
  margin-top: auto;
}
.pcard-meta-val {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
}

.skin-gold {
  color: #fff;
  background-color: #8a6a12;
  background-image: url("gold-geo.svg");
  background-size: cover;
  background-position: center;
}
.skin-gold .copy-btn { background: rgba(255,255,255,0.16); color: #fff; }
.skin-gold .pcard-stripe { background: #3a2e0a; }
.skin-gold .pcard-shine {
  background: linear-gradient(118deg, transparent 40%, rgba(255,255,255,0.2) 50%, transparent 60%);
}
.skin-platinum {
  color: #fff;
  background-color: #14161a;
  background-image:
    linear-gradient(90deg, transparent 40%, rgba(18, 20, 24, 0.45) 68%, #121418 100%),
    url("platinum-geo.svg");
  background-size: cover, cover;
  background-position: left center, left center;
  background-repeat: no-repeat;
}
.skin-platinum .pcard-shine {
  background: linear-gradient(118deg, transparent 38%, rgba(255,255,255,0.14) 50%, transparent 62%);
}
.skin-world {
  color: #1a3d12;
  background: #9fe870;
}
.pcard-hello {
  position: absolute;
  left: -14px;
  right: -20px;
  top: -12px;
  bottom: -14px;
  z-index: 0;
  pointer-events: none;
  font-weight: 800;
  font-size: 96px;
  line-height: 0.78;
  letter-spacing: -0.06em;
  color: #6fb34a;
  opacity: 0.38;
  overflow: hidden;
  white-space: nowrap;
}
.pcard-hello span { display: block; }
.pcard-layer {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.skin-world .pcard-brand,
.skin-world .pcard-name,
.skin-world .pcard-pan-mask {
  color: #1a3d12;
}
.skin-world .pcard-product {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.skin-world .contactless { color: #fff; opacity: 1; }
.skin-world .copy-btn { background: rgba(26, 61, 18, 0.12); color: #1a3d12; }
.skin-world .pcard-stripe { background: #1a3d12; }
.skin-world .pcard-shine {
  background: linear-gradient(118deg, transparent 42%, rgba(255,255,255,0.28) 52%, transparent 62%);
}
.skin-visa {
  color: #fff;
  background:
    linear-gradient(145deg, #1a2370 0%, #0d1642 45%, #283593 78%, #0b1028 100%);
}

.order-pick {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 8px;
  outline: 1.5px solid transparent;
}
.order-pick.active { outline-color: var(--navy); }
.order-pick-mini {
  width: 64px;
  height: 40px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.order-pick-mini .scheme-logo { width: 48px; height: 30px; }
.order-pick-mini .visa-logo { width: 62px; height: 24px; }

.card-actions { margin-top: 8px; padding-bottom: 8px; }

.pcard-frost {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(8, 12, 16, 0.42);
  border-radius: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}
.pcard.is-frozen .pcard-front,
.pcard.is-frozen .pcard-back { filter: grayscale(0.55) brightness(0.78); }
.pcard.is-frozen .pcard-frost { opacity: 1; }

.rev-plus {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold-bright);
  color: var(--navy);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.rev-plus svg { width: 20px; height: 20px; display: block; }
.rev-plus:active { transform: scale(0.94); }

.card-snap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: auto;
  margin: 0 -20px 8px;
  padding: 6px 20px 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-snap-stop: always;
  scroll-padding-inline: 20px;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  touch-action: pan-x;
}
.card-snap.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-snap-stop: normal;
}
.card-snap-item {
  flex: 0 0 86%;
  scroll-snap-align: center;
  padding: 0;
}
.card-snap-item.is-away {
  opacity: 0.72;
}
.card-snap .pcard { margin-bottom: 0; cursor: grab; }
.card-snap.is-dragging .pcard { cursor: grabbing; }
.card-snap .pcard:active { transform: none; }

.rev-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 2px 0 20px;
}
.rev-act {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.rev-act-ico {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  display: grid;
  place-items: center;
  box-shadow: 0 1px 0 rgba(7, 20, 26, 0.05);
}
.rev-act-ico svg { width: 22px; height: 22px; display: block; }
.rev-act:active .rev-act-ico { transform: scale(0.94); background: #fff; }
.rev-act-label { opacity: 0.92; }

.rev-txns { padding-bottom: 8px; }

.rev-empty {
  background: #fff;
  border-radius: var(--radius-m);
  min-height: 168px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}
.rev-empty-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  color: var(--navy);
  box-shadow: inset 0 0 0 1px var(--line);
  display: grid;
  place-items: center;
}
.rev-empty-ico svg { width: 22px; height: 22px; display: block; }

@media (prefers-reduced-motion: reduce) {
  .pcard:active .pcard-inner { transform: none; }
}

.filter-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.filter-row .field-box { flex: 1; padding: 10px 12px; font-size: 13px; }

.empty {
  text-align: center;
  padding: 40px 16px;
  color: var(--muted);
}
.plus-tile {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  border: 1.5px dashed rgba(12,36,48,0.25);
  display: grid;
  place-items: center;
  color: var(--teal-deep);
  font-size: 28px;
  margin-top: 12px;
}
.plus-tile:active { transform: scale(0.96); }

.help-search {
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  color: var(--muted);
}
.help-search input { border: 0; outline: 0; flex: 1; background: transparent; }

.notif {
  background: #fff;
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 10px;
  text-align: left;
  width: 100%;
}
.notif .when { color: var(--muted); font-size: 12px; margin-top: 6px; }
.dot-new {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal); display: inline-block; margin-right: 6px;
}

/* Sheets */
.sheet-root {
  position: absolute;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  overflow: hidden;
  border-radius: 46px;
}
.sheet-root.open { pointer-events: auto; }
.sheet-scrim {
  position: absolute;
  inset: 0;
  background: var(--scrim);
  opacity: 0;
  transition: opacity 280ms var(--ease-out);
}
.sheet-root.open .sheet-scrim { opacity: 1; }
.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  background: var(--paper);
  border-radius: 24px 24px 0 0;
  padding: 10px 20px 32px;
  transform: translateY(110%);
  will-change: transform;
  touch-action: none;
}
.sheet-handle {
  width: 36px;
  height: 5px;
  border-radius: 99px;
  background: rgba(7,20,26,0.18);
  margin: 6px auto 16px;
}
.sheet h2 { font-size: 20px; letter-spacing: -0.025em; margin-bottom: 6px; }
.confirm-amt {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.04em;
  margin: 12px 0 18px;
  font-variant-numeric: tabular-nums;
}
.kv { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv span:first-child { color: var(--muted); }

.success-ring {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--navy); color: var(--gold-bright);
  display: grid; place-items: center; margin: 8px auto 16px;
}

@media (max-width: 860px) {
  .studio { grid-template-columns: 1fr; }
  .presenter { display: none; }
  .stage { min-height: 100%; padding: 12px; }
}
@media (max-width: 430px) {
  .device, .device-bezel {
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
    padding: 0;
    outline: none;
    clip-path: none;
  }
  .device { height: 100dvh; }
  .sheet-root { border-radius: 0; }
  .stage { padding: 0; }
}
