/* ============================================================
   GLOBALNETWORKING — shared styles (styles.css)
   Scheme: deep navy + royal indigo + champagne gold.
   No green anywhere. Cards use violet→magenta gradients.
   ============================================================ */
:root {
  /* surfaces */
  --ink: #070b16;
  --ink-2: #0b1120;
  --navy: #0e1730;
  --navy-2: #132043;
  --light: #ffffff;
  --light-2: #f4f6fb;
  --light-line: #e6e9f2;
  /* text */
  --text: #eef2fb;
  --muted: #9aa8c7;
  --faint: #6c7a9c;
  --dark-text: #141b2e;
  --dark-muted: #566184;
  /* brand */
  --indigo: #6d5efc;
  --indigo-2: #5a49e8;
  --indigo-ink: #0d0838;
  --gold: #e7b54f;
  --gold-2: #d49f33;
  --violet: #7b3ff2;
  --magenta: #d6296b;
  --crimson: #a31251;
  /* signals (no green) */
  --debit: #ef5d75;
  --credit: #e7b54f;
  --info: #5b8def;
  /* lines / radius / shadow */
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .15);
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, .75);
  --shadow-card: 0 18px 40px -20px rgba(108, 40, 160, .55);
  --display: 'Sora', sans-serif;
  --body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --maxw: 1200px;
}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0
}

body {
  font-family: var(--body);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  background: var(--ink)
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0
}

a {
  color: inherit;
  text-decoration: none
}

button {
  font-family: inherit;
  cursor: pointer
}

.tnum {
  font-variant-numeric: tabular-nums
}

/* disclaimer bar */
.demo-flag {
  position: fixed;
  inset: 0 0 auto 0;
  height: 30px;
  z-index: 200;
  background: linear-gradient(90deg, var(--ink-2) 0%, var(--navy) 50%, var(--ink-2) 100%);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12px;
  letter-spacing: .035em;
  font-weight: 500;
}

.demo-flag b {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: .01em
}

/* atoms */
.btn {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 15px;
  transition: .18s;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  justify-content: center;
  letter-spacing: .01em
}

.btn-primary {
  background: linear-gradient(180deg, var(--indigo), var(--indigo-2));
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(109, 94, 252, .7)
}

.btn-primary:hover {
  filter: brightness(1.07);
  transform: translateY(-1px)
}

.btn-gold {
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  color: #2a1f05
}

.btn-gold:hover {
  filter: brightness(1.05);
  transform: translateY(-1px)
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-2)
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .06)
}

.btn-light {
  background: #fff;
  color: var(--dark-text);
  border-color: var(--light-line)
}

.btn-light:hover {
  background: var(--light-2)
}

.btn-block {
  width: 100%
}

.btn[disabled] {
  opacity: .5;
  cursor: not-allowed;
  transform: none !important
}

.field {
  margin-bottom: 16px
}

.field label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 7px;
  font-weight: 600;
  letter-spacing: .02em
}

.input,
select.input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line-2);
  color: var(--text);
  transition: .15s;
  color-scheme: dark
}

.input::placeholder {
  color: var(--faint)
}

.input:focus,
select.input:focus {
  outline: none;
  border-color: var(--indigo);
  background: rgba(109, 94, 252, .08)
}

select.input {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%239aa8c7' stroke-width='2'><path d='M3 5l4 4 4-4'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px
}

/* native dropdown list: solid dark panel + readable text (was white-on-white) */
select.input option {
  background: var(--navy);
  color: var(--text)
}

select.input option[value=""] {
  color: var(--faint)
}

.hint {
  font-size: 12.5px;
  color: var(--faint);
  margin-top: 6px
}

.brandmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -.02em
}

.brandmark .logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(140deg, var(--indigo) 0%, var(--violet) 45%, var(--magenta) 100%);
  box-shadow: 0 6px 18px -7px rgba(123, 63, 242, .75);
  border: 1px solid rgba(255, 255, 255, .14)
}

.brandmark .logo svg {
  width: 21px;
  height: 21px;
  display: block
}

.brandmark .name {
  font-size: 19px
}

.brandmark .name b {
  color: var(--gold)
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 999px;
  letter-spacing: .05em;
  text-transform: uppercase
}

