/* ================================================================
   LLOYDS-STYLE.CSS — Harmony SAS Bank
   Масштабный редизайн: Login, Cards, Loans, Profile
   Стиль: белый/синий минимализм, без эмодзи
================================================================ */

/* ── VARIABLES OVERRIDE ── */
:root{
  --ly-blue:    #003594;
  --ly-blue2:   #0050C8;
  --ly-blue3:   #1A6FFF;
  --ly-pale:    #F0F5FF;
  --ly-pale2:   #E8F0FE;
  --ly-gray:    #F4F6F9;
  --ly-gray2:   #E8ECF2;
  --ly-border:  #DDE3EE;
  --ly-text:    #1A1A2E;
  --ly-text2:   #4A5568;
  --ly-text3:   #8A96A8;
  --ly-green:   #006B4A;
  --ly-green2:  #00875A;
  --ly-red:     #C0392B;
}

/* ================================================================
   LOGIN PAGE — полный редизайн в стиле Lloyds
================================================================ */

#bankLogin {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 480px 1fr;
  background: #fff;
  font-family: 'Inter', sans-serif;
}
#bankLogin.hidden,
#bankLogin[data-hidden="true"] {
  display: none !important;
}

/* LEFT: форма */
.bls-left {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-right: 1px solid var(--ly-border);
  min-height: 100vh;
  overflow-y: auto;
}

.bls-top-bar {
  padding: 24px 40px;
  border-bottom: 1px solid var(--ly-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.bls-brand-mini {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bls-brand-mini-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--ly-blue);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}

.bls-brand-mini-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--ly-blue);
  letter-spacing: -.2px;
}

.bls-form-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 56px;
  gap: 0;
}

.bls-heading {
  margin-bottom: 28px;
}

.bls-heading-eyebrow {
  font-size: 11px;
  font-weight: 700;
  color: var(--ly-blue2);
  letter-spacing: .8px;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bls-title {
  font-size: 30px;
  font-weight: 900;
  color: var(--ly-text);
  letter-spacing: -.5px;
  margin-bottom: 6px;
}

.bls-subtitle {
  font-size: 14px;
  color: var(--ly-text2);
  line-height: 1.6;
}

/* TABS */
.bls-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1.5px solid var(--ly-border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 28px;
}

.bls-tab {
  padding: 12px 16px;
  background: #fff;
  border: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--ly-text2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all .15s;
  border-right: 1px solid var(--ly-border);
}

.bls-tab:last-child { border-right: none; }
.bls-tab:hover { background: var(--ly-pale); color: var(--ly-blue); }
.bls-tab.active {
  background: var(--ly-blue);
  color: #fff;
}

/* FORM INPUTS */
.b-form-group { margin-bottom: 18px; }

.b-form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ly-text2);
  margin-bottom: 6px;
  display: block;
}

.b-input-wrap { position: relative; }

.b-form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--ly-border);
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: var(--ly-text);
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.b-form-input:focus {
  border-color: var(--ly-blue2);
  box-shadow: 0 0 0 3px rgba(0,80,200,.08);
}

.b-form-input--icon { padding-left: 40px; }
.b-input-icon {
  position: absolute; left: 13px; top: 50%;
  transform: translateY(-50%);
  color: var(--ly-text3); font-size: 13px;
  pointer-events: none;
}

.b-eye-btn {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: var(--ly-text3); cursor: pointer; font-size: 13px;
  padding: 2px;
}

/* SUBMIT BUTTON */
.bls-submit-btn, .bank-btn-primary {
  width: 100%;
  padding: 13px 20px;
  background: var(--ly-blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .15s, transform .1s;
  margin-bottom: 4px;
}
.bls-submit-btn:hover, .bank-btn-primary:hover {
  background: var(--ly-blue2);
  transform: translateY(-1px);
}

/* MISC FORM ELEMENTS */
.bls-row-between {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 12px;
}
.bls-remember {
  display: flex; align-items: center; gap: 6px;
  color: var(--ly-text2); cursor: pointer; font-size: 12px;
}
.bls-forgot {
  color: var(--ly-blue2); font-weight: 600;
  cursor: pointer; font-size: 12px;
}
.bls-forgot:hover { text-decoration: underline; }

.bls-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0; color: var(--ly-text3); font-size: 11px;
}
.bls-divider::before, .bls-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--ly-border);
}

