@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@1,700&display=swap");

:root {
  color-scheme: dark;
  --ink: #fff8ff;
  --muted: #b8a9bd;
  --surface: rgba(255, 255, 255, .065);
  --surface-strong: rgba(255, 255, 255, .095);
  --line: rgba(255, 255, 255, .12);
  --pink: #ec296d;
  --purple: #7c279f;
  --violet: #4a1f76;
  --green: #6ee7a3;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: #130817; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -15%, rgba(133, 41, 146, .36), transparent 39%),
    linear-gradient(160deg, #1c0a22 0%, #110713 47%, #16091a 100%);
  color: var(--ink);
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 65%);
}

.aurora {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .25;
  pointer-events: none;
}

.aurora-one { top: 18%; left: -180px; width: 360px; height: 360px; background: var(--pink); }
.aurora-two { top: 48%; right: -200px; width: 420px; height: 420px; background: #642bab; }

.shell {
  width: min(100%, 580px);
  margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) 18px 54px;
}

h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 14px; font-size: clamp(38px, 10vw, 58px); line-height: .98; letter-spacing: -.065em; }
h1 span { color: #f6a5c4; font-family: "Playfair Display", Georgia, serif; font-weight: 700; letter-spacing: -.04em; }
h2 { margin-bottom: 8px; font-size: 21px; line-height: 1.2; letter-spacing: -.035em; }

.brand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 44px;
}

.brand { display: flex; align-items: center; gap: 11px; color: white; text-decoration: none; }
.brand img { width: 44px; height: 44px; object-fit: cover; object-position: top; border-radius: 12px; }
.brand div { display: grid; gap: 1px; }
.brand span { font-size: 16px; font-weight: 800; letter-spacing: .08em; }
.brand small { color: var(--muted); font-size: 7px; letter-spacing: .07em; text-transform: uppercase; }

.member-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(255,255,255,.04);
  color: #d9cadf;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em;
}

.member-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 12px var(--pink); }

