:root {
  --blue: #0878f9;
  --deep: #06459d;
  --green: #12a653;
  --ink: #103e83;
  --muted: #6f87ac;
  --line: #d9eaff;
  --bg: #f4f9ff;
  --card: #fff;
  --shadow: 0 5px 18px #1458a30d;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; color: var(--ink); }
button, input, select { font: inherit; }
button { cursor: pointer; }

/* Mobile App Shell Container */
.app {
  max-width: 520px;
  min-height: 100vh;
  margin: auto;
  background: #f8fbff;
  box-shadow: 0 0 35px #0c3c7714;
  position: relative;
  padding-bottom: 86px;
}

/* Consistent Top Header Bar (Circled in Green on All Pages) */
.topbar {
  background: linear-gradient(120deg, #064aa8, #087cf9);
  color: #fff;
  padding: 15px 18px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.logo { font-size: 32px; line-height: 1; }
.brand-name { font-size: 21px; font-weight: 850; letter-spacing: -.8px; }
.tagline { font-size: 9px; letter-spacing: 2px; font-weight: 700; margin-top: 2px; }
.top-actions { display: flex; gap: 8px; align-items: center; }

.page { padding: 14px; }

/* Hero Banner & Slideshow */
.hero {
  border-radius: 18px;
  overflow: hidden;
  padding: 22px 18px;
  color: #fff;
  position: relative;
  min-height: 170px;
  isolation: isolate;
  background: #0750b0;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slides img.active {
  opacity: 1;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, #063c8fe8, #0878f9a8 65%, #063c8f80);
  z-index: 0;
}

.hero-sun {
  position: absolute;
  right: 12px;
  bottom: 10px;
  width: 68px;
  height: 68px;
  background: radial-gradient(circle, #fff700 0%, #ff9800 70%);
  border-radius: 50%;
  box-shadow: 0 0 25px #ffeb3b, inset 0 0 10px #ffffff;
  display: grid;
  place-items: center;
  font-size: 34px;
  z-index: 2;
  border: 2px solid #fff3cd;
}

.hero h1 { font-size: 22px; margin: 0 0 7px; line-height: 1.2; position: relative; z-index: 1; max-width: 75%; }
.hero p { font-size: 12px; line-height: 1.5; margin: 0; max-width: 75%; position: relative; z-index: 1; }
.pill-row { display: flex; gap: 10px; margin-top: 15px; font-size: 10px; font-weight: 700; flex-wrap: wrap; position: relative; z-index: 1; max-width: 70%; }
.pill-row span { border-right: 1px solid #ffffff55; padding-right: 10px; }

/* Cards & Statistics */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: var(--shadow);
  margin-top: 13px;
  padding: 16px;
}

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.stat-label { font-size: 10px; color: #426493; margin-bottom: 6px; }
.stat-value { font-size: 17px; font-weight: 850; color: var(--blue); white-space: nowrap; }
.stat-value.green { color: var(--green); }
.stat-value.small { font-size: 15px; }

/* Shortcuts Grid */
.shortcuts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 8px; text-align: center; }
.shortcut {
  border: 0; background: transparent; color: var(--ink); font-weight: 700;
  font-size: 11px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; cursor: pointer;
}
.shortcut .bubble {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  color: white; font-size: 22px; background: linear-gradient(145deg, #18a9ff, #0867ed);
  box-shadow: inset 0 2px 5px #fff4;
}
.bubble.green { background: linear-gradient(145deg, #54d93d, #059d51); }
.bubble.orange { background: linear-gradient(145deg, #ffca20, #ff8c00); }
.bubble.purple { background: linear-gradient(145deg, #c35dff, #6e20d5); }
.bubble.pink { background: linear-gradient(145deg, #ff7195, #e81e62); }
.bubble.teal { background: linear-gradient(145deg, #17d7df, #0785c6); }

/* Bonus Banner */
.bonus-banner {
  background: linear-gradient(115deg, #071f76, #075fe2);
  color: #fff;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 13px;
}
.bonus-banner .gift { font-size: 44px; }
.bonus-banner h2 { margin: 0; color: #ffd84b; font-size: 22px; letter-spacing: 0.5px; }
.bonus-banner p { margin: 3px 0 0; font-size: 11px; line-height: 1.4; opacity: 0.9; }
.bonus-side { text-align: center; min-width: 120px; }
.bonus-side strong { display: block; font-size: 18px; color: #ffe05a; margin: 5px 0; }

/* Buttons & Inputs */
.btn { border: 0; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 800; padding: 11px 15px; font-size: 12px; cursor: pointer; }
.btn.green { background: var(--green); }
.btn.gold { background: linear-gradient(90deg, #ffe36a, #ffbd20); color: #153c83; }
.btn.outline { background: white; color: var(--blue); border: 1px solid var(--line); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2px 0 12px;
  gap: 10px;
}
.section-head h2 { font-size: 17px; margin: 0; }

/* Bottom Navigation Bar */
.bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: min(520px, 100%); height: 76px; background: #ffffffed; backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); z-index: 5; padding: 8px 3px 5px;
}
.nav-btn { border: 0; background: transparent; color: #7a8eae; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10px; font-weight: 700; cursor: pointer; }
.nav-btn .nav-icon { font-size: 22px; }
.nav-btn.active { color: var(--blue); }

.empty { text-align: center; color: var(--muted); padding: 25px 10px; font-size: 12px; }