:root {
  --ob-red: #e3001b;
  --ob-bg: #ececec;
  --ob-dark: #2c2f34;
  --ob-dark-2: #24272b;
  --ob-line: #3a3e43;
  --ob-accent: #1ca9c9;
  --ob-text: #4a4f57;
  --ob-rail-width: 78px;
  --ob-brand-width: 190px;
}

* {
  box-sizing: border-box;
}

body.online-banking {
  margin: 0;
  min-height: 100vh;
  font-family: 'Roboto Condensed', 'Inter', sans-serif;
  background: var(--ob-bg);
  color: var(--ob-text);
}

.ob-layout {
  min-height: 100vh;
  background: var(--ob-bg);
}

.ob-shell {
  display: flex;
  min-height: 100vh;
}

.ob-sidebar {
  width: var(--ob-rail-width);
  background: var(--ob-dark);
  color: #fff;
  transition: none;
  flex-shrink: 0;
  overflow: visible;
  position: relative;
  z-index: 2;
}

.ob-sidebar__drawer {
  position: absolute;
  top: 76px;
  left: var(--ob-rail-width);
  width: 0;
  bottom: 0;
  overflow: hidden;
  background: var(--ob-dark);
  border-left: 1px solid var(--ob-line);
  transition: width 220ms ease;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.ob-layout--expanded .ob-sidebar__drawer {
  width: calc(var(--ob-brand-width) + 1px);
}

.ob-sidebar__toggle {
  width: 100%;
  height: 76px;
  border: 0;
  border-bottom: 1px solid var(--ob-line);
  background: var(--ob-dark-2);
  color: #fff;
  cursor: pointer;
  font-size: 36px;
  line-height: 1;
}

.ob-sidebar__menu {
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: var(--ob-rail-width);
  width: 100%;
}

.ob-sidebar__item {
  border-bottom: 1px solid var(--ob-line);
}

.ob-sidebar__item:last-child {
  border-bottom: 0;
}

.ob-sidebar__link {
  width: 100%;
  min-height: 76px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: #d4d8de;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  padding: 8px 6px;
  position: relative;
}

.ob-nav-badge {
  position: absolute;
  top: 10px;
  right: 8px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e3001b;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.ob-nav-badge--bottom {
  top: 6px;
  right: 18px;
}

.ob-nav-badge[hidden] {
  display: none;
}

.ob-sidebar__link--textonly {
  gap: 0;
}

.ob-sidebar__drawer-menu {
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: calc(var(--ob-brand-width) + 1px);
}

.ob-sidebar__drawer-item {
  border-bottom: 1px solid var(--ob-line);
}

.ob-sidebar__drawer-item:last-child {
  border-bottom: 0;
}

.ob-sidebar__drawer-link {
  width: 100%;
  min-height: 76px;
  display: flex;
  align-items: center;
  border: 0;
  background: transparent;
  color: #d4d8de;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  padding: 10px 10px 10px 14px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.ob-sidebar__icon {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: inherit;
}

.ob-sidebar__label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.15;
}

.ob-layout--expanded .ob-sidebar__label {
  font-size: 16px;
  letter-spacing: 0.02em;
  text-transform: none;
  line-height: 1.1;
}

.ob-layout--expanded .ob-sidebar__link {
  flex-direction: row;
  justify-content: flex-start;
  min-height: 74px;
  padding: 12px 6px;
  gap: 0;
  text-align: left;
}

.ob-layout--expanded .ob-sidebar__link--textonly {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 74px;
  padding: 12px 6px;
  gap: 6px;
  text-align: center;
}

.ob-layout--expanded .ob-sidebar__drawer .ob-sidebar__link {
  width: 0;
  min-height: 74px;
  padding: 0;
}

.ob-layout--expanded .ob-sidebar__link .ob-sidebar__label {
  display: none;
}

.ob-layout--expanded .ob-sidebar__link--textonly .ob-sidebar__label {
  display: block;
}

.ob-layout--expanded .ob-sidebar__drawer-link {
  width: calc(var(--ob-brand-width) + 1px);
}

.ob-layout--expanded .ob-sidebar__icon {
  /* no border needed for SVG icons */
}

.ob-sidebar__link.is-active,
.ob-sidebar__link:hover {
  background: #2f3339;
  color: #fff;
}

.ob-main {
  min-width: 0;
  flex: 1;
}

.ob-top {
  display: flex;
  align-items: stretch;
  background: var(--ob-red);
  min-height: 76px;
}

.ob-brand {
  width: var(--ob-brand-width);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #d7d7d7;
}

.ob-brand__img {
  width: 168px;
  height: auto;
  display: block;
}

.ob-top__nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 62px;
  padding: 8px 20px;
}

.ob-top__fill {
  flex: 1;
}

.ob-top__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px 0 12px;
}