.bls-register-link {
  text-align: center; font-size: 12px; color: var(--ly-text2);
}
.bls-register-link a {
  color: var(--ly-blue2); font-weight: 600; cursor: pointer;
}
.bls-register-link a:hover { text-decoration: underline; }

/* TRUST STRIP */
.bls-trust-strip {
  padding: 16px 40px;
  border-top: 1px solid var(--ly-border);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--ly-gray);
  flex-shrink: 0;
}
.bls-trust-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; color: var(--ly-text2);
}
.bls-trust-item i { color: var(--ly-blue); font-size: 12px; }
.bls-trust-sep {
  width: 1px; height: 14px;
  background: var(--ly-border);
}

/* RIGHT: Hero — с фоновым изображением зданий */
.bls-right {
  background:
    linear-gradient(152deg,
      rgba(4,14,40,.93) 0%,
      rgba(6,24,64,.89) 10%,
      rgba(8,32,96,.84) 22%,
      rgba(10,46,128,.79) 38%,
      rgba(10,79,212,.73) 60%,
      rgba(16,96,224,.68) 76%,
      rgba(24,112,240,.64) 90%,
      rgba(34,120,255,.60) 100%
    ),
    url('https://sspark.genspark.ai/cfimages?u1=JN61Cyg4VUTw6Ribw3%2BK%2BMJmrpBiRz6jb58CFxowbDf0mldlYdBSVG5QIoKdlxl%2FtHXOliXqL4b7ypY9Ig9uFEYcYpnV%2FgKP%2FimwVClQfvTbBGj9RXQAILeJlqTpCSLdsL1H6yYghGH%2BHhppFSvqTdFfDowgQYqoeyfpowWUeEsOVbNIlEepuR4%3D&u2=AKwqsSqAprkE9KFR&width=2560') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  position: relative;
  overflow: hidden;
}

/* Тонкая сетка поверх фото */
.bls-right::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  z-index: 0;
}

.bls-right::after {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.05), transparent 70%);
  top: -100px; right: -100px;
  pointer-events: none;
  z-index: 0;
}

/* Геометрические элементы — оставляем поверх фото */
.bls-geo { display: block; z-index: 1; }
.bls-grid-overlay { display: block; z-index: 1; opacity: .5; }

.bls-right-brand {
  padding: 32px 56px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative; z-index: 2;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.bls-right-brand-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff;
}

.bls-right-brand-text {}
.bls-right-brand-name {
  font-size: 17px; font-weight: 800; color: #fff;
}
.bls-right-brand-tag {
  font-size: 11px; color: rgba(255,255,255,.55);
  margin-top: 2px; letter-spacing: .3px;
}

.bls-right-hero {
  padding: 56px 56px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative; z-index: 2;
}

.bls-right-eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 600;
  color: rgba(255,255,255,.6);
  letter-spacing: .8px; text-transform: uppercase;
  margin-bottom: 20px;
}
.bls-eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.5);
  flex-shrink: 0;
}

.bls-right-h1 {
  font-size: 52px;
  font-weight: 900;
  color: #fff;
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.bls-right-desc {
  font-size: 16px;
  color: rgba(255,255,255,.65);
  line-height: 1.75;
  max-width: 440px;
  margin-bottom: 40px;
}

/* Features */
.bls-right-features {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  overflow: hidden;
  max-width: 460px;
}
.bls-feat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background .15s;
}
.bls-feat:last-child { border-bottom: none; }
.bls-feat:hover { background: rgba(255,255,255,.06); }

.bls-feat-icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: #fff;
  flex-shrink: 0;
}
.bls-feat-body { flex: 1; }
.bls-feat-title { font-size: 13px; font-weight: 700; color: #fff; }
.bls-feat-desc { font-size: 11px; color: rgba(255,255,255,.5); margin-top: 1px; }
.bls-feat-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: rgba(255,255,255,.8);
  flex-shrink: 0;
}

