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

:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #eef3f8;
  --surface-3: #e3eaf2;
  --line: rgba(35, 61, 88, .13);
  --text: #1b2939;
  --muted: #74869a;
  --teal: #149f92;
  --teal-soft: #087d74;
  --gold: #e9aa29;
  --gold-2: #ff9f43;
  --coral: #ff6b70;
  --blue: #5b8cff;
  --purple: #9d7bff;
  --green: #52d68a;
  --danger: #ff6378;
  --shadow: 0 16px 42px rgba(42, 68, 96, .11);
  --nav-h: 76px;
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { min-height: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 0%, rgba(32, 220, 197, .13), transparent 30%),
    radial-gradient(circle at 100% 12%, rgba(91, 140, 255, .12), transparent 36%),
    linear-gradient(180deg, #fbfdff 0%, #f4f7fb 55%, #eef3f8 100%);
  color: var(--text);
  font: 15px/1.45 'Manrope', system-ui, sans-serif;
  overscroll-behavior: none;
}
button { font: inherit; color: inherit; }
button, [role="button"] { touch-action: manipulation; }
.ambient { position: fixed; width: 280px; height: 280px; border-radius: 50%; filter: blur(80px); opacity: .16; pointer-events: none; }
.ambient-one { background: var(--teal); top: 18%; left: -180px; }
.ambient-two { background: var(--purple); right: -190px; bottom: 10%; }

.app-shell { position: relative; width: 100%; max-width: 760px; min-height: 100dvh; margin: auto; padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 22px); }
.topbar { position: sticky; z-index: 24; top: 0; height: 74px; display: flex; align-items: center; justify-content: space-between; padding: max(12px, env(safe-area-inset-top)) 18px 8px; border-bottom: 1px solid rgba(35,61,88,.07); background: rgba(249,252,254,.84); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 0; text-align: left; cursor: pointer; }
.brand img { width: 42px; height: 42px; border-radius: 13px; box-shadow: 0 5px 20px rgba(32, 220, 197, .2); }
.brand strong { display: block; letter-spacing: .12em; font-size: 16px; }
.brand small { color: var(--muted); font-size: 8px; letter-spacing: .09em; }
.brand-copy b { display: flex; align-items: baseline; gap: 5px; margin-top: 2px; color: var(--gold); font-size: 11px; line-height: 1; white-space: nowrap; }
.brand-copy b em { color: var(--muted); font-size: 8px; font-style: normal; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.top-actions { display: flex; gap: 8px; }
.online-pill { display: inline-flex; align-items: center; gap: 6px; min-width: 49px; height: 42px; padding: 0 11px; border: 1px solid var(--line); border-radius: 15px; color: var(--teal-soft); background: rgba(255,255,255,.84); cursor: pointer; font-size: 11px; font-weight: 800; }
.online-pill i, .account-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.icon-button { width: 42px; height: 42px; border-radius: 15px; border: 1px solid var(--line); background: rgba(255,255,255,.84); cursor: pointer; }
.profile-button { display: grid; place-items: center; overflow: hidden; padding: 0; border-radius: 50%; border-color: rgba(32,220,197,.35); background: linear-gradient(145deg,rgba(32,220,197,.22),rgba(91,140,255,.18)); color: var(--teal-soft); font-weight: 900; }
.profile-button img { width: 100%; height: 100%; object-fit: cover; }
.profile-button span { display: grid; place-items: center; width: 100%; height: 100%; }
.reward-button { position: relative; color: var(--gold); }
.reward-button i { position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 12px var(--coral); }
.reward-button.claimed i { display: none; }

.screen { padding: 8px 16px 24px; animation: screen-in .28s ease both; }
@keyframes screen-in { from { opacity: 0; transform: translateY(8px); } }
.screen-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin: 14px 2px 22px; }
.eyebrow { margin: 0 0 4px; color: var(--teal); text-transform: uppercase; letter-spacing: .16em; font-size: 10px; font-weight: 800; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(27px, 7vw, 38px); line-height: 1.12; letter-spacing: -.04em; }
h2 { margin-bottom: 12px; font-size: 20px; letter-spacing: -.025em; }
h3 { margin-bottom: 5px; font-size: 15px; }
.subtext, .muted { color: var(--muted); }
.subtext { margin: 5px 0 0; font-size: 13px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--teal-soft); background: rgba(32, 220, 197, .08); font-size: 11px; font-weight: 700; white-space: nowrap; }

