/* ============================================================
   Yowa — earnings app (light, bold, mobile-first)
   Desktop par bhi mobile app jaisa centered frame
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:focus:not(:focus-visible) {
  outline: none;
}

:root {
  color-scheme: light;
  --bg: #e5ecf4;
  --app: #ffffff;
  --surface: #f6f8fb;
  --surface-2: #edf2f7;
  --line: #d2dde9;
  --line-soft: #e6edf4;
  --text: #050e1d;
  --muted: #43536a;
  --muted-2: #64748b;
  --green: #04604a;
  --green-2: #0a7a5c;
  --green-soft: #e2f4ec;
  --gold: #8a5a08;
  --amber-line: #e7cf9e;
  --amber-bg: #fffaf0;
  --danger: #c81e1e;
  --app-width: 440px;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100svh;
  color: var(--text);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background:
    radial-gradient(900px 680px at 50% -10%, rgba(16, 185, 129, 0.12), transparent 62%),
    radial-gradient(720px 560px at 100% 108%, rgba(245, 158, 11, 0.1), transparent 62%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(640px 580px at 50% 22%, #000, transparent 82%);
  mask-image: radial-gradient(640px 580px at 50% 22%, #000, transparent 82%);
  pointer-events: none;
}

::selection {
  background: rgba(4, 120, 87, 0.18);
}

a {
  -webkit-tap-highlight-color: transparent;
}

/* ---------------- app frame ---------------- */
.app {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--app-width);
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(560px 340px at 90% -6%, rgba(4, 120, 87, 0.08), transparent 70%),
    radial-gradient(460px 340px at -12% 104%, rgba(217, 161, 47, 0.07), transparent 70%),
    linear-gradient(180deg, #ffffff 0%, #ffffff 58%, #fbfdfe 100%);
}

/* ---------------- top bar ---------------- */
.app-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(260px 120px at 100% -10%, rgba(94, 234, 212, 0.22), transparent 70%),
    linear-gradient(135deg, #063b2d 0%, #075643 52%, #045d47 100%);
  box-shadow: 0 16px 34px -26px rgba(2, 36, 27, 0.9);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.28));
}

.brand-name {
  position: relative;
  padding-right: 8px;
  background: linear-gradient(100deg, #ffffff 0%, #d9fdec 55%, #6ee7b7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: 'Sora', system-ui, sans-serif;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}

.brand-name::after {
  content: '';
  position: absolute;
  top: 1px;
  right: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffd66b, #c98a12);
  box-shadow: 0 0 0 2px rgba(255, 214, 107, 0.18);
}

.bar-right {
  display: flex;
  align-items: center;
  gap: 9px;
}

.bar-action {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.1);
  color: #ecfff7;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.bar-action:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.18);
}

/* ---------------- screen ---------------- */
.screen {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 22px 26px;
}

.screen > * {
  animation: rise 0.45s ease both;
}

.screen > *:nth-child(2) {
  animation-delay: 0.05s;
}

.screen > *:nth-child(3) {
  animation-delay: 0.1s;
}

.screen > *:nth-child(4) {
  animation-delay: 0.14s;
}

.screen > *:nth-child(5) {
  animation-delay: 0.18s;
}

.screen > *:nth-child(6) {
  animation-delay: 0.22s;
}

.screen > *:nth-child(7) {
  animation-delay: 0.26s;
}

/* ---------------- intro ---------------- */
.intro {
  margin-bottom: 16px;
}

.intro h1 {
  margin: 0 0 6px;
  font-family: 'Sora', system-ui, sans-serif;
  font-size: 29px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.intro p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
}

/* ---------------- earnings card ---------------- */
.wallet {
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
  padding: 17px 18px 15px;
  border: 1px solid #033c2e;
  border-radius: 22px;
  background:
    radial-gradient(220px 160px at 102% -8%, rgba(52, 211, 153, 0.32), transparent 66%),
    linear-gradient(148deg, #06382b 0%, #04513d 48%, #04624a 100%);
  box-shadow:
    0 24px 48px -26px rgba(2, 36, 27, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.wallet::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -48px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 243, 208, 0.16), transparent 70%);
  pointer-events: none;
}

.wallet-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.wallet-label {
  color: rgba(226, 244, 236, 0.82);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.wallet-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border: 1px solid rgba(167, 243, 208, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #b7f7d8;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.wallet-trend.gold {
  border-color: rgba(253, 230, 138, 0.4);
  background: rgba(255, 255, 255, 0.15);
  color: #fde68a;
}

.wallet-trend svg {
  flex: none;
}

.wallet.is-bonus {
  border-color: #6b4306;
  background:
    radial-gradient(220px 160px at 102% -8%, rgba(253, 230, 138, 0.34), transparent 66%),
    linear-gradient(148deg, #6f4606 0%, #8a5808 48%, #a0670b 100%);
  box-shadow:
    0 24px 48px -26px rgba(74, 42, 3, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.wallet.is-bonus::after {
  background: radial-gradient(circle, rgba(253, 230, 138, 0.18), transparent 70%);
}

.wallet.is-bonus .wallet-amount {
  color: #ffffff;
}

.wallet.is-bonus .wallet-amount small,
.wallet.is-bonus .wallet-amount .dec {
  color: rgba(255, 249, 232, 0.78);
}

.wallet-amount-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 9px 0 2px;
}

.wallet-amount {
  margin: 0;
  color: #ffffff;
  font-family: 'Sora', system-ui, sans-serif;
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
}

.wallet-amount small {
  margin-right: 4px;
  color: rgba(226, 244, 236, 0.8);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
}

.wallet-amount .dec {
  color: rgba(226, 244, 236, 0.8);
  font-size: 23px;
  font-weight: 700;
}

.wallet-art {
  display: block;
  flex: none;
  width: 48px;
  height: 48px;
  opacity: 0.95;
}

.wallet-art svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.25));
}

.wallet-note {
  position: relative;
  z-index: 1;
  margin: 6px 0 0;
  color: rgba(226, 244, 236, 0.82);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.5;
}

.wallet-spark {
  display: block;
  width: 100%;
  height: 34px;
  margin-top: 6px;
  overflow: visible;
}

.wallet-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 9px;
  margin-top: 14px;
}