/* Stats */
.bls-right-stats {
  padding: 24px 56px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  gap: 0;
  position: relative; z-index: 2;
}
.bls-stat { flex: 1; text-align: center; }
.bls-stat-num {
  font-size: 26px; font-weight: 900; color: #fff;
  line-height: 1.1;
}
.bls-stat-plus { font-size: 18px; }
.bls-stat-unit { font-size: 20px; }
.bls-stat-lbl { font-size: 11px; color: rgba(255,255,255,.45); margin-top: 3px; }
.bls-stat-divider {
  width: 1px; height: 40px;
  background: rgba(255,255,255,.12);
}

/* ALERT */
.bls-alert-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  color: #7F1D1D;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

/* Lang bar below form */
.bls-login-lang {
  padding: 12px 40px;
  border-top: 1px solid var(--ly-border);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  background: #fff;
  flex-shrink: 0;
}
.bls-lang-btn {
  padding: 5px 12px;
  border-radius: 6px;
  border: 1.5px solid var(--ly-border);
  background: #fff;
  font-size: 11px; font-weight: 600; color: var(--ly-text2);
  cursor: pointer;
  transition: all .15s;
}
.bls-lang-btn:hover { border-color: var(--ly-blue2); color: var(--ly-blue2); }
.bls-lang-btn.active { background: var(--ly-blue); color: #fff; border-color: var(--ly-blue); }


/* ================================================================
   CARDS PAGE — bpage-cards
================================================================ */

#bpage-cards .cpage-layout {
  display: grid;
  grid-template-columns: 260px 1fr 260px;
  gap: 24px;
  align-items: start;
  padding: 32px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Sidebar photo widget */
#bpage-cards .sidebar-photo-widget {
  border-radius: 14px;
  border: 1.5px solid var(--ly-border);
  overflow: hidden;
  background: #fff;
  margin-bottom: 16px;
}
#bpage-cards .sidebar-photo-img-wrap {
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  position: relative;
  overflow: hidden;
}
#bpage-cards .sidebar-photo-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
#bpage-cards .sidebar-photo-widget:hover .sidebar-photo-img {
  transform: scale(1.04);
}
#bpage-cards .sidebar-photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.45) 0%, transparent 60%);
}
#bpage-cards .sidebar-photo-body {
  padding: 14px 16px;
  background: #fff;
}
#bpage-cards .sidebar-photo-title {
  font-size: 13px; font-weight: 700; color: var(--ly-text);
  margin-bottom: 4px;
}
#bpage-cards .sidebar-photo-text {
  font-size: 11px; color: var(--ly-text2); line-height: 1.55;
}

/* Cashback widget */
#bpage-cards .cpage-cashback {
  background: linear-gradient(135deg, var(--ly-blue), var(--ly-blue2));
  border-radius: 14px;
  padding: 18px 18px;
  margin-bottom: 16px;
  color: #fff;
  border: none;
}
.cpage-cashback-icon { font-size: 22px; margin-bottom: 8px; opacity: .9; }
.cpage-cashback-title { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.cpage-cashback-sub { font-size: 11px; color: rgba(255,255,255,.65); margin-bottom: 14px; line-height: 1.5; }
.cpage-cb-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: rgba(255,255,255,.85);
  padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.1);
}
.cpage-cb-row:last-child { border-bottom: none; }
.cpage-cb-row i { width: 16px; margin-right: 6px; opacity: .7; }
.cpage-cb-row span { font-weight: 700; color: #fff; }

/* Digital Wallets */
#bpage-cards .cpage-widget {
  background: #fff;
  border: 1.5px solid var(--ly-border);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 16px;
}
.cpage-widget-title {
  font-size: 12px; font-weight: 700; color: var(--ly-text);
  text-transform: uppercase; letter-spacing: .5px;
  margin-bottom: 12px; display: flex; align-items: center; gap: 7px;
}
.cpage-widget-title i { color: var(--ly-blue2); }

