:root {
  --bg: #f5f7fb;
  --bg-soft: #ffffff;
  --panel: #ffffff;
  --panel-2: #f0f4f9;
  --line: rgba(244, 213, 138, 0.12);
  --text: #122745;
  --muted: #65758b;
  --gold: #95691e;
  --gold-strong: #95691e;
  --gold-soft: rgba(201, 151, 62, 0.14);
  --danger: #ca745d;
  --success: #98c28e;
  --shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Poppins", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(201, 151, 62, 0.12), transparent 24%),
    linear-gradient(135deg, #f5f7fb 0%, #ffffff 42%, #ffffff 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.phone-frame {
  width: 100%;
  max-width: 430px;
  min-height: 1200px;
  background:
    linear-gradient(180deg, rgba(244, 213, 138, 0.04), transparent 16%),
    linear-gradient(180deg, #ffffff 0%, #f0f4f9 100%);
  border: 1px solid rgba(18, 39, 69, 0.12);
  border-radius: 40px;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02),
    0 18px 40px rgba(0, 0, 0, 0.28),
    0 32px 80px rgba(0, 0, 0, 0.46);
}


.screen {
  position: relative;
  min-height: 1200px;
  padding: 10px 18px 110px;
  background:
    radial-gradient(circle at top right, rgba(201, 151, 62, 0.08), transparent 20%),
    linear-gradient(180deg, #ffffff 0%, #f0f4f9 48%, #ffffff 100%);
}

.top-app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 48px;
  margin: 6px 2px 18px;
  position: relative;
  z-index: 2;
}

.top-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.top-brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #07172f;
  background: linear-gradient(180deg, #f4d58a 0%, #c9973e 100%);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
  font-size: 1.15rem;
}

.top-brand-copy {
  min-width: 0;
}

.top-brand-name {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.top-brand-meta {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.top-app-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(18, 39, 69, 0.045), rgba(18, 39, 69, 0.02));
  border: 1px solid rgba(18, 39, 69, 0.12);
  box-shadow: var(--shadow);
  position: relative;
}

.top-icon-btn.is-user {
  color: #07172f;
  background: linear-gradient(180deg, #f4d58a 0%, #c9973e 100%);
}

.top-icon-dot {
  position: absolute;
  top: 11px;
  right: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e9bb60;
  box-shadow: 0 0 0 4px rgba(233, 187, 96, 0.16);
}

.hero-card,
.section-panel,
.metric-card,
.account-card,
.list-row,
.auth-card,
.action-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(18, 39, 69, 0.045), rgba(18, 39, 69, 0.02));
  box-shadow: var(--shadow);
}

.hero-card {
  border-radius: var(--radius-xl);
  padding: 22px;
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(90deg, rgba(201, 151, 62, 0.16) 0 2px, transparent 2px),
    linear-gradient(180deg, rgba(18, 39, 69, 0.045), rgba(18, 39, 69, 0.02));
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 28%;
  background: linear-gradient(180deg, rgba(201, 151, 62, 0.08), transparent 76%);
  opacity: 0.65;
}