.pill.credit {
  background: rgba(231, 181, 79, .16);
  color: var(--gold)
}

.pill.debit {
  background: rgba(239, 93, 117, .16);
  color: var(--debit)
}

.pill.success {
  background: rgba(255, 255, 255, .08);
  color: var(--muted)
}

.pill.verified {
  background: rgba(91, 141, 239, .18);
  color: #9cc0ff
}

/* toast + modal (shared) */
.toast-wrap {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px
}

.toast {
  background: var(--navy-2);
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--indigo);
  padding: 13px 16px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-width: 330px;
  font-size: 14px;
  animation: slidein .25s
}

.toast.err {
  border-left-color: var(--debit)
}

@keyframes slidein {
  from {
    opacity: 0;
    transform: translateY(10px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 14, .72);
  backdrop-filter: blur(4px);
  display: none;
  place-items: center;
  z-index: 250;
  padding: 20px
}

.modal-bg.show {
  display: grid
}

.modal {
  background: var(--ink-2);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  padding: 26px;
  max-width: 430px;
  width: 100%;
  box-shadow: var(--shadow);
  animation: fade .2s
}

.modal h3 {
  font-size: 21px;
  margin-bottom: 6px
}

.modal .sub {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px
}

.modal-ok {
  text-align: center
}

.check {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 3px solid var(--indigo);
  display: grid;
  place-items: center;
  margin: 6px auto 16px;
  color: var(--indigo)
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(6px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

/* ============ AUTH PAGES ============ */
.auth {
  min-height: 100vh;
  padding-top: 30px;
  display: grid;
  grid-template-columns: 1.05fr .95fr
}

.auth-art {
  position: relative;
  overflow: hidden;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(160deg, #0c1230 0%, #1a1147 45%, #3a0f3f 100%)
}

.auth-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(620px 420px at 82% 112%, rgba(214, 41, 107, .35), transparent 60%),
    radial-gradient(520px 320px at 8% 4%, rgba(109, 94, 252, .32), transparent 60%)
}

.auth-art>* {
  position: relative;
  z-index: 1
}

/* sliding image panel (auth left) */
.auth-art>.art-slides {
  position: absolute;
  inset: 0;
  z-index: 0
}

.art-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: art-fade 21s linear infinite
}

.art-slide:nth-child(2) {
  animation-delay: 7s
}

.art-slide:nth-child(3) {
  animation-delay: 14s
}

@keyframes art-fade {
  0% {
    opacity: 0
  }

  3% {
    opacity: 1
  }

  30% {
    opacity: 1
  }

  36% {
    opacity: 0
  }

  100% {
    opacity: 0
  }
}

.auth-art>.art-tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(118deg, rgba(8, 11, 22, .92) 0%, rgba(26, 17, 71, .74) 46%, rgba(58, 15, 63, .66) 100%)
}

@media (prefers-reduced-motion:reduce) {
  .art-slide {
    animation: none
  }

  .art-slide:first-child {
    opacity: 1
  }
}

.auth-art h1 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.04;
  margin: 26px 0 14px
}

.auth-art p {
  color: #cfd6ee;
  max-width: 440px;
  font-size: 16px
}

.art-stats {
  display: flex;
  gap: 28px;
  margin-top: 32px
}

.art-stats .s b {
  font-family: var(--display);
  font-size: 26px;
  display: block;
  color: var(--gold)
}

.art-stats .s span {
  color: #a9b2d6;
  font-size: 13px
}

.art-foot {
  color: #8a93bd;
  font-size: 12.5px
}

.auth-form-wrap {
  display: grid;
  place-items: center;
  padding: 40px 26px;
  background: var(--ink-2)
}

.auth-card {
  width: 100%;
  max-width: 420px
}

.auth-card h2 {
  font-size: 28px
}

.auth-card .lead {
  color: var(--muted);
  margin: 6px 0 26px;
  font-size: 15px
}

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px
}

.switch-line {
  margin-top: 20px;
  color: var(--muted);
  font-size: 14.5px;
  text-align: center
}

.switch-line a {
  color: var(--gold);
  font-weight: 700
}

