/* ============================================================
   GrozavBank — Components
   Brand, buttons, badges, cards, phone mockups, dashboard parts
   ============================================================ */

/* ---------- brand ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
}

.brand__mark--sm {
  width: 28px;
  height: 28px;
}

.brand__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(44, 19, 92, 0.32));
}

.brand__name {
  font-size: 16px;
  font-weight: 700;
}

.brand--footer {
  color: #fff;
}

/* ---------- badge pill ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(167, 139, 250, 0.08);
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet-300);
  box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.18);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform var(--t-fast) var(--ease),
    background-color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: translateY(1px);
}

.btn--sm {
  padding: 9px 16px;
  font-size: 13.5px;
}

.btn--lg {
  padding: 15px 26px;
  font-size: 15.5px;
}

.btn--block {
  width: 100%;
}

.btn--primary {
  background: #ffffff;
  color: #0b0b1a;
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 30px -10px rgba(255, 255, 255, 0.35);
}

.btn--primary:hover {
  background: #f3f0ff;
  border-color: #f3f0ff;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn--outline {
  background: transparent;
  color: var(--gray-900);
  border: 1px solid var(--color-border-light);
}

.btn--outline:hover {
  background: var(--gray-50);
  border-color: #dcdfe5;
}

.btn--dark {
  background: #0d0f1f;
  color: #fff;
  border: 1px solid #0d0f1f;
}

.btn--dark:hover {
  background: #17192b;
  border-color: #17192b;
}

/* ---------- bank cards (hero) ---------- */
.bankcard {
  position: relative;
  width: 320px;
  aspect-ratio: 1.586 / 1;
  border-radius: 18px;
  padding: 20px 22px;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(10, 12, 28, 0.7),
    0 8px 24px -8px rgba(124, 58, 237, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  will-change: transform;
}

.bankcard::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      120% 100% at 100% 0%,
      rgba(255, 255, 255, 0.14),
      transparent 50%
    ),
    radial-gradient(
      140% 100% at 0% 100%,
      rgba(255, 255, 255, 0.06),
      transparent 50%
    );
  pointer-events: none;
}

.bankcard--violet {
  background: linear-gradient(135deg, #2a1761 0%, #6b3dd1 55%, #3a1e7c 100%);
}

.bankcard--graphite {
  background: linear-gradient(135deg, #111524 0%, #1b2035 50%, #0c0f1c 100%);
}

.bankcard--light {
  background: linear-gradient(135deg, #e9e9ee 0%, #c8cad4 55%, #a6aab8 100%);
  color: #1a1a2b;
  border-color: rgba(0, 0, 0, 0.05);
}

.bankcard__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.bankcard__brand {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.bankcard__type {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.bankcard__type--dark {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.1);
  color: #1a1a2b;
}

.bankcard__brand--dark {
  color: #1a1a2b;
}

.bankcard__chip {
  width: 34px;
  height: 26px;
  border-radius: 6px;
  background: linear-gradient(135deg, #d9c58a, #a2803a);
  position: relative;
  margin-top: 10px;
}

.bankcard__chip::before,
.bankcard__chip::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  height: 1px;
  background: rgba(0, 0, 0, 0.25);
}

.bankcard__chip::before {
  top: 9px;
}

.bankcard__chip::after {
  top: 16px;
}

.bankcard__chip--dark {
  background: linear-gradient(135deg, #c8ab69, #8f6d2d);
}

.bankcard__number {
  display: flex;
  gap: 10px;
  font-family: "Inter", monospace;
  font-variant-numeric: tabular-nums;
  font-size: 16px;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.bankcard__number--dark {
  color: #1a1a2b;
}

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

.bankcard__bottom--dark {
  color: #1a1a2b;
}

.bankcard__label {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 2px;
}

.bankcard__value {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.bankcard__logo {
  width: 42px;
  height: 26px;
  opacity: 0.92;
}

/* ---------- stats row ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stats__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stats__num {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.stats__label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

/* ---------- phone mockups ---------- */
.phone {
  position: relative;
}

.phone__frame {
  position: relative;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 9 / 19.5;
  margin: 0 auto;
  padding: 10px;
  background: linear-gradient(180deg, #161a2a 0%, #0b0d1a 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 40px;
  box-shadow: 0 40px 80px -30px rgba(10, 12, 28, 0.9),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.phone__notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 22px;
  background: #05060f;
  border-radius: 999px;
  z-index: 2;
}

.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 30px;
  background: #0a0c17;
  color: #fff;
  padding: 32px 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.p-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
  font-weight: 600;
  color: #fff;
  padding: 0 8px;
  margin-bottom: 2px;
  opacity: 0.9;
}

.p-statusbar__right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.p-signal,
.p-wifi,
.p-battery {
  width: 14px;
  height: 9px;
  background: currentColor;
  border-radius: 2px;
  opacity: 0.9;
}

.p-battery {
  width: 18px;
  height: 8px;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 2px;
  position: relative;
}

.p-battery::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  bottom: 1px;
  width: 70%;
  background: currentColor;
  border-radius: 1px;
}

.p-battery::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 2px;
  bottom: 2px;
  width: 2px;
  background: currentColor;
  border-radius: 0 1px 1px 0;
}

/* Phone 1: home */
.phone__screen--home {
  background: radial-gradient(
      80% 50% at 50% 0%,
      rgba(124, 58, 237, 0.28),
      transparent 60%
    ),
    #0a0c17;
}

.p-home__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px;
}

.p-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #a78bfa, #6d28d9);
  color: #fff;
}

.p-home__hi {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.55);
}

.p-home__name {
  font-size: 13px;
  font-weight: 600;
}

.p-icon-btn {
  margin-left: auto;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  color: #fff;
}

.p-balance {
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.14), rgba(167, 139, 250, 0));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 14px;
}

