/* ==================== БАЗОВІ КОЛЬОРИ ТА ШРИФТИ ==================== */
:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #202b28;
  background: #e8eeeb;
  font-synthesis: none;
  --green: #07533f;
  --accent: #279d76;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible {
  outline: 3px solid #b3d97b;
  outline-offset: 3px;
}
svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#app {
  position: relative;
  max-width: 480px;
  height: 100dvh;
  min-height: 600px;
  margin: auto;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 0 80px #123b2420;
}
.screen {
  position: absolute;
  inset: 0;
  animation: enter 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
  overflow: hidden;
}
.green {
  background: radial-gradient(ellipse at 15% 0%, #147854 0%, #07533f 60%);
  color: white;
}
.topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 20px 14px;
  gap: 14px;
}
.brand {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.7px;
}
.demo {
  font-size: 9px;
  letter-spacing: 1.4px;
  font-weight: 700;
  border: 1px solid #ffffff50;
  border-radius: 5px;
  padding: 4px 6px;
  color: #e0f2e8;
  margin-left: 7px;
  vertical-align: middle;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
}
.icon-btn:hover {
  background: #ffffff15;
}
.top-icons {
  display: flex;
  gap: 6px;
}
.rates {
  font-size: 12px;
  opacity: 0.75;
  padding: 0 22px;
}
.actions {
  display: flex;
  justify-content: space-around;
  padding: 22px 10px 25px;
  gap: 8px;
}
.action {
  font-size: 11px;
  line-height: 1.45;
  width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.action i {
  font-style: normal;
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 13px;
  background: #ffffff0c;
  color: #e5fff2;
}
.action:active i {
  transform: scale(0.9);
  background: #ffffff25;
}
.home-content {
  border-radius: 23px 23px 0 0;
  background: white;
  padding: 22px 21px;
  position: absolute;
  top: 208px;
  bottom: 73px;
  width: 100%;
  overflow: auto;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.2px;
  color: #89978e;
  text-transform: uppercase;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.account-title {
  font-size: 13px;
  margin: 6px 0 17px;
}
.home-balance {
  font-size: 25px;
  font-weight: 650;
  margin-top: 10px;
}
.mini-cards {
  display: flex;
  gap: 12px;
}
.mini {
  width: 116px;
  padding: 0;
  text-align: left;
}
.mini .bank-card {
  height: 72px;
  border-radius: 8px;
  padding: 9px;
  box-shadow: none;
}
.mini .card-name {
  font-size: 6px;
}
.mini .card-number {
  font-size: 10px;
  margin-top: 22px;
}
.mini .card-bottom,
.mini .chip,
.mini .card-label {
  display: none;
}
.mini .card-mark {
  width: 18px;
  height: 11px;
}
.mini .card-mark:before,
.mini .card-mark:after {
  width: 11px;
  height: 11px;
}
.mini-label {
  font-size: 10px;
  color: #819187;
  margin-top: 8px;
  display: block;
}
.home-tip {
  margin-top: 36px;
  background: #f3f7f4;
  border: 1px solid #e7eee9;
  border-radius: 14px;
  padding: 17px;
  display: flex;
  gap: 12px;
  color: #48705d;
  font-size: 12px;
  line-height: 1.6;
}
.home-tip svg {
  flex-shrink: 0;
  margin-top: 3px;
}
.home-tip strong {
  display: block;
  color: #314a3c;
}
.nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 74px;
  background: #f9fbfa;
  border-top: 1px solid #eef2ef;
  display: flex;
  justify-content: space-around;
  padding: 10px 4px max(12px, env(safe-area-inset-bottom));
}
.nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  color: #89938d;
}
.nav svg {
  width: 20px;
  height: 20px;
}
.nav .active {
  color: #21946c;
}
.detail-header {
  padding: 15px 15px 2px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.detail-title {
  font-size: 13px;
  font-weight: 500;
  flex: 1;
}
.balance {
  padding: 13px 22px 0;
  font-size: 37px;
  font-weight: 600;
  letter-spacing: -1px;
}
.balance small {
  font-size: 23px;
  font-weight: 400;
  opacity: 0.65;
}
.subbalance {
  font-size: 10px;
  opacity: 0.5;
  padding: 5px 22px 0;
}
.notice {
  margin: 18px 21px 16px;
  padding: 12px;
  border-radius: 9px;
  background: #ffffff0c;
  font-size: 10px;
  color: #d4e8dc;
  display: flex;
  gap: 9px;
  align-items: center;
}
.notice svg {
  width: 15px;
  height: 15px;
  color: #56c996;
}
.carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0 21px 7px;
}
.carousel::-webkit-scrollbar {
  display: none;
}
.card-wrap {
  flex: 0 0 100%;
  scroll-snap-align: center;
  min-width: 0;
}
.bank-card {
  position: relative;
  height: 193px;
  border-radius: 13px;
  padding: 19px;
  overflow: hidden;
  background: linear-gradient(120deg, #2b704f, #123d2b);
  box-shadow: 0 9px 18px #002b3025;
  color: white;
  text-align: left;
  isolation: isolate;
}
.bank-card:before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 260px;
  height: 260px;
  right: -55px;
  top: -80px;
  border: 36px solid #d5e4a51b;
  border-radius: 44%;
  transform: rotate(-35deg);
}
.bank-card:after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 270px;
  height: 270px;
  left: -80px;
  bottom: -200px;
  background: #c1d79b28;
  border-radius: 50%;
  box-shadow: 100px -30px 0 #bad09112;
}
.bank-card.blue {
  background: linear-gradient(120deg, #28546b, #172e42);
}
.bank-card.gold {
  background: linear-gradient(120deg, #9d8152, #4d452e);
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-name {
  font-size: 9px;
  letter-spacing: 1px;
}
.card-mark {
  position: relative;
  width: 35px;
  height: 22px;
}
.card-mark:before,
.card-mark:after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e2bd69;
}
.card-mark:after {
  right: 0;
  background: #dcdab0;
  opacity: 0.8;
}
.chip {
  margin-top: 18px;
  width: 27px;
  height: 20px;
  border-radius: 5px;
  background: linear-gradient(135deg, #dcd6a0, #a9ac87);
  border: 1px solid #e8e0b6;
}
.card-number {
  font-size: 21px;
  letter-spacing: 2px;
  margin-top: 10px;
  font-variant-numeric: tabular-nums;
}
.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-top: 16px;
  font-size: 9px;
  letter-spacing: 1px;
}
.card-label {
  font-size: 8px;
  opacity: 0.65;
  margin-bottom: 4px;
}
.card-demo {
  font-size: 9px;
  border: 1px solid #ffffff50;
  border-radius: 4px;
  padding: 4px;
}
.dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 7px;
}
.dots button {
  padding: 0;
  width: 5px;
  height: 5px;
  background: #ffffff45;
  border-radius: 50%;
  transition: width 0.2s;
}
.dots .selected {
  width: 16px;
  background: #b8e2cd;
  border-radius: 5px;
}
.detail-actions {
  padding: 16px 16px 12px;
}
.sheet {
  position: absolute;
  top: 505px;
  bottom: 0;
  width: 100%;
  background: #fff;
  border-radius: 22px 22px 0 0;
  color: #28342e;
  display: flex;
  flex-direction: column;
  transition: top 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 -8px 30px #002b3010;
  z-index: 3;
}
.sheet.expanded {
  top: 73px;
}
.handle {
  width: 100%;
  height: 25px;
  flex-shrink: 0;
  touch-action: none;
  cursor: ns-resize;
}
.handle:before {
  content: "";
  display: block;
  width: 32px;
  height: 4px;
  background: #dce4df;
  border-radius: 4px;
  margin: auto;
}
.filters {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding: 0 16px 14px;
  flex-shrink: 0;
  scrollbar-width: none;
}
.filter {
  font-size: 10px;
  white-space: nowrap;
  border: 1px solid #edf0ed;
  border-radius: 20px;
  padding: 9px 12px;
}
.filter.on {
  background: #25342b;
  color: white;
  border-color: #25342b;
}
.filter span {
  color: #ae975c;
  margin-right: 5px;
}
.history-tools {
  padding: 0 19px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.history-tools .icon-btn {
  width: 32px;
  height: 30px;
  color: #319572;
}
.history-tools svg {
  width: 18px;
  height: 18px;
}
.search {
  margin: 0 18px 12px;
  flex-shrink: 0;
  padding: 11px 13px;
  border: 1px solid #dfe8e1;
  border-radius: 9px;
  outline-color: #319572;
  width: calc(100% - 36px);
}
.transactions {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 17px 30px;
  flex: 1;
}
.day {
  font-size: 9px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #9ca59e;
  padding: 17px 1px 7px;
}
.transaction {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 0;
  text-align: left;
}
.tx-icon {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e4f3eb;
  color: #349871;
  flex-shrink: 0;
}
.tx-icon.plus {
  background: #f0e8f9;
  color: #8a59b0;
}
.tx-icon svg {
  width: 18px;
  height: 18px;
}
.tx-text {
  font-size: 12px;
  flex: 1;
  line-height: 1.35;
}
.tx-text small {
  display: block;
  font-size: 10px;
  color: #8b948d;
  margin-top: 3px;
}
.tx-amount {
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  align-self: flex-start;
  margin-top: 3px;
}
.tx-amount.plus {
  color: #2d9975;
}
.tx-amount small {
  font-size: 8px;
  color: #8d9a90;
  font-weight: 400;
}
.empty {
  padding: 36px 20px;
  text-align: center;
  font-size: 13px;
  color: #839087;
}
.history-page {
  background: #fff;
}
.history-page .detail-header {
  background: var(--green);
  color: #fff;
  padding-bottom: 15px;
}
.history-page .sheet {
  top: 72px;
  box-shadow: none;
  border-radius: 0;
}
.footnote {
  font-size: 10px;
  color: #92a095;
  text-align: center;
  margin-top: 26px;
}
#toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  background: #233c2e;
  color: white;
  padding: 13px 18px;
  border-radius: 12px;
  max-width: 350px;
  width: max-content;
  font-size: 12px;
  transition: 0.25s;
  z-index: 20;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
dialog {
  border: 0;
  border-radius: 22px;
  padding: 26px;
  max-width: 360px;
  width: calc(100% - 40px);
  color: #273c30;
  box-shadow: 0 20px 70px #0003;
}
dialog::backdrop {
  background: #062b2360;
  backdrop-filter: blur(5px);
}
dialog h2 {
  font-size: 20px;
  margin: 0 0 12px;
}
dialog p {
  font-size: 13px;
  line-height: 1.7;
  color: #6c7b71;
}
.primary {
  width: 100%;
  padding: 13px;
  border-radius: 10px;
  background: #12684c;
  color: white;
  margin-top: 15px;
}
.modal-amount {
  font-size: 30px;
  margin: 25px 0;
}
.detail-line {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #edf0ec;
  padding: 12px 0;
  font-size: 12px;
}
.badge {
  background: #e8f4ec;
  color: #368463;
  font-size: 10px;
  padding: 5px 7px;
  border-radius: 5px;
}
.collapse-account {
  display: none;
}
@keyframes enter {
  from {
    opacity: 0.5;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (min-width: 650px) {
  body {
    padding: 25px 0;
  }
  #app {
    height: calc(100dvh - 50px);
    max-height: 950px;
    border-radius: 28px;
    border: 1px solid #d7e1d9;
  }
  .sheet {
    top: 515px;
  }
}
@media (max-height: 740px) {
  .bank-card {
    height: 168px;
  }
  .chip {
    margin-top: 10px;
  }
  .card-bottom {
    margin-top: 10px;
  }
  .sheet {
    top: 465px;
  }
  .notice {
    margin-top: 12px;
    margin-bottom: 12px;
  }
  .balance {
    padding-top: 7px;
  }
  .detail-actions {
    padding-top: 10px;
  }
  .action {
    gap: 6px;
  }
  .actions {
    padding-bottom: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* ==================== ФОРМИ ПЕРЕКАЗІВ ТА ПОПОВНЕНЬ ==================== */
.transfer-screen {
  background: #fff;
  display: flex;
  flex-direction: column;
  color: #24392d;
}
.transfer-screen header {
  padding: 15px 15px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid #f2f5f3;
}
.transfer-screen header strong {
  font-size: 14px;
  flex: 1;
  text-align: center;
}
.transfer-screen .demo {
  color: #3c876b;
  border-color: #c6e2d3;
  margin: 0;
}
.transfer-body {
  padding: 22px;
  flex: 1;
  overflow: auto;
}
.transfer-body label {
  display: block;
  font-size: 12px;
  color: #698273;
  margin-bottom: 10px;
}
.recipient-input {
  width: 100%;
  background: #f0f4f2;
  border: 1px solid transparent;
  border-radius: 24px;
  padding: 15px 19px;
  font-size: 17px;
  outline-color: #269b71;
}
.form-help {
  font-size: 11px;
  color: #879a8e;
  line-height: 1.6;
  margin-top: 13px;
}
.form-error {
  font-size: 12px;
  color: #b44949;
  min-height: 20px;
  margin-top: 12px;
}
.transfer-footer {
  padding: 15px 21px max(24px, env(safe-area-inset-bottom));
  border-top: 1px solid #eef3ef;
}
.transfer-footer .primary {
  margin-top: 10px;
  background: #0ba963;
}
.primary:disabled {
  background: #a7aeaa;
  cursor: default;
}
.source-select {
  width: 100%;
  border: 0;
  background: #f5f8f6;
  border-radius: 10px;
  padding: 13px;
  color: #355942;
  font: inherit;
  font-size: 12px;
}
.amount-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  height: 45vh;
}
.amount-input {
  border: 0;
  text-align: center;
  width: 85%;
  font-size: 42px;
  font-weight: 500;
  outline: none;
  color: #24392d;
  background: transparent;
}
.amount-zone small {
  font-size: 11px;
  color: #8b978e;
  margin-top: 22px;
}
.transfer-menu {
  padding: 6px 0;
}
.transfer-option {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  gap: 14px;
  padding: 17px 0;
  border-bottom: 1px solid #eef3ef;
  font-size: 13px;
}
.transfer-option svg {
  color: #279c73;
  width: 20px;
}
.transfer-option span {
  flex: 1;
}
.transfer-option em {
  font-style: normal;
  color: #279c73;
}
.otp-area {
  text-align: center;
  padding-top: 30px;
}
.otp-input {
  letter-spacing: 14px;
  font-size: 29px;
  text-align: center;
  width: 245px;
  padding: 15px 8px 15px 22px;
  border: 1px solid #3aa67d;
  border-radius: 10px;
  outline-color: #138657;
  background: repeating-linear-gradient(90deg, #f1f6f3 0, #f1f6f3 46px, white 46px, white 49px);
}
.otp-help {
  font-size: 12px;
  color: #83978a;
  margin: 21px 0;
}
.otp-insert {
  border: 1px solid #d8e8df;
  background: #f1f8f4;
  border-radius: 10px;
  padding: 12px 20px;
  color: #18734f;
}
.link-button {
  color: #278665;
  font-size: 12px;
  padding: 12px;
}
.success-mark {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: #e7f6ed;
  color: #0aaa65;
  display: grid;
  place-items: center;
  margin: 25px 0;
}
.success-mark svg {
  width: 39px;
  height: 39px;
}
.success-title {
  font-size: 25px;
  margin: 17px 0 10px;
}
.success-copy {
  color: #6b8071;
  font-size: 13px;
  line-height: 1.7;
}
.demo-alert {
  padding: 12px;
  border-radius: 9px;
  background: #f0f6f1;
  color: #62806c;
  font-size: 11px;
  line-height: 1.6;
  margin: 20px 0;
}
.demo-notification {
  position: absolute;
  z-index: 30;
  left: 12px;
  right: 12px;
  top: 10px;
  background: #e2f2e9f5;
  backdrop-filter: blur(18px);
  color: #254335;
  padding: 13px 15px;
  border: 1px solid #c6e3d2;
  border-radius: 18px;
  box-shadow: 0 8px 30px #073b3025;
  display: flex;
  gap: 12px;
  animation: notify-in 0.35s ease-out;
  text-align: left;
  width: calc(100% - 24px);
}
.demo-notification i {
  background: #126649;
  color: white;
  border-radius: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.demo-notification strong {
  display: block;
  font-size: 11px;
  letter-spacing: 0.3px;
}
.demo-notification p {
  font-size: 12px;
  line-height: 1.45;
  margin: 4px 0 0;
}
.demo-notification small {
  font-size: 9px;
  color: #718c7c;
}
.tx-text small.pending {
  color: #bd9431;
}
.tx-icon.pending {
  background: #e9edf9;
  color: #647abb;
}
@keyframes notify-in {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
dialog.transfer-bottom {
  position: fixed;
  top: auto;
  bottom: 0;
  margin: 0 auto;
  border-radius: 22px 22px 0 0;
  max-width: 480px;
  width: 100%;
  padding: 25px 23px;
  animation: notify-in 0.25s reverse;
  animation: none;
}
.action:disabled,
.icon-btn:disabled,
.nav button:disabled,
.transfer-option:disabled {
  opacity: 0.33;
  cursor: default;
  pointer-events: none;
}
.field-caption {
  margin-top: 22px;
}
.form-heading {
  font-size: 20px;
  margin: 2px 0 26px;
  color: #253d2f;
}
#syncDialog {
  z-index: 90;
  text-align: left;
  max-width: 370px;
}
#syncDialog label {
  display: block;
  font-size: 12px;
  color: #587267;
  margin: 18px 0 9px;
}
#syncDialog .recipient-input {
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: lowercase;
}
.sync-note {
  font-size: 10px !important;
  text-align: center;
  margin: 18px 0 0 !important;
}
#syncStatus:not([hidden]) {
  position: fixed;
  z-index: 85;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: #aa443c;
  color: white;
  border-radius: 9px;
  padding: 8px 12px;
  font-size: 11px;
  max-width: 340px;
  width: max-content;
  text-align: center;
  box-shadow: 0 4px 20px #0002;
}
/* ==================== ЗОБРАЖЕННЯ Й НАПИСИ НА КАРТКАХ ==================== */
.photo-card {
  background: #174c38;
  aspect-ratio: 1.79;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.photo-card:before {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  transform: none;
  background: url("card-reference.jpeg") center center/cover no-repeat;
  filter: brightness(0.76);
  z-index: -2;
}
.photo-card:after {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  left: 0;
  bottom: auto;
  background: linear-gradient(90deg, #0d251b35, #0000 48%, #09291b2a);
  border-radius: 0;
  box-shadow: none;
  z-index: -1;
}
.photo-card > span {
  position: absolute;
  z-index: 2;
  text-shadow: 0 1px 5px #101b1599;
}
.photo-mc {
  left: 5%;
  top: 8%;
  width: 37px;
  height: 25px;
}
.photo-mc i {
  position: absolute;
  width: 25px;
  height: 25px;
  background: #ec0021;
  border-radius: 50%;
  left: 0;
  top: 0;
}
.photo-mc i + i {
  left: 15px;
  background: #ffa51c;
  opacity: 0.95;
}
.photo-heading {
  top: 9%;
  right: 5%;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.photo-number {
  top: 37%;
  left: 5%;
  font-size: 23px;
  letter-spacing: 1px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.photo-gear {
  top: 36%;
  right: 5%;
  font-size: 25px;
  line-height: 1;
}
.photo-expiry {
  left: 5%;
  bottom: 20%;
  font-size: 17px;
  letter-spacing: 1px;
}
.photo-owner {
  left: 5%;
  bottom: 8%;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}
.photo-cvv {
  right: 4.5%;
  bottom: 9%;
  padding: 9px 12px;
  border-radius: 16px;
  border: 1.5px solid #fff;
  font-size: 18px;
  white-space: nowrap;
}
.photo-cvv b {
  font-size: 20px;
  font-weight: 400;
  margin-left: 5px;
}
.mini .photo-card {
  padding: 0;
}
.mini .photo-mc {
  transform: scale(0.36);
  transform-origin: left top;
}
.mini .photo-heading {
  font-size: 5px;
}
.mini .photo-number {
  font-size: 7px;
  top: 40%;
  left: 5%;
  letter-spacing: 0;
}
.mini .photo-expiry {
  font-size: 6px;
}
.mini .photo-owner {
  font-size: 5px;
}
.mini .photo-gear,
.mini .photo-cvv {
  display: none;
}
.carousel {
  padding-left: 12px;
  padding-right: 12px;
  scroll-padding-inline: 12px;
}
.carousel .card-wrap {
  flex: 0 0 100%;
  scroll-snap-align: start;
}
.photo-card {
  height: auto;
  aspect-ratio: 1.8;
  border-radius: 14px;
}
.photo-card:before {
  filter: brightness(0.79) blur(1.7px);
  transform: scale(1.025);
}
.photo-number {
  top: 36%;
  left: 5%;
  font-size: 22px;
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.photo-masked {
  letter-spacing: 1px;
  font-size: 20px;
  white-space: nowrap;
}
.photo-heading {
  top: 9%;
  right: 5%;
  font-size: 13px;
}
.photo-gear {
  top: 36%;
  right: 5%;
  color: #fff !important;
  font-family: Arial, sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}
.photo-expiry {
  bottom: 19%;
  font-size: 18px;
}
.photo-owner {
  bottom: 8%;
  font-size: 11px;
}
.photo-cvv {
  right: 4.5%;
  bottom: 8%;
  width: 29%;
  min-height: 40px;
  padding: 6px 7px;
  border-radius: 14px;
  border: 1.5px solid #fff;
  font-size: 13px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 4px;
  text-align: center;
  text-shadow: none;
}
.photo-cvv b {
  margin: 0;
  display: inline-flex;
  align-items: center;
}
.photo-cvv svg {
  width: 25px;
  height: 25px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mini .photo-number {
  font-size: 7px;
  gap: 2px;
  top: 40%;
}
.mini .photo-masked {
  font-size: 6px;
  letter-spacing: 0;
}
.screen.green .sheet:not(.expanded) {
  top: var(--sheet-collapsed-top, 535px);
}
@media (max-height: 700px) {
  .screen.green .balance {
    padding-top: 6px;
    font-size: 33px;
  }
  .screen.green .notice {
    margin-top: 8px;
    margin-bottom: 9px;
  }
  .screen.green .detail-actions {
    padding-top: 8px;
    padding-bottom: 7px;
  }
  .screen.green .detail-actions .action {
    gap: 5px;
  }
}
/* ==================== ГОЛОВНА СТОРІНКА ==================== */
.home-screen {
  background: #fff;
}
.home-hero {
  height: 267px;
  color: #fff;
  background: radial-gradient(ellipse at 80% 0%, #00684e 0%, #065542 48%, #064136 100%);
}
.home-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 59px 16px 0;
}
.home-market {
  display: flex;
  flex-direction: column;
  gap: 1px;
  white-space: nowrap;
}
.home-market span {
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.5px;
}
.home-market small {
  font-size: 8px;
  letter-spacing: 1px;
  color: #bee7d5;
}
.home-top-icons {
  display: flex;
  align-items: center;
  gap: 7px;
}
.home-top-icons .icon-btn {
  width: 29px;
  height: 31px;
  position: relative;
  color: #fff;
}
.home-top-icons svg {
  width: 26px;
  height: 26px;
  stroke-width: 2.3;
}
.home-top-icons .icon-btn:last-child:after {
  content: "";
  position: absolute;
  right: 1px;
  top: 0;
  width: 7px;
  height: 7px;
  background: #f83b47;
  border-radius: 50%;
}
.home-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 26px 12px 0;
}
.home-quick-actions .action {
  width: 100%;
  font-size: 14px;
  line-height: 1.12;
  font-weight: 400;
  gap: 10px;
  color: #fff;
}
.home-quick-actions .action i {
  width: 65px;
  height: 65px;
  background: #006149;
  border-radius: 50%;
  color: #fff;
}
.home-quick-actions .action i svg {
  width: 28px;
  height: 28px;
  stroke-width: 2.6;
}
.home-accounts {
  top: 247px;
  bottom: 74px;
  border-radius: 13px 13px 0 0;
  padding: 30px 16px 18px;
  overflow-y: auto;
}
.home-account-heading .eyebrow {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.2px;
  color: #a2a8aa;
}
.home-account-heading .icon-btn {
  color: #009c6d;
}
.home-account-heading .icon-btn svg {
  width: 26px;
  height: 26px;
  stroke-width: 2.2;
}
.home-account-row {
  margin-top: 18px;
}
.home-account-row .home-balance {
  font-size: 27px;
  font-weight: 700;
  color: #222629;
  letter-spacing: -0.8px;
}
.home-account-row .icon-btn {
  color: #04996e;
}
.home-account-row .icon-btn svg {
  stroke-width: 2.7;
}
.home-account-title {
  margin: 6px 0 0;
  font-size: 14px;
  color: #222;
  line-height: 1.4;
}
.home-mini-cards {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.home-mini {
  display: block;
  width: 120px;
  max-width: calc(50% - 6px);
  padding: 0;
  text-align: left;
  flex-shrink: 0;
}
.home-mini-image {
  display: block;
  position: relative;
  aspect-ratio: 1.67;
  overflow: hidden;
  border-radius: 9px;
  background: #134432;
  color: #fff;
  isolation: isolate;
}
.home-mini-image:before {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: -1;
  background: url("card-reference.jpeg") center/cover no-repeat;
  filter: brightness(0.82) blur(0.8px);
}
.home-mini-logo {
  position: absolute;
  left: 5%;
  top: 9%;
  width: 24px;
  height: 17px;
}
.home-mini-logo i {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ed103b;
}
.home-mini-logo i + i {
  left: 10px;
  background: #ffa322;
  opacity: 0.95;
}
.home-mini-name {
  position: absolute;
  top: 9%;
  left: 29%;
  right: 5%;
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-mini-last {
  position: absolute;
  right: 7%;
  bottom: 8%;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.2px;
}
.home-nav {
  height: 74px;
  padding-top: 12px;
  padding-bottom: max(11px, env(safe-area-inset-bottom));
}
.home-nav button {
  font-size: 10px;
  gap: 7px;
  font-weight: 450;
  color: #777b78;
}
.home-nav button svg {
  width: 23px;
  height: 23px;
  stroke-width: 2.1;
}
.home-nav button.active {
  color: #009c70;
}
.home-screen button:disabled {
  opacity: 1;
  cursor: default;
  pointer-events: none;
}
@media (max-height: 660px) {
  .home-top {
    padding-top: 28px;
  }
  .home-quick-actions {
    padding-top: 20px;
  }
  .home-hero {
    height: 233px;
  }
  .home-accounts {
    top: 220px;
  }
}
dialog.transfer-bottom {
  position: fixed;
  inset: auto 0 0;
  margin: 0 auto;
  width: 100%;
  max-width: 480px;
  max-height: calc(100dvh - 115px);
  min-height: min(490px, 70dvh);
  overflow-y: auto;
  padding: 22px 16px max(22px, env(safe-area-inset-bottom));
  border-radius: 18px 18px 0 0;
}
dialog.transfer-bottom::backdrop {
  background: #101e1bd1;
  backdrop-filter: none;
}
.transfer-bottom #modalContent {
  position: relative;
}
.transfer-bottom #modalContent h2 {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
  padding-right: 42px;
  margin: 0 0 26px;
  color: #1a1d1b;
}
.transfer-bottom #closeModal {
  display: none;
}
.transfer-menu-close {
  position: absolute;
  right: 0;
  top: -5px;
  font-size: 36px;
  font-weight: 300;
  line-height: 1;
  color: #171b19;
  padding: 0 6px;
}
.transfer-menu-category {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.3px;
  color: #a1a8ac;
  margin: 8px 0 13px;
}
.transfer-menu-category.other {
  margin-top: 27px;
}
.transfer-menu-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  border-bottom: 1px solid #e1e5e3;
  text-align: left;
  font-size: 16px;
  color: #202322;
}
.transfer-menu-v10 .transfer-menu-row:last-child {
  border-bottom: 0;
}
.transfer-menu-row span {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.transfer-menu-row em {
  font-size: 28px;
  font-style: normal;
  color: #009a6b;
  line-height: 1;
  padding: 0 3px;
}
.menu-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 25px;
  height: 25px;
  border-radius: 5px;
  color: white;
  font-style: normal;
  font-size: 23px;
}
.menu-icon svg {
  width: 19px;
  height: 19px;
  stroke-width: 2.5;
}
.menu-icon.teal {
  background: #4fae9b;
}
.menu-icon.blue {
  background: #4969a5;
}
.menu-icon.green {
  background: #009c70;
}
.menu-icon.purple {
  background: #a64580;
}
.menu-icon.red {
  background: #ad4b4b;
}
.transfer-menu-disclosure {
  margin: 25px 2px 2px !important;
  font-size: 10px !important;
  line-height: 1.4 !important;
  color: #8c9993 !important;
  text-align: center;
}
.amount-screen {
  background: #fff;
}
.amount-screen .amount-head {
  position: relative;
  min-height: 76px;
  padding: 18px 16px 6px;
  border: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.amount-head .icon-btn {
  color: #009d6c;
  flex-shrink: 0;
}
.amount-head .icon-btn svg {
  width: 27px;
  height: 27px;
  stroke-width: 2.5;
}
.amount-head strong {
  font-size: 17px;
  font-weight: 650;
  text-align: center;
  letter-spacing: 0.2px;
  flex: 1;
  white-space: nowrap;
}
.amount-head small {
  position: absolute;
  bottom: 0;
  right: 14px;
  font-size: 8px;
  letter-spacing: 0.7px;
  color: #a7b5ac;
}
.amount-screen .amount-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0 15px;
}
.amount-zone-v10 {
  flex: 1;
  min-height: 225px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 0 30px;
}
.amount-entry-v10 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 58px;
  max-width: 100%;
}
.amount-main-input {
  border: 0;
  border-radius: 0;
  outline: none;
  background: transparent;
  font-size: 40px;
  font-weight: 500;
  color: #171b19;
  text-align: center;
  min-width: 1.1em;
  max-width: 72vw;
  padding: 0;
  line-height: 1.2;
}
.amount-entry-v10 > span {
  color: #aeb6b2;
  font-size: 23px;
  font-weight: 500;
}
.amount-commission {
  font-size: 13px;
  color: #586169;
  margin-top: 55px;
}
.amount-commission strong {
  font-weight: 400;
  color: #596168;
  margin-left: 8px;
}
.amount-remaining {
  font-size: 12px;
  color: #202422;
  margin-top: 7px;
  line-height: 1.4;
}
.amount-screen .form-error {
  margin: 0 0 8px;
  text-align: center;
  min-height: 18px;
}
.amount-footer-v10 {
  background: #fff;
  padding: 12px 16px max(16px, env(safe-area-inset-bottom));
  border-top: 1px solid #edf0ee;
  flex-shrink: 0;
}
.amount-source-row {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 43px;
  gap: 7px;
  white-space: nowrap;
}
.amount-mastercard {
  position: relative;
  display: block;
  flex-shrink: 0;
  width: 32px;
  height: 27px;
  border-radius: 5px;
  background: #212528;
}
.amount-mastercard i {
  position: absolute;
  top: 7px;
  left: 5px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #ec0637;
}
.amount-mastercard i + i {
  left: 14px;
  background: #ff9f20;
  opacity: 0.95;
}
.amount-source-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
  flex: 1;
}
.amount-source-balance {
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}
.amount-source-chevron {
  font-size: 25px;
  color: #049b70;
  line-height: 1;
  flex-shrink: 0;
}
.amount-source-select {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  cursor: pointer;
}
.amount-footer-v10 .primary {
  background: #00a46e;
  border-radius: 13px;
  min-height: 59px;
  margin-top: 13px;
  font-size: 17px;
  font-weight: 650;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-height: 620px) {
  dialog.transfer-bottom {
    min-height: 0;
  }
  .amount-zone-v10 {
    min-height: 165px;
    padding: 10px 0;
  }
  .amount-commission {
    margin-top: 28px;
  }
}
.demo {
  font-size: 8px;
  letter-spacing: 0.15px;
  white-space: nowrap;
  padding: 4px 5px;
}
.detail-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* v11: shared typography, surfaces, and mobile spacing across every screen. */
:root {
  --ui-text: #222629;
  --ui-muted: #8d9893;
  --ui-accent: #009c70;
  --ui-surface: #fff;
  --ui-soft: #f4f7f5;
  --ui-divider: #e9eeeb;
  --ui-radius: 14px;
  font-size: 14px;
  line-height: 1.4;
}
button,
input,
select {
  font-family: inherit;
}
button,
select,
input {
  min-width: 0;
}
.home-screen,
.history-page,
.transfer-screen,
.sheet {
  font-family: inherit;
}

/* Open card: headline and buttons follow the homepage's text scale. */
.detail-header {
  padding: 15px 16px 4px;
  gap: 8px;
  min-width: 0;
}
.detail-title {
  font-size: 16px;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.2px;
}
.detail-header .icon-btn {
  flex: 0 0 38px;
}
.detail-header .demo {
  flex-shrink: 0;
  font-size: 8px;
  letter-spacing: 0.45px;
}
.balance {
  font-size: 37px;
  line-height: 1.13;
  overflow-wrap: anywhere;
}
.subbalance {
  font-size: 12px;
  line-height: 1.4;
  color: #d0e7dc;
  opacity: 0.85;
}
.notice {
  margin: 14px 16px 12px;
  padding: 12px 14px;
  border-radius: var(--ui-radius);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  background: #ffffff12;
  color: #ebf5ef;
  min-width: 0;
}
.notice svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}
.detail-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: initial;
  gap: 4px;
  padding: 12px 10px 14px;
}
.detail-actions .action {
  width: 100%;
  min-width: 0;
  gap: 8px;
  line-height: 1.25;
  font-size: 13px;
  font-weight: 400;
  text-align: center;
}
.detail-actions .action i {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #00614988;
  color: #fff;
}
.detail-actions .action i svg {
  width: 25px;
  height: 25px;
  stroke-width: 2.3;
}
.detail-actions .action span,
.home-quick-actions .action span {
  display: block;
  max-width: 100%;
  overflow-wrap: normal;
}

/* White history sheet uses the same blocks and spacing as the accounts panel. */
.sheet {
  border-radius: var(--ui-radius) var(--ui-radius) 0 0;
  background: var(--ui-surface);
  color: var(--ui-text);
}
.handle {
  height: 27px;
}
.filters {
  gap: 8px;
  padding: 0 16px 15px;
}
.filter {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  padding: 9px 12px;
  border: 1px solid var(--ui-divider);
  background: #fff;
  color: var(--ui-text);
}
.filter.on {
  background: #07533f;
  border-color: #07533f;
  color: #fff;
}
.history-tools {
  padding: 0 16px 9px;
  gap: 12px;
}
.history-tools .eyebrow,
.home-account-heading .eyebrow {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.2px;
  color: #a2a8aa;
}
.history-tools .icon-btn {
  width: 34px;
  height: 34px;
  color: var(--ui-accent);
}
.history-tools svg {
  width: 21px;
  height: 21px;
}
.search {
  font-size: 14px;
  margin: 0 16px 12px;
  width: calc(100% - 32px);
  padding: 12px 14px;
  border-radius: var(--ui-radius);
  border-color: var(--ui-divider);
}
.transactions {
  padding: 0 16px 30px;
}
.day {
  padding: 18px 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: #a2a8aa;
}
.transaction {
  gap: 11px;
  padding: 14px 0;
  min-width: 0;
  border-bottom: 1px solid #f2f4f2;
}
.tx-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
}
.tx-icon svg {
  width: 20px;
  height: 20px;
}
.tx-text {
  font-size: 14px;
  line-height: 1.3;
  min-width: 0;
  overflow-wrap: anywhere;
}
.tx-text small {
  font-size: 12px;
  line-height: 1.3;
  margin-top: 4px;
}
.tx-amount {
  font-size: 14px;
  line-height: 1.3;
  font-weight: 600;
  flex-shrink: 0;
  max-width: 45%;
  text-align: right;
}
.tx-amount small {
  font-size: 10px;
}
.empty {
  font-size: 14px;
}
.history-page .sheet {
  border-radius: 0;
}

/* Forms, popups, card settings and payment steps share one legible type scale. */
.transfer-screen {
  font-size: 14px;
  color: var(--ui-text);
}
.transfer-screen header strong {
  font-size: 16px;
  font-weight: 650;
  color: var(--ui-text);
  line-height: 1.3;
  min-width: 0;
}
.transfer-body {
  padding: 22px 16px;
  min-width: 0;
}
.transfer-body label {
  font-size: 13px;
  font-weight: 500;
  color: #6d7872;
}
.transfer-body .form-heading {
  font-size: 19px;
  font-weight: 650;
  line-height: 1.3;
  color: var(--ui-text);
  margin-bottom: 23px;
}
.recipient-input {
  font-size: 16px;
  line-height: 1.35;
  background: var(--ui-soft);
  border-radius: var(--ui-radius);
  padding: 15px 16px;
  max-width: 100%;
}
.form-help,
.otp-help {
  font-size: 13px;
  line-height: 1.55;
  color: #7d8883;
}
.form-error {
  font-size: 13px;
  line-height: 1.4;
}
.transfer-footer {
  padding: 15px 16px max(20px, env(safe-area-inset-bottom));
}
.source-select {
  font-size: 14px;
  border-radius: var(--ui-radius);
  min-height: 46px;
}
.primary {
  min-height: 49px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--ui-radius);
  line-height: 1.3;
}
.transfer-footer .primary {
  min-height: 54px;
  margin-top: 12px;
}
.otp-help {
  margin: 20px 0;
}
.otp-insert,
.link-button {
  font-size: 14px;
}
.success-title {
  font-size: 23px;
  line-height: 1.25;
}
.success-copy,
.demo-alert {
  font-size: 13px;
  line-height: 1.55;
}
.demo-notification strong {
  font-size: 13px;
}
.demo-notification p {
  font-size: 13px;
}
.demo-notification small {
  font-size: 11px;
}
.amount-head strong {
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 16px;
  white-space: nowrap;
}
.amount-screen .amount-body {
  padding: 0 16px;
}
.amount-main-input {
  font-size: clamp(29px, 9.8vw, 40px);
}
.amount-commission,
.amount-remaining {
  font-size: 13px;
  line-height: 1.45;
}
.amount-source-name,
.amount-source-balance {
  font-size: 14px;
}
.amount-footer-v10 .primary {
  font-size: 16px;
}
.transfer-menu-row {
  font-size: 15px;
  line-height: 1.35;
}
.transfer-menu-category {
  font-size: 12px;
}
dialog:not(.transfer-bottom) {
  border-radius: var(--ui-radius);
  padding: 23px;
  max-width: min(360px, calc(100% - 32px));
}
dialog:not(.transfer-bottom) h2 {
  font-size: 19px;
  line-height: 1.25;
}
dialog:not(.transfer-bottom) p {
  font-size: 13px;
  line-height: 1.55;
}
.detail-line {
  font-size: 13px;
  gap: 14px;
  align-items: start;
  overflow-wrap: anywhere;
}
.detail-line > * {
  min-width: 0;
}
.modal-amount {
  font-size: 30px;
  line-height: 1.2;
}
#syncDialog label {
  font-size: 13px;
}
#toast {
  font-size: 13px;
  line-height: 1.35;
}