.wallet .btn-soft {
  background: #ffffff;
  color: #04402f;
  box-shadow: 0 10px 22px -12px rgba(0, 0, 0, 0.55);
}

.wallet .btn-soft:hover {
  background: #e9fff5;
  color: #022a1f;
}

.wallet .btn-ghost {
  border-color: rgba(226, 244, 236, 0.36);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.wallet .btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.wallet .btn-soft:focus-visible,
.wallet .btn-ghost:focus-visible {
  outline-color: #ffffff;
}

/* ---------------- fields ---------------- */
.field {
  margin-bottom: 12px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  color: #2b3c51;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.label-optional {
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 600;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.lead-icon {
  position: absolute;
  left: 14px;
  width: 17px;
  height: 17px;
  color: var(--muted-2);
  pointer-events: none;
  transition: color 0.18s ease;
}

.input {
  width: 100%;
  height: 48px;
  padding: 0 14px 0 43px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  outline: none;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.input.plain {
  padding-left: 14px;
}

.input::placeholder {
  color: var(--muted-2);
  font-weight: 500;
}

.input:hover {
  border-color: #cbd5e1;
}

.input:focus {
  border-color: rgba(4, 120, 87, 0.6);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(4, 120, 87, 0.1);
}

.input-wrap:focus-within .lead-icon {
  color: var(--green);
}

.has-toggle .input {
  padding-right: 46px;
}

.toggle-pass {
  position: absolute;
  right: 7px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted-2);
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease;
}

.toggle-pass:hover {
  color: var(--green);
  background: rgba(4, 120, 87, 0.07);
}

.toggle-pass:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}

.toggle-pass svg {
  width: 17px;
  height: 17px;
}

.toggle-pass .icon-eye-off {
  display: none;
}

.toggle-pass.is-visible .icon-eye {
  display: none;
}

.toggle-pass.is-visible .icon-eye-off {
  display: block;
}

/* ---------------- select ---------------- */
.select {
  width: 100%;
  height: 48px;
  padding: 0 40px 0 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.select:hover {
  border-color: #cbd5e1;
}

.select:focus {
  border-color: rgba(4, 120, 87, 0.6);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(4, 120, 87, 0.1);
}

/* ---------------- amount input ---------------- */
.amount-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.amount-prefix {
  position: absolute;
  left: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  pointer-events: none;
}

.amount-wrap .input {
  height: 54px;
  padding-left: 45px;
  font-size: 19px;
  font-weight: 800;
  font-family: 'Sora', system-ui, sans-serif;
  letter-spacing: -0.02em;
}

.amount-wrap .input::-webkit-outer-spin-button,
.amount-wrap .input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ---------------- strength ---------------- */
.strength {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 9px;
}

.strength-bars {
  display: flex;
  flex: 1;
  gap: 4px;
}

.strength-bars i {
  flex: 1;
  height: 4px;
  border-radius: 3px;
  background: #e2e8f0;
  transition: background 0.25s ease;
}

.strength-label {
  min-width: 84px;
  text-align: right;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.strength[data-strength='1'] .strength-bars i:nth-child(1) {
  background: var(--danger);
}

.strength[data-strength='1'] .strength-label {
  color: var(--danger);
}

.strength[data-strength='2'] .strength-bars i:nth-child(-n + 2) {
  background: #d97706;
}

.strength[data-strength='2'] .strength-label {
  color: #d97706;
}

.strength[data-strength='3'] .strength-bars i:nth-child(-n + 3) {
  background: #0284c7;
}

.strength[data-strength='3'] .strength-label {
  color: #0284c7;
}

.strength[data-strength='4'] .strength-bars i {
  background: var(--green);
}

.strength[data-strength='4'] .strength-label {
  color: var(--green);
}

/* ---------------- errors ---------------- */
.field.has-error .input,
.field.has-error .select {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.09);
}

.field-error {
  display: block;
  margin-top: 6px;
  color: #b91c1c;
  font-size: 11px;
  font-weight: 600;
}

/* ---------------- label row ---------------- */
.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.label-row label {
  margin-bottom: 0;
}

.label-row .link {
  font-size: 11px;
}

/* ---------------- checks ---------------- */
.check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #5b6b7e;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
}

.check input {
  position: relative;
  flex: none;
  width: 17px;
  height: 17px;
  margin: 0;
  margin-top: 1px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  background: #ffffff;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.check input:checked {
  border-color: var(--green);
  background: var(--green);
}

.check input:checked::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 5px;
  width: 4px;
  height: 8px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.check input:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.check a {
  color: #334155;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #cbd5e1;
  text-underline-offset: 2px;
}

.check a:hover {
  color: var(--green);
}

.check-terms {
  flex-wrap: wrap;
  margin: 4px 0 18px;
  font-size: 11px;
}

.check-terms .field-error {
  flex: 0 0 100%;
  padding-left: 25px;
  margin-top: 2px;
}

.check.has-error {
  color: #b91c1c;
}

.link {
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

/* ---------------- buttons ---------------- */
.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #0a8a66 0%, #034b39 100%);
  color: #ffffff;
  font: inherit;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow:
    0 16px 32px -14px rgba(3, 60, 46, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.07);
  box-shadow:
    0 20px 38px -14px rgba(3, 60, 46, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-submit:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.btn-submit:disabled {
  cursor: wait;
  opacity: 0.85;
}

.btn-submit svg {
  width: 16px;
  height: 16px;
}

.review-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 12px 0 0;
  color: var(--muted-2);
  font-size: 10.5px;
  font-weight: 600;
}

.review-note svg {
  flex: none;
  width: 14px;
  height: 14px;
}

.spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn-soft,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn-soft {
  border: 0;
  background: var(--green);
  color: #ffffff;
  box-shadow: 0 10px 22px -12px rgba(4, 120, 87, 0.75);
}

.btn-soft:hover {
  background: var(--green-2);
}

.btn-ghost {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(4, 120, 87, 0.4);
  color: var(--green);
}

.btn-soft:focus-visible,
.btn-ghost:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.btn-soft:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-mini {
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 11.5px;
}

.full {
  width: 100%;
}

/* ---------------- boot state ---------------- */
.auth-boot .app {
  visibility: hidden;
}

.boot-error {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #f4f8fb;
}

.boot-error-card {
  width: 100%;
  max-width: 380px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 30px 60px -34px rgba(15, 23, 42, 0.5);
  text-align: center;
}

.boot-error-card h2 {
  margin: 0 0 8px;
  font-family: 'Sora', system-ui, sans-serif;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.boot-error-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.6;
}

.boot-error-actions {
  display: grid;
  gap: 8px;
}

/* ---------------- footer ---------------- */
.auth-foot {
  margin: 16px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.auth-foot a {
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}

.auth-foot a:hover {
  text-decoration: underline;
}

.home-bar {
  display: none;
}

/* ---------------- notification toast ---------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 11px;
  width: min(360px, calc(100vw - 32px));
  padding: 11px 11px 13px;
  border: 1px solid rgba(210, 221, 233, 0.9);
  border-radius: 17px;
  background: #ffffff;
  box-shadow:
    0 26px 50px -20px rgba(6, 32, 24, 0.4),
    0 2px 8px rgba(15, 23, 42, 0.05);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.45;
  opacity: 0;
  overflow: hidden;
  transform: translate(-50%, 16px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
  pointer-events: auto;
}

.toast::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #0a8a66, #34d399);
  transform: scaleX(0);
  transform-origin: left;
}

.toast.show::after {
  animation: toastTimer 3.6s linear forwards;
}

.toast-error::after {
  background: linear-gradient(90deg, #dc2626, #f87171);
}

body:has(.tab-bar) .toast {
  bottom: calc(92px + env(safe-area-inset-bottom));
}

.toast-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
}

.toast-error .toast-icon {
  background: #fee2e2;
  color: #b91c1c;
}

.toast-message {
  flex: 1;
  min-width: 0;
}

.toast-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 27px;
  height: 27px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted-2);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.toast-close:hover {
  background: var(--surface-2);
  color: var(--text);
}

.toast-close svg {
  width: 12px;
  height: 12px;
}

@keyframes toastTimer {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

/* ---------------- dashboard shell ---------------- */
.dash {
  height: 100svh;
  min-height: 0;
}

.dash .screen {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 20px;
}

.screen-dash > .view {
  animation: rise 0.28s ease both;
  animation-delay: 0s;
}

.view[hidden] {
  display: none;
}

.dash .home-bar {
  display: none;
}

.screen-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 18px;
}

.screen-head h1 {
  margin: 0;
  font-family: 'Sora', system-ui, sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.back-btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 8px 20px -18px rgba(15, 23, 42, 0.4);
  transition: border-color 0.18s ease, color 0.18s ease;
}

.back-btn:hover {
  border-color: rgba(4, 120, 87, 0.4);
  color: var(--green);
}

.back-btn:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.back-btn svg {
  width: 16px;
  height: 16px;
}

.view-lead {
  margin: -6px 0 16px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.55;
}

.section-title {
  margin: 4px 0 12px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------------- avatar (header + profile) ---------------- */
.avatar-sm {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: linear-gradient(145deg, #0a8a66 0%, #034b39 100%);
  color: #ffffff;
  font-family: 'Sora', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(4, 96, 74, 0.18),
    0 10px 20px -12px rgba(3, 60, 46, 0.7);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.avatar-sm::after {
  content: '';
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 10px;
  height: 10px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #16a34a;
}

.avatar-sm:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(4, 96, 74, 0.3),
    0 14px 24px -12px rgba(3, 60, 46, 0.8);
}

.avatar-sm:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 3px 3px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.user-chip:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.16);
}

.user-chip:focus-visible {
  outline: 2px solid #6ee7b7;
  outline-offset: 2px;
}

.user-chip-name {
  max-width: 92px;
  overflow: hidden;
  color: #ecfff7;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-chip .avatar-sm {
  width: 32px;
  height: 32px;
  font-size: 12px;
}

.user-chip .avatar-sm,
.app-bar .avatar-sm {
  border-color: rgba(255, 255, 255, 0.85);
  background: linear-gradient(145deg, #f2fffa 0%, #a7f3d0 100%);
  color: #045d47;
  box-shadow: 0 6px 14px -8px rgba(0, 0, 0, 0.5);
}

.user-chip .avatar-sm::after,
.app-bar .avatar-sm::after {
  border-color: #075643;
}

.avatar-sm:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 60px;
  height: 60px;
  border: 1px solid rgba(4, 120, 87, 0.24);
  border-radius: 50%;
  background: linear-gradient(135deg, #e7f9f1, #ffffff);
  color: var(--green);
  font-family: 'Sora', system-ui, sans-serif;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 12px 28px -20px rgba(4, 120, 87, 0.6);
}

/* ---------------- daily ads summary ---------------- */
.ads-card {
  margin-bottom: 18px;
  padding: 16px 17px 17px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(200px 130px at 100% 0%, rgba(16, 185, 129, 0.12), transparent 70%),
    linear-gradient(135deg, #fbfffd, #ffffff 65%);
  box-shadow: 0 14px 36px -32px rgba(15, 23, 42, 0.5);
}

.ads-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ads-card-label {
  color: var(--green);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.ads-card-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--green-soft);
  color: var(--green);
}

.ads-card-icon svg {
  width: 17px;
  height: 17px;
}

.ads-card-stats {
  display: flex;
  margin: 6px 0 13px;
}

.ads-stat {
  flex: 1;
  min-width: 0;
}

.ads-stat + .ads-stat {
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.ads-stat strong {
  display: block;
  font-family: 'Sora', system-ui, sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.ads-stat span {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
}

.ads-card-bar {
  height: 7px;
  border-radius: 999px;
  background: #e8eef5;
  overflow: hidden;
}

.ads-card-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #34d399, #047857);
  transition: width 0.3s ease;
}

/* ---------------- dashboard tiles ---------------- */
.tile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  padding: 15px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 30px -30px rgba(15, 23, 42, 0.5);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.tile:hover {
  border-color: rgba(4, 120, 87, 0.35);
  background: #fbfffd;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -26px rgba(4, 120, 87, 0.35);
}

.tile:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.tile-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--green-soft);
  color: var(--green);
}

.tile-icon svg {
  width: 18px;
  height: 18px;
}

.tile:nth-child(1) .tile-icon {
  background: #e7f9f1;
  color: #0b8a66;
}

.tile:nth-child(2) .tile-icon {
  background: #edf3ff;
  color: #2563eb;
}

.tile:nth-child(3) .tile-icon {
  background: #fff4e6;
  color: #b45309;
}

.tile:nth-child(4) .tile-icon {
  background: #f3efff;
  color: #6d28d9;
}

.tile:nth-child(5) .tile-icon {
  background: #fdf0f6;
  color: #be185d;
}

.tile:nth-child(6) .tile-icon {
  background: #e7f9f1;
  color: #0b8a66;
}

.tile:nth-child(7) .tile-icon {
  background: #edf3ff;
  color: #2563eb;
}

.tile-title {
  display: block;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.tile-sub {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
}

.tile-wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.tile-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* ---------------- promo ---------------- */
.promo {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--amber-line);
  border-radius: 20px;
  background:
    radial-gradient(180px 110px at 100% 0%, rgba(245, 158, 11, 0.16), transparent 70%),
    linear-gradient(135deg, #fff7e6, #fffdf8 70%);
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 14px 34px -32px rgba(180, 83, 9, 0.5);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.promo:hover {
  border-color: rgba(180, 83, 9, 0.4);
  transform: translateY(-1px);
}

.promo:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.promo-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #fef3c7;
  color: #b45309;
}

.promo-icon svg {
  width: 21px;
  height: 21px;
}

.promo-body {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.promo-body strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.promo-body span {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.4;
}

.promo-chevron {
  flex: none;
  color: #b45309;
}

.promo-chevron svg {
  display: block;
  width: 16px;
  height: 16px;
}

/* ---------------- panels & rows ---------------- */
.panel {
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 34px -34px rgba(15, 23, 42, 0.5);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.panel-title {
  margin: 0;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 800;
}

.panel-note {
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 600;
}

.panel-text {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.6;
}

.rows {
  list-style: none;
  margin: 5px 0 0;
  padding: 0;
}

.rows li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
}

.rows li:last-child {
  border-bottom: 0;
  padding-bottom: 2px;
}

.rows strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.rows .rows-total,
.rows .rows-total strong {
  color: var(--green);
}

/* ---------------- balance strip ---------------- */
.balance-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 15px 16px;
  border: 1px solid rgba(4, 120, 87, 0.18);
  border-radius: 18px;
  background:
    radial-gradient(160px 100px at 100% 0%, rgba(16, 185, 129, 0.13), transparent 70%),
    linear-gradient(135deg, rgba(4, 120, 87, 0.09), rgba(255, 255, 255, 0.96) 64%);
  box-shadow: 0 14px 36px -34px rgba(4, 120, 87, 0.55);
}

.strip-label {
  display: block;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.strip-amount {
  margin: 5px 0 0;
  color: var(--text);
  font-family: 'Sora', system-ui, sans-serif;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}

.strip-amount small {
  margin-right: 3px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

.strip-amount .dec {
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
}

/* ---------------- action rows ---------------- */
.action-row {
  display: grid;
  gap: 9px;
}

/* ---------------- history ---------------- */
.history-list {
  display: grid;
  gap: 9px;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 30px -32px rgba(15, 23, 42, 0.5);
}

.history-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green);
}

.history-icon svg {
  width: 18px;
  height: 18px;
}

.history-icon.is-pending {
  background: #fff4dd;
  color: #a96606;
}

.history-icon.is-rejected {
  background: #fee2e2;
  color: #b91c1c;
}

.history-status {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.history-status.is-pending {
  border: 1px solid #f0d6a4;
  background: #fff4dd;
  color: #9a5b06;
}

.history-status.is-paid {
  border: 1px solid rgba(4, 120, 87, 0.2);
  background: var(--green-soft);
  color: var(--green);
}

.history-status.is-rejected {
  border: 1px solid #fecaca;
  background: #fee2e2;
  color: #b91c1c;
}

.history-body {
  flex: 1;
  min-width: 0;
}

.history-body strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.history-body span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 500;
}

.history-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.history-right strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.history-new {
  margin-top: 14px;
}

.empty {
  padding: 32px 18px;
  border: 1px dashed #d8e2ec;
  border-radius: 18px;
  background:
    radial-gradient(220px 140px at 50% 0%, rgba(16, 185, 129, 0.08), transparent 70%),
    #fbfdff;
  text-align: center;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
}

.empty-icon svg {
  width: 22px;
  height: 22px;
}

.empty h2 {
  margin: 0 0 6px;
  font-family: 'Sora', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.empty p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.55;
}

/* ---------------- tasks ---------------- */
.ad-meter {
  margin-bottom: 14px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 30px -32px rgba(15, 23, 42, 0.5);
}

.ad-meter-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.ad-meter-top strong {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.ad-meter-bar {
  height: 7px;
  margin-top: 9px;
  border-radius: 999px;
  background: #e8eef5;
  overflow: hidden;
}

.ad-meter-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #34d399, #047857);
  transition: width 0.3s ease;
}

.task-list {
  display: grid;
  gap: 10px;
}

.task {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 30px -32px rgba(15, 23, 42, 0.5);
}

.task-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green);
}

.task-icon svg {
  width: 18px;
  height: 18px;
}

.task-body {
  flex: 1;
  min-width: 0;
}

.task-body strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.task-body span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

/* ---------------- ad player (full screen) ---------------- */
.ad-stage {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  padding: calc(16px + env(safe-area-inset-top)) 22px calc(22px + env(safe-area-inset-bottom));
  background:
    radial-gradient(620px 500px at 50% 34%, rgba(255, 214, 107, 0.24), transparent 64%),
    radial-gradient(520px 420px at 92% 106%, rgba(94, 234, 212, 0.2), transparent 70%),
    linear-gradient(165deg, #075643 0%, #032a21 100%);
  color: #ffffff;
  overflow: hidden;
}

.ad-stage[hidden] {
  display: none;
}

.ad-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
}

.ad-tag {
  color: #9fe8cf;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ad-skip {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #d8fff0;
  cursor: pointer;
  transition: background 0.18s ease;
}

.ad-skip:hover {
  background: rgba(255, 255, 255, 0.16);
}

.ad-skip svg {
  width: 15px;
  height: 15px;
}

.ad-creative {
  display: grid;
  place-items: center;
  flex: 1;
  min-height: 0;
  padding: 14px 0;
}

.ad-poster {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: min(78vw, 330px);
  aspect-ratio: 4 / 5;
  padding: 28px 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 30px;
  background:
    radial-gradient(130% 90% at 100% 0%, rgba(255, 205, 84, 0.5), transparent 58%),
    radial-gradient(120% 85% at 0% 100%, rgba(110, 231, 183, 0.42), transparent 62%),
    linear-gradient(160deg, #fffdf6 0%, #fdf1d3 100%);
  box-shadow:
    0 42px 80px -34px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  color: #063c2d;
  text-align: center;
  animation: adPosterIn 0.45s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.ad-poster-label {
  color: #a16207;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.ad-poster-core {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 34px 0;
}

.ad-poster-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(56vw, 224px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(6, 60, 45, 0.1);
  border-radius: 50%;
}

.ad-poster-halo::before {
  content: '';
  position: absolute;
  inset: 16%;
  border: 1px dashed rgba(161, 98, 7, 0.34);
  border-radius: 50%;
  animation: spin 14s linear infinite;
}

.ad-poster-amount {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  color: #053b2c;
  font-family: 'Sora', system-ui, sans-serif;
  font-size: clamp(42px, 12.5vw, 60px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1;
}

.ad-poster-amount small {
  font-size: 0.34em;
  font-weight: 800;
  letter-spacing: 0;
}

.ad-poster-brand {
  position: relative;
  color: #064433;
  font-family: 'Sora', system-ui, sans-serif;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.ad-poster-brand i {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 2px;
  border-radius: 50%;
  background: #d9a12f;
  transform: translateY(-9px);
}

.ad-foot {
  display: flex;
  justify-content: center;
  flex: none;
}

.ad-meter-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(300px, 100%);
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

#adTimer {
  flex: none;
  min-width: 50px;
  color: #e7fff6;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.ad-bar {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.ad-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffd66b, #f1b93b);
  transition: width 0.1s linear;
}

body.ad-open {
  overflow: hidden;
}

@keyframes adPosterIn {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------------- invite / refer ---------------- */
.invite-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
  padding: 20px 20px 18px;
  border-radius: 22px;
  background:
    radial-gradient(230px 150px at 100% 0%, rgba(255, 214, 107, 0.24), transparent 70%),
    linear-gradient(140deg, #075643 0%, #043c2d 100%);
  box-shadow: 0 20px 42px -30px rgba(2, 36, 27, 0.9);
  text-align: center;
}

.invite-label {
  display: block;
  color: #a7f3d0;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.invite-amount {
  margin: 5px 0 3px;
  color: #ffffff;
  font-family: 'Sora', system-ui, sans-serif;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.invite-amount small {
  margin-right: 4px;
  color: #c9fbe9;
  font-family: 'Sora', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
}

.invite-note {
  color: #9fc9b9;
  font-size: 11px;
  font-weight: 600;
}

.panel > .code-box:first-child,
.panel > .steps:first-child {
  margin-top: 0;
}

.code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 13px;
  padding: 12px 13px;
  border: 1px dashed rgba(4, 120, 87, 0.4);
  border-radius: 13px;
  background: var(--green-soft);
}

.code-box code {
  color: var(--green-2);
  font-family: 'Sora', system-ui, sans-serif;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.steps {
  display: grid;
  gap: 11px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.55;
}

.steps b {
  color: var(--text);
  font-weight: 700;
}

.step-num {
  display: grid;
  place-items: center;
  flex: none;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
}

/* ---------------- profile ---------------- */
.profile-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 17px;
}

.profile-head h2 {
  margin: 0 0 3px;
  font-family: 'Sora', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.profile-head p {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
}

.btn-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  margin-top: 5px;
  border: 1px solid rgba(220, 38, 38, 0.24);
  border-radius: 13px;
  background: #ffffff;
  color: var(--danger);
  font: inherit;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.btn-logout:hover {
  border-color: rgba(220, 38, 38, 0.45);
  background: #fef2f2;
}

.btn-logout:focus-visible {
  outline: 2px solid var(--danger);
  outline-offset: 2px;
}

/* ---------------- help ---------------- */
.link-list {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.link-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.link-btn:hover {
  border-color: rgba(4, 120, 87, 0.35);
  background: #f7fdfa;
}

.link-btn:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.link-btn span:first-child {
  font-size: 12.5px;
  font-weight: 700;
}

.link-btn span:last-child {
  color: var(--muted-2);
  font-size: 10.5px;
  font-weight: 500;
  text-align: right;
}

/* ---------------- tab bar ---------------- */
.tab-bar {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  flex: none;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(300px 130px at 50% 125%, rgba(16, 185, 129, 0.28), transparent 72%),
    linear-gradient(180deg, #05392c 0%, #042d23 100%);
  box-shadow: 0 -20px 40px -26px rgba(2, 36, 27, 0.85);
}

.tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 8px 6px 8px;
  border: 0;
  border-radius: 15px;
  background: transparent;
  color: #8fb3a7;
  font: inherit;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.tab svg {
  width: 21px;
  height: 21px;
  stroke-width: 2;
  transition: color 0.18s ease, transform 0.18s ease;
}

.tab:hover {
  color: #dcfcef;
}

.tab:hover svg {
  transform: translateY(-1px);
}

.tab.is-active {
  color: #ffffff;
  background: linear-gradient(160deg, rgba(110, 231, 183, 0.2), rgba(110, 231, 183, 0.06));
  box-shadow: inset 0 0 0 1px rgba(110, 231, 183, 0.22);
}

.tab.is-active svg {
  color: #6ee7b7;
  transform: none;
}

.tab:focus-visible {
  outline: 2px solid #6ee7b7;
  outline-offset: 1px;
}

/* ---------------- animations ---------------- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------------- desktop: phone-like frame ---------------- */
@media (min-width: 720px) {
  body {
    align-items: center;
    padding: 24px;
  }

  .app {
    height: calc(100svh - 48px);
    min-height: 0;
    max-width: 440px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 36px;
    box-shadow:
      0 42px 96px -48px rgba(15, 23, 42, 0.4),
      0 0 0 1px rgba(15, 23, 42, 0.02) inset;
    scrollbar-width: none;
  }

  .app::-webkit-scrollbar {
    display: none;
  }

  .screen {
    padding: 24px 24px 24px;
  }

  .home-bar {
    display: block;
    flex: none;
    width: 112px;
    height: 4px;
    margin: 10px auto 8px;
    border-radius: 999px;
    background: #dbe3ec;
  }

  .dash {
    height: calc(100svh - 48px);
    overflow: hidden;
  }
}

@media (min-width: 1100px) {
  .app {
    max-width: 460px;
  }
}

/* ---------------- small phones ---------------- */
/* ---------------- landing ---------------- */
.landing-screen {
  padding-top: 26px;
}

.landing-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid rgba(4, 120, 87, 0.18);
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.landing-hero h1 {
  margin: 14px 0 8px;
  font-family: 'Sora', system-ui, sans-serif;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.landing-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
}

.landing-cta {
  margin-top: 20px;
}

.landing-cta .btn-submit {
  text-decoration: none;
}

.landing-alt {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
  text-align: center;
}

.landing-alt a {
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}

.landing-points {
  display: grid;
  gap: 9px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.landing-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
}

.landing-point-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green);
}

.landing-point-icon svg {
  width: 18px;
  height: 18px;
}

.landing-point-text {
  min-width: 0;
}

.landing-point-text strong {
  display: block;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 700;
}

.landing-point-text span {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 500;
}

.landing-foot {
  padding: 18px 20px 24px;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
}

/* ---------------- invite link & friends ---------------- */
.link-box {
  align-items: flex-start;
  margin-top: 12px;
  border-style: solid;
  border-color: rgba(4, 120, 87, 0.22);
}

.link-box code {
  flex: 1;
  min-width: 0;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.5;
  word-break: break-all;
}

.link-box .btn-soft {
  flex: none;
  margin-top: 1px;
}

.code-box-code {
  justify-content: flex-start;
  margin-top: 9px;
  padding: 9px 13px;
  border-style: solid;
  border-color: var(--line);
  background: #fbfdff;
}

.code-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.code-box-code code {
  margin-right: auto;
  font-size: 14px;
}

.friend-list {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.friend-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
}

.friend-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.friend-body {
  flex: 1;
  min-width: 0;
}

.friend-body strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.friend-body span {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 500;
}

.friend-bonus {
  flex: none;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
}

.friend-empty {
  margin: 12px 0 0;
  padding: 16px 12px;
  border: 1px dashed #d8e2ec;
  border-radius: 13px;
  background: #fbfdff;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.55;
  text-align: center;
}

@media (max-width: 380px) {
  .screen {
    padding: 20px 18px 24px;
  }

  .app-bar {
    padding: 13px 18px;
  }

  .intro h1 {
    font-size: 26px;
  }

  .wallet-amount {
    font-size: 31px;
  }

  .wallet-art {
    width: 42px;
    height: 42px;
  }

  .tile {
    padding: 13px 12px;
  }

  .tab {
    font-size: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