.ob-settings-btn {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.ob-settings-btn__img {
  width: 40px;
  height: 40px;
  display: block;
  object-fit: contain;
}

.ob-top__item {
  color: #fff;
  text-decoration: none;
  font-size: 22px;
  text-transform: uppercase;
  font-weight: 700;
  text-align: center;
  line-height: 1;
}

.ob-top__item small {
  display: block;
  font-size: 30px;
  line-height: 1;
  margin-bottom: 6px;
}

.ob-content {
  padding: 64px 34px 48px;
  margin-left: 0;
  transition: margin-left 220ms ease;
}

.ob-content--dashboard {
  padding-left: 20px;
}

.ob-layout--expanded .ob-content {
  margin-left: calc(var(--ob-brand-width) + 1px);
}

.ob-login {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.ob-register {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.ob-register__subtitle {
  margin: 12px auto 0;
  max-width: 560px;
  color: #5e6670;
  font-size: 20px;
  line-height: 1.35;
}

.ob-register__form {
  margin-top: 34px;
}

.ob-register__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 10px;
}

.ob-register__grid .ob-field {
  margin-bottom: 0;
}

.ob-register__grid .ob-field input {
  text-align: left;
  padding: 0 16px;
}

.ob-register__terms {
  margin-top: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  color: #5d6570;
  font-size: 16px;
  line-height: 1.35;
}

.ob-register__terms input {
  margin-top: 3px;
  width: 18px;
  flex-shrink: 0;
}

.ob-register__terms a {
  color: #2ca5bf;
  font-weight: 700;
  text-decoration: underline;
}

.ob-register__terms a:hover {
  color: #1d90aa;
}

.ob-register__submit {
  margin-top: 22px;
  min-width: 260px;
  width: auto;
  max-width: 100%;
  padding: 12px 30px;
  font-size: 22px;
  text-transform: none;
  line-height: 1.1;
}

.ob-register__login-text {
  margin-top: 20px;
  font-size: 18px;
  color: #5f6772;
}

.ob-register__login-text a {
  margin-left: 8px;
  color: #2ca5bf;
  font-weight: 700;
  text-decoration: underline;
}

.ob-login__title {
  margin: 0;
  color: var(--ob-red);
  font-size: 52px;
  font-weight: 700;
}

.ob-login__warning {
  margin-top: 34px;
  background: #eaf3f5;
  padding: 24px 18px;
  font-size: 18px;
  line-height: 1.45;
  color: #4e5760;
}

.ob-login__form {
  margin-top: 36px;
}

.ob-login .ob-field {
  grid-template-columns: 1fr;
}

.ob-field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.ob-field input {
  width: 100%;
  height: 58px;
  border: 2px solid #d2d6db;
  border-radius: 7px;
  background: #f4f4f4;
  text-align: center;
  font-size: 20px;
  font-family: inherit;
  color: #6a7179;
}

.ob-login__link {
  margin-top: 10px;
  display: inline-block;
  color: #2ca5bf;
  font-weight: 700;
  text-decoration: underline;
  font-size: 17px;
}

.ob-login__submit {
  margin-top: 28px;
  min-width: 170px;
  max-width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 4px;
  background: var(--ob-accent);
  color: #fff;
  text-transform: uppercase;
  font-size: 24px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  line-height: 1;
  white-space: nowrap;
}

.ob-login__notice {
  margin-top: 24px;
  color: var(--ob-accent);
  font-weight: 700;
  font-size: 17px;
}

.ob-login__notice a {
  color: inherit;
}

.ob-login__langs {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.ob-lang {
  border: 0;
  background: transparent;
  cursor: pointer;
  color: #4e5661;
  font-family: inherit;
  font-size: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0;
  transition: opacity 160ms ease;
}

.ob-lang__flag-img {
  width: 58px;
  height: 58px;
  display: block;
  object-fit: contain;
  filter: grayscale(1) brightness(0.72);
  opacity: 0.88;
}

.ob-lang[aria-pressed='true'] .ob-lang__flag-img {
  filter: none;
  opacity: 1;
}

.ob-lang[aria-pressed='true'] {
  color: #11161b;
}

.ob-lang--top {
  justify-content: center;
}

.ob-lang--top .ob-lang__flag-img {
  width: 40px;
  height: 40px;
}

.ob-lang--top span {
  display: none;
}

.ob-lang:not([aria-pressed='true']) {
  color: #626b74;
}

.ob-dashboard {
  max-width: none;
  margin: 0;
}

.ob-dashboard__head {
  margin-bottom: 22px;
}

.ob-dashboard__title {
  margin: 0;
  color: #2d333a;
  font-size: 44px;
}

.ob-dashboard__subtitle {
  margin: 6px 0 0;
  color: #606872;
  font-size: 20px;
}

.ob-placeholder {
  background: #fff;
  border: 1px solid #d9dde2;
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 8px 20px rgba(20, 33, 45, 0.06);
}

.ob-placeholder--cards-shell {
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}

.ob-placeholder--settings-shell {
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}

.ob-placeholder--card-item {
  width: 520px;
  flex: 0 0 auto;
  max-width: 520px;
  padding: 15px;
}

.ob-placeholder__title {
  margin: 0;
  color: #27323d;
  font-size: 30px;
}

.ob-placeholder__text {
  margin: 12px 0 0;
  color: #58626d;
  font-size: 19px;
  line-height: 1.45;
}

.ob-settings {
  display: grid;
  gap: 18px;
}

.ob-settings__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.ob-settings__eyebrow {
  margin: 0 0 6px;
  color: var(--ob-red);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ob-settings__title {
  margin: 0;
  color: #27323d;
  font-size: 30px;
  line-height: 1.1;
}

.ob-settings__tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ob-settings__tab {
  border: 1px solid #d7dde4;
  background: #f8fafc;
  color: #4a4f57;
  border-radius: 999px;
  padding: 10px 18px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.ob-settings__tab.is-active {
  background: var(--ob-red);
  border-color: var(--ob-red);
  color: #fff;
}

.ob-settings__body {
  display: grid;
}

.ob-settings__card {
  background: #fff;
  border: 1px solid #d9dde2;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 8px 20px rgba(20, 33, 45, 0.06);
  display: grid;
  gap: 18px;
  max-width: 760px;
}

.ob-settings__card-title {
  margin: 0;
  color: #27323d;
  font-size: 22px;
  line-height: 1.15;
}

.ob-settings__field {
  display: grid;
  gap: 8px;
}

.ob-settings__label {
  color: #4a4f57;
  font-size: 15px;
  font-weight: 700;
}

.ob-settings__input {
  width: 100%;
  min-height: 52px;
  border: 1px solid #d7dde4;
  border-radius: 10px;
  background: #f4f4f4;
  color: #2d333a;
  padding: 0 14px;
  font: inherit;
  font-size: 17px;
}

.ob-settings__input[readonly] {
  opacity: 1;
}

.ob-settings__hint {
  margin: 0;
  color: #5e6670;
  font-size: 15px;
  line-height: 1.4;
}

.ob-settings__save {
  align-self: flex-start;
  padding: 12px 28px;
  background: var(--ob-red);
  color: #fff;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.02em;
}

.ob-settings__save:hover {
  background: #c5001a;
}

/* ── KYC tab ── */

.ob-settings__card--kyc {
  gap: 0;
}

.ob-kyc__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.ob-kyc__head .ob-settings__card-title {
  margin-bottom: 6px;
}

.ob-kyc__badge {
  flex-shrink: 0;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.ob-kyc__badge--pending  { background: #fff5e6; color: #b06400; }
.ob-kyc__badge--verified { background: #e6f9f0; color: #1a7d4a; }
.ob-kyc__badge--rejected { background: #fde8ea; color: #c0001a; }

.ob-kyc__reason {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
  margin-top: 10px;
  padding: 12px 16px;
  background: #fde8ea;
  border: 1px solid #f5bfc4;
  border-radius: 10px;
  color: #a0001a;
  font-size: 14px;
  line-height: 1.5;
}

.ob-kyc__reason-label {
  font-weight: 700;
  white-space: nowrap;
}

.ob-kyc__reason-text {
  word-break: break-word;
}

.ob-kyc__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ob-kyc__req {
  color: var(--ob-red);
  font-weight: 700;
}

/* File upload */

.ob-kyc__file-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1.5px dashed #c8cdd5;
  border-radius: 10px;
  padding: 12px 16px;
  background: #f7f9fb;
  transition: border-color 0.16s;
}

.ob-kyc__file-wrap:focus-within {
  border-color: var(--ob-red);
}

.ob-kyc__file-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: #fff;
  border: 1.5px solid #d0d5dc;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #2d3740;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.16s, background 0.16s;
}

.ob-kyc__file-label:hover {
  border-color: var(--ob-red);
  background: #fff5f5;
}

.ob-kyc__file-icon {
  font-size: 16px;
}

.ob-kyc__file-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.ob-kyc__file-name {
  font-size: 14px;
  color: #8590a0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.ob-kyc__file-hint {
  margin: 6px 0 0;
  font-size: 13px;
  color: #8590a0;
  font-style: italic;
}

.ob-kyc__submit {
  align-self: stretch;
  padding: 14px;
  background: var(--ob-red);
  color: #fff;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.16s;
  margin-top: 4px;
}

.ob-kyc__submit:hover {
  background: #c5001a;
}

.ob-cards-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 18px;
}

.ob-bank-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  justify-self: start;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  min-height: 230px;
  border: 1px solid #d7dde4;
  box-shadow: 0 10px 22px rgba(20, 33, 45, 0.08);
  background: #f3f5f7;
}

.ob-bank-card--blocked {
  border-color: #bfc6cf;
  box-shadow: 0 8px 16px rgba(20, 33, 45, 0.06);
}

.ob-bank-card__image {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(135deg, rgba(14, 26, 36, 0.06), rgba(14, 26, 36, 0.02)), url('../../assets/images/card.png');
  background-size: 136% 136%;
  background-position: 50% 43%;
  background-repeat: no-repeat;
}

.ob-bank-card--blocked .ob-bank-card__image {
  filter: grayscale(1) saturate(0.08) brightness(0.78);
}

.ob-bank-card__overlay {
  position: relative;
  z-index: 1;
  min-height: 100%;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  background: linear-gradient(180deg, rgba(19, 28, 37, 0.05) 34%, rgba(19, 28, 37, 0.3) 100%);
}

.ob-bank-card--blocked .ob-bank-card__overlay {
  background: linear-gradient(180deg, rgba(26, 30, 34, 0.32) 20%, rgba(26, 30, 34, 0.62) 100%);
}

.ob-bank-card__blocked {
  margin: 0 0 auto auto;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #e6edf5;
  background: rgba(46, 54, 63, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.ob-bank-card--blocked .ob-bank-card__type,
.ob-bank-card--blocked .ob-bank-card__balance-label,
.ob-bank-card--blocked .ob-bank-card__meta {
  color: rgba(232, 238, 245, 0.84);
}

@media (min-width: 1500px) {
  .ob-bank-card__overlay {
    padding: 12px;
  }
}

.ob-bank-card__type {
  margin: 0 auto auto 0;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(2px);
}

.ob-bank-card__type--debit {
  background: rgba(17, 165, 118, 0.62);
}

.ob-bank-card__type--credit {
  background: rgba(227, 0, 27, 0.62);
}

.ob-bank-card__number {
  margin: 0;
  color: #f4f8fb;
  font-size: clamp(16px, 2vw, 29px);
  letter-spacing: clamp(0.03em, 0.16vw, 0.08em);
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.38), 0 3px 8px rgba(0, 0, 0, 0.28);
  font-variant-numeric: tabular-nums;
  transform: translateY(-15px);
}

.ob-bank-card__balance-label {
  margin: 0;
  color: rgba(243, 248, 252, 0.9);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  transform: translateY(-15px);
}

.ob-bank-card__balance {
  margin: 0;
  color: #ffffff;
  font-size: clamp(22px, 2.3vw, 34px);
  line-height: 1.1;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 3px 8px rgba(0, 0, 0, 0.3);
  transform: translateY(-15px);
}

.ob-bank-card__meta {
  margin: 2px 0 0;
  color: rgba(245, 250, 255, 0.92);
  font-size: 13px;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  transform: translateY(-12px);
}

.ob-bank-card__meta strong {
  color: #ffffff;
  font-weight: 700;
}

.ob-credit-apply {
  width: 100%;
  max-width: 460px;
  aspect-ratio: 3 / 2;
  min-height: 230px;
  border: 2px dashed #c7d1db;
  border-radius: 18px;
  background: linear-gradient(145deg, #f9fbfc, #eef2f6);
  color: #2e3a47;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  text-align: center;
  cursor: pointer;
  padding: 20px;
  margin-right: auto;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.ob-credit-apply:hover {
  border-color: #e3001b;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(20, 33, 45, 0.08);
}

.ob-credit-apply__plus {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #e3001b;
  color: #fff;
  font-size: 34px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.ob-credit-apply__title {
  font-size: 20px;
  font-weight: 700;
}

.ob-credit-apply__hint {
  font-size: 14px;
  color: #5a6571;
}

.ob-credit-apply__status {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.ob-credit-apply__status--pending {
  background: #fff7e6;
  color: #8b5b05;
}

.ob-credit-apply__status--approved {
  background: #ecf9f1;
  color: #187a3f;
}

.ob-credit-apply__status--rejected {
  background: #ffecef;
  color: #9d1e2f;
}

.ob-credit-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  padding: 16px;
}

.ob-credit-modal[hidden] {
  display: none !important;
}

.ob-credit-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 31, 0.55);
}

.ob-credit-modal__box {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  border-radius: 16px;
  padding: 22px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(11, 27, 42, 0.3);
}

.ob-credit-modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #576270;
}

.ob-credit-modal__title {
  margin: 0;
  font-size: 23px;
  color: #25303a;
}

.ob-credit-modal__sub {
  margin: 10px 0 16px;
  color: #5a6470;
}

.ob-credit-modal__box form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ob-credit-modal__box input[type='file'] {
  border: 1px solid #d7dee6;
  border-radius: 10px;
  padding: 10px;
  background: #f8fafc;
}

.ob-credit-modal__submit {
  border: 0;
  border-radius: 12px;
  background: #e3001b;
  color: #fff;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.ob-credit-modal__submit:hover {
  background: #c60018;
}

.ob-support-chat {
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: clamp(560px, 76vh, 860px);
}

.ob-support-chat__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e4e7eb;
}

.ob-support-chat__eyebrow {
  margin: 0 0 6px;
  color: var(--ob-red);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ob-support-chat__title {
  margin: 0;
  color: #27323d;
  font-size: 28px;
  line-height: 1.1;
}

.ob-support-chat__subtitle {
  margin: 8px 0 0;
  color: #58626d;
  font-size: 18px;
  line-height: 1.4;
}

.ob-support-chat__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #f7fafb;
  border: 1px solid #dce3ea;
  color: #44505d;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.ob-support-chat__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #25a244;
  box-shadow: 0 0 0 4px rgba(37, 162, 68, 0.14);
}

.ob-support-chat__messages {
  display: grid;
  gap: 12px;
  grid-auto-rows: max-content;
  align-content: start;
  justify-items: start;
  padding: 18px;
  border: 1px solid #dbe1e8;
  border-radius: 16px;
  background: linear-gradient(180deg, #fbfcfd 0%, #f5f7fa 100%);
  min-height: 0;
  flex: 1;
  overflow-y: auto;
}

.ob-support-chat__message {
  align-self: start;
  max-width: min(78%, 620px);
  padding: 14px 16px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(20, 33, 45, 0.06);
}

.ob-support-chat__message--agent {
  background: #ffffff;
  border: 1px solid #d8dee6;
}

.ob-support-chat__message--user {
  justify-self: end;
  background: #e8f6fb;
  border: 1px solid #b7e0ee;
}

.ob-support-chat__message-name {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: #6a7480;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ob-support-chat__message--user .ob-support-chat__message-name {
  color: #2f758f;
}

.ob-support-chat__message-text {
  margin: 0;
  color: #2f3740;
  font-size: 18px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.ob-support-chat__chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ob-support-chat__chip {
  border: 1px solid #cbd4dc;
  background: #fff;
  color: #34414f;
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.ob-support-chat__chip:hover {
  border-color: #9fb8c6;
  background: #f6fbfd;
}

.ob-support-chat__composer {
  display: grid;
  gap: 12px;
}

.ob-support-chat__input {
  width: 100%;
  resize: vertical;
  min-height: 88px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #cbd4dc;
  background: #fff;
  color: #2c353f;
  font: inherit;
  font-size: 18px;
  line-height: 1.45;
}

.ob-support-chat__input:focus {
  outline: 2px solid rgba(28, 169, 201, 0.22);
  border-color: #8dcfe0;
}

.ob-support-chat__composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ob-support-chat__note {
  color: #6a7480;
  font-size: 14px;
}

.ob-support-chat__send {
  min-width: 180px;
  min-height: 52px;
  padding: 12px 20px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #26add0 0%, #169ac0 100%);
  color: #fff;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.ob-support-chat__send:hover {
  filter: brightness(1.02);
}

/* By default (desktop) show label, hide svg icon */
.ob-support-chat__send-label { display: inline; }
.ob-support-chat__send-icon  { display: none; }

.ob-toast-wrap {
  position: fixed;
  right: 16px;
  bottom: 84px;
  z-index: 980;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(420px, calc(100vw - 32px));
}

.ob-toast {
  background: #1f2328;
  color: #fff;
  border-left: 4px solid var(--ob-red);
  border-radius: 12px;
  padding: 11px 13px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.26);
  font-size: 14px;
  line-height: 1.35;
}

.ob-toast--ok { border-left-color: #10b981; }
.ob-toast--warn { border-left-color: #f59e0b; }

@media (max-width: 1100px) {
  .ob-top__nav {
    gap: 26px;
  }

  .ob-top__item {
    font-size: 16px;
  }

  .ob-top__item small {
    font-size: 22px;
  }

  .ob-top__actions {
    gap: 8px;
    padding-right: 12px;
  }

  .ob-settings-btn {
    width: 40px;
    height: 40px;
  }

  .ob-settings-btn__img {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 860px) {
  :root {
    --ob-brand-width: 138px;
  }

  .ob-brand {
    width: var(--ob-brand-width);
  }

  .ob-layout--expanded .ob-content {
    margin-left: calc(var(--ob-brand-width) + 1px);
  }

  .ob-brand__img {
    width: 124px;
  }

  .ob-content {
    padding: 34px 18px 24px;
  }

  .ob-content--dashboard {
    padding-left: 20px;
  }

  .ob-login__title {
    font-size: 44px;
  }

  .ob-register__subtitle {
    font-size: 18px;
  }

  .ob-register__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ob-register__submit {
    width: 100%;
    max-width: 280px;
  }

  .ob-login__submit,
  .ob-register__submit {
    white-space: normal;
    padding: 10px 16px;
    min-height: 50px;
    line-height: 1.15;
  }

  .ob-top__item {
    font-size: 14px;
  }

  .ob-top__item small {
    font-size: 18px;
  }

  .ob-top__actions {
    gap: 6px;
    padding-right: 8px;
  }

  .ob-settings-btn {
    width: 32px;
    height: 32px;
  }

  .ob-settings-btn__img {
    width: 32px;
    height: 32px;
  }

  .ob-lang--top .ob-lang__flag-img {
    width: 32px;
    height: 32px;
  }

  .ob-layout--expanded .ob-sidebar__label {
    font-size: 14px;
  }

  .ob-sidebar__drawer {
    width: 0;
    left: var(--ob-rail-width);
  }

  .ob-layout--expanded .ob-sidebar__drawer {
    width: calc(var(--ob-brand-width) + 1px);
  }

  .ob-layout--expanded .ob-sidebar__drawer-link {
    width: calc(var(--ob-brand-width) + 1px);
    font-size: 16px;
  }

  .ob-cards-grid {
    flex-direction: column;
  }

  .ob-placeholder--card-item {
    width: 100%;
    max-width: 100%;
    padding: 12px;
  }

  .ob-settings__card {
    padding: 18px;
  }

  .ob-settings__title {
    font-size: 26px;
  }

  .ob-settings__tab {
    padding: 9px 14px;
    font-size: 15px;
  }

  .ob-bank-card {
    min-height: 200px;
  }

  .ob-bank-card__overlay {
    min-height: 100%;
    padding: 12px;
  }

  .ob-bank-card__number {
    font-size: clamp(16px, 6vw, 26px);
    letter-spacing: 0.04em;
  }

  .ob-support-chat {
    min-height: clamp(500px, 72vh, 760px);
  }
}

/* =====================================================================
   ACCOUNTS — card selector + transaction table
   ===================================================================== */

.ob-placeholder--accounts-shell {
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}

.ob-accounts {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

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

.ob-accounts__eyebrow {
  margin: 0;
  color: var(--ob-red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ob-accounts__title {
  margin: 0;
  color: #1a232d;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
}

/* ── Card selector ── */

.ob-accounts__selector {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.ob-accounts__card-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: #fff;
  border: 2px solid #d9dde2;
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s;
  text-align: left;
}

.ob-accounts__card-btn:hover {
  border-color: #b0b8c2;
  box-shadow: 0 4px 12px rgba(20, 33, 45, 0.08);
}

.ob-accounts__card-btn.is-active {
  border-color: var(--ob-red);
  box-shadow: 0 4px 18px rgba(227, 0, 27, 0.14);
}

.ob-accounts__card-btn--blocked {
  border-color: #c5ccd5;
  background: #f3f5f7;
}

.ob-accounts__card-btn--blocked .ob-accounts__card-chip {
  filter: grayscale(1) saturate(0.12) brightness(0.82);
}

.ob-accounts__card-btn--blocked .ob-accounts__card-type,
.ob-accounts__card-btn--blocked .ob-accounts__card-num,
.ob-accounts__card-btn--blocked .ob-accounts__card-bal {
  color: #6f7782;
}

.ob-accounts__card-blocked {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 2px 9px;
  border-radius: 999px;
  background: #5f6771;
  color: #f7f9fb;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ob-accounts__card-chip {
  width: 72px;
  height: 46px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.ob-accounts__card-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ob-accounts__card-type {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8590a0;
}

.ob-accounts__card-num {
  font-size: 16px;
  font-weight: 700;
  color: #1a232d;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.06em;
}

.ob-accounts__card-bal {
  font-size: 14px;
  font-weight: 600;
  color: #4a555f;
}

/* ── Transactions panel ── */

.ob-accounts__panel {
  background: #fff;
  border: 1px solid #d9dde2;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(20, 33, 45, 0.06);
  overflow: hidden;
}

.ob-accounts__panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 22px 28px 18px;
  border-bottom: 1px solid #eef0f3;
}

.ob-accounts__panel-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #1a232d;
}

.ob-accounts__panel-meta {
  font-size: 14px;
  color: #6a737c;
}

.ob-accounts__panel-meta strong {
  color: #1a232d;
  font-weight: 700;
}

.ob-accounts__panel-blocked {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  background: #5f6771;
  color: #f7f9fb;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ob-accounts__table-wrap {
  overflow-x: auto;
}

.ob-accounts__table {
  width: 100%;
  border-collapse: collapse;
}

.ob-accounts__th {
  padding: 12px 20px;
  background: #f7f9fb;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8590a0;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid #eef0f3;
}

.ob-accounts__row {
  transition: background 0.14s;
}

.ob-accounts__row:hover {
  background: #f7f9fb;
}

.ob-accounts__row:not(:last-child) .ob-accounts__td {
  border-bottom: 1px solid #f0f2f5;
}

.ob-accounts__td {
  padding: 14px 20px;
  font-size: 15px;
  color: #2d3740;
  vertical-align: middle;
}

.ob-accounts__td--desc {
  font-weight: 600;
  min-width: 160px;
}

.ob-accounts__recipient {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #4c5560;
  letter-spacing: 0.01em;
}

.ob-accounts__td--dt {
  white-space: nowrap;
  color: #4a555f;
  font-size: 14px;
  line-height: 1.4;
}

.ob-accounts__time {
  color: #8590a0;
  font-size: 13px;
}

.ob-accounts__empty {
  padding: 40px 24px;
  text-align: center;
  color: #8590a0;
  font-size: 15px;
}

/* Amounts */

.ob-accounts__amount {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.ob-accounts__amount--debit {
  color: var(--ob-red);
}

.ob-accounts__amount--credit {
  color: #1a8a5a;
}

/* Category badges */

.ob-accounts__cat {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.ob-accounts__cat--shopping     { background: #e8f0ff; color: #2c5cc5; }
.ob-accounts__cat--income       { background: #e6f9f0; color: #1a7d4a; }
.ob-accounts__cat--entertainment { background: #f3e8ff; color: #7c3aed; }
.ob-accounts__cat--transport    { background: #e8f8f8; color: #0d8a8a; }
.ob-accounts__cat--housing      { background: #fff3e8; color: #c45900; }
.ob-accounts__cat--food         { background: #fffbe6; color: #a07000; }
.ob-accounts__cat--transfer     { background: #e8f2ff; color: #1455a4; }
.ob-accounts__cat--atm          { background: #f0f2f5; color: #4a555f; }
.ob-accounts__cat--travel       { background: #e6faff; color: #0077a8; }
.ob-accounts__cat--admin_credit { background: #e6f9f0; color: #146c43; }
.ob-accounts__cat--admin_debit  { background: #fdebec; color: #b4232a; }
.ob-accounts__cat--bonus        { background: #fff4db; color: #9a5d00; }
.ob-accounts__cat--refund       { background: #e9f5ff; color: #185fae; }
.ob-accounts__cat--fee          { background: #fcefea; color: #b93815; }
.ob-accounts__cat--manual       { background: #eef2f7; color: #39495d; }
.ob-accounts__cat--other        { background: #f0f2f5; color: #4a555f; }

/* Status badges */

.ob-accounts__status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.ob-accounts__status--completed { background: #e6f9f0; color: #1a7d4a; }
.ob-accounts__status--pending   { background: #fff5e6; color: #b06400; }

/* ── Withdraw button ── */

.ob-accounts__panel-head-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ob-accounts__withdraw-btn {
  padding: 9px 22px;
  background: var(--ob-red);
  color: #fff;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.02em;
  transition: background 0.16s;
}

.ob-accounts__withdraw-btn:hover {
  background: #c5001a;
}

.ob-accounts__withdraw-btn:disabled {
  background: #b8bfc8;
  color: #eef2f6;
  cursor: not-allowed;
}

/* =====================================================================
   WITHDRAWAL MODAL
   ===================================================================== */

.ob-withdraw-modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ob-withdraw-modal[hidden] {
  display: none;
}

.ob-withdraw-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 26, 0.52);
  backdrop-filter: blur(3px);
  cursor: pointer;
}

.ob-withdraw-modal__box {
  position: relative;
  z-index: 1;
  width: min(480px, calc(100vw - 40px));
  background: #fff;
  border-radius: 18px;
  padding: 36px 36px 32px;
  box-shadow: 0 24px 60px rgba(10, 18, 26, 0.22);
  animation: withdrawSlideIn 0.22s ease;
}

@keyframes withdrawSlideIn {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.ob-withdraw-modal__close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 32px;
  height: 32px;
  background: #f0f2f5;
  border: 0;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: #4a555f;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.14s;
}

.ob-withdraw-modal__close:hover {
  background: #e0e3e8;
}

.ob-withdraw-modal__title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  color: #1a232d;
}

.ob-withdraw-modal__sub {
  margin: 0 0 24px;
  font-size: 15px;
  color: #6a737c;
  line-height: 1.4;
}

.ob-withdraw-modal__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ob-withdraw-modal__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ob-withdraw-modal__label {
  font-size: 13px;
  font-weight: 700;
  color: #4a555f;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.ob-withdraw-modal__input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1.5px solid #d0d5dc;
  border-radius: 10px;
  font: inherit;
  font-size: 16px;
  color: #1a232d;
  background: #f7f9fb;
  transition: border-color 0.16s, box-shadow 0.16s;
  outline: none;
}

.ob-withdraw-modal__input:focus {
  border-color: var(--ob-red);
  box-shadow: 0 0 0 3px rgba(227, 0, 27, 0.12);
  background: #fff;
}

.ob-withdraw-modal__input-wrap {
  position: relative;
}

.ob-withdraw-modal__currency {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  font-weight: 700;
  color: #8590a0;
  pointer-events: none;
}

.ob-withdraw-modal__input--amount {
  padding-left: 46px;
}

.ob-withdraw-modal__confirm {
  margin-top: 6px;
  padding: 14px;
  background: var(--ob-red);
  color: #fff;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.16s;
}

.ob-withdraw-modal__confirm:hover {
  background: #c5001a;
}

/* ================================================================
   MOBILE APP ADAPTATION  (≤ 767px)
   - Sidebar hidden → bottom tab bar
   - Language switcher hidden in header → shown in Settings
   - App-like card display, list-style transactions
================================================================ */

/* Desktop: always hide bottom nav */
@media (min-width: 768px) {
  .ob-bottom-nav { display: none !important; }
  .ob-settings__lang-mobile { display: none !important; }
}

@media (max-width: 767px) {

  /* ── Layout ── */
  .ob-shell {
    flex-direction: column;
    min-height: calc(100vh - 64px);
  }

  .ob-sidebar { display: none; }

  .ob-layout--expanded .ob-content { margin-left: 0; }

  /* ── Top header: compact ── */
  .ob-top {
    min-height: 56px;
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .ob-brand {
    width: 148px;
    border-right: none;
    padding: 0 12px;
  }

  .ob-brand__img { width: 108px; }

  /* Hide desktop language switcher in header */
  .ob-top__actions { display: none; }

  /* ── Content ── */
  .ob-content {
    padding: 16px 14px 80px;
  }

  .ob-content--dashboard { padding-left: 14px; }

  .ob-dashboard__head { display: none; }

  /* ── Bottom navigation bar ── */
  .ob-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    display: flex;
    align-items: stretch;
    background: #fff;
    border-top: 1.5px solid #e8eaed;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.09);
    z-index: 300;
  }

  .ob-bottom-nav__btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: none;
    background: transparent;
    color: #9aa0ab;
    cursor: pointer;
    padding: 8px 4px 6px;
    font-family: inherit;
    position: relative;
    transition: color 0.15s;
  }

  .ob-bottom-nav__btn.is-active {
    color: var(--ob-red);
  }

  /* Red indicator bar at top of active tab */
  .ob-bottom-nav__btn.is-active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 3px;
    background: var(--ob-red);
    border-radius: 0 0 4px 4px;
  }

  .ob-bottom-nav__icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
  }

  .ob-bottom-nav__label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1;
    white-space: nowrap;
  }

  /* ── Accounts section on mobile ── */
  .ob-accounts {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
  }

  .ob-accounts__head { display: none; }

  /* Card selector: horizontal scroll with snapping */
  .ob-accounts__selector {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 12px;
    padding: 4px 2px 16px;
    margin-bottom: 0;
  }

  .ob-accounts__selector::-webkit-scrollbar { display: none; }

  /* Each card as a real bank card */
  .ob-accounts__card-btn {
    flex-shrink: 0;
    scroll-snap-align: start;
    width: min(290px, calc(100vw - 56px));
    height: 168px;
    border-radius: 18px;
    border: none;
    padding: 0;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: block;
    transition: transform 0.18s, box-shadow 0.18s;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14);
  }

  .ob-accounts__card-btn.is-active {
    box-shadow: 0 8px 32px rgba(227, 0, 27, 0.30);
    outline: none;
  }

  .ob-accounts__card-btn:active {
    transform: scale(0.97);
  }

  /* Card image fills the button */
  .ob-accounts__card-chip {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 18px;
  }

  /* Dark gradient overlay for text readability */
  .ob-accounts__card-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.52) 100%);
    border-radius: 18px;
    z-index: 1;
  }

  /* Active card: red glow border */
  .ob-accounts__card-btn.is-active::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    box-shadow: inset 0 0 0 3px var(--ob-red);
    z-index: 2;
  }

  /* Card text positioned at bottom-left */
  .ob-accounts__card-meta {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }

  .ob-accounts__card-type {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.75);
  }

  .ob-accounts__card-num {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.90);
  }

  .ob-accounts__card-bal {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.01em;
    line-height: 1.1;
    margin-top: 2px;
  }

  /* Panel */
  .ob-accounts__panel {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  }

  .ob-accounts__panel-head {
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 16px 12px;
  }

  .ob-accounts__panel-head-right {
    flex-wrap: wrap;
    gap: 8px;
  }

  .ob-accounts__panel-meta {
    font-size: 13px;
  }

  .ob-accounts__withdraw-btn {
    font-size: 13px;
    padding: 7px 14px;
  }

  /* ── Transactions: table → flex list ── */
  .ob-accounts__table-wrap { overflow: visible; }

  .ob-accounts__table { display: block; }
  .ob-accounts__table thead { display: none; }
  .ob-accounts__table tbody { display: block; }
  .ob-accounts__table td,
  .ob-accounts__table th { display: block; }

  .ob-accounts__row {
    display: grid !important;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto auto;
    column-gap: 12px;
    row-gap: 3px;
    padding: 13px 16px;
    border-bottom: 1px solid #f0f2f5;
    background: #fff;
  }

  .ob-accounts__row:last-child { border-bottom: none; }

  /* Description: row 1, col 1 */
  .ob-accounts__td:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
    font-size: 15px;
    font-weight: 600;
    color: #1a232d;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    word-break: break-word;
  }

  /* Category badge: row 2, col 1 */
  .ob-accounts__td:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }

  /* Amount: row 1, col 2 */
  .ob-accounts__td:nth-child(3) {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
    font-size: 16px;
    font-weight: 700;
  }

  /* Date/time: row 2, col 2 */
  .ob-accounts__td:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
    text-align: right;
    font-size: 12px;
    color: #8590a0;
    line-height: 1.3;
  }

  /* Status: row 3, full width */
  .ob-accounts__td:nth-child(5) {
    display: block;
    grid-column: 1 / -1;
    grid-row: 3;
  }

  /* Empty state */
  .ob-accounts__empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 24px 16px;
  }

  /* ── Settings lang block (mobile only) ── */
  .ob-settings__lang-mobile {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    padding: 20px 16px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  }

  .ob-settings__lang-title {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #8590a0;
  }

  .ob-settings__lang-btns {
    display: flex;
    gap: 8px;
  }

  .ob-lang--settings {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 8px;
    border: 1.5px solid #dde1e7;
    border-radius: 10px;
    background: #f7f9fb;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    color: #4a555f;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
  }

  .ob-lang--settings.is-active {
    border-color: var(--ob-red);
    background: rgba(227, 0, 27, 0.06);
    color: var(--ob-red);
  }

  .ob-lang--settings img {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
  }

  /* ── Cards grid on mobile ── */
  .ob-cards-grid {
    grid-template-columns: 1fr;
  }

  /* ── Support chat on mobile ── */
  .ob-support {
    height: calc(100vh - 56px - 64px - 32px);
  }

  /* ── Support chat: full-screen messenger layout ── */

  /* Make content area full-height when chat is visible */
  .ob-content:has(.ob-support-chat) {
    padding: 0 !important;
    overflow: hidden;
    height: calc(100dvh - 56px);
    display: flex;
    flex-direction: column;
    background: var(--ob-bg, #ececec);
  }

  .ob-content:has(.ob-support-chat) .ob-dashboard {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .ob-content:has(.ob-support-chat) .ob-placeholder {
    flex: 1;
    min-height: 0;
    overflow: hidden;
  }

  .ob-support-chat {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    gap: 0;
    background: #fff;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
  }

  /* Compact header */
  .ob-support-chat__head {
    flex-shrink: 0;
    padding: 10px 16px;
    background: #fff;
    border-radius: 0;
    gap: 8px;
    border-bottom: 1px solid #e8eaed;
    align-items: center;
  }

  .ob-support-chat__eyebrow { display: none; }
  .ob-support-chat__subtitle { display: none; }

  .ob-support-chat__title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Status: just the green dot + "Онлайн" */
  .ob-support-chat__status {
    flex-shrink: 0;
    padding: 4px 10px;
    font-size: 11px;
    gap: 5px;
    min-height: 24px;
    border-radius: 999px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: min(130px, 40%);
  }

  .ob-support-chat__dot {
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(37, 162, 68, 0.14);
  }

  /* Messages area — scrollable, fills all available space */
  .ob-support-chat__messages {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 14px 12px;
    gap: 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid #1a232d;
    border-radius: 16px;
    background: #f0f2f5;
    min-height: 0;
    height: auto;
  }

  /* Message bubbles — messenger style */
  .ob-support-chat__message {
    max-width: 78%;
    padding: 9px 13px;
    border-radius: 18px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    align-self: flex-start;
  }

  .ob-support-chat__message--agent {
    background: #fff;
    border: none;
    border-bottom-left-radius: 4px;
  }

  .ob-support-chat__message--user {
    align-self: flex-end;
    background: var(--ob-red);
    border: none;
    border-bottom-right-radius: 4px;
  }

  .ob-support-chat__message-name {
    font-size: 10px;
    margin-bottom: 3px;
  }

  .ob-support-chat__message--user .ob-support-chat__message-name {
    color: rgba(255,255,255,0.65);
  }

  .ob-support-chat__message-text {
    font-size: 14px;
    line-height: 1.4;
  }

  .ob-support-chat__message--user .ob-support-chat__message-text {
    color: #fff;
  }

  .ob-support-chat__chips {
    display: none;
  }

  .ob-support-chat__chips::-webkit-scrollbar { display: none; }

  .ob-support-chat__chip {
    flex-shrink: 0;
    padding: 6px 12px;
    font-size: 12px;
    white-space: nowrap;
    background: #fff;
    border-radius: 16px;
    border-color: #d0d5dc;
  }

  /* Composer — row layout, input + circular send button */
  .ob-support-chat__composer {
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 8px;
    padding: 8px 12px;
    padding-bottom: calc(64px + max(8px, env(safe-area-inset-bottom)));
    background: #fff;
    border-top: 1px solid #e8eaed;
    border-radius: 0;
  }

  .ob-support-chat__input {
    flex: 1;
    min-height: 40px;
    max-height: 100px;
    resize: none;
    font-size: 15px;
    padding: 10px 14px;
    border-radius: 22px;
    border: 1.5px solid #dde1e7;
    background: #f7f9fb;
    line-height: 1.35;
    overflow-y: auto;
  }

  .ob-support-chat__input:focus {
    border-color: var(--ob-red);
    outline: none;
    box-shadow: none;
    background: #fff;
  }

  /* Composer actions: column to stack label above button */
  .ob-support-chat__composer-actions {
    flex-direction: column;
    flex-shrink: 0;
    align-items: center;
  }

  .ob-support-chat__note { display: none; }

  /* Circular send button with arrow icon */
  .ob-support-chat__send {
    min-width: 42px;
    min-height: 42px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ob-red);
  }

  .ob-support-chat__send-label { display: none; }
  .ob-support-chat__send-icon  { display: block; }

  /* ── Settings layout on mobile ── */
  .ob-settings__tabs {
    overflow-x: auto;
    scrollbar-width: none;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .ob-settings__tabs::-webkit-scrollbar { display: none; }

  .ob-settings__tab {
    flex-shrink: 0;
    white-space: nowrap;
  }
}