/* ============ DASHBOARD SHELL ============ */
.shell {
  display: grid;
  grid-template-columns: 252px 1fr;
  min-height: 100vh;
  background: var(--ink)
}

.side {
  background: #fff;
  border-right: 1px solid var(--light-line);
  padding: 20px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto
}

.side .brandmark {
  padding: 6px 8px 18px;
  color: var(--dark-text)
}

.nav-label {
  font-size: 11px;
  letter-spacing: .14em;
  color: #9aa3bd;
  text-transform: uppercase;
  padding: 16px 12px 6px;
  font-weight: 700
}

.nav a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 13px;
  border-radius: 11px;
  color: var(--dark-muted);
  font-weight: 600;
  font-size: 14.5px;
  transition: .15s;
  cursor: pointer
}

.nav a:hover {
  background: var(--light-2);
  color: var(--dark-text)
}

.nav a.active {
  background: linear-gradient(90deg, rgba(109, 94, 252, .14), rgba(214, 41, 107, .10));
  color: var(--indigo)
}

.nav a svg {
  width: 19px;
  height: 19px;
  flex: none
}

.nav .sep {
  height: 1px;
  background: var(--light-line);
  margin: 12px 8px
}

.main {
  min-width: 0;
  background: linear-gradient(180deg, #0e1730, #0a0f20 40%, #0a0f20)
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 28px;
  background: #fff;
  border-bottom: 1px solid var(--light-line);
  position: sticky;
  top: 0;
  z-index: 40
}

.topbar .bal {
  font-family: var(--display);
  font-weight: 800;
  font-size: 24px;
  color: var(--dark-text)
}

.topbar .bal span {
  display: block;
  font-size: 11.5px;
  color: #8a93bd;
  font-family: var(--body);
  font-weight: 600;
  letter-spacing: .04em
}

.top-right {
  display: flex;
  align-items: center;
  gap: 14px
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--light-line);
  background: #fff;
  color: #5b6486;
  display: grid;
  place-items: center;
  position: relative
}

.icon-btn:hover {
  color: var(--indigo);
  border-color: #cfd5ea
}

.icon-btn .dot {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--magenta)
}

.lang {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--light-line);
  border-radius: 12px;
  padding: 8px 12px;
  color: var(--dark-text);
  font-weight: 700;
  font-size: 13px
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--magenta));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px
}

.who {
  font-weight: 700;
  font-size: 14px;
  color: var(--dark-text)
}

.who span {
  display: block;
  color: #8a93bd;
  font-size: 12px;
  font-weight: 500
}

.menu-toggle {
  display: none
}

.ticker {
  overflow: hidden;
  padding: 0;
  border-bottom: 1px solid var(--light-line);
  background: var(--light-2);
  font-size: 13px;
  color: var(--dark-text);
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent)
}

.ticker:hover .ticker-track {
  animation-play-state: paused
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  padding: 9px 0;
  animation: ticker-scroll 42s linear infinite;
  will-change: transform
}

.ticker .t {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 4px 18px;
  border-right: 1px solid var(--light-line);
  border-radius: 7px;
  transition: background .5s ease
}

.ticker .t.flash-up {
  background: rgba(231, 181, 79, .28)
}

.ticker .t.flash-down {
  background: rgba(239, 93, 117, .22)
}

.ticker .t b {
  font-weight: 800
}

.ticker .t .px {
  font-weight: 700;
  min-width: 64px;
  display: inline-block;
  text-align: right
}

.ticker .t .chg {
  font-weight: 700;
  min-width: 118px;
  display: inline-block
}

.ticker .up {
  color: var(--gold-2)
}

.ticker .down {
  color: var(--debit)
}

.ticker .arrow {
  font-size: 9px;
  vertical-align: middle
}

.ticker .sym {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 800;
  color: #fff;
  letter-spacing: .02em
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0)
  }

  to {
    transform: translateX(-50%)
  }
}

@media (prefers-reduced-motion:reduce) {
  .ticker-track {
    animation: none
  }
}

.content {
  padding: 24px 28px 70px;
  max-width: var(--maxw)
}

.welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(109, 94, 252, .25), rgba(91, 141, 239, .18));
  border: 1px solid var(--line-2);
  margin-bottom: 18px
}

