:root {
  --orange: #f27422;
  --orange-deep: #da651b;
  --blue: #1179b8;
  --ink: #1f2933;
  --muted: #6b7280;
  --line: #e5e7eb;
  --panel: #f6f7f9;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(17, 24, 39, .14);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at top, #f0f4f8, #d9e2ec 68%, #cbd5e1);
  color: var(--ink);
}

.phone-shell {
  width: min(430px, 100vw);
  height: min(932px, 100vh);
  overflow: hidden;
  background: var(--panel);
  border-radius: clamp(0px, 3vw, 30px);
  box-shadow: var(--shadow);
  position: relative;
}

.screen {
  position: absolute;
  inset: 0;
  display: none;
  min-height: 100%;
  background: var(--panel);
}
.screen.active { display: block; }

.login-screen {
  background:
    linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,0) 40%),
    linear-gradient(160deg, #ff7f22 0%, #f16a1d 48%, #df5f18 100%);
  padding: 36px 24px;
}
.login-hero { color: white; padding-top: 24px; }
.brand-row { display: flex; align-items: center; gap: 14px; margin-bottom: 48px; }
.brand-logo {
  width: 76px;
  height: 50px;
  object-fit: cover;
  border-radius: 12px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 8px 22px rgba(0,0,0,.12);
}
.brand-name { font-size: 34px; font-weight: 800; letter-spacing: .04em; }
.login-hero h1 { margin: 0 0 8px; font-size: 34px; }
.subcopy { margin: 0 0 26px; opacity: .9; font-size: 16px; }

.login-card {
  margin-top: 22px;
  background: rgba(255,255,255,.96);
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 16px 34px rgba(114, 55, 15, .2);
}
label { display: block; color: #374151; font-size: 13px; font-weight: 750; margin: 0 0 8px; }
input {
  width: 100%;
  height: 54px;
  border: 1px solid #d1d5db;
  border-radius: 15px;
  padding: 0 15px;
  font-size: 17px;
  color: var(--ink);
  background: #fff;
  margin-bottom: 18px;
  outline: none;
}
input:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(242,116,34,.14); }
.password-wrap { display: flex; align-items: center; position: relative; }
.password-wrap input { padding-right: 74px; }
.password-wrap button {
  position: absolute;
  right: 10px;
  top: 10px;
  border: 0;
  background: #f3f4f6;
  color: #374151;
  border-radius: 11px;
  height: 34px;
  padding: 0 12px;
  font-weight: 700;
}
.primary-button {
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 17px;
  background: var(--blue);
  color: white;
  font-size: 17px;
  font-weight: 800;
  display: grid;
  place-items: center;
  position: relative;
  cursor: pointer;
}
.primary-button.loading .button-text { opacity: 0; }
.spinner {
  display: none;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255,255,255,.36);
  border-top-color: #fff;
  border-radius: 999px;
  animation: spin .8s linear infinite;
  position: absolute;
}
.primary-button.loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.login-error { min-height: 20px; margin: 14px 0 0; color: #b91c1c; font-weight: 700; }
.login-actions, .quick-row { display: flex; align-items: center; justify-content: center; gap: 14px; }
.login-actions { margin-top: 18px; }
.login-actions a { color: white; font-weight: 750; text-decoration: none; }
.login-actions span { width: 1px; height: 18px; background: rgba(255,255,255,.55); }
.quick-row { position: absolute; left: 24px; right: 24px; bottom: 34px; }
.quick-row button {
  flex: 1;
  height: 46px;
  border: 1px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.12);
  color: white;
  border-radius: 15px;
  font-weight: 800;
}