.p-balance__label {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.04em;
}

.p-balance__value {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 4px;
}

.p-balance__currency {
  font-size: 14px;
  opacity: 0.7;
  margin-right: 2px;
  vertical-align: top;
  line-height: 26px;
}

.p-balance__cents {
  font-size: 16px;
  opacity: 0.5;
}

.p-balance__sub {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
}

.p-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.p-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 9px 4px;
}

.p-action__icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.p-action__icon svg,
.p-tx__icon svg,
.p-back svg,
.p-chip svg,
.app__search svg,
.app__icon svg,
.acc-card__plus svg,
.tx__icon svg {
  display: block;
}

.p-section {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 10px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.p-section__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.p-section__head h4 {
  font-size: 11.5px;
  font-weight: 600;
}

.p-section__head a {
  font-size: 10px;
  color: var(--violet-300);
}

.p-tx {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.p-tx li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  font-size: 11px;
}

.p-tx__icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
}

.p-tx__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.p-tx__main span:first-child {
  font-weight: 600;
  color: #fff;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.p-tx__meta {
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.4);
}

.p-tx__amt {
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.9);
}

.p-tx__amt--pos {
  color: var(--green-400);
}

.p-tabbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: auto;
  padding: 6px 4px 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.p-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.35);
}

.p-tab--active {
  color: #fff;
}

.p-tab--active svg {
  color: var(--violet-300);
}

/* Phone 2: cards */
.phone__screen--cards {
  background: #0a0c17;
}

.p-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2px;
}

.p-card-head h4 {
  font-size: 13px;
  font-weight: 600;
}

.p-back {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  color: #fff;
}

.p-card-hero {
  padding: 10px 0 6px;
  display: grid;
  place-items: center;
}

.p-card-hero__card {
  width: 180px;
  aspect-ratio: 1.586/1;
  border-radius: 14px;
  padding: 14px;
  color: #fff;
  background: linear-gradient(135deg, #1b1f30 0%, #252a42 60%, #0f1222 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto auto;
  gap: 6px;
  box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.6);
}

.p-card-hero__brand {
  font-size: 11px;
  font-weight: 700;
}

.p-card-hero__chip {
  width: 22px;
  height: 16px;
  border-radius: 3px;
  background: linear-gradient(135deg, #d9c58a, #a2803a);
  margin-top: 4px;
}

.p-card-hero__num {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-top: auto;
}

.p-card-hero__name {
  font-size: 9px;
  opacity: 0.7;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.p-tabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  overflow: hidden;
}

.p-tabs__item {
  flex: 1;
  font-size: 10px;
  font-weight: 500;
  padding: 6px 4px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}

.p-tabs__item--active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.p-themes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  flex: 1;
}