.welcome b {
  font-family: var(--display)
}

.welcome .x {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  background: rgba(239, 93, 117, .15);
  color: var(--debit);
  display: grid;
  place-items: center
}

.qa {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px
}

.qa button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid var(--line);
  transition: .15s;
  min-width: 0
}

.qa .q1 {
  background: #fff;
  color: var(--dark-text)
}

.qa .q2 {
  background: #fff;
  color: var(--dark-text)
}

.qa .q3 {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #2a1f05;
  border-color: transparent
}

.qa button:hover {
  transform: translateY(-2px)
}

.qa svg {
  width: 20px;
  height: 20px
}

.overview {
  border-radius: var(--radius-lg);
  padding: 28px;
  color: #fff;
  box-shadow: var(--shadow-card);
  margin-bottom: 18px;
  background: linear-gradient(135deg, #2a1257 0%, #5a1b6e 55%, #8a1c5c 100%);
  position: relative;
  overflow: hidden
}

.overview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(500px 260px at 100% 0%, rgba(231, 181, 79, .18), transparent 60%)
}

.overview>* {
  position: relative;
  z-index: 1
}

.ov-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px
}

.ov-grid .k {
  color: #e7d6f2;
  font-size: 14px;
  opacity: .85
}

.ov-grid .v {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 800;
  margin-top: 6px
}

.ov-grid .v.sm {
  font-size: 22px
}

.ov-actions {
  display: flex;
  gap: 14px;
  margin-top: 22px;
  flex-wrap: wrap
}

.ov-actions .btn {
  background: rgba(0, 0, 0, .28);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .18)
}

.ov-actions .btn:hover {
  background: rgba(0, 0, 0, .42)
}

.grid {
  display: grid;
  gap: 18px
}

.cards-2 {
  grid-template-columns: 1.55fr .95fr
}

.card {
  background: linear-gradient(180deg, var(--navy), var(--ink-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px
}

.card.light {
  background: #fff;
  color: var(--dark-text);
  border-color: var(--light-line)
}

.card h3 {
  font-size: 17px;
  margin-bottom: 14px
}

.card.light h3 {
  color: var(--dark-text)
}

.stmt-head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--dark-muted);
  font-style: italic;
  margin-bottom: 18px
}

.stmt-head .see {
  font-style: normal;
  font-weight: 800;
  color: var(--dark-text);
  text-decoration: underline;
  cursor: pointer
}

/* bank card — single 3D flip card */
.cards-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 18px
}

.card-wrap {
  flex: 1 1 300px;
  max-width: 420px;
  margin: 0
}

.flip-card {
  perspective: 1500px;
  cursor: pointer
}

.flip-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 1.586/1;
  transition: transform .7s cubic-bezier(.4, .2, .2, 1);
  transform-style: preserve-3d
}

.flip-card.flipped .flip-inner {
  transform: rotateY(180deg)
}

.flip-card:hover .flip-inner {
  box-shadow: none
}

.flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 255, 255, .12)
}

.flip-face.back {
  transform: rotateY(180deg)
}

