:root {
  --bg: #09111c;
  --bg-2: #0c1422;
  --card: #232b3f;
  --panel: #171f30;
  --panel-2: #131b2b;
  --line: rgba(255, 255, 255, 0.06);
  --text: #f5f7fb;
  --muted: #9ca6b8;
  --muted-2: #c4cbda;
  --accent: #ef9b99;
  --green: #45d696;
  --white: #ffffff;
  --shadow-xl: 0 18px 40px rgba(0, 0, 0, 0.32);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.24);
  --radius-xxl: 28px;
  --nav-h: 96px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
}

body {
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
a {
  font: inherit;
}

button {
  padding: 0;
}

button:not([disabled]), a {
  cursor: pointer;
}

.app-shell {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(247, 176, 168, 0.03), transparent 28%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

.phone {
  padding: 20px 16px 122px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 18px;
}

.screen-title,
.transfer-screen-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.eye-btn {
  width: 22px;
  height: 22px;
  border: 0;
  background: transparent;
  color: var(--accent);
  opacity: 0.95;
  display: grid;
  place-items: center;
  margin-top: 1px;
  transition: opacity 0.2s ease;
}

.eye-svg {
  width: 17px;
  height: 17px;
  display: block;
}

.account-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xxl);
  background: linear-gradient(180deg, #2b3246 0%, #262d40 100%);
  box-shadow: var(--shadow-xl);
  margin-bottom: 18px;
}

.account-card-top {
  padding: 20px 18px 56px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  z-index: 2;
}

.account-label {
  margin: 0 0 42px;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--white);
}

.account-number-label {
  margin: 0 0 6px;
  font-size: 12px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 500;
}

.account-number {
  margin: 0;
  font-size: 13px;
  line-height: 1.2;
  color: var(--muted-2);
  letter-spacing: 0.02em;
  font-weight: 500;
}

.card-dots {
  width: 26px;
  height: 26px;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.card-dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  display: block;
}

.account-mark {
  position: absolute;
  right: 20px;
  top: 54px;
  z-index: 1;
}

.account-mark-img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  opacity: 0.18;
}

.account-balance-bar {
  background: rgba(255, 255, 255, 0.12);
  padding: 16px 22px 16px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 72px;
}

.balance-wrap {
  display: flex;
  align-items: flex-start;
  line-height: 1;
}

.balance-main {
  font-size: 44px;
  line-height: 0.92;
  font-weight: 800;
  letter-spacing: -0.055em;
  color: #ffffff;
}

.balance-side {
  display: flex;
  align-items: flex-start;
  margin-left: 2px;
  transform: translateY(4px);
}

.balance-decimal {
  font-size: 18px;
  line-height: 1;
  font-weight: 800;
  color: #ffffff;
  margin-right: 2px;
}