.p-theme {
  aspect-ratio: 1.1/1;
  border-radius: 10px;
  display: flex;
  align-items: flex-end;
  padding: 6px;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.p-theme--graphite {
  background: linear-gradient(135deg, #111524, #1b2035);
}
.p-theme--violet {
  background: linear-gradient(135deg, #2a1761, #6b3dd1);
}
.p-theme--silver {
  background: linear-gradient(135deg, #c8cad4, #a6aab8);
  color: #1a1a2b;
}
.p-theme--midnight {
  background: linear-gradient(135deg, #071433, #030715);
}
.p-theme--emerald {
  background: linear-gradient(135deg, #0b3b2a, #0f5a3f);
}
.p-theme--sand {
  background: linear-gradient(135deg, #e8d6b2, #b79463);
  color: #1a1a2b;
}

.p-theme--selected {
  outline: 2px solid var(--violet-300);
  outline-offset: 2px;
}

.p-theme--selected::after {
  content: "✓";
  position: absolute;
  top: 5px;
  right: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--violet-300);
  color: #0b0b1a;
  font-size: 9px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.p-cta {
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  background: #fff;
  color: #0b0b1a;
  font-size: 12px;
  font-weight: 600;
}

/* Phone 3: insights */
.phone__screen--insights {
  background: #0a0c17;
}

.p-insights-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.p-insights-head h4 {
  font-size: 12.5px;
  font-weight: 600;
}

.p-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.75);
}

.p-spend {
  padding: 4px 2px;
}

.p-spend__label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.55);
}

.p-spend__value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-top: 2px;
}

.p-spend__value span {
  font-size: 16px;
  opacity: 0.5;
}

.p-spend__delta {
  font-size: 10px;
  color: var(--green-400);
  margin-top: 2px;
  display: inline-block;
}

.p-chart {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 10px;
  height: 86px;
}

.p-chart svg {
  width: 100%;
  height: 100%;
}

.p-cats {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.p-cats li {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 6px;
  align-items: center;
  font-size: 10.5px;
}

.p-cat__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.p-cat__name {
  color: rgba(255, 255, 255, 0.8);
  min-width: 42px;
}

.p-bar {
  display: block;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.p-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.p-cat__val {
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.7);
}

.p-budget {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 10px 12px;
}

.p-budget__head {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 6px;
}

.p-budget__bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.p-budget__bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #a78bfa, #7c3aed);
}

/* ---------- window (dashboard) ---------- */
.window {
  background: #ffffff;
  border: 1px solid var(--color-border-light);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 50px 120px -40px rgba(17, 24, 39, 0.25),
    0 18px 40px -18px rgba(17, 24, 39, 0.08);
}

.window__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #fafbfc;
  border-bottom: 1px solid var(--color-border-light);
  color: var(--gray-500);
  font-size: 12px;
}

.window__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.window__dot--r {
  background: #ff5f57;
}

.window__dot--y {
  background: #febc2e;
}

.window__dot--g {
  background: #28c840;
}

.window__url {
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--color-border-light);
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 11.5px;
  color: var(--gray-500);
}

/* app grid */
.app {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 620px;
  color: var(--color-text-dark);
}

.app__side {
  background: #fbfbfd;
  border-right: 1px solid var(--color-border-light);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.app__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  color: var(--gray-900);
  font-size: 14.5px;
  padding: 6px 2px;
}

.app__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app__nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--gray-500);
  font-weight: 500;
  transition: background-color var(--t-fast), color var(--t-fast);
}

.app__nav-icon {
  flex: 0 0 16px;
  color: currentColor;
}

.app__nav a:hover {
  background: #f1f2f6;
  color: var(--gray-900);
}

.app__nav a.is-active {
  background: #ededf3;
  color: var(--gray-900);
  font-weight: 600;
}

.app__promo {
  margin-top: auto;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ede9fe, #f3e8ff);
  border: 1px solid #e4def9;
}

.app__promo-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-900);
}

.app__promo-sub {
  font-size: 11.5px;
  color: var(--gray-500);
  margin: 4px 0 10px;
}

