:root {
  --bg: #1e1f1f;
  --panel: #252626;
  --panel-soft: #2c2d2f;
  --text: #ffffff;
  --muted: #79767d;
  --accent: #f2fe8d;
  --mint: #b2d0ce;
  --ink: #272a32;
  --radius-xl: 30px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 50% 0%, #38383d 0, #111212 48%, #090a0a 100%);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button {
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.phone {
  position: relative;
  width: min(100vw, 430px);
  min-height: min(100vh, 880px);
  height: min(880px, 100vh);
  overflow: hidden;
  background: var(--bg);
  border-radius: 34px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
}

.auth-screen {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  align-content: center;
  gap: 26px;
  padding: 34px 26px;
  background: radial-gradient(circle at 75% 0%, rgba(242, 254, 141, 0.22), transparent 34%), var(--bg);
  transition: opacity 180ms ease, visibility 180ms ease;
  overflow-y: auto;
}

.phone:not(.locked) .auth-screen {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.phone.locked .status-bar,
.phone.locked .top-bar,
.phone.locked .screens,
.phone.locked .tab-bar,
.phone.locked .home-indicator {
  visibility: hidden;
}

.auth-brand {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
}

.auth-brand span {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: var(--accent);
  color: var(--ink);
  font-family: "Nunito Sans", "Inter", sans-serif;
  font-size: 32px;
  font-weight: 900;
  font-style: italic;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.32);
}

.auth-brand h1 {
  margin: 0;
  font-size: 30px;
  line-height: 34px;
}

.auth-brand p,
.auth-hint {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

.auth-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(37, 38, 38, 0.94);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.auth-form.hidden {
  display: none;
}

.auth-form h2 {
  margin: 0 0 4px;
  font-size: 21px;
  line-height: 24px;
  font-weight: 600;
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: #d9d9d9;
  font-size: 13px;
  font-weight: 600;
}

.auth-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 0 14px;
  outline: none;
  background: #1d1e1e;
  color: #fff;
  font: inherit;
}

.auth-form input:focus {
  border-color: rgba(242, 254, 141, 0.75);
  box-shadow: 0 0 0 3px rgba(242, 254, 141, 0.12);
}

.link-button {
  background: transparent;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.search-panel {
  position: absolute;
  z-index: 18;
  top: 92px;
  left: 16px;
  right: 16px;
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(31, 32, 32, 0.96);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transform: translateY(0);
  opacity: 1;
  transition: 160ms ease;
}

.search-panel.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px);
}

.search-box {
  display: grid;
  grid-template-columns: 22px 1fr 28px;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 10px 0 14px;
  border-radius: 16px;
  background: #151616;
  color: var(--muted);
}

.search-box input {
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #fff;
  font: inherit;
}

.search-box button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.search-box button svg {
  width: 16px;
  height: 16px;
}

.search-results {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
}

.search-result {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 62px;
  padding: 10px;
  border-radius: 16px;
  background: #28292b;
  text-align: left;
}

.search-result span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  font-weight: 800;
}

.search-result h3 {
  font-size: 15px;
  line-height: 19px;
  font-weight: 700;
}

.search-result p {
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
  word-break: break-word;
}

.ambient {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(2px);
  opacity: 0.68;
}

.ambient-one {
  width: 310px;
  height: 310px;
  top: -206px;
  right: -128px;
  background: radial-gradient(circle, rgba(242, 254, 141, 0.95), rgba(242, 254, 141, 0) 68%);
}

.ambient-two {
  width: 372px;
  height: 372px;
  left: -168px;
  bottom: -180px;
  background: radial-gradient(circle, rgba(121, 118, 125, 0.48), rgba(121, 118, 125, 0) 65%);
}

.status-bar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 12px 16px 0 30px;
  font-size: 15px;
  font-weight: 700;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 7px;
}

.signal,
.wifi,
.battery {
  display: inline-block;
}

