/* ─────────────────────────────────────────────────────────────────────────
   Surface CSS — auto-classified from legacy components/layout/app CSS files.
   Edit this file. Legacy files (*.style.css) are preserved but not loaded.
   Load order: tokens.css → base.css → surface.shared.css → surface.<name>.css
   ───────────────────────────────────────────────────────────────────────── */

.page-hero {
  position: relative;
  min-height: 100svh;
  height: 100svh;
  padding: calc(var(--nav-h) + clamp(10px, 2vw, 18px)) 0 clamp(56px, 6vw, 80px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 100%);
  overflow: clip;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 190px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.08) 52%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.page-hero__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(48px);
}

.page-hero__glow--one {
  top: -120px;
  right: -60px;
  width: 420px;
  height: 420px;
  background: rgba(31, 143, 95, 0.20);
}

.page-hero__glow--two {
  left: -80px;
  top: 140px;
  width: 360px;
  height: 360px;
  background: rgba(42, 172, 118, 0.14);
}

.page-hero__copy {
  position: relative;
  z-index: 1;
}

.page-hero__stack {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: calc(100svh - var(--nav-h) - clamp(72px, 8vw, 98px));
  transform: translateY(-6vh);
  padding-top: 0;
  gap: clamp(16px, 3vw, 24px);
}

.page-hero__copy--center {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  justify-items: center;
  align-content: center;
  grid-template-columns: 1fr;
  grid-template-areas:
    'eyebrow'
    'title'
    'body'
    'actions';
  text-align: center;
}

.page-hero__eyebrow {
  grid-area: eyebrow;
}

.page-hero__title {
  display: grid;
  gap: 6px;
  grid-area: title;
  width: min(100%, 760px);
  min-height: 3.35em;
  margin: 16px 0 0;
  font-size: clamp(2.15rem, 3.85vw, 3.35rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.01;
  align-content: start;
  justify-items: center;
}

.page-hero__title-line {
  display: block;
  width: 100%;
  text-wrap: balance;
}

.page-hero__title-line--1 {
  color: var(--text-strong);
}

.page-hero__title-line--2 {
  color: var(--accent-blue);
}

.page-hero__title-line--3,
.page-hero__title-accent {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-hero__body {
  grid-area: body;
  display: grid;
  align-content: start;
  max-width: 56ch;
  min-height: 6.9em;
  margin: 14px 0 0;
  color: var(--text-reading);
  font-size: clamp(1rem, 1.06vw, 1.08rem);
  font-weight: 460;
  line-height: 1.72;
}

.page-hero__copy--center .page-hero__body {
  margin-left: auto;
  margin-right: auto;
}

.page-hero__actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: 50px;
  gap: 12px;
  margin: 18px 0 0;
}

.page-hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 4px;
  color: var(--text-muted);
  text-decoration: none;
}

.page-hero__scroll-text {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-hero__scroll-arrow {
  font-size: 1rem;
  line-height: 1;
}

.page-hero__copy--center .page-hero__actions {
  justify-content: center;
}

.page--stickerclick .page-hero {
  background:
    radial-gradient(circle at 18% 14%, rgba(56, 199, 147, 0.22), transparent 36%),
    radial-gradient(circle at 82% 20%, rgba(42, 172, 118, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(7, 21, 16, 0.96) 0%, rgba(7, 21, 16, 0.88) 100%);
}

.page--stickerclick .page-hero__title {
  max-width: 900px;
}

.page--stickerclick .page-hero__scroll-text {
  color: rgba(255, 255, 255, 0.78);
}

.page-hero--compact .page-hero__stack {
  min-height: unset;
}

.budtender-profile {
  max-width: 760px;
  margin: 0 auto;
  padding: calc(var(--nav-h, 64px) + 3rem) 1.5rem 4rem;
}

.bt-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.bt-loading__text {
  color: rgba(255,255,255,0.4);
  font-size: 0.9rem;
}

.bt-not-found {
  text-align: center;
  padding: 4rem 0;
  color: rgba(255,255,255,0.5);
}

@media (max-width: 480px) {
  .budtender-profile {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .bt-profile-avatar {
    width: 52px;
    height: 52px;
    font-size: 1rem;
  }
}

.sticker-capture {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 3vw, 30px);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.sticker-capture__head {
  display: grid;
  gap: 8px;
}

.sticker-capture__options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.sticker-capture__option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-strong);
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.25;
  cursor: pointer;
  transition: transform var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}

.sticker-capture__option:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 143, 95, 0.4);
  background: rgba(31, 143, 95, 0.12);
}