.bankcard {
  padding: 22px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(135deg, #3a0f3f, #8a1c5c 58%, #d6296b)
}

.bankcard.back {
  background: linear-gradient(135deg, #2a0c2e, #5e1244 60%, #8a1c5c)
}

.bankcard.card2 {
  background: linear-gradient(135deg, #161346, #2f2a86 55%, #6d5efc)
}

.bankcard.card2.back {
  background: linear-gradient(135deg, #0f0d33, #221d63 60%, #3a328f)
}

.bankcard.card2::after {
  background: radial-gradient(360px 200px at 110% -10%, rgba(231, 181, 79, .22), transparent 55%)
}

.bankcard::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(360px 200px at 110% -10%, rgba(231, 181, 79, .28), transparent 55%);
  pointer-events: none
}

.bankcard>* {
  position: relative;
  z-index: 1
}

.bankcard .ctop {
  display: flex;
  justify-content: space-between;
  align-items: flex-start
}

.bankcard .tier {
  font-size: 13px;
  letter-spacing: .16em;
  font-weight: 700
}

.bankcard .wifi {
  width: 24px;
  height: 24px;
  opacity: .9
}

.bankcard .chip {
  width: 46px;
  height: 34px;
  border-radius: 7px;
  margin: 4px 0;
  position: relative;
  background: linear-gradient(135deg, #f4d27a, #c79a3a);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15)
}

.bankcard .chip::before {
  content: "";
  position: absolute;
  inset: 6px 8px;
  border: 1px solid rgba(0, 0, 0, .25);
  border-radius: 3px
}

.bankcard .pan {
  font-family: var(--display);
  font-size: clamp(20px, 4.4vw, 26px);
  letter-spacing: .1em;
  display: flex;
  gap: clamp(8px, 2.4vw, 16px);
  font-weight: 700
}

.bankcard .cbot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px
}

.bankcard .cbot .lbl {
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #f0cfe2
}

.bankcard .cbot .val {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  white-space: nowrap
}

.bankcard .mc {
  display: flex;
  align-items: center
}

.bankcard .mc i {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: block
}

.bankcard .mc i:first-child {
  background: rgba(231, 181, 79, .95)
}

.bankcard .mc i:last-child {
  background: rgba(239, 93, 117, .9);
  margin-left: -13px;
  mix-blend-mode: screen
}

.bankcard.back {
  padding: 0
}

.bankcard.back .stripe {
  height: 46px;
  background: #15101a;
  margin-top: 22px
}

.bankcard.back .sig {
  background: repeating-linear-gradient(90deg, #fff, #fff 7px, #e7e7e7 7px, #e7e7e7 14px);
  height: 36px;
  border-radius: 5px;
  margin: 18px 22px 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px
}

.bankcard.back .sig .cvv {
  color: #1a1a1a;
  font-style: italic;
  font-weight: 700;
  letter-spacing: .1em
}

.bankcard.back .legal {
  font-size: 11px;
  color: #f0cfe2;
  margin: 14px 22px 0;
  line-height: 1.45
}

.bankcard.back .back-mc {
  position: absolute;
  bottom: 18px;
  right: 20px
}

.flip-hint {
  font-size: 12px;
  color: var(--faint);
  text-align: center;
  margin-top: 10px;
  user-select: none
}

/* recent tx timeline */
.tl {
  position: relative;
  padding-left: 8px
}

.tx {
  display: flex;
  gap: 16px;
  padding: 6px 0 20px;
  position: relative
}

.tx::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 42px;
  bottom: -6px;
  width: 2px;
  background: repeating-linear-gradient(to bottom, var(--line-2), var(--line-2) 4px, transparent 4px, transparent 9px)
}

.tx:last-child::before {
  display: none
}

.tx .ic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  background: rgba(91, 141, 239, .18);
  color: #9cc0ff;
  z-index: 1
}

.tx .body .date {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 8px
}

.tx .body .id {
  font-weight: 800;
  font-family: var(--display);
  margin-bottom: 4px
}

.tx .body .ln {
  font-size: 13.5px;
  color: var(--muted);
  margin: 2px 0
}

.tx .body .ln b {
  color: var(--text)
}

.tx .body .tags {
  display: flex;
  gap: 8px;
  margin-top: 10px
}

.side-card {
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--navy-2), var(--ink-2))
}

.side-card h3 {
  font-size: 18px;
  margin-bottom: 10px
}

.side-card p {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 14px
}

table.statement {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px
}

table.statement th {
  text-align: left;
  color: var(--faint);
  font-weight: 700;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line-2)
}

table.statement td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line)
}

table.statement tr:hover td {
  background: rgba(255, 255, 255, .02)
}

.foot {
  color: var(--faint);
  font-size: 13px;
  padding: 24px 4px 0;
  text-align: center
}

.kv {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px
}

.kv:last-child {
  border: none
}

.kv .k {
  color: var(--muted)
}

.kv .v {
  font-weight: 700
}

/* ============ PROFILE PAGE ============ */
.profile-hero {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  min-height: 300px;
  display: flex;
  align-items: center;
  padding: 40px 36px;
  color: #fff;
  background: linear-gradient(120deg, rgba(20, 12, 46, .92), rgba(58, 15, 63, .6)), url("https://images.unsplash.com/photo-1521737604893-d14cc237f11d?q=80&w=1600&auto=format&fit=crop") center/cover
}