.cpage-wallet-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--ly-gray2);
  font-size: 13px; color: var(--ly-text);
}
.cpage-wallet-row:last-of-type { border-bottom: none; }
.cpage-wallet-badge {
  margin-left: auto; font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 5px;
  background: #DCFCE7; color: var(--ly-green2);
}

/* Insurance widget */
.cpage-insurance { border-left: 3px solid var(--ly-blue) !important; }
.cpage-ins-item {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12px; color: var(--ly-text2);
  padding: 5px 0; line-height: 1.5;
}
.cpage-ins-item i { color: var(--ly-blue2); font-size: 12px; margin-top: 2px; flex-shrink: 0; }
.cpage-ins-note { font-size: 10px; color: var(--ly-text3); margin-top: 8px; line-height: 1.5; }

/* Card security */
.cpage-sec-feature {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--ly-text2);
  padding: 7px 0; border-bottom: 1px solid var(--ly-gray2);
}
.cpage-sec-feature:last-child { border-bottom: none; }

/* Fees */
.cpage-fee-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--ly-text2);
  padding: 8px 0; border-bottom: 1px solid var(--ly-gray2);
}
.cpage-fee-row:last-child { border-bottom: none; }
.cpage-fee-val { font-weight: 700; color: var(--ly-text); }
.cpage-fee-free { color: var(--ly-green2); font-weight: 700; }

/* Cards main */
#bpage-cards .cpage-main {
  min-width: 0;
  background: #fff;
}

/* Promo strip */
.cpage-promo-strip {
  background: var(--ly-gray);
  border: 1.5px solid var(--ly-border);
  border-radius: 14px;
  padding: 20px 20px;
  margin-top: 20px;
}
.cpage-promo-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.cpage-promo-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px; border-radius: 10px;
  background: #fff; border: 1.5px solid var(--ly-border);
  transition: border-color .15s, box-shadow .15s;
}
.cpage-promo-item:hover {
  border-color: var(--ly-blue2);
  box-shadow: 0 4px 16px rgba(0,80,200,.1);
}
.cpage-promo-icon-wrap {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0;
}
.cpage-promo-label { font-size: 12px; font-weight: 700; color: var(--ly-text); }
.cpage-promo-desc { font-size: 10px; color: var(--ly-text2); margin-top: 2px; }

/* NFC widget */
.cpage-nfc-widget {
  background: #fff;
  border: 1.5px solid var(--ly-border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
}
.cpage-nfc-img {
  width: 100%; height: 120px;
  object-fit: cover;
}
.cpage-nfc-body { padding: 12px 14px; }
.cpage-nfc-title { font-size: 13px; font-weight: 700; color: var(--ly-text); margin-bottom: 4px; }
.cpage-nfc-desc { font-size: 11px; color: var(--ly-text2); line-height: 1.5; }


/* ================================================================
   LOANS PAGE — bpage-loans
================================================================ */

#bpage-loans .lpage-layout {
  display: grid;
  grid-template-columns: 260px 1fr 260px;
  gap: 24px;
  align-items: start;
  padding: 32px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

#bpage-loans .sidebar-photo-widget {
  border-radius: 14px;
  border: 1.5px solid var(--ly-border);
  overflow: hidden;
  background: #fff;
  margin-bottom: 16px;
}
#bpage-loans .sidebar-photo-img-wrap {
  width: 100%; aspect-ratio: 16/9;
  position: relative; overflow: hidden;
}
#bpage-loans .sidebar-photo-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s;
}
#bpage-loans .sidebar-photo-widget:hover .sidebar-photo-img { transform: scale(1.04); }
#bpage-loans .sidebar-photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.5), transparent 60%);
}
#bpage-loans .sidebar-photo-body { padding: 14px 16px; }
#bpage-loans .sidebar-photo-title { font-size: 13px; font-weight: 700; color: var(--ly-text); margin-bottom: 5px; }
#bpage-loans .sidebar-photo-text { font-size: 11px; color: var(--ly-text2); line-height: 1.55; margin-bottom: 8px; }
#bpage-loans .sidebar-photo-contact { font-size: 12px; font-weight: 600; color: var(--ly-blue2); display: flex; align-items: center; gap: 6px; }