.sticker-capture__option-emoji {
  font-size: 1rem;
  line-height: 1;
}

.sticker-capture__custom {
  display: grid;
  gap: 8px;
}

.sticker-capture__label {
  color: var(--text-strong);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sticker-capture__input {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(7, 21, 16, 0.3);
  color: var(--text-strong);
  padding: 0 14px;
}

.sticker-capture__input:focus {
  outline: none;
  border-color: rgba(42, 172, 118, 0.5);
  box-shadow: 0 0 0 3px rgba(31, 143, 95, 0.14);
}

.sticker-capture__hint,
.sticker-capture__status {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.sticker-capture__status {
  min-height: 1.3em;
  color: var(--accent-blue);
  font-weight: 600;
}

.sticker-capture__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.user-btn--sm { padding: 6px 12px; font-size: 0.78rem; }

.notif-list {
  display: flex;
  flex-direction: column;
}

.stashbank-balance-card {
  background: linear-gradient(135deg, rgba(31, 143, 95, 0.08) 0%, rgba(42, 184, 119, 0.04) 100%);
  border: 1px solid rgba(31, 143, 95, 0.15);
  border-radius: 16px;
  padding: 28px 32px;
  text-align: center;
}

.stashbank-balance-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #1a6e47;
  margin-bottom: 8px;
}

.stashbank-balance-value {
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--text-strong);
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.sb-coin {
  display: inline-block;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #ffe066 0%, #f5c400 45%, #c98f00 100%);
  box-shadow: 0 2px 4px rgba(180,120,0,0.35), inset 0 1px 2px rgba(255,240,120,0.6);
  flex-shrink: 0;
}

.stashbank-balance-sub {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.stashbank-balance-sub strong { color: var(--text-body); font-weight: 700; }

.stashbank-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 10px;
}

.stashbank-metric-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.stashbank-metric {
  padding: 10px 8px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.15));
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2px;
}

.stashbank-metric-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-strong);
  line-height: 1.1;
}

.stashbank-metric-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  line-height: 1.2;
}

.stashbank-tier-card {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(31,143,95,0.12);
  border-radius: 16px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stashbank-tier-badge {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
}

.stashbank-tier-progress-bar {
  background: var(--accent-tint-md);
  border-radius: 4px;
  height: 6px;
  overflow: hidden;
}

.stashbank-tier-progress-fill {
  height: 100%;
  background: var(--grad-brand);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.stashbank-tier-progress-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.stashbank-tier-streak {
  font-size: 0.82rem;
  color: var(--text-body);
  margin-top: 4px;
}

.stashbank-earn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.stashbank-earn-loading { font-size: 0.82rem; color: var(--text-muted); }

.stashbank-stake-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}

.user-view--discover {
  width: 100%;
}

.discover-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 0 18px;
}

.discover-search-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.discover-search-input {
  min-width: 80px;
}

.discover-search-bar {
  padding: 14px 18px 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.user-view--discover .sb-subtabs {
  margin: 12px 18px 0;
}

.discover-result-bar {
  padding: 6px 18px 0;
}

.discover-zip-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.discover-zip-icon {
  flex-shrink: 0;
  color: var(--text-muted);
  margin-left: 2px;
}

.discover-search-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  border-radius: 14px;
  padding: 0 14px;
  transition: border-color 0.15s;
  min-height: 52px;
}

.discover-search-input-row:focus-within {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(31,143,95,0.08);
}

.discover-search-icon {
  flex-shrink: 0;
  color: var(--text-muted);
}

.discover-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1rem;
  color: var(--text-body);
  padding: 14px 0;
  min-width: 0;
}

.discover-search-input::placeholder { color: var(--text-muted); }