/* main */
.app__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--color-border-light);
  background: #fff;
  flex-wrap: wrap;
}

.app__top h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
}

.app__top-sub {
  font-size: 12.5px;
  color: var(--gray-500);
  margin-top: 2px;
}

.app__top-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app__search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: #f4f5f8;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: border-color var(--t-fast), background var(--t-fast);
}

.app__search svg {
  color: var(--gray-400);
  flex: 0 0 14px;
}

.app__search:focus-within {
  background: #fff;
  border-color: var(--color-border-light);
}

.app__search input {
  border: 0;
  background: transparent;
  outline: none;
  font-size: 12.5px;
  width: 220px;
  color: var(--gray-700);
}

.app__search input::placeholder {
  color: var(--gray-400);
}

.app__icon {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--color-border-light);
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--gray-700);
  transition: background var(--t-fast);
}

.app__icon:hover {
  background: #f5f5fa;
}

.app__icon-dot {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet-500);
  border: 2px solid #fff;
}

.app__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #3730a3);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11.5px;
  font-weight: 700;
}

/* body */
.app__body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  padding: 20px 24px 24px;
  background: #fafbfc;
  flex: 1;
}

.app__body-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

/* account cards */
.acc-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.acc-card {
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
  text-align: left;
  color: var(--gray-900);
}

.acc-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.acc-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.acc-card__trend {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--green-500);
  background: #ecfdf5;
  padding: 2px 6px;
  border-radius: 999px;
}

.acc-card__trend--neg {
  color: #ef4444;
  background: #fef2f2;
}

.acc-card__bal {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--gray-900);
}

.acc-card__bal span {
  opacity: 0.5;
  font-size: 14px;
  font-weight: 600;
}

.acc-card__label {
  font-size: 11.5px;
  color: var(--gray-500);
}

.acc-card--add {
  border: 1px dashed #d4d7dd;
  background: transparent;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  color: var(--gray-500);
  font-size: 12.5px;
  font-weight: 500;
  padding: 16px 12px;
}

.acc-card__plus {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--color-border-light);
  display: grid;
  place-items: center;
  color: var(--gray-700);
}

.acc-card__note {
  font-size: 11px;
  color: var(--gray-400);
}

/* flags */
.flag {
  width: 26px;
  height: 26px;
  display: block;
  flex: 0 0 26px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px #e5e7eb;
}

/* transaction panel */
.tx-panel {
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: 14px;
  padding: 16px 18px;
}

.tx-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.tx-panel__head h4 {
  font-size: 15px;
  color: var(--gray-900);
  font-weight: 700;
}

.tx-panel__head p {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 2px;
}

.tx-panel__filters {
  display: flex;
  gap: 6px;
}

.pill {
  padding: 5px 12px;
  border-radius: 999px;
  background: #f4f5f8;
  color: var(--gray-600);
  font-size: 12px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background var(--t-fast), color var(--t-fast);
}

.pill:hover {
  background: #ecedf1;
}

.pill--active {
  background: var(--gray-900);
  color: #fff;
}

.tx-list {
  display: flex;
  flex-direction: column;
}

.tx {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid #f0f1f5;
}

.tx:first-child {
  border-top: 0;
  padding-top: 6px;
}

.tx__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
}

.tx__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tx__name {
  font-size: 13.5px;
  color: var(--gray-900);
  font-weight: 600;
}

.tx__sub {
  font-size: 11.5px;
  color: var(--gray-500);
  margin-top: 1px;
}

.tx__cat {
  font-size: 11px;
  color: var(--gray-500);
  background: #f4f5f8;
  padding: 3px 9px;
  border-radius: 999px;
}

.tx__amt {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gray-900);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.005em;
}

.tx__amt--pos {
  color: var(--green-500);
}

/* send widget */
.send {
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-self: start;
}

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

.send__head h4 {
  font-size: 15px;
  color: var(--gray-900);
}

.send__tag {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--green-500);
  background: #ecfdf5;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field__label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--gray-500);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.field__recipient {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
}

.field__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #9fe870, #22c55e);
  color: #0b3a1a;
  font-size: 10.5px;
  font-weight: 700;
}