#bpage-loans .lpage-widget {
  background: #fff;
  border: 1.5px solid var(--ly-border);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 16px;
}

#bpage-loans .lpage-widget-title {
  font-size: 12px; font-weight: 700; color: var(--ly-text);
  text-transform: uppercase; letter-spacing: .5px;
  margin-bottom: 12px; display: flex; align-items: center; gap: 7px;
}
#bpage-loans .lpage-widget-title i { color: var(--ly-blue2); }

.lpage-why-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--ly-pale2); color: var(--ly-blue2);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; margin-bottom: 12px;
}
.lpage-why-title { font-size: 14px; font-weight: 800; color: var(--ly-text); margin-bottom: 12px; }
.lpage-why-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--ly-text2);
  padding: 6px 0; border-bottom: 1px solid var(--ly-gray2);
}
.lpage-why-item:last-child { border-bottom: none; }
.lpage-why-item i { color: var(--ly-blue2); width: 14px; }

.lpage-tip-item {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12px; color: var(--ly-text2);
  padding: 5px 0; line-height: 1.5;
}

.lpage-legal { border-left: 3px solid var(--ly-blue) !important; }
.lpage-legal-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 6px;
  background: var(--ly-pale2); color: var(--ly-blue2);
  font-size: 11px; font-weight: 600;
  margin: 4px 4px 0 0;
}

.lpage-elig-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--ly-text2);
  padding: 6px 0; border-bottom: 1px solid var(--ly-gray2);
}
.lpage-elig-item:last-child { border-bottom: none; }

.lpage-contact-box { background: var(--ly-pale) !important; }

/* Photo banner */
.lpage-photo-banner {
  position: relative;
  margin: 0 40px 32px;
  border-radius: 16px;
  overflow: hidden;
  height: 320px;
}
.lpage-photo-bg {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.lpage-photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,53,148,.88) 0%, rgba(0,53,148,.5) 60%, transparent 100%);
  display: flex; align-items: center;
}
.lpage-photo-content { padding: 40px 56px; max-width: 560px; }
.lpage-photo-tag {
  font-size: 11px; font-weight: 600; color: rgba(255,255,255,.7);
  letter-spacing: .6px; text-transform: uppercase;
  margin-bottom: 12px; display: flex; align-items: center; gap: 7px;
}
.lpage-photo-title { font-size: 28px; font-weight: 900; color: #fff; line-height: 1.2; margin-bottom: 12px; }
.lpage-photo-sub { font-size: 14px; color: rgba(255,255,255,.75); line-height: 1.7; margin-bottom: 20px; }
.lpage-photo-certs { display: flex; gap: 10px; flex-wrap: wrap; }
.lpage-photo-certs span {
  padding: 5px 12px; border-radius: 20px;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
  font-size: 11px; font-weight: 600; color: #fff;
  display: flex; align-items: center; gap: 6px;
}

/* Products strip */
.lpage-products-strip {
  margin: 0 40px 32px;
  background: var(--ly-gray);
  border: 1.5px solid var(--ly-border);
  border-radius: 14px;
  padding: 24px 28px;
}
.lpage-products-header {
  font-size: 13px; font-weight: 700; color: var(--ly-text);
  text-transform: uppercase; letter-spacing: .6px;
  margin-bottom: 16px;
}
.lpage-products-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.lpage-product-pill {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1.5px solid var(--ly-border);
  border-radius: 10px; padding: 14px 16px;
  cursor: pointer; transition: all .15s;
}
.lpage-product-pill:hover {
  border-color: var(--ly-blue2);
  box-shadow: 0 4px 16px rgba(0,80,200,.1);
  transform: translateY(-1px);
}
.lpage-product-pill i { font-size: 20px; flex-shrink: 0; }
.lpp-title { font-size: 13px; font-weight: 700; color: var(--ly-text); }
.lpp-rate { font-size: 11px; color: var(--ly-green2); font-weight: 600; margin-top: 2px; }


/* ================================================================
   PROFILE PAGE — bpage-profile
================================================================ */

#bpage-profile {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 40px;
}