.discover-search-clear-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(25,31,42,0.06);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0;
  transition: background 0.12s, color 0.12s;
}

.discover-search-clear-btn:hover {
  background: rgba(25,31,42,0.12);
  color: var(--text-body);
}

.discover-result-count {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.discover-results {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.discover-zip-input {
  flex: 1;
  min-width: 80px;
  max-width: 110px;
  height: 44px;
  padding: 0 12px;
  border: 1.5px solid var(--border-subtle);
  border-radius: 10px;
  font-size: 0.95rem;
  background: var(--bg-surface);
  color: var(--text-body);
  transition: border-color 0.15s;
}

.discover-zip-input:focus { outline: none; border-color: var(--accent-1); box-shadow: 0 0 0 3px rgba(31,143,95,0.08); }

.discover-radius-select {
  height: 44px;
  padding: 0 10px;
  border: 1.5px solid var(--border-subtle);
  border-radius: 10px;
  font-size: 0.9rem;
  background: var(--bg-surface);
  color: var(--text-body);
  cursor: pointer;
  white-space: nowrap;
}

.discover-search-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--accent-1);
  border: none;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: filter 0.14s;
}

.discover-search-submit-btn:hover { filter: brightness(1.08); }

.discover-search-submit-btn:active { filter: brightness(0.93); }

.profile-view-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.profile-view-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  border-bottom: 1px solid rgba(31, 143, 95, 0.08);
  background: var(--bg-surface, #fff);
  gap: 12px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.profile-view-body {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 40px;
}

.sb-stakes-body {
  margin-top: 12px;
}

.user-view--referrals { display: flex; flex-direction: column; gap: 24px; padding: 0 0 40px; }

.ref-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 20px 20px 18px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.ref-hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-1, #1f8f5f);
  margin: 0;
}

.ref-hero-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 30ch;
  line-height: 1.5;
}

.ref-qr-wrap { width: 220px; margin: 0 auto; }

.ref-qr-img { width: 220px; height: 220px; border-radius: 12px; display: block; background: #e8e8e8; }

.ref-share-row { display: flex; gap: 8px; align-items: center; width: 100%; max-width: 380px; }

.ref-url-input { flex: 1; min-width: 0; font-size: 0.8rem; padding: 8px 12px; border: 1px solid var(--border-subtle); border-radius: 10px; background: var(--bg-base); color: var(--text-body); }

.ref-milestone-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 18px 20px;
}

.ref-milestone-icon { font-size: 1.6rem; line-height: 1; flex-shrink: 0; margin-top: 2px; }

.ref-milestone-body { flex: 1; }

.ref-milestone-title { font-size: 0.9rem; font-weight: 700; color: var(--text-strong); margin-bottom: 4px; }

.ref-milestone-desc { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 12px; line-height: 1.5; }

.ref-milestone-bar { height: 7px; background: var(--bg-base); border-radius: 4px; overflow: hidden; }

.ref-milestone-fill { height: 100%; background: var(--accent-1, #1f8f5f); border-radius: 4px; transition: width .4s ease; }

.ref-milestone-label { font-size: 0.73rem; color: var(--text-muted); margin-top: 6px; }

.ref-how-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 20px;
}

.ref-how-title { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin: 0 0 16px; }

.ref-how-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }

.ref-how-step { display: flex; gap: 14px; align-items: flex-start; }

.ref-how-num { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-1, #1f8f5f); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.85rem; }

.ref-how-body { flex: 1; padding-top: 4px; }

.ref-how-body strong { font-size: 0.9rem; color: var(--text-strong); display: block; margin-bottom: 3px; }

.ref-how-body p { font-size: 0.82rem; color: var(--text-muted); margin: 0; line-height: 1.5; }

.ref-ledger-list { display: flex; flex-direction: column; }

.ref-ledger-status { font-size: 0.88rem; color: var(--text-muted); padding: 24px 16px; text-align: center; }

.stashbank-metric--accent { background: var(--accent-tint-sm, rgba(31,143,95,0.08)); }

.user-view--friends { display: flex; flex-direction: column; gap: 0; }

.friends-status { font-size: 0.88rem; color: var(--text-muted); padding: 32px 0; text-align: center; }

.friends-list { display: flex; flex-direction: column; gap: 2px; padding-top: 8px; }

.tab-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 14px; height: 14px; padding: 0 3px; border-radius: 7px; background: #e74c3c; color: #fff; font-size: 0.58rem; font-weight: 700; margin-left: 4px; vertical-align: middle; }

.zen-page-hero {
  position: relative;
  text-align: center;
  padding: 32px 20px 24px;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(31,143,95,0.08) 0%, rgba(10,60,40,0.04) 100%);
  border: 1px solid rgba(31,143,95,0.14);
  margin-bottom: 20px;
}