.card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(145deg, #fff, #f8fbfd); box-shadow: var(--shadow); transition: border-color .2s ease,box-shadow .2s ease,transform .2s ease; }
.balance-card { min-height: 180px; padding: 22px; color: #fff; background: linear-gradient(135deg, #20b7a6, #238ab7 48%, #536ec5); }
.balance-card::after { content: ''; position: absolute; width: 220px; height: 220px; top: -100px; right: -60px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: 0 0 0 30px rgba(255,255,255,.025), 0 0 0 60px rgba(255,255,255,.018); }
.balance-label { display: flex; justify-content: space-between; color: #b9cedc; font-size: 12px; }
.balance-value { position: relative; z-index: 1; margin: 16px 0 17px; font-size: clamp(37px, 10vw, 54px); font-weight: 700; letter-spacing: -.055em; }
.balance-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.income-chip { color: var(--teal-soft); font-size: 12px; font-weight: 700; }
.level-chip { padding: 7px 10px; border-radius: 12px; background: rgba(0,0,0,.18); color: var(--gold); font-size: 11px; }

.tap-zone { position: relative; display: grid; place-items: center; min-height: 300px; padding: 22px 0 12px; overflow: hidden; }
.tap-orbit { position: absolute; width: 238px; height: 238px; border: 1px solid rgba(32,220,197,.15); border-radius: 50%; animation: orbit 16s linear infinite; }
.tap-orbit::before, .tap-orbit::after { content: ''; position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 20px var(--teal); }
.tap-orbit::before { top: 22px; left: 34px; }
.tap-orbit::after { right: 9px; bottom: 60px; background: var(--gold); box-shadow: 0 0 20px var(--gold); }
@keyframes orbit { to { transform: rotate(360deg); } }
.tap-core { position: relative; z-index: 2; width: 176px; height: 176px; border: 0; border-radius: 50%; cursor: pointer; background: radial-gradient(circle at 36% 27%, #fff5bf 0 5%, #ffd25f 15%, #d89016 50%, #70420d 72%, #16263a 73%); box-shadow: 0 0 0 10px rgba(255, 200, 87, .07), 0 0 70px rgba(255, 184, 55, .23), inset 0 -12px 28px rgba(0,0,0,.3); transition: transform .08s ease; }
.tap-core::before { content: '◆'; display: grid; place-items: center; width: 100%; height: 100%; color: #fff4bb; font-size: 70px; text-shadow: 0 4px 0 #9b590d, 0 0 26px rgba(255,255,255,.5); }
.tap-core:active, .tap-core.pressed { transform: scale(.93); }
.tap-copy { position: absolute; z-index: 3; bottom: 4px; text-align: center; color: var(--muted); font-size: 12px; }
.tap-copy strong { display: block; color: var(--text); font-size: 16px; }
.combo-badge { display: inline-flex; margin-top: 5px; padding: 4px 9px; border-radius: 999px; color: #07111f; background: linear-gradient(90deg,var(--gold),var(--teal)); font-size: 9px; font-weight: 900; opacity: 0; transform: scale(.8); transition: .18s ease; }
.combo-badge.show { opacity: 1; transform: scale(1); }
.float-gain { position: fixed; z-index: 20; color: var(--gold); font-size: 20px; font-weight: 800; pointer-events: none; text-shadow: 0 3px 12px #000; animation: gain-fly .8s ease-out forwards; }
.float-gain.critical { color: #fff4bc; font-size: 25px; text-shadow: 0 0 16px var(--gold), 0 3px 12px #000; }
@keyframes gain-fly { to { opacity: 0; transform: translateY(-72px) scale(1.15); } }
.fx-layer { position: fixed; z-index: 19; inset: 0; overflow: hidden; pointer-events: none; }
.spark { position: absolute; width: 6px; height: 6px; border-radius: 2px; background: var(--spark-color,var(--gold)); box-shadow: 0 0 10px var(--spark-color,var(--gold)); animation: spark-out .65s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes spark-out { to { opacity: 0; transform: translate(var(--dx),var(--dy)) rotate(180deg) scale(.2); } }
.celebrate { position: fixed; top: -20px; width: 8px; height: 14px; border-radius: 2px; background: var(--piece); animation: confetti 1.2s ease-in forwards; }
@keyframes confetti { to { transform: translate(var(--drift),105vh) rotate(760deg); opacity: .2; } }

.upgrade-card { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 18px; }
.upgrade-card .value { color: var(--teal); font-size: 20px; font-weight: 800; }
.progress { height: 6px; margin-top: 10px; overflow: hidden; border-radius: 10px; background: rgba(35,61,88,.09); }
.progress > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--gold)); transition: width .4s ease; }
.primary-btn, .secondary-btn, .buy-btn, .ghost-btn, .danger-btn { border: 0; border-radius: 15px; padding: 12px 15px; font-weight: 800; cursor: pointer; transition: transform .12s ease, opacity .2s, box-shadow .2s ease; }
.primary-btn { background: linear-gradient(135deg, var(--teal), #3e93ff); color: #041321; box-shadow: 0 8px 24px rgba(32,220,197,.18); }
.secondary-btn { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #281704; }
.danger-btn { color: #fff; background: linear-gradient(135deg,var(--danger),#d8425b); }
.ghost-btn { color: var(--text); background: #f3f6f9; border: 1px solid var(--line); }
.primary-btn:active, .secondary-btn:active, .buy-btn:active { transform: scale(.96); }
button:disabled { opacity: .38; cursor: not-allowed; }

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.stat { padding: 14px 11px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, .84); }
.stat small { display: block; min-height: 30px; color: var(--muted); font-size: 10px; }
.stat strong { display: block; margin-top: 5px; font-size: 13px; }
.boost-strip { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin-top: 13px; padding: 13px 14px; border: 1px solid rgba(255,200,87,.2); border-radius: 18px; background: linear-gradient(100deg,rgba(255,200,87,.1),rgba(32,220,197,.07)); }
.boost-strip .boost-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; color: #271604; background: var(--gold); font-size: 20px; }
.boost-strip h3 { margin: 0; }
.boost-strip p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }
.boost-strip.active { border-color: var(--teal); box-shadow: 0 0 24px rgba(32,220,197,.1); }
.mission-list { display: grid; gap: 9px; }
.mission { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 13px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.84); }
.mission-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: rgba(91,140,255,.12); font-size: 20px; }
.mission h3 { margin: 0; }
.mission p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }
.mission .progress { margin-top: 7px; }
.mission button { min-width: 74px; padding: 9px; }

.summary-card { display: grid; grid-template-columns: 1fr 1px 1fr; gap: 18px; padding: 19px; margin-bottom: 16px; }
.summary-card .divider { background: var(--line); }
.metric small { color: var(--muted); font-size: 11px; }
.metric strong { display: block; margin-top: 5px; font-size: 21px; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 22px 2px 12px; }
.section-title h2 { margin: 0; }
.section-title span { color: var(--muted); font-size: 12px; }

.list { display: grid; gap: 11px; }
.business-card, .market-card, .asset-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; padding: 15px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255, 255, 255, .94); box-shadow: 0 9px 28px rgba(42,68,96,.06); transition: transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.item-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 17px; font-size: 25px; background: linear-gradient(145deg, color-mix(in srgb, var(--item-color, var(--teal)) 22%, #fff), #edf3f7); box-shadow: inset 0 0 0 1px rgba(35,61,88,.06); }
.item-copy h3 { margin: 0 0 3px; }
.item-copy p { margin: 0; color: var(--muted); font-size: 11px; }
.item-copy .positive { color: var(--green); }
.item-copy .negative { color: var(--coral); }
.buy-btn { min-width: 92px; padding: 10px 11px; background: rgba(32,220,197,.12); border: 1px solid rgba(32,220,197,.28); color: var(--teal-soft); font-size: 11px; }
.buy-btn.owned { color: var(--gold); border-color: rgba(255,200,87,.28); background: rgba(255,200,87,.09); }
.lock { filter: grayscale(1); opacity: .55; }

.tabs { display: flex; gap: 7px; padding: 5px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.78); }
.tabs button { flex: 1; border: 0; border-radius: 12px; padding: 10px 6px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 700; cursor: pointer; }
.tabs button.active { color: #051521; background: var(--teal); }
.ticker { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; color: var(--muted); background: rgba(255,255,255,.8); font-size: 11px; }
.ticker b { color: var(--green); }
.market-event { margin-bottom: 12px; padding: 14px; border: 1px solid rgba(255,200,87,.2); border-radius: 18px; background: linear-gradient(120deg,rgba(255,200,87,.1),rgba(157,123,255,.08)); }
.market-event strong { display: block; color: var(--gold); }
.market-event small { color: var(--muted); }
.market-card { grid-template-columns: auto 1fr auto; }
.market-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.market-actions button { padding: 10px; }
.market-values { text-align: right; }
.market-values strong { display: block; }
.market-values small { color: var(--muted); }
.sparkline { grid-column: 1 / -1; width: 100%; height: 36px; overflow: visible; }
.sparkline polyline { fill: none; stroke: var(--item-color,var(--teal)); stroke-width: 2; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 5px color-mix(in srgb,var(--item-color,var(--teal)) 50%,transparent)); }

.collection-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px; }
.shop-banner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; margin-bottom: 14px; padding: 17px; border: 1px solid rgba(255,200,87,.25); border-radius: 22px; background: linear-gradient(125deg,rgba(255,200,87,.13),rgba(157,123,255,.1)); }
.shop-banner h2 { margin: 0 0 2px; }
.shop-banner small { color: var(--muted); }
.shop-symbol { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; color: #221500; background: linear-gradient(145deg,var(--gold),var(--gold-2)); font-size: 23px; }
.asset-card { position: relative; display: block; min-height: 170px; padding: 16px; overflow: hidden; }
.asset-card .item-icon { width: 64px; height: 64px; margin-bottom: 15px; font-size: 32px; }
.asset-card .price { display: block; margin-top: 7px; color: var(--gold); font-size: 12px; }
.asset-card .owned-mark { position: absolute; top: 12px; right: 12px; color: var(--teal); font-size: 18px; }
.asset-card button { width: 100%; margin-top: 12px; }

.profile-hero { padding: 22px; margin-bottom: 14px; }
.avatar-row { display: flex; align-items: center; gap: 14px; }
.avatar { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 21px; background: linear-gradient(145deg, var(--gold), var(--teal)); color: #07111f; font-size: 25px; font-weight: 900; }
.profile-hero h1 { font-size: 24px; }
.wealth { margin-top: 22px; }
.wealth small { color: var(--muted); }
.wealth strong { display: block; margin-top: 2px; font-size: 35px; letter-spacing: -.05em; }
.wealth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 13px; }
.wealth-item { padding: 13px; border-left: 4px solid var(--item-color); border-radius: 13px; background: #f3f6f9; }
.wealth-item small { display: block; color: var(--muted); }
.wealth-item strong { font-size: 13px; }
.achievement { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.achievement:last-child { border-bottom: 0; }
.achievement .badge { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: rgba(255,200,87,.1); font-size: 21px; }
.achievement.locked { opacity: .4; }
.achievement small { color: var(--muted); }
.settings-row { display: flex; gap: 9px; margin-top: 16px; }
.settings-row button { flex: 1; }
.account-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; padding: 18px; }
.account-card h3 { margin: 0; }
.account-card small { color: var(--muted); }
.account-status { display: flex; align-items: center; gap: 8px; margin: 15px 0; padding: 12px; border-radius: 14px; color: var(--teal-soft); background: rgba(32,220,197,.08); font-size: 12px; }

.bottom-nav { position: fixed; z-index: 30; left: 50%; bottom: 0; transform: translateX(-50%); width: min(100%, 760px); height: calc(var(--nav-h) + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5,1fr); align-items: start; padding: 7px 8px env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: rgba(255, 255, 255, .94); box-shadow: 0 -10px 35px rgba(42,68,96,.10); backdrop-filter: blur(18px); }
.bottom-nav button { position: relative; height: 62px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 0; color: #6f879a; background: transparent; cursor: pointer; }
.bottom-nav button.active { color: var(--teal); }
.nav-icon { font-size: 23px; line-height: 1; }
.bottom-nav small { font-size: 9px; font-weight: 700; }
.bottom-nav .earn-nav .nav-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-top: -22px; margin-bottom: 1px; border: 5px solid #fff; border-radius: 50%; color: #fff; background: linear-gradient(145deg, var(--gold), var(--teal)); box-shadow: 0 8px 25px rgba(32,160,147,.2); }

.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(var(--nav-h) + 24px + env(safe-area-inset-bottom)); max-width: calc(100% - 32px); transform: translate(-50%, 20px); padding: 11px 15px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .25s ease; font-size: 12px; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.modal-backdrop { position: fixed; z-index: 80; inset: 0; display: grid; place-items: end center; padding: 18px; background: rgba(24,39,55,.45); backdrop-filter: blur(10px); }
.modal-backdrop[hidden] { display: none; }
.modal { width: min(100%, 520px); padding: 22px; border: 1px solid var(--line); border-radius: 26px; background: #fff; box-shadow: var(--shadow); animation: modal-in .25s ease; }
.modal { max-height: min(88dvh, 760px); overflow: auto; }
.form-control { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 14px; outline: none; color: var(--text); background: #f8fafc; font: inherit; resize: vertical; }
.form-control:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(32,220,197,.1); }
.auth-form { display: grid; gap: 12px; }
.auth-form label { display: grid; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 700; }
.auth-form .primary-btn { margin-top: 2px; }
.google-signin { display: flex; justify-content: center; min-height: 44px; margin: 15px 0 10px; overflow: hidden; }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 8px 0 12px; color: var(--muted); font-size: 10px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px 14px; margin-top: 14px; }
.text-btn { padding: 5px; border: 0; color: var(--teal-soft); background: transparent; cursor: pointer; font-size: 11px; }
.shop-grid { display: grid; gap: 9px; margin-top: 16px; }
.shop-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 17px; background: #f8fafc; }
.shop-item > span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: var(--gold); background: rgba(255,200,87,.1); font-size: 21px; }
.shop-item h3 { margin: 0; }
.shop-item small { display: block; color: var(--muted); font-size: 10px; }
.shop-item strong { display: block; margin-top: 4px; color: var(--gold); font-size: 11px; }

body[data-theme="aurora"] { --teal:#8c59ce; --teal-soft:#7540bb; --gold:#2aa7bd; background:radial-gradient(circle at 18% 0%,rgba(180,124,255,.2),transparent 35%),linear-gradient(180deg,#fffaff,#f7f3ff 60%,#f1f7fb); }
body[data-theme="gold"] { --teal:#b18318; --teal-soft:#89630c; --gold:#d3a426; background:radial-gradient(circle at 85% 0%,rgba(245,209,109,.22),transparent 35%),linear-gradient(180deg,#fffdf5,#faf8f0 58%,#f5f6f7); }

@media (max-width: 520px) {
  .topbar { padding-inline: 8px; }
  .brand { gap: 6px; }
  .brand small { display: none; }
  .brand img { width: 34px; height: 34px; }
  .brand strong { font-size: 12px; }
  .brand-copy b { gap: 3px; font-size: 9px; }
  .brand-copy b em { font-size: 7px; }
  .top-actions { gap: 3px; }
  .icon-button, .online-pill { height: 36px; border-radius: 12px; }
  .profile-button { border-radius: 50%; }
  .icon-button { width: 36px; }
  .online-pill { min-width: 40px; padding: 0 7px; }
  .shop-banner { grid-template-columns: auto 1fr; }
  .shop-banner button { grid-column: 1 / -1; }
  .shop-item { grid-template-columns: auto 1fr; }
  .shop-item button { grid-column: 1 / -1; width: 100%; }
}
@keyframes modal-in { from { transform: translateY(20px); opacity: 0; } }
.modal-actions { display: flex; gap: 9px; margin-top: 18px; }
.modal-actions button { flex: 1; }
.daily-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; margin: 16px 0; }
.daily-day { padding: 10px 4px; border: 1px solid var(--line); border-radius: 13px; text-align: center; background: rgba(255,255,255,.035); }
.daily-day strong { display: block; color: var(--gold); font-size: 11px; }
.daily-day small { color: var(--muted); font-size: 8px; }
.daily-day.current { border-color: var(--teal); background: rgba(32,220,197,.1); }
.daily-day.done { opacity: .45; }
.onboarding-steps { display: grid; gap: 9px; margin: 16px 0; }
.onboarding-step { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 11px; border-radius: 15px; background: rgba(255,255,255,.04); }
.onboarding-step span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #07111f; background: var(--teal); font-weight: 900; }

.earn-layout { display: grid; gap: 14px; }
.tap-zone { min-height: 330px; padding: 34px 18px 25px; border: 1px solid rgba(20,159,146,.2); border-radius: 26px; outline: none; cursor: pointer; background: linear-gradient(155deg,rgba(255,255,255,.95),rgba(224,248,244,.75)); box-shadow: var(--shadow); user-select: none; }
.tap-zone:focus-visible { box-shadow: 0 0 0 4px rgba(20,159,146,.18), var(--shadow); }
.tap-zone.pressed { transform: scale(.995); }
.tap-pulse { position: relative; display: grid; place-items: center; width: 150px; height: 150px; border-radius: 50%; color: var(--teal); background: #fff; box-shadow: 0 0 0 18px rgba(20,159,146,.06),0 14px 35px rgba(20,159,146,.16); animation: tap-breathe 1.8s ease-in-out infinite; }
.tap-pulse::before, .tap-pulse::after { content: ''; position: absolute; inset: -20px; border: 2px solid rgba(20,159,146,.18); border-radius: 50%; animation: tap-ring 1.8s ease-out infinite; }
.tap-pulse::after { animation-delay: .9s; }
.tap-hand { font-size: 72px; line-height: 1; filter: grayscale(1); }
.tap-copy { position: relative; bottom: auto; margin-top: 35px; font-size: 13px; }
.tap-copy strong { font-size: 18px; }
@keyframes tap-breathe { 50% { transform: translateY(-5px) scale(1.03); } }
@keyframes tap-ring { to { opacity: 0; transform: scale(1.35); } }
.wealth-chart { padding: 16px 18px 13px; color: var(--green); background: #fff; }
.wealth-chart.is-negative { color: var(--danger); }
.chart-copy { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.chart-copy span, .wealth-chart > small { display: block; color: var(--muted); font-size: 10px; }
.chart-copy strong { display: block; margin-top: 3px; color: var(--text); font-size: 17px; }
.chart-copy b { color: currentColor; font-size: 10px; text-align: right; }
.wealth-chart svg { width: 100%; height: 74px; margin: 8px 0 3px; overflow: visible; }
.wealth-chart polyline { fill: none; stroke: currentColor; stroke-width: 2.2; vector-effect: non-scaling-stroke; filter: drop-shadow(0 4px 7px currentColor); transition: .35s ease; }
.cash-pack-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 17px 0; }
.cash-pack { padding: 13px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg,#fff,#f2f7fa); }
.cash-pack { position: relative; padding-top: 18px; }
.cash-pack.featured { border-color: rgba(20,159,146,.38); background: linear-gradient(145deg,#fff,#eaf9f6); box-shadow: 0 12px 30px rgba(20,159,146,.11); }
.pack-badge { position: absolute; top: -1px; right: 10px; padding: 3px 8px; border-radius: 0 0 8px 8px; color: #fff; background: var(--teal); font-size: 7px; letter-spacing:.05em; text-transform: uppercase; }
.pack-badge.subtle { color: #7d590a; background: rgba(233,170,41,.23); }
.cash-pack > div:first-child { display: grid; grid-template-columns: auto 1fr; gap: 0 8px; align-items: center; }
.cash-pack > div:first-child span { grid-row: 1 / 3; color: var(--gold); font-size: 24px; }
.cash-pack strong { font-size: 15px; }
.cash-pack small { color: var(--muted); }
.payment-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 11px; }
.payment-actions button { padding: 9px 5px; border-radius: 11px; font-size: 10px; }
.pix-btn { border: 1px solid rgba(20,159,146,.28); color: var(--teal-soft); background: rgba(20,159,146,.1); font-weight: 900; cursor: pointer; }
.shop-divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 10px; }
.shop-divider::before, .shop-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.confirm-modal { text-align: center; }
.confirm-icon { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 16px; border-radius: 22px; color: var(--teal); background: linear-gradient(145deg,rgba(20,159,146,.15),rgba(78,126,232,.10)); box-shadow: inset 0 0 0 1px rgba(20,159,146,.11); font-size: 29px; font-weight: 900; }
.confirm-icon.danger { color: var(--danger); background: rgba(255,99,120,.1); }
.confirm-modal h2 { margin-bottom: 8px; font-size: 23px; letter-spacing: -.035em; }
.confirm-modal > .muted { margin-inline: auto; max-width: 390px; }
.confirm-detail { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; margin: 18px 0 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: #f5f8fa; text-align: left; }
.confirm-detail span { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.confirm-detail strong { color: var(--teal-soft); font-size: 18px; }
.confirm-detail small { grid-column: 1 / -1; color: var(--muted); }
.pix-qr { display: grid; place-items: center; min-height: 224px; margin: 16px auto; }
.pix-qr img { width: 220px; height: 220px; padding: 8px; border: 1px solid var(--line); border-radius: 18px; background: #fff; image-rendering: pixelated; }
.pix-label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 10px; font-weight: 800; }
.pix-copy { display: grid; grid-template-columns: 1fr auto; gap: 7px; }
.pix-copy input { min-width: 0; font: 11px/1.3 ui-monospace, monospace; }
.pix-copy button { padding: 0 14px; border-radius: 13px; }
.pix-status { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 13px; color: var(--teal-soft); font-size: 11px; font-weight: 800; }
.pix-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(20,159,146,.35); animation: status-pulse 1.3s infinite; }
@keyframes status-pulse { 70% { box-shadow: 0 0 0 8px rgba(20,159,146,0); } }

.flash-offer { position: relative; isolation: isolate; margin: -22px; padding: 22px; overflow: hidden; border-radius: 26px; background: linear-gradient(155deg,#fff8dd 0%,#fff 42%,#ecfbf8 100%); text-align: center; }
.flash-rays { position: absolute; z-index: -1; inset: -45%; opacity: .22; background: repeating-conic-gradient(from 10deg,transparent 0 10deg,#ffc857 10deg 18deg,transparent 18deg 35deg); animation: flash-spin 22s linear infinite; }
.flash-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; text-align: left; }
.flash-icon { display: grid; place-items: center; width: 53px; height: 53px; border-radius: 18px; color: #654400; background: linear-gradient(145deg,#ffe48a,#ffc857); box-shadow: 0 10px 25px rgba(233,170,41,.23); font-size: 26px; }
.flash-top p { margin: 0; color: #8f6713; font-size: 8px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.flash-top strong { display: block; color: #25364a; font-size: 18px; letter-spacing: .08em; }
.flash-top > b { min-width: 67px; padding: 8px 9px; border-radius: 12px; color: #fff; background: #e45d6f; box-shadow: 0 8px 20px rgba(228,93,111,.22); font: 800 13px/1 Manrope,sans-serif; text-align: center; animation: clock-pulse 1s ease-in-out infinite alternate; }
.flash-copy { padding: 24px 5px 14px; }
.flash-copy > span { display: inline-block; padding: 5px 9px; border-radius: 99px; color: #fff; background: linear-gradient(120deg,#e45d6f,#e9aa29); font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.flash-copy h2 { margin: 9px auto 6px; max-width: 390px; font-size: clamp(24px,7vw,34px); line-height: 1.04; letter-spacing: -.055em; }
.flash-copy p { max-width: 400px; margin: 0 auto; color: var(--muted); font-size: 11px; }
.flash-deal { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 11px; padding: 15px; border: 1px solid rgba(233,170,41,.25); border-radius: 19px; background: rgba(255,255,255,.78); box-shadow: 0 12px 30px rgba(42,68,96,.07); }
.flash-deal div { display: grid; gap: 2px; }
.flash-deal small { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.flash-deal del { color: #9aa7b5; font-size: 16px; font-weight: 800; }
.flash-deal > span { color: var(--gold); font-size: 21px; font-weight: 900; }
.flash-deal strong { color: var(--teal-soft); font-size: 20px; }
.flash-perks { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; margin: 10px 0; }
.flash-perks span { padding: 6px 9px; border-radius: 99px; color: #11786f; background: rgba(20,159,146,.11); font-size: 9px; font-weight: 800; }
.flash-price { display: flex; align-items: baseline; justify-content: center; gap: 7px; margin: 13px 0; }
.flash-price span { color: var(--muted); font-size: 10px; }
.flash-price strong { font-size: 26px; letter-spacing: -.04em; }
.flash-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.flash-actions:has(button:only-child) { grid-template-columns: 1fr; }
.flash-actions button { min-height: 44px; border-radius: 14px; }
.flash-dismiss { margin-top: 9px; padding: 6px 12px; border: 0; color: var(--muted); background: transparent; font-size: 10px; cursor: pointer; }
.flash-fineprint { display: block; max-width: 390px; margin: 3px auto 0; color: #9aa7b5; font-size: 7px; }
@keyframes flash-spin { to { transform: rotate(360deg); } }
@keyframes clock-pulse { to { transform: scale(1.035); } }

@media (prefers-reduced-motion: reduce) { .flash-rays,.flash-top>b { animation: none; } }

@media (min-width: 680px) {
  .screen { padding-inline: 24px; }
  .earn-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 14px; align-items: stretch; }
  .tap-zone { min-height: 360px; grid-column: 1 / -1; }
  .upgrade-card { grid-column: 1 / -1; }
  .balance-card { min-height: 180px; }
  .collection-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .business-list, .market-list { grid-template-columns: 1fr 1fr; }
  .business-card, .market-card { min-height: 128px; }
}

@media (hover:hover) {
  .card:not(.balance-card):hover { border-color: rgba(20,159,146,.23); }
  .business-card:hover,.market-card:hover,.asset-card:hover { transform: translateY(-2px); border-color: rgba(20,159,146,.24); box-shadow: 0 14px 34px rgba(42,68,96,.1); }
  .primary-btn:hover,.secondary-btn:hover,.buy-btn:hover,.pix-btn:hover { box-shadow: 0 8px 20px rgba(20,159,146,.15); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