.account-screen { overflow-y: auto; padding-bottom: 92px; }
.app-header {
  height: 72px;
  background: #0878b9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 10px;
  color: white;
}
.header-logo { width: 86px; height: 38px; object-fit: cover; border-radius: 8px; background: white; }
.header-icons { display: flex; gap: 18px; }
.header-icons button {
  border: 0;
  background: transparent;
  color: white;
  font-size: 25px;
  font-weight: 800;
}
.orange-hero {
  min-height: 190px;
  background:
    radial-gradient(circle at 22% -20%, rgba(255,255,255,.25), transparent 35%),
    linear-gradient(135deg, #ff821f, var(--orange-deep));
  color: white;
  padding: 28px 18px 34px;
  position: relative;
  overflow: hidden;
}
.orange-hero:before, .orange-hero:after {
  content: "";
  position: absolute;
  border: 2px solid rgba(255,255,255,.18);
  border-radius: 999px;
  transform: rotate(-18deg);
}
.orange-hero:before { width: 390px; height: 210px; right: -145px; top: -68px; }
.orange-hero:after { width: 300px; height: 150px; left: -135px; bottom: -54px; }
.greeting-block { position: relative; z-index: 1; }
.greeting-block p { margin: 0; font-size: 25px; font-weight: 800; }
.greeting-block h2 { margin: 8px 0 0; font-size: 30px; }
.refer-button {
  position: absolute;
  top: 28px;
  right: 18px;
  z-index: 1;
  border: 0;
  border-radius: 23px;
  height: 44px;
  padding: 0 18px;
  font-weight: 850;
  color: #8e3aa5;
  background: #fff2ff;
}
.hero-actions {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  position: absolute;
  left: 18px;
  right: 0;
  bottom: 28px;
  z-index: 1;
  padding-right: 18px;
}
.hero-actions button {
  flex: 0 0 auto;
  height: 42px;
  padding: 0 17px;
  border: 1.5px solid rgba(255,255,255,.75);
  background: rgba(255,255,255,.12);
  border-radius: 14px;
  color: white;
  font-size: 15px;
  font-weight: 850;
}
.content-panel {
  background: white;
  border-radius: 30px 30px 0 0;
  margin-top: -20px;
  min-height: calc(100% - 242px);
  padding: 25px 18px 22px;
  position: relative;
  z-index: 3;
}
.summary-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  background: #f8fafc;
  border: 1px solid #edf2f7;
  margin-bottom: 26px;
}
.summary-label { display: block; color: var(--muted); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.summary-card strong { display: block; font-size: 28px; margin-top: 5px; }
.summary-card small { color: var(--muted); font-weight: 800; }
.summary-card button {
  border: 0;
  border-radius: 14px;
  background: #e8f4fb;
  color: #0c75b4;
  height: 42px;
  padding: 0 14px;
  font-weight: 850;
}
.section-heading { display: flex; justify-content: space-between; align-items: end; margin: 0 0 10px; }
.section-heading h3 { margin: 0; font-size: 25px; }
.section-heading span { color: #3f3f46; font-size: 18px; font-weight: 700; }
.account-group { margin: 0 0 28px; }
.account-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 17px 16px;
  background: #f7f7f8;
  border-radius: 18px;
  border: 1px solid #f0f0f2;
}
.account-card h4 { margin: 0 0 8px; font-size: 22px; font-weight: 700; }
.account-card p { margin: 0 0 8px; color: #71717a; font-weight: 800; letter-spacing: .08em; }
.account-card a, .dashed-card a { color: #0a77b8; font-weight: 850; text-decoration: none; }
.account-card strong { font-size: 20px; margin-top: 4px; white-space: nowrap; }

.primary-account strong { font-size: 19px; }
.transactions-section { margin: 2px 0 28px; }
.transaction-heading { align-items: center; }
.transaction-heading h3 { font-size: 23px; }
.transaction-heading button {
  border: 0;
  background: #edf7fd;
  color: #0a77b8;
  height: 34px;
  padding: 0 12px;
  border-radius: 12px;
  font-weight: 850;
}
.transaction-list {
  background: #ffffff;
  border: 1px solid #eef0f3;
  border-radius: 20px;
  overflow: hidden;
}
.transaction-item {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 12px;
  border-bottom: 1px solid #eef0f3;
}
.transaction-item:last-child { border-bottom: 0; }
.transaction-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 900;
  background: #f1f5f9;
  color: #475569;
}
.transaction-icon.credit { background: #e9f8ef; color: #168447; }
.transaction-icon.debit { background: #fff3e8; color: #d86618; }
.transaction-item h4 { margin: 0 0 4px; font-size: 15px; }
.transaction-item p { margin: 0; color: #71717a; font-size: 12px; font-weight: 700; }
.transaction-item strong { font-size: 13px; white-space: nowrap; color: #1f2933; }
.transaction-item strong.credit { color: #168447; }

.dashed-card {
  border: 2px dashed #d7d7d7;
  border-radius: 20px;
  padding: 18px 50px 18px 18px;
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr;
  column-gap: 12px;
  background: #fff;
}
.dashed-card p { margin: 0 0 6px; color: #5b5f66; font-size: 16px; line-height: 1.25; }
.promo-icon { grid-row: 1 / 3; width: 52px; height: 52px; border-radius: 999px; display: grid; place-items: center; background: #eef1f4; color: #a0a6ad; font-size: 27px; }
.close-promo { position: absolute; right: 14px; top: 12px; border: 0; background: transparent; color: #71717a; font-size: 32px; line-height: 1; }
.bottom-nav {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 82px;
  background: white;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid #d6d9de;
  box-shadow: 0 -8px 20px rgba(0,0,0,.05);
  padding-bottom: env(safe-area-inset-bottom);
}
.nav-item {
  border: 0;
  background: white;
  color: #393e46;
  font-size: 12px;
  font-weight: 750;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav-item span { font-size: 25px; line-height: 1; }
.nav-item.active { color: #d86618; }

@media (max-width: 430px) {
  body { display: block; background: var(--panel); }
  .phone-shell { width: 100vw; height: 100vh; border-radius: 0; box-shadow: none; }
}