.zen-page-hero__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(31,143,95,0.15) 0%, transparent 65%);
  pointer-events: none;
}

.zen-page-hero__emoji {
  font-size: 2.8rem;
  line-height: 1;
  margin-bottom: 12px;
}

.zen-page-hero__title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-strong);
  margin-bottom: 8px;
}

.zen-page-hero__sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 320px;
  margin: 0 auto;
}

.zen-page-section {
  margin-bottom: 20px;
}

.zen-page-section__title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 4px;
  margin-bottom: 10px;
}

.zen-page-how {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.zen-page-how__step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}

.zen-page-how__num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(31,143,95,0.1);
  color: #1f8f5f;
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.zen-page-how__text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-strong);
}

.zen-page-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.zen-page-feature {
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.zen-page-feature__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.zen-page-feature__label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-strong);
}

.zen-page-feature__desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
}

@media (orientation: landscape) and (max-height: 600px) {
  .app-root { display: none !important; }
}

.zen-orient-prefs { display: flex; flex-direction: column; gap: 12px; }

.zen-orient-row { display: flex; flex-direction: column; gap: 5px; }

.zen-orient-label {
  font-size: 0.72rem; font-weight: 600;
  color: var(--text-muted, rgba(255,255,255,0.45));
  letter-spacing: 0.04em;
}

.zen-orient-select {
  background: var(--bg-surface, #111);
  border: 1px solid var(--border-subtle, rgba(255,255,255,0.1));
  border-radius: 8px;
  color: var(--text-primary, #fff);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 9px 12px;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  cursor: pointer;
}

.app-root {
  display: flex;
  min-height: 100dvh;
  min-height: 100vh;
  background: var(--bg-base);
}

.user-view--stashbank {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-bottom: 8px;
}

.user-view--referrals {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sb-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 480px) {
  .sb-hero {
    grid-template-columns: 1fr;
  }
}

.sb-section {
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: 14px;
  overflow: hidden;
}

.sb-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--line-subtle, rgba(25,31,42,0.07));
}

.sb-section__title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted, #48505d);
  margin: 0;
}

.sb-section__count {
  font-size: 0.75rem;
  color: var(--text-soft, #8a94a1);
  font-weight: 500;
}

.sb-section .stashbank-earn-grid,
.sb-section .stashbank-stake-form,
.sb-section .stashbank-gift-form,
.sb-section .stashbank-following-grid,
.sb-section [data-stashbank-stakes-body],
.sb-section [data-stashbank-leaderboard-body] {
  padding: 14px 16px;
}

.sb-ledger {
  display: flex;
  flex-direction: column;
}

.sb-subtab-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sb-subtabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--accent-tint-xs, rgba(31,143,95,0.05));
  border-radius: 14px;
  flex-shrink: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-bottom: 4px;
}

.sb-subtabs::-webkit-scrollbar { display: none; }

.sb-subtab {
  flex: 1;
  text-align: center;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  line-height: 1.3;
}

.sb-subtab:hover:not(.sb-subtab--active) {
  color: var(--text-body);
  background: rgba(31,143,95,0.05);
}

.sb-subtab--active {
  background: #fff;
  color: #1f8f5f;
  font-weight: 700;
  box-shadow: 0 1px 6px rgba(0,0,0,0.10);
}

.sb-history-bar {
  margin-bottom: 12px;
}

.sb-history-filters {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--accent-tint-xs, rgba(31,143,95,0.05));
  border-radius: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.sb-history-filters::-webkit-scrollbar { display: none; }