.welcome { margin-bottom: 28px; }
.welcome-text { max-width: 410px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

.eyebrow {
  margin-bottom: 9px;
  color: #ed82ac;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.balance-card {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 290px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 30px;
  padding: 27px;
  align-content: space-between;
  background:
    radial-gradient(circle at 80% 0%, rgba(255,255,255,.24), transparent 28%),
    linear-gradient(135deg, #ee356e 0%, #a62787 44%, #4b257f 100%);
  box-shadow: 0 30px 90px rgba(106, 20, 94, .4);
}

.card-glow { position: absolute; z-index: -1; right: -60px; bottom: -90px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.13); filter: blur(3px); }
.card-pattern { position: absolute; z-index: -1; inset: 0; opacity: .18; background-image: radial-gradient(circle, white 1px, transparent 1.5px); background-size: 14px 14px; mask-image: linear-gradient(120deg, transparent 30%, black); }
.balance-top { display: flex; justify-content: space-between; gap: 20px; }
.card-label { color: rgba(255,255,255,.72); font-size: 12px; font-weight: 600; }
.balance-line { display: flex; align-items: baseline; gap: 10px; margin-top: 3px; }
.balance-line strong { font-size: clamp(72px, 22vw, 112px); line-height: .92; letter-spacing: -.1em; }
.balance-line span { color: rgba(255,255,255,.68); font-size: 11px; font-weight: 700; transform: rotate(-90deg) translateX(8px); }
.gem-mark { display: grid; width: 47px; height: 47px; place-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 16px; background: rgba(255,255,255,.12); font-family: Georgia, serif; font-size: 26px; font-style: italic; }

.level { margin: auto 0 18px; }
.level-row { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; color: rgba(255,255,255,.7); font-size: 9px; }
.level-row b { color: white; }
.progress { height: 4px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.22); }
.progress span { display: block; width: 62%; height: 100%; border-radius: inherit; background: white; box-shadow: 0 0 12px white; }
.card-footer { display: flex; justify-content: space-between; gap: 12px; color: rgba(255,255,255,.72); font-size: 9px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

.quick-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 14px 0 34px; }
.quick-stats article { display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 17px; padding: 14px; background: var(--surface); backdrop-filter: blur(16px); }
.stat-icon { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 11px; background: linear-gradient(135deg, rgba(236,41,109,.3), rgba(124,39,159,.45)); color: #ffacd0; }
.quick-stats div { display: grid; gap: 1px; }
.quick-stats strong { font-size: 14px; }
.quick-stats small { color: var(--muted); font-size: 8px; }

.invite-card {
  position: relative;
  margin-bottom: 38px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 25px;
  padding: 22px;
  background: linear-gradient(145deg, rgba(255,255,255,.105), rgba(255,255,255,.035));
  box-shadow: 0 20px 70px rgba(0,0,0,.18);
  backdrop-filter: blur(24px);
}

.invite-card::after { position: absolute; top: -75px; right: -65px; width: 180px; height: 180px; border-radius: 50%; background: rgba(236,41,109,.18); content: ""; filter: blur(30px); }
.invite-content { position: relative; z-index: 1; display: grid; grid-template-columns: auto 1fr; gap: 15px; }
.invite-content p:not(.eyebrow) { margin-bottom: 18px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.invite-content b { color: #ff9ac2; }
.gift-icon { display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid rgba(255,255,255,.15); border-radius: 15px; background: linear-gradient(135deg, var(--pink), var(--purple)); box-shadow: 0 12px 30px rgba(201, 34, 111, .25); font-size: 20px; }

.referral-box { position: relative; z-index: 1; display: flex; gap: 8px; border: 1px solid var(--line); border-radius: 13px; padding: 5px; background: rgba(0,0,0,.16); }
.referral-link { min-width: 0; flex: 1; border: 0; padding: 8px 7px; outline: 0; background: transparent; color: var(--muted); font: inherit; font-size: 9px; }
button { font: inherit; cursor: pointer; }
.copy-mini { border: 0; border-radius: 9px; padding: 8px 10px; background: rgba(255,255,255,.09); color: white; font-size: 8px; font-weight: 700; }
.primary-button { position: relative; z-index: 1; display: flex; width: 100%; align-items: center; justify-content: space-between; margin-top: 10px; border: 0; border-radius: 13px; padding: 14px 16px; background: linear-gradient(100deg, #ed326f, #a32a8b); color: white; font-size: 11px; font-weight: 800; box-shadow: 0 12px 34px rgba(205, 35, 112, .28); }
.button-arrow { font-size: 18px; line-height: 0; }
button:disabled { cursor: wait; opacity: .45; }

.history-section { margin-bottom: 34px; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-title h2 { margin-bottom: 0; }
.text-button { border: 0; padding: 0 0 2px; background: transparent; color: #d98db3; font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.history { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); backdrop-filter: blur(20px); }
.history > p { padding: 18px; }
.transaction { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: center; padding: 15px 16px; border-bottom: 1px solid var(--line); }
.transaction:last-child { border-bottom: 0; }
.transaction-icon { display: grid; grid-row: span 2; width: 36px; height: 36px; place-items: center; border-radius: 12px; background: rgba(255,255,255,.07); color: #efa0c2; font-size: 14px; }
.transaction span:not(.transaction-icon) { font-size: 10px; font-weight: 600; }
.transaction strong { grid-row: span 2; align-self: center; font-size: 13px; }
.transaction small { color: var(--muted); font-size: 8px; }
.positive { color: var(--green); }
.negative { color: #ff9aaf; }
.muted, .status { color: var(--muted); font-size: 10px; }
.status { margin-top: 18px; text-align: center; }

footer { display: flex; align-items: center; justify-content: center; gap: 8px; color: #8e7d93; font-size: 8px; font-weight: 800; letter-spacing: .14em; }
footer img { width: 23px; height: 23px; object-fit: cover; object-position: top; border-radius: 7px; opacity: .75; }
footer small { color: #66586b; font-size: 7px; font-weight: 500; letter-spacing: .02em; }

@media (min-width: 700px) {
  .shell { padding-top: 42px; }
  .balance-card { min-height: 320px; }
}