.profile-hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: -.02em
}

.profile-hero p {
  color: #e7d6f2;
  margin: 12px 0 22px;
  font-size: 17px
}

.pf-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, .6);
  background: linear-gradient(135deg, var(--violet), var(--magenta));
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 40px;
  color: #fff;
  margin-bottom: 18px;
  background-size: cover;
  background-position: center
}

.pf-section {
  background: #fff;
  color: var(--dark-text);
  border: 1px solid var(--light-line);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 18px 0
}

.pf-section h2 {
  font-size: 22px;
  color: var(--dark-text);
  margin-bottom: 22px
}

.pf-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  align-items: center;
  padding: 10px 0
}

.pf-row>label {
  color: var(--dark-muted);
  font-weight: 600;
  font-size: 15px
}

.pf-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: var(--dark-text);
  background: var(--light-2);
  border: 1px solid var(--light-line);
  transition: .15s
}

.pf-input:focus {
  outline: none;
  border-color: var(--indigo);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(109, 94, 252, .14)
}

.pf-input.locked {
  background: #eef0f6;
  color: #8089a3
}

.pf-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px
}

.pf-bottom {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 18px;
  margin-bottom: 30px
}

.kyc {
  border-radius: var(--radius-lg);
  padding: 28px;
  color: #fff;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #16204a, #0c1228)
}

.kyc h3 {
  font-size: 20px;
  margin-bottom: 10px
}

.kyc p {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0 0 16px;
  max-width: 520px
}

.kyc .filerow {
  display: flex;
  gap: 12px;
  align-items: stretch;
  flex-wrap: wrap;
  margin-top: 14px
}

.filepick {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--light-line);
  border-radius: 10px;
  overflow: hidden
}

.filepick .nm {
  flex: 1;
  padding: 13px 14px;
  color: #8a93bd;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.filepick .br {
  padding: 13px 16px;
  background: var(--light-2);
  color: var(--dark-text);
  font-weight: 700;
  border-left: 1px solid var(--light-line)
}

.kyc .accepted {
  font-size: 12.5px;
  color: var(--faint);
  margin-top: 10px
}

.photo-card {
  background: #fff;
  color: var(--dark-text);
  border: 1px solid var(--light-line);
  border-radius: var(--radius-lg);
  padding: 24px
}

.photo-card h3 {
  font-size: 19px;
  margin-bottom: 18px
}

.photo-prev {
  width: 84px;
  height: 84px;
  border-radius: 14px;
  background: var(--light-2);
  border: 1px solid var(--light-line);
  margin-bottom: 16px;
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  color: #aeb6cd;
  font-size: 12px
}


/* ============================================================
   RESPONSIVE BREAKPOINTS  (added)
   Ordered widest → narrowest so narrower rules win the cascade.
   Pages covered: auth (login / signup / index), dashboard, profile.
   NOTE: the dashboard sidebar collapse + grid-stacking rules below
   were previously OUTSIDE any media query, so they applied on every
   screen and kept the desktop layout stuck in "mobile" mode. They
   now live inside the correct breakpoints.
   ============================================================ */

/* ---- Extra-large screens: a touch more room ---- */
@media (min-width: 1500px) {
  :root {
    --maxw: 1320px;
  }

  .content {
    padding: 30px 40px 80px;
  }
}

/* ---- Laptops / small desktops ---- */
@media (max-width: 1200px) {
  .content {
    padding: 22px 22px 64px;
  }

  .topbar {
    padding: 14px 20px;
  }

  .ov-grid {
    gap: 20px;
  }
}

/* ---- Tablet landscape: dashboard sidebar → off-canvas drawer ---- */
@media (max-width: 980px) {

  /* dashboard shell becomes single column */
  .shell {
    grid-template-columns: 1fr;
  }

  .side {
    position: fixed;
    left: -280px;
    top: 0;
    width: 260px;
    height: 100vh;
    transition: left .25s ease;
    z-index: 120;
    box-shadow: var(--shadow);
  }

  .side.open {
    left: 0;
  }

  .menu-toggle {
    display: grid;
  }

  /* stacked content grids */
  .cards-2,
  .bankcards {
    grid-template-columns: 1fr;
  }

  .pf-bottom {
    grid-template-columns: 1fr;
  }

  .pf-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* auth: stack the art panel above the form */
  .auth {
    grid-template-columns: 1fr;
  }

  .auth-art {
    padding: 40px 32px;
    min-height: 300px;
  }

  .content {
    padding: 20px 18px 60px;
  }
}