/* Profile header */
.profile-header-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  background: var(--ly-blue);
  border-radius: 16px;
  padding: 32px 40px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.profile-header-wrap::before {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.profile-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  border: 3px solid rgba(255,255,255,.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 900; color: #fff;
  flex-shrink: 0;
  position: relative; z-index: 1;
}
.profile-header-info { position: relative; z-index: 1; }
.profile-name { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.profile-id { font-size: 12px; color: rgba(255,255,255,.55); margin-bottom: 8px; }
.profile-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.profile-badge {
  padding: 3px 10px; border-radius: 20px;
  font-size: 10px; font-weight: 600;
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.2);
}
.profile-edit-btn {
  padding: 10px 22px; border-radius: 8px;
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.3);
  color: #fff; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .15s;
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 7px;
}
.profile-edit-btn:hover { background: rgba(255,255,255,.25); }

/* Account summary */
#profileAccountSummary {
  margin-bottom: 24px;
}

/* Tabs */
.profile-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--ly-border);
  margin-bottom: 28px;
}
.profile-tab-btn {
  padding: 12px 20px;
  background: none; border: none;
  font-size: 13px; font-weight: 600; color: var(--ly-text2);
  cursor: pointer; position: relative;
  transition: color .15s;
  display: flex; align-items: center; gap: 7px;
  white-space: nowrap;
}
.profile-tab-btn::after {
  content: ''; position: absolute;
  bottom: -2px; left: 0; right: 0; height: 2px;
  background: var(--ly-blue); border-radius: 2px;
  transform: scaleX(0); transition: transform .2s;
}
.profile-tab-btn:hover { color: var(--ly-blue); }
.profile-tab-btn.active { color: var(--ly-blue); }
.profile-tab-btn.active::after { transform: scaleX(1); }

/* Profile bottom grid */
.profile-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}

/* Why card */
.profile-why-card {
  background: var(--ly-blue);
  border-radius: 16px;
  padding: 28px;
  color: #fff;
  position: relative; overflow: hidden;
}
.profile-why-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.05), transparent);
  pointer-events: none;
}
.profile-why-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.profile-why-title { font-size: 16px; font-weight: 800; color: #fff; }
.profile-why-sub { font-size: 11px; color: rgba(255,255,255,.55); margin-top: 2px; }
.profile-why-items { display: flex; flex-direction: column; gap: 0; margin-bottom: 16px; }
.profile-why-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.1);
}
.profile-why-item:last-child { border-bottom: none; }
.pwi-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: #fff; flex-shrink: 0;
}
.pwi-title { font-size: 12px; font-weight: 700; color: #fff; }
.pwi-desc { font-size: 11px; color: rgba(255,255,255,.55); margin-top: 2px; }
.profile-why-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.profile-why-badge {
  padding: 4px 10px; border-radius: 6px;
  font-size: 10px; font-weight: 600;
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.85);
}

/* Contact card */
.profile-contact-card {
  border-radius: 16px;
  border: 1.5px solid var(--ly-border);
  overflow: hidden;
  background: #fff;
}
.profile-contact-photo-wrap {
  width: 100%; height: 200px;
  position: relative; overflow: hidden;
}
.profile-contact-photo {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s;
}
.profile-contact-card:hover .profile-contact-photo { transform: scale(1.04); }
.profile-contact-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,53,148,.75), transparent 50%);
}
.profile-contact-location {
  position: absolute; bottom: 12px; left: 14px;
  font-size: 11px; font-weight: 600; color: rgba(255,255,255,.9);
  display: flex; align-items: center; gap: 5px;
}
.profile-contact-info { padding: 16px 18px; }
.profile-contact-title { font-size: 14px; font-weight: 700; color: var(--ly-text); margin-bottom: 10px; }
.profile-contact-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--ly-text2);
  padding: 6px 0; border-bottom: 1px solid var(--ly-gray2);
}
.profile-contact-row:last-of-type { border-bottom: none; }
.profile-contact-row i { color: var(--ly-blue2); width: 14px; }
.profile-chat-btn {
  width: 100%; margin-top: 12px;
  padding: 10px; border-radius: 8px;
  background: var(--ly-blue); color: #fff;
  border: none; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: background .15s;
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.profile-chat-btn:hover { background: var(--ly-blue2); }

/* Profile legal strip */
.profile-legal-strip {
  margin-top: 20px;
  background: var(--ly-gray);
  border: 1.5px solid var(--ly-border);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex; align-items: center; gap: 20px;
  flex-wrap: wrap;
}
.pls-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--ly-text2); font-weight: 500;
}
.pls-item i { color: var(--ly-blue2); font-size: 12px; }
.pls-sep { width: 1px; height: 16px; background: var(--ly-border); }