.sb-filter-btn {
  flex: 1;
  text-align: center;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  line-height: 1.3;
}

.sb-filter-btn:hover:not(.sb-filter-btn--active) {
  color: var(--text-body);
  background: rgba(31,143,95,0.05);
}

.sb-filter-btn--active {
  background: #fff;
  color: #1f8f5f;
  font-weight: 700;
  box-shadow: 0 1px 6px rgba(0,0,0,0.10);
}

.sb-ledger-detail {
  background: var(--bg-surface);
  border: 1.5px solid var(--accent-tint-lg, rgba(31,143,95,0.20));
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  margin-top: 4px;
}

.sb-ledger-detail__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 10px;
  border-bottom: 1px solid var(--line-subtle);
  background: var(--accent-tint-xs, rgba(31,143,95,0.04));
}

.sb-ledger-detail__title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-strong);
}

.sb-ledger-detail__close {
  font-size: 1.2rem;
  line-height: 1;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 2px 6px;
  border-radius: 4px;
}

.sb-ledger-detail__close:hover { background: var(--accent-tint-sm); }

.sb-ledger-detail__body {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sb-loyalty-list {
  display: flex;
  flex-direction: column;
}

.sb-help-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sb-help-body p {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.65;
  margin: 0;
}

.sb-help-body strong {
  color: var(--text-strong);
  font-weight: 700;
}

.sb-help-list {
  margin: 0;
  padding: 0 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sb-help-list li {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.6;
}

.sb-faq {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sb-faq-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--line-subtle, rgba(25,31,42,0.07));
}

.sb-faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sb-faq-q {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 6px;
}

.sb-faq-a {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.sb-tier-table {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 4px;
}

.sb-tier-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-subtle, rgba(25,31,42,0.07));
}

.sb-tier-row:last-child { border-bottom: none; }

.sb-tier-name {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  min-width: 68px;
  flex-shrink: 0;
}

.sb-tier-name--bronze { color: #b87333; }

.sb-tier-name--silver { color: #8a9bae; }

.sb-tier-name--gold { color: #c98f00; }

.sb-tier-name--platinum { color: #5b7fa6; }

.sb-tier-range {
  font-size: 0.8rem;
  color: var(--text-muted);
  flex: 1;
}

.sb-tier-perk {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-1, #1f8f5f);
  text-align: right;
  flex-shrink: 0;
}

.user-view--feed {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  width: 100%;
}

.feed-tab-panel {
  padding: 0;
  gap: 14px;
}

.feed-lane-coming {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
}

.feed-lane-coming__label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 8px;
}

.feed-lane-coming__sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 280px;
  margin: 0 auto;
}

.feed-content {
  flex: 1;
  overflow-y: auto;
  padding: 0 0 8px;
}

.feed-content {
  flex: 1;
  overflow-y: auto;
  padding: 0 0 8px;
}

.feed-skeleton-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feed-skel-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feed-skel-head {
  height: 16px;
  width: 40%;
  border-radius: 8px;
  background: rgba(25,31,42,0.07);
  animation: feed-skel-pulse 1.4s ease-in-out infinite;
  margin-bottom: 10px;
}

.feed-skel-card {
  height: 76px;
  border-radius: 12px;
  background: rgba(25,31,42,0.05);
  animation: feed-skel-pulse 1.4s ease-in-out infinite;
}

.feed-skel-card:nth-child(2) { animation-delay: 0.12s; }

.feed-skel-card:nth-child(3) { animation-delay: 0.24s; }

.feed-skel-card:nth-child(4) { animation-delay: 0.36s; }

.app-root--auth {
  display: block;
  min-height: 100dvh;
  background: var(--bg-base);
}

.app-root--auth .page--login ~ .app-auth-header__login-link,
.app-root--auth[data-page-key="login"] .app-auth-header__login-link {
  display: none;
}

.star-rating-input {
  display: flex;
  gap: 2px;
  margin-top: 4px;
}

.star-btn {
  font-size: 1.75rem;
  color: #ddd;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 3px;
  line-height: 1;
  transition: color 0.1s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}

.star-btn:hover {
  transform: scale(1.12);
}

.review-incentive-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--grad-soft);
  border: 1px solid var(--accent-tint-md);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 14px;
}