.signal {
  width: 18px;
  height: 12px;
  background: linear-gradient(to right, transparent 0 12%, #fff 12% 23%, transparent 23% 35%, #fff 35% 48%, transparent 48% 60%, #fff 60% 74%, transparent 74% 86%, #fff 86%);
  clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 65%);
}

.wifi {
  width: 16px;
  height: 11px;
  border: 2px solid #fff;
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  position: relative;
}

.wifi::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%);
}

.battery {
  width: 23px;
  height: 12px;
  border: 1.7px solid #fff;
  border-radius: 3px;
  position: relative;
}

.battery::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 1px;
  background: #fff;
}

.battery::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 3px;
  width: 2px;
  height: 5px;
  border-radius: 0 2px 2px 0;
  background: #fff;
}

.top-bar {
  position: relative;
  z-index: 5;
  height: 44px;
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
}

.top-bar h1 {
  margin: 0;
  text-align: center;
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
}

.icon-button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  margin-left: 16px;
}

.search-action {
  justify-self: end;
  margin-right: 16px;
  margin-left: 0;
}

.screens {
  position: absolute;
  inset: 88px 0 0;
}

.screen {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  padding: 24px 20px 118px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(12px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  scrollbar-width: none;
}

.screen::-webkit-scrollbar {
  display: none;
}

.screen.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.card-stage {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.bank-card {
  border: 0;
  color: var(--ink);
  background: linear-gradient(145deg, #fcffdf 0%, #f2fe8d 100%);
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 42px rgba(0, 0, 0, 0.45);
  text-align: left;
}

.bank-card.mint,
.mini-card.mint {
  background: linear-gradient(145deg, #e7fcfa, #b2d0ce);
}

.bank-card.dark,
.mini-card.dark {
  color: #fff;
  background: linear-gradient(145deg, #52535a, #151616);
}

.card-carousel {
  width: calc(100% + 40px);
  margin: 0 -20px;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 0 calc((100% - min(100%, 311px)) / 2) 10px;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: calc((100% - min(100%, 311px)) / 2);
  scrollbar-width: none;
}

.card-carousel::-webkit-scrollbar {
  display: none;
}

.big-card {
  flex: 0 0 min(100%, 311px);
  width: min(100%, 311px);
  height: 184px;
  padding: 32px 30px 20px;
  scroll-snap-align: center;
  transform: scale(0.94);
  opacity: 0.7;
  transition: transform 180ms ease, opacity 180ms ease, box-shadow 180ms ease;
}

.big-card.selected {
  transform: scale(1);
  opacity: 1;
  box-shadow: 0 30px 46px rgba(0, 0, 0, 0.52), 0 0 0 2px rgba(242, 254, 141, 0.2);
}

.card-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.visa {
  font-family: "Nunito Sans", "Inter", sans-serif;
  font-style: italic;
  font-size: 21px;
  letter-spacing: -0.4px;
}

.big-card strong {
  font-size: 20px;
  line-height: 22px;
}

.chip {
  width: 27px;
  height: 19px;
  margin-top: 31px;
  border: 1px solid rgba(148, 162, 173, 0.8);
  border-radius: 4px;
  background: linear-gradient(145deg, #e9f6ff, #cfe0e8);
  position: relative;
}

.chip::after {
  content: "";
  position: absolute;
  inset: 8px 0 0;
  border-top: 1px solid rgba(148, 162, 173, 0.6);
}

.card-number {
  margin-top: 6px;
  align-items: end;
}

.card-number span:first-child {
  font-size: 15px;
  font-weight: 300;
}

.card-number small {
  display: block;
  margin-bottom: 2px;
  font-size: 10px;
  opacity: 0.4;
  text-align: right;
}

.owner {
  display: block;
  margin-top: 24px;
  font-size: 10px;
  letter-spacing: 0.3px;
  opacity: 0.38;
}

.pagination {
  display: flex;
  gap: 8px;
  margin-top: 2px;
}

.pagination span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
}

.pagination span.active {
  background: var(--accent);
}

.selected-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
  min-height: 16px;
}

.sheet {
  position: relative;
  margin: 30px -20px 0;
  padding: 30px 24px;
  background: var(--panel);
  border-radius: 22px 22px 0 0;
  overflow: hidden;
}

.sheet::after {
  content: "";
  position: absolute;
  left: -160px;
  bottom: -170px;
  width: 372px;
  height: 372px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(121, 118, 125, 0.28), rgba(121, 118, 125, 0) 68%);
  pointer-events: none;
}

.sheet-head,
.cost-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

h2,
h3,
p {
  margin: 0;
}

.sheet h2,
.section-title,
.cost-header h2 {
  font-size: 21px;
  line-height: 24px;
  font-weight: 400;
}

.filter-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: 999px;
  background: #1e1f1f;
  font-size: 14px;
}

.filter-button svg {
  width: 14px;
  height: 14px;
}

.transaction-group {
  margin-top: 24px;
}

.date-label {
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 18px;
}

.transaction {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 52px;
}

.transaction h3,
.info-row h3,
.contact-row h3,
.pay-card h3 {
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
}

.transaction p,
.info-row p,
.contact-row p,
.pay-card p,
.forecast-card p,
.ad-row p {
  color: var(--muted);
  font-size: 14px;
  line-height: 18px;
}

.transaction strong {
  font-size: 16px;
  white-space: nowrap;
}

.tx-icon,
.brand-dot,
.square-icon,
.contact-row > span,
.recipient > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #0f1010;
  font-weight: 700;
}

.tx-icon svg {
  width: 20px;
  height: 20px;
}

.income {
  background: var(--accent);
}

.spend {
  background: var(--mint);
}

.balance-block {
  position: relative;
  padding: 0 0 24px;
}

.balance-block.centered {
  text-align: center;
}

.balance-block p,
.send-card > p {
  color: var(--muted);
  font-size: 14px;
  line-height: 18px;
}

.balance-block h2 {
  margin-top: 6px;
  font-size: 32px;
  line-height: 36px;
}

.logout-chip {
  position: absolute;
  top: 2px;
  right: 0;
  min-height: 34px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.horizontal-cards {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 148px;
  gap: 14px;
  overflow-x: auto;
  margin: 0 -20px;
  padding: 0 20px 12px;
  scrollbar-width: none;
}

.horizontal-cards::-webkit-scrollbar {
  display: none;
}

.mini-card {
  min-height: 170px;
  border-radius: 24px;
  padding: 20px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid transparent;
  text-align: left;
}

.mini-card span {
  font-family: "Nunito Sans", "Inter", sans-serif;
  font-weight: 800;
  font-style: italic;
}

.mini-card strong {
  font-size: 22px;
  line-height: 24px;
}

.mini-card small {
  opacity: 0.55;
}

.lime {
  background: linear-gradient(145deg, #fcffdf, #f2fe8d);
}

.mini-card.selected {
  border-color: rgba(242, 254, 141, 0.82);
  box-shadow: 0 0 0 2px rgba(242, 254, 141, 0.15);
}

.section-title {
  margin: 16px 0 14px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.quick-grid button {
  min-height: 82px;
  border-radius: 20px;
  background: #28292b;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 9px;
}

.quick-grid span {
  font-size: 12px;
  color: #d5d5d5;
}

.quick-grid svg {
  color: var(--accent);
}

.compact-sheet {
  border-radius: 22px;
  margin-top: 26px;
}

.info-row,
.ad-row,
.pay-card,
.contact-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 68px;
}

.square-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #343538;
  color: var(--accent);
}

.ad-row {
  grid-template-columns: 32px 1fr;
  margin-top: 14px;
  padding: 16px;
  background: #303134;
  border-radius: 18px;
}

.ad-row > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 800;
}

.forecast-card,
.send-card {
  border-radius: 22px;
  background: #252626;
  padding: 24px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.forecast-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.forecast-card h2 {
  font-size: 24px;
  margin-bottom: 6px;
}

.forecast-card > span {
  color: var(--muted);
  font-size: 13px;
}

.cost-header {
  margin: 28px 0 20px;
}

.chart {
  height: 190px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 10px;
  padding: 18px 4px 8px;
}

.chart span {
  height: var(--h);
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, var(--accent), #606643);
}

.costs-sheet {
  margin-top: 22px;
  padding-top: 42px;
}

.grabber {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 46px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.brand-dot {
  color: #fff;
  font-size: 13px;
}

.webflow {
  background: #4357ff;
}

.sketch {
  background: #f7a52a;
}

.youtube {
  background: #f24b4b;
}

.unsplash {
  background: #111;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.send-card {
  text-align: center;
}

.people {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.people button {
  background: transparent;
  display: grid;
  justify-items: center;
  gap: 8px;
  border-radius: 16px;
  padding: 6px 0;
}

.people span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  font-weight: 800;
}

.people small {
  color: #fff;
  font-size: 13px;
}

.people button.active span {
  box-shadow: 0 0 0 3px rgba(242, 254, 141, 0.22);
}

.people button.active small {
  color: var(--accent);
}

.contact-sheet {
  min-height: 420px;
}

.contact-row {
  grid-template-columns: 40px 1fr auto;
  margin-top: 18px;
}

.contact-row > span,
.recipient > span {
  background: var(--mint);
}

.contact-row button {
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.budget-sheet {
  margin-top: 8px;
  min-height: calc(100% - 18px);
  border-radius: 22px 22px 0 0;
  padding-top: 36px;
}

.recipient {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.recipient > span {
  width: 54px;
  height: 54px;
  font-size: 20px;
}

.recipient small {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #d7d7d7;
}

.amount {
  display: flex;
  justify-content: center;
  align-items: start;
  gap: 8px;
  margin: 24px 0;
}

.amount small {
  font-size: 24px;
  color: var(--muted);
}

.amount strong {
  font-size: 38px;
  line-height: 38px;
}

.pay-card {
  grid-template-columns: 52px 1fr auto;
}

.pay-card > small {
  justify-self: end;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.primary-button {
  width: 100%;
  height: 48px;
  margin: 18px 0;
  border-radius: 14px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 800;
}

.primary-button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px 10px;
  margin: 0 -2px;
}

.keypad button {
  min-height: 58px;
  border-radius: 12px;
  background: #343538;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 27px;
}

.keypad small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1.2px;
  margin-top: -5px;
}

.tab-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 7;
  height: 82px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: start;
  padding: 20px 26px 0;
  background: #1b1c1c;
  border-radius: 22px 22px 0 0;
}

.tab-bar button {
  display: grid;
  place-items: center;
  background: transparent;
  color: #f6f6f6;
}

.tab-bar button.active {
  color: var(--accent);
}

.home-indicator {
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  width: 135px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.toast {
  position: absolute;
  z-index: 50;
  left: 24px;
  right: 24px;
  bottom: 102px;
  padding: 14px 16px;
  border-radius: 16px;
  color: var(--ink);
  background: var(--accent);
  font-weight: 700;
  text-align: center;
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: 180ms ease;
}

.toast.error {
  color: #fff;
  background: #d9534f;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.empty-state {
  position: relative;
  z-index: 1;
  margin-top: 26px;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

@media (max-width: 520px) {
  .app-shell {
    padding: 0;
    place-items: stretch;
  }

  .phone {
    width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
    border-radius: 0;
  }
}

@media (min-width: 780px) {
  .app-shell::before {
    content: "TrustPay";
    position: fixed;
    left: clamp(32px, 8vw, 120px);
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.08);
    font-size: clamp(56px, 8vw, 124px);
    font-weight: 800;
    letter-spacing: 0;
    pointer-events: none;
  }
}

@media (max-height: 760px) {
  .big-card {
    height: 168px;
    padding-top: 24px;
  }

  .chip {
    margin-top: 22px;
  }

  .sheet {
    margin-top: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .screen,
  .toast {
    transition: none;
  }
}