.brand-chip,
.soft-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-chip {
  color: #07172f;
  background: linear-gradient(180deg, #f4d58a 0%, #c9973e 100%);
}

.soft-chip {
  color: var(--muted);
  background:
    linear-gradient(180deg, rgba(18, 39, 69, 0.04), rgba(18, 39, 69, 0.018));
  border: 1px solid rgba(18, 39, 69, 0.12);
}

.section-title {
  font-size: 2rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section-subtitle,
.muted {
  color: var(--muted);
}

.balance-figure {
  font-size: 2.35rem;
  font-weight: 700;
  letter-spacing: -0.06em;
}

.gold-text {
  color: var(--gold-strong);
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.action-card {
  border-radius: 16px;
  padding: 14px 10px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(18, 39, 69, 0.04), rgba(18, 39, 69, 0.018));
}

.action-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 10px;
  background: linear-gradient(180deg, rgba(244, 213, 138, 0.18), rgba(201, 151, 62, 0.1));
  color: var(--gold-strong);
  font-size: 1.2rem;
}

.section-panel {
  border-radius: 20px;
  padding: 18px;
}

.metric-card,
.account-card {
  border-radius: 18px;
  padding: 18px;
}

.metric-card.gold-surface,
.account-card.gold-surface {
  background: linear-gradient(180deg, #f4d58a 0%, #c9973e 100%);
  color: #07172f;
  border-color: rgba(255, 241, 205, 0.16);
}

.metric-card.dark-surface,
.account-card.dark-surface {
  background: linear-gradient(180deg, #f0f4f9 0%, #ffffff 100%);
}

.metric-card .value,
.account-card .value {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
}

.row-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(244, 213, 138, 0.16), rgba(201, 151, 62, 0.08));
  color: var(--gold-strong);
}

.progress-thin {
  height: 8px;
  border-radius: 999px;
  background: rgba(18, 39, 69, 0.07);
  overflow: hidden;
}

.progress-thin > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #98661f, #c9973e, #e9bb60);
}

.bottom-nav {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 12px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(16, 36, 64, 0.96), rgba(8, 24, 47, 0.92));
  border: 1px solid rgba(18, 39, 69, 0.12);
  backdrop-filter: blur(14px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

.nav-item-mobile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 58px;
  border-radius: 12px;
  color: #65758b;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-item-mobile.active {
  color: #07172f;
  background: linear-gradient(180deg, #f4d58a 0%, #c9973e 100%);
}

.nav-item-mobile i {
  font-size: 1rem;
}

.auth-screen {
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  width: 100%;
  border-radius: 22px;
  padding: 26px 22px;
  background:
    linear-gradient(90deg, rgba(201, 151, 62, 0.14) 0 2px, transparent 2px),
    linear-gradient(180deg, rgba(18, 39, 69, 0.045), rgba(18, 39, 69, 0.02));
}

.form-control,
.form-select {
  min-height: 52px;
  border-radius: 12px;
  border-color: rgba(18, 39, 69, 0.12);
  background-color: rgba(18, 39, 69, 0.025);
  color: var(--text);
}

.form-control:focus,
.form-select:focus {
  color: var(--text);
  border-color: rgba(201, 151, 62, 0.5);
  box-shadow: 0 0 0 0.25rem rgba(201, 151, 62, 0.12);
  background-color: rgba(18, 39, 69, 0.04);
}

.form-control::placeholder {
  color: #65758b;
}

.btn-gold {
  background: linear-gradient(180deg, #f4d58a 0%, #c9973e 100%);
  color: #07172f;
  border: 0;
  min-height: 52px;
  border-radius: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.btn-outline-gold {
  color: var(--gold-strong);
  border-color: rgba(212, 175, 55, 0.4);
  min-height: 52px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.btn-outline-gold:hover {
  color: #07172f;
  background: linear-gradient(180deg, #f4d58a 0%, #c9973e 100%);
  border-color: transparent;
}

.mini-chart {
  height: 150px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(201, 151, 62, 0.1), transparent),
    linear-gradient(90deg, rgba(18, 39, 69, 0.025) 0 1px, transparent 1px 24px),
    linear-gradient(0deg, rgba(18, 39, 69, 0.025) 0 1px, transparent 1px 24px);
  background-size: auto, 25% 100%, 100% 25%;
  position: relative;
  overflow: hidden;
}

.mini-chart svg {
  position: absolute;
  inset: 0;
}

.avatar-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #07172f;
  background: linear-gradient(180deg, #f4d58a 0%, #c9973e 100%);
}

.floating-accent {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 88% 16%, rgba(201, 151, 62, 0.12), transparent 20%);
  opacity: 0.58;
}

.page-link-inline {
  color: var(--gold-strong);
  font-weight: 600;
}

@media (max-width: 480px) {
  .app-shell {
    padding: 0;
  }

  .phone-frame {
    max-width: 100%;
    border-radius: 0;
    min-height: 100vh;
  }

  .screen {
    min-height: 100vh;
  }
}