.review-incentive-strip__icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.review-incentive-strip__text {
  font-size: var(--fs-xs, 0.78rem);
  font-weight: var(--fw-semi, 600);
  color: var(--accent-blue);
}

.review-write-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 8px;
}

.review-write-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.review-write-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.review-write-card__hint {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-1);
  opacity: 0.75;
}

.user-view--friends .friends-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 4px;
}

.user-view--friends .friend-card,
.user-view--friends .fr-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--t-fast), box-shadow var(--t-fast);
}

.user-view--friends .friend-card:last-child,
.user-view--friends .fr-card:last-child {
  border-bottom: 1px solid var(--border-subtle);
}

.user-view--friends .friend-card:hover,
.user-view--friends .fr-card:hover {
  background: var(--bg-elevated);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.user-view--friends .friend-card__avatar {
  width: 46px;
  height: 46px;
  border: 2px solid rgba(31,143,95,0.2);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.user-page-wrap {
  padding: 0 0 env(safe-area-inset-bottom, 0px);
  max-width: 600px;
}

.user-page-header {
  padding: 20px 18px 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.user-page-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--text-primary);
}

.user-page-intro {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.settings-sections {
  padding: 8px 0 40px;
}

.settings-section {
  padding: 6px 0 4px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 4px;
}

.settings-section + .settings-section {
  margin-top: 4px;
}

.settings-section__title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 10px 18px 6px;
}

.settings-section--danger .settings-section__title {
  color: var(--text-danger, #e05252);
}

.settings-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  min-height: 46px;
}

.settings-row__label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
  flex: 0 0 auto;
  min-width: 90px;
}

.settings-row__value {
  flex: 1;
  font-size: 0.85rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.settings-row__value--muted {
  color: var(--text-muted);
  font-size: 0.78rem;
  white-space: normal;
}

.settings-row__btn {
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-1);
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--t-fast), border-color var(--t-fast);
}

.settings-row__btn:hover {
  background: rgba(255,255,255,0.06);
}

.settings-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 18px;
}

.settings-toggle-row__info {
  flex: 1;
  min-width: 0;
}

.settings-toggle-row__label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
}

.settings-toggle-row__sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.settings-toggle {
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
}

.settings-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.settings-toggle__track {
  display: block;
  width: 44px;
  height: 26px;
  border-radius: 13px;
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  position: relative;
  transition: background var(--t-fast);
}

.settings-toggle__track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: transform 0.2s, background 0.2s;
}

.settings-toggle input:checked + .settings-toggle__track {
  background: var(--accent-1);
  border-color: var(--accent-1);
}

.settings-toggle input:checked + .settings-toggle__track::after {
  transform: translateX(18px);
  background: #fff;
}

.prefs-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 18px 14px;
}

.pref-chip {
  padding: 7px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-1);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}

@media (min-width: 1100px) {
  .user-view--stashbank {
    max-width: 960px;
  }
}

.zen-page-feature__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.zen-page-feature__icon[data-zen-mode="chill"] { background: rgba(31,143,95,0.12);  color: #1f8f5f; }

.zen-page-feature__icon[data-zen-mode="work"] { background: rgba(26,92,204,0.12);  color: #4a9eff; }

.zen-page-feature__icon[data-zen-mode="pumped"] { background: rgba(194,65,12,0.12);  color: #fb923c; }

.zen-page-feature__icon[data-zen-mode="party"] { background: rgba(153,27,27,0.12);  color: #f87171; }

.zen-page-feature__icon[data-zen-mode="drive"] { background: rgba(180,83,9,0.12);   color: #fbbf24; }

.zen-page-feature__icon[data-zen-mode="sleep"] { background: rgba(67,56,202,0.12);  color: #a5b4fc; }

.zen-page-feature__icon[data-zen-mode="play"] { background: rgba(77,124,15,0.12);  color: #bef264; }

.sb-section-link-nudge { padding: 12px 0 4px; }

.pref-save-row { padding: 16px 0 8px; text-align: center; }

.user-empty--spaced { padding: 12px 0; }

.link--inherit { color: inherit; }