/* Optional dim scrim behind the open drawer.
   Inert unless you add <div class="side-scrim"></div> after .side
   and toggle .show together with .side.open in your JS. */
.side-scrim {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 14, .55);
  z-index: 110;
}

@media (max-width: 980px) {
  .side-scrim.show {
    display: block;
  }
}

/* ---- Tablet portrait ---- */
@media (max-width: 768px) {
  .auth-art {
    padding: 34px 26px;
  }

  .auth-art .art-stats {
    gap: 18px;
  }

  .auth-form-wrap {
    padding: 32px 20px;
  }

  .qa {
    grid-template-columns: 1fr 1fr;
  }

  .content {
    padding: 18px 16px 56px;
  }

  .overview {
    padding: 22px;
  }

  .ov-grid .v {
    font-size: 26px;
  }

  .topbar {
    padding: 12px 16px;
  }

  .topbar .bal {
    font-size: 20px;
  }

  .profile-hero {
    padding: 32px 22px;
    min-height: 240px;
  }

  .pf-section {
    padding: 22px;
  }

  .cards-row {
    gap: 16px;
  }
}

/* ---- Phones ---- */
@media (max-width: 560px) {
  .row-2 {
    grid-template-columns: 1fr;
  }

  .ticker {
    display: none;
  }

  .ov-grid {
    grid-template-columns: 1fr;
  }

  .qa {
    grid-template-columns: 1fr;
  }

  .topbar .who {
    display: none;
  }

  .lang {
    display: none;
  }

  /* hide the animated/image-heavy auth art on phones (form-first).
     Prefer to keep branding? Swap `display:none` for
     `min-height:180px` to show a slim band instead. */
  .auth-art {
    display: none;
  }

  .auth-form-wrap {
    padding: 26px 16px;
  }

  .auth-card h2 {
    font-size: 24px;
  }

  .content {
    padding: 16px 13px 52px;
  }

  .overview {
    padding: 20px;
  }

  .ov-actions {
    gap: 10px;
  }

  .ov-actions .btn {
    flex: 1 1 auto;
  }

  .card {
    padding: 18px;
  }

  .pf-section {
    padding: 18px;
  }

  .profile-hero h1 {
    font-size: clamp(30px, 8vw, 42px);
  }

  .modal {
    padding: 22px;
  }

  /* backdrop-filter blur is a common source of jank on low-end phones */
  .modal-bg {
    backdrop-filter: none;
    background: rgba(4, 7, 14, .82);
  }

  .toast-wrap {
    right: 12px;
    left: 12px;
    bottom: 12px;
  }

  .toast {
    max-width: none;
  }
}

/* ---- Small phones ---- */
@media (max-width: 380px) {
  .brandmark .name {
    font-size: 17px;
  }

  .topbar .bal {
    font-size: 18px;
  }

  .btn {
    padding: 11px 14px;
    font-size: 14px;
  }

  .content {
    padding: 14px 11px 48px;
  }

  .card {
    padding: 15px;
  }

  .bankcard {
    padding: 18px;
  }

  .auth-card h2 {
    font-size: 22px;
  }

  .pf-avatar {
    width: 92px;
    height: 92px;
    font-size: 32px;
  }
}

/* ---- Landscape phones: reclaim vertical space ---- */
@media (max-height: 480px) and (orientation: landscape) {
  .auth {
    min-height: auto;
  }

  .side {
    padding: 14px 10px;
  }
}

/* ---- Touch / low-power devices: drop hover-lift transforms (anti-lag) ---- */
@media (hover: none) and (pointer: coarse) {

  .qa button:hover,
  .btn-primary:hover,
  .btn-gold:hover,
  .btn-light:hover {
    transform: none;
  }

  .flip-card:hover .flip-inner {
    box-shadow: var(--shadow-card);
  }
}