@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Brand Colors */
  --blue:           #2E05C2;    /* Primary — buttons, active states */
  --blue-mid:       #5520E8;    /* Gradient end */
  --blue-bg:        #EDE8FF;    /* Primary tint surface */
  --blue-surface:   #FCF7FF;    /* Light lavender surface */
  --tangerine:      #E3170A;    /* Errors, withdrawals, overdue */
  --tangerine-bg:   #FEF0EE;
  --tangerine-bdr:  #FECFCC;
  --gold:           #FFD042;    /* Accent — progress bar, current period */
  --gold-bg:        #FFF8E0;
  --gold-dark:      #8A5E00;    /* Fee text */
  --gold-warm:      #FFFAE8;
  --ink:            #030016;    /* Primary text */
  --ink-muted:      #9999AA;    /* Secondary text */
  --ink-faint:      #AAAABB;    /* Tertiary / nav labels */
  --green:          #1B8A4A;    /* Deposits, paid status */
  --green-bg:       #E8F7EE;
  --green-chip:     #E5F7ED;
  --surface:        #F6F6F9;
  --border:         #EAEAF0;
  --border-lt:      #F4F4F6;
  --bg:             #f5f4f9;
  --font:           'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --px:             20px;       /* Screen horizontal padding */
  --shadow-card:    0 2px 16px rgba(3,0,22,0.07);
  --shadow-elevated:0 8px 32px rgba(3,0,22,0.12);
  --transition:     0.18s ease;

  /* Border Radius Tokens */
  --r-xs:   3px;
  --r-sm:   5px;
  --r-md:   5px;
  --r-lg:   10px;
  --r-xl:   20px;
  --r-2xl:  28px;
  --r-pill: 9999px;
}

/* CSS Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

p, h1, h2, h3, h4, h5, h6 {
  margin: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* Body container - flex center for screen simulation */
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* Screen Wrapper Card - simulating mobile screen */
.screen {
  width: 375px;
  height: 812px;
  max-width: 100%;
  background: #ffffff;
  border-radius: var(--r-2xl);
  border: 2px solid rgba(46,5,194,0.15);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-elevated);
}

/* Typography Scales & Utility Classes */
.text-title {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.25;
}

.text-balance {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.text-stat {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.text-section {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.text-body {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.text-meta {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink-muted);
}

.text-label {
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.3;
}

/* Scroll tweaks */
.screen-body {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Mobile Breakpoint Overlay */
@media (max-width: 420px) {
  body {
    padding: 0;
    background: #ffffff;
  }
  .screen {
    width: 100%;
    height: 100%;
    border-radius: 0;
    border: none;
    box-shadow: none;
  }
}