.field__name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-900);
}

.field__sub {
  font-size: 11px;
  color: var(--gray-500);
}

.field__edit {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--violet-500);
  font-weight: 600;
}

.field__amount {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
}

.field__amount input {
  border: 0;
  outline: none;
  background: transparent;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--gray-900);
  width: 100%;
  min-width: 0;
}

.field__amount select {
  border: 0;
  outline: none;
  background: #f4f5f8;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--gray-700);
}

.send__rate {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--gray-500);
}

.send__rate--bold {
  color: var(--gray-900);
  font-weight: 600;
  padding-top: 10px;
  border-top: 1px dashed var(--color-border-light);
}

/* ---------- feature cards ---------- */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feat {
  padding: 26px 22px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform var(--t-fast) var(--ease),
    background var(--t-fast), border-color var(--t-fast);
}

.feat:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

.feat__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(
      135deg,
      rgba(167, 139, 250, 0.22),
      rgba(124, 58, 237, 0.1)
    ),
    rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(167, 139, 250, 0.25);
  color: var(--violet-300);
}

.feat h3 {
  font-size: 16.5px;
  color: #fff;
}

.feat p {
  font-size: 14px;
  color: var(--color-text-muted);
}

/* ---------- security cards + panel ---------- */
.sec-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 32px;
}

.sec {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  align-items: flex-start;
}

.sec__icon {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--violet-300);
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.22);
}

.sec h3 {
  font-size: 15px;
  color: #fff;
  margin-bottom: 3px;
}

.sec p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.6);
}

.secpanel {
  background: rgba(10, 12, 24, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 20px 22px;
  backdrop-filter: blur(12px);
  box-shadow: 0 30px 80px -30px rgba(124, 58, 237, 0.45);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.secpanel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 4px;
}

.secpanel__status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

.secpanel__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-400);
  box-shadow: 0 0 0 4px rgba(159, 232, 112, 0.18);
  animation: pulse 2s var(--ease) infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 4px rgba(159, 232, 112, 0.18);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(159, 232, 112, 0.05);
  }
}

.secpanel__time {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.4);
}

.secpanel__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.75);
}

.secpanel__row--warn {
  color: #fff;
}

.secpanel__ok {
  font-size: 12px;
  color: var(--green-400);
  font-weight: 600;
}

.secpanel__warn {
  font-size: 12px;
  color: #fbbf24;
  font-weight: 600;
}

.secpanel__cta {
  margin-top: 8px;
  padding: 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  transition: background var(--t-fast);
}

.secpanel__cta:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ---------- pricing ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}

.plan {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: 20px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}

.plan:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.plan--featured {
  background: linear-gradient(180deg, #0d0f1f, #1a1033);
  color: #fff;
  border-color: rgba(167, 139, 250, 0.35);
  box-shadow: 0 30px 80px -30px rgba(124, 58, 237, 0.5);
}

.plan--featured:hover {
  transform: translateY(-3px);
}

.plan--featured .plan__head h3,
.plan--featured .plan__amount {
  color: #fff;
}

.plan--featured .plan__head p,
.plan--featured .plan__period {
  color: rgba(255, 255, 255, 0.55);
}

.plan--featured .plan__list li {
  color: rgba(255, 255, 255, 0.82);
  border-top-color: rgba(255, 255, 255, 0.08);
}

.plan__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(167, 139, 250, 0.18);
  color: var(--violet-300);
  border: 1px solid rgba(167, 139, 250, 0.3);
}

.plan__head h3 {
  font-size: 19px;
  color: var(--gray-900);
  font-weight: 700;
}

.plan__head p {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 4px;
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.plan__amount {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--gray-900);
}

.plan__period {
  font-size: 14px;
  color: var(--gray-500);
}

.plan__list {
  display: flex;
  flex-direction: column;
}

.plan__list li {
  font-size: 13.5px;
  color: var(--gray-700);
  padding: 9px 0 9px 22px;
  border-top: 1px solid #f0f1f5;
  position: relative;
}

.plan__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='3'><path d='M4 12l6 6L20 6'/></svg>")
    center/10px no-repeat #ecfdf5;
}

.plan__list li:first-child {
  border-top: 0;
}