/* Logout button */
.bank-btn-danger {
  padding: 10px 22px; border-radius: 8px;
  background: #FEF2F2; color: #7F1D1D;
  border: 1.5px solid #FECACA;
  font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .15s;
  display: flex; align-items: center; gap: 7px;
}
.bank-btn-danger:hover { background: #FEE2E2; border-color: #FCA5A5; }


/* ================================================================
   REGULATORY FOOTER — глобальный, внизу страницы
================================================================ */

.bank-regulatory-footer {
  background: #1A1A2E;
  padding: 28px 40px;
  margin-top: 0;
}

.brf-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-wrap: wrap;
}

.brf-logo {
  display: flex; align-items: center; gap: 10px;
}
.brf-logo-box {
  width: 32px; height: 32px; border-radius: 7px;
  background: var(--ly-blue2);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 900; color: #fff;
}
.brf-logo-name { font-size: 13px; font-weight: 700; color: #fff; }

.brf-badges {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.brf-badge {
  padding: 5px 12px; border-radius: 20px;
  font-size: 10px; font-weight: 600; letter-spacing: .4px;
  background: rgba(255,255,255,.07); color: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; gap: 5px;
}

.brf-body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
}

.brf-text {
  font-size: 11px;
  color: rgba(255,255,255,.3);
  line-height: 1.8;
  max-width: 820px;
}
.brf-text a {
  color: rgba(255,255,255,.5);
  text-decoration: underline;
  cursor: pointer;
}
.brf-text a:hover { color: rgba(255,255,255,.8); }

.brf-links {
  display: flex; flex-direction: column;
  gap: 6px; align-items: flex-end; flex-shrink: 0;
}
.brf-link {
  font-size: 11px; color: rgba(255,255,255,.4);
  cursor: pointer; transition: color .15s;
  white-space: nowrap;
}
.brf-link:hover { color: rgba(255,255,255,.8); }

.brf-bottom {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
}
.brf-copy { font-size: 10px; color: rgba(255,255,255,.2); }
.brf-back-top {
  font-size: 11px; color: rgba(255,255,255,.35);
  cursor: pointer; display: flex; align-items: center; gap: 5px;
  transition: color .15s;
}
.brf-back-top:hover { color: rgba(255,255,255,.7); }


/* ================================================================
   RESPONSIVE ADJUSTMENTS
================================================================ */

@media (max-width: 1100px) {
  #bankLogin { grid-template-columns: 420px 1fr; }
  .bls-form-area { padding: 36px 40px; }
  .bls-right-hero { padding: 40px 40px; }
  .bls-right-brand { padding: 24px 40px; }
  .bls-right-stats { padding: 20px 40px; }
  .bls-right-h1 { font-size: 40px; }
  #bpage-cards .cpage-layout,
  #bpage-loans .lpage-layout { grid-template-columns: 240px 1fr 240px; padding: 24px 24px; }
  .lpage-products-row { grid-template-columns: repeat(2, 1fr); }
  .cpage-promo-inner { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  #bankLogin { grid-template-columns: 1fr; }
  .bls-right { display: none; }
  #bpage-cards .cpage-layout,
  #bpage-loans .lpage-layout {
    grid-template-columns: 1fr;
  }
  .profile-bottom-grid { grid-template-columns: 1fr; }
  .brf-body { grid-template-columns: 1fr; }
  .brf-links { align-items: flex-start; }
  .lpage-photo-banner { margin: 0 0 24px; }
  .lpage-products-strip { margin: 0 0 24px; }
  .cpage-promo-inner { grid-template-columns: 1fr 1fr; }
}