.balance-currency {
  font-size: 18px;
  line-height: 1;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.transactions-card,
.transfer-card {
  border-radius: 26px;
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  box-shadow: var(--shadow-lg);
}

.transactions-card {
  padding: 18px 16px 10px;
  margin-bottom: 18px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.section-head h2,
.recommend-section h2,
.transfer-card-head h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.link-btn {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.transaction-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.transaction-item:first-of-type {
  border-top: 0;
}

.transaction-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 17px;
  font-weight: 700;
}

.transaction-icon.outgoing {
  background: linear-gradient(180deg, #f3a7a1 0%, #ea8e8a 100%);
}

.transaction-icon.incoming {
  background: linear-gradient(180deg, #70e2ae 0%, #49cf94 100%);
}

.transaction-content {
  flex: 1;
  min-width: 0;
}

.transaction-title {
  margin: 0 0 4px;
  font-size: 13.5px;
  line-height: 1.25;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.transaction-date {
  font-size: 13px;
  color: var(--muted);
}

.transaction-value {
  white-space: nowrap;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.transaction-value.debit {
  color: #f3f6fb;
}

.transaction-value.credit {
  color: var(--green);
}

.promo-card {
  position: relative;
  min-height: 188px;
  border-radius: 26px;
  overflow: hidden;
  margin-bottom: 22px;
  box-shadow: var(--shadow-xl);
}

.promo-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.48) 0%, rgba(0, 0, 0, 0.14) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.promo-content {
  position: relative;
  z-index: 2;
  padding: 24px 18px;
  max-width: 290px;
}

.promo-content h3 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.promo-content p {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.95);
}

.promo-btn {
  border: 0;
  border-radius: 999px;
  background: var(--white);
  color: #121827;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.promo-arrow {
  color: #ef8f89;
  font-size: 18px;
  line-height: 1;
}

.promo-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.88);
}

.promo-badge-svg {
  width: 22px;
  height: 22px;
  display: block;
}

.recommend-section h2 {
  margin: 0 0 12px;
}

.recommend-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.recommend-card {
  height: 102px;
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
}

.recommend-light {
  background: linear-gradient(180deg, #eef5ff 0%, #dbe8fb 100%);
}

.recommend-green {
  background: linear-gradient(180deg, #e2ffd9 0%, #c9f3ba 100%);
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--nav-h);
  background: rgba(20, 28, 43, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 12px 12px 16px;
  z-index: 50;
  backdrop-filter: blur(14px);
}

.nav-item {
  border: 0;
  background: transparent;
  min-width: 58px;
  color: #d5dae5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.nav-item.active {
  color: var(--accent);
}

.nav-icon-img {
  width: 25px;
  height: 25px;
  object-fit: contain;
  display: block;
}

.nav-text {
  font-size: 11px;
  line-height: 1;
  font-weight: 500;
}

/* Кнопка вызова меню */
.transfer-button {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  flex: 0 0 70px;
  display: grid;
  place-items: center;
  transform: translateY(2px);
  background: transparent;
  box-shadow: none;
  text-decoration: none;
  padding: 0;
  border: none;
  outline: none;
}

.transfer-icon-img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  display: block;
}

.transfer-topbar {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
}

.back-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--white);
  text-decoration: none;
  display: grid;
  place-items: center;
}

.back-svg {
  width: 22px;
  height: 22px;
  display: block;
}

.topbar-spacer {
  width: 36px;
  height: 36px;
}

.transfer-card {
  padding: 20px 16px;
}

.transfer-card-head p {
  margin: 8px 0 18px;
  font-size: 14px;
  color: var(--muted);
}

.transfer-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.transfer-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted-2);
  font-size: 14px;
  font-weight: 600;
}

.transfer-form input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0d1625;
  color: var(--white);
  border-radius: 16px;
  padding: 14px 14px;
  font-size: 15px;
  outline: none;
}

.transfer-form input::placeholder {
  color: #7f8aa0;
}

.submit-btn {
  margin-top: 8px;
  border: 0;
  border-radius: 18px;
  padding: 15px 16px;
  background: linear-gradient(180deg, #f7aba5 0%, #ed908a 100%);
  color: var(--white);
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(239, 144, 138, 0.24);
}

.demo-note {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(69, 214, 150, 0.12);
  color: #95ecc0;
  font-size: 14px;
}

.hidden {
  display: none;
}

button[disabled] {
  cursor: default;
}

/* ========================================== */
/* ВЫДВИЖНОЕ МЕНЮ (BOTTOM SHEET) — ЕДИНЫЙ СТИЛЬ */
/* ========================================== */

.bottom-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.bottom-sheet-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 100%);
  width: 100%;
  max-width: 430px;
  background: #0c1422; /* Нативный темный фон меню */
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
  z-index: 101;
  padding: 24px 20px 44px;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.bottom-sheet.open {
  transform: translate(-50%, 0);
}

.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.sheet-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

.sheet-edit-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  color: var(--accent);
}

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

.sheet-card-link {
  text-decoration: none;
  display: block;
  color: inherit;
}

/* Все карточки абсолютно одинаковые visually */
.sheet-card {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 24px;
  padding: 22px 18px;
  height: 142px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  box-shadow: var(--shadow-lg);
}

.sheet-card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}

.sheet-card-icon {
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sheet-card-icon svg {
  width: 26px;
  height: 26px;
  display: block;
}