/* Avoid clipped labels and crowded cards on narrow or short phones. */
@media (max-width: 375px) {
  .detail-header {
    padding-left: 12px;
    padding-right: 12px;
  }
  .detail-title {
    font-size: 14px;
  }
  .detail-actions {
    padding-left: 6px;
    padding-right: 6px;
  }
  .detail-actions .action {
    font-size: 12px;
  }
  .detail-actions .action i {
    width: 46px;
    height: 46px;
  }
  .detail-actions .action i svg {
    width: 23px;
    height: 23px;
  }
  .photo-heading {
    font-size: clamp(10px, 3.3vw, 13px);
    max-width: 65%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .photo-masked {
    font-size: clamp(15px, 5vw, 20px);
  }
  .photo-number {
    gap: 4px;
  }
  .photo-cvv {
    min-height: 33px;
  }
  .filter {
    font-size: 11px;
  }
  .tx-amount,
  .tx-text {
    font-size: 13px;
  }
  .tx-text small {
    font-size: 11px;
  }
  .amount-head strong {
    font-size: 14px;
  }
}
@media (max-height: 720px) {
  .screen.green .balance {
    padding-top: 7px;
  }
  .screen.green .notice {
    margin-top: 9px;
    margin-bottom: 8px;
    padding-top: 9px;
    padding-bottom: 9px;
  }
  .screen.green .detail-actions {
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .screen.green .detail-actions .action {
    gap: 5px;
  }
  .screen.green .detail-actions .action i {
    width: 46px;
    height: 46px;
  }
}
@media (max-height: 650px) {
  #app {
    min-height: 0;
  }
  .home-accounts {
    bottom: 74px;
  }
}
@supports (-webkit-touch-callout: none) {
  .search,
  .source-select {
    font-size: 16px;
  }
}

/* v12: matching homepage actions, card filters, notifications and settings. */
.detail-actions .action {
  font-size: 14px;
  line-height: 1.12;
  gap: 10px;
  font-weight: 400;
}
.detail-actions .action i {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: #006149;
}
.detail-actions .action i svg {
  width: 28px;
  height: 28px;
  stroke-width: 2.6;
}
.filters {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  scroll-padding-inline: 16px;
}
.filters::-webkit-scrollbar {
  display: none;
}
.filters .filter {
  flex: 0 0 auto;
  min-width: 0;
  max-width: min(290px, calc(100vw - 52px));
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  -webkit-text-overflow: ellipsis;
}
.demo-notification {
  align-items: center;
  min-width: 0;
}
.demo-notification .notification-logo {
  flex: 0 0 40px;
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  background: #008967;
}
.demo-notification > div {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.settings-body {
  padding-bottom: 28px;
}
.settings-block {
  margin-top: 20px;
  padding: 18px 16px;
  border: 1px solid #e4eee8;
  border-radius: var(--ui-radius);
  background: var(--ui-soft);
}
.settings-block h3 {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.3;
  color: var(--ui-text);
}
.settings-block label {
  font-size: 13px;
  margin-bottom: 8px;
}
.settings-block .recipient-input,
.settings-block .source-select {
  background: #fff;
  border: 1px solid #e1ebe5;
}
.settings-block .settings-action {
  min-height: 48px;
  margin-top: 13px;
  background: #e1f4e9;
  color: #075c42;
  border: 1px solid #b9e3cd;
  font-size: 14px;
}
.settings-hint {
  margin: 11px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #75877d;
}
@media (max-width: 375px) {
  .detail-actions .action {
    font-size: 12.5px;
  }
  .detail-actions .action i {
    width: 56px;
    height: 56px;
  }
  .detail-actions .action i svg {
    width: 25px;
    height: 25px;
  }
}
@media (max-height: 720px) {
  .screen.green .detail-actions .action {
    gap: 6px;
  }
  .screen.green .detail-actions .action i {
    width: 49px;
    height: 49px;
  }
  .screen.green .detail-actions .action i svg {
    width: 23px;
    height: 23px;
  }
}
/* Іконки історії: зображення користувача для списання та зарахування. */
.tx-icon:has(img) {
  background: transparent !important;
  border: 0 !important;
  overflow: hidden;
  padding: 0 !important;
  flex-shrink: 0;
}
.tx-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}
