/* SkinQuest v13.1.0 */

:root {
  --bg: #0b0f16;
  --page: #0f1520;
  --surface: #141b28;
  --surface-2: #192232;
  --surface-3: #202b3e;
  --text: #eef2f8;
  --muted: #9aa8ba;
  --muted-2: #6f7d90;
  --border: rgba(148, 163, 184, 0.18);
  --border-strong: rgba(148, 163, 184, 0.28);
  --brand: #e8b34d;
  --brand-2: #f6cf72;
  --accent: #6ea8ff;
  --green: #35c98b;
  --red: #f46f7d;
  --yellow: #f4c95d;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  --radius: 16px;
  --radius-lg: 22px;
}

/* v13 account, survey and install components */
.auth-consent { display:flex; gap:.65rem; align-items:flex-start; font-size:.82rem; line-height:1.45; color:var(--muted); }
.auth-consent input { width:auto; margin-top:.2rem; flex:0 0 auto; }
.auth-consent a { color:var(--accent); }
.auth-text-button { border:0; background:none; color:var(--accent); cursor:pointer; padding:.2rem; font:inherit; text-align:center; }
.password-recovery-form { width:min(440px, 100%); margin:1rem auto 0; text-align:left; }
.password-recovery-form label { display:grid; gap:.35rem; }
.recommended-surveys-panel, .fair-use-panel { margin-top:1.25rem; }
.recommended-surveys-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; }
.survey-result-card { display:flex; flex-direction:column; gap:.8rem; min-height:250px; padding:1rem; border:1px solid var(--border); border-radius:18px; background:rgba(255,255,255,.025); }
.survey-result-card h3 { margin:.35rem 0 0; }
.survey-result-card p { color:var(--muted); flex:1; }
.survey-result-meta { display:flex; justify-content:space-between; gap:.75rem; font-weight:700; }
.provider-badge, .provider-status { display:inline-flex; width:max-content; padding:.3rem .55rem; border-radius:999px; background:rgba(120,220,255,.1); color:var(--accent); font-size:.74rem; font-weight:800; }
.provider-status { background:rgba(255,255,255,.06); color:var(--muted); }
.account-data-actions { display:flex; flex-wrap:wrap; gap:.75rem; margin:1rem 0; }
.button-danger { background:#9f2d37; color:#fff; border:1px solid #d34b58; }
.button-danger:hover { background:#b73542; }
.install-hero { text-align:center; }
.install-hero .button { margin:1rem auto 0; }
.install-layout { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; margin:1.25rem 0; }
.install-card ol { padding-left:1.25rem; color:var(--muted); line-height:1.8; }
.install-card strong { color:var(--text); }
.install-qr-card { grid-column:1/-1; display:flex; align-items:center; justify-content:center; gap:1.5rem; }
.install-qr-card img { width:180px; max-width:42vw; background:#fff; border-radius:16px; padding:.65rem; }
.install-note { margin-bottom:1.25rem; }
@media (max-width: 850px) {
  .recommended-surveys-grid, .install-layout { grid-template-columns:1fr; }
  .install-qr-card { grid-column:auto; flex-direction:column; text-align:center; }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 260px),
    radial-gradient(circle at 50% -10%, rgba(110, 168, 255, 0.12), transparent 36rem);
  pointer-events: none;
}

img { max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }

.hidden { display: none !important; }
.hidden-admin-link { display: none !important; }
.muted { color: var(--muted); }
.fine-print, .fine-auth { color: var(--muted-2); font-size: 0.86rem; line-height: 1.55; }

/* Loader */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background: #0b0f16;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.page-loader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-card {
  width: 150px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  display: grid;
  justify-items: center;
  gap: 14px;
}

.loader-mark,
.brand-mark {
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #111827;
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.loader-mark { width: 46px; height: 46px; }
.loader-line {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  animation: loaderPulse 850ms ease-in-out infinite;
}
@keyframes loaderPulse { 0%,100%{ opacity:.35; transform:scaleX(.72);} 50%{opacity:1; transform:scaleX(1);} }

/* Header */
.site-header {
  width: min(1180px, calc(100% - 32px));
  min-height: 70px;
  margin: 14px auto 0;
  padding: 0 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  position: sticky;
  top: 10px;
  z-index: 80;
  background: rgba(15, 21, 32, 0.92);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(0,0,0,0.25);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.brand-mark { width: 38px; height: 38px; font-size: 0.82rem; }

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 9px 11px;
  border-radius: 10px;
  font-weight: 750;
  font-size: 0.94rem;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
  background: rgba(255,255,255,0.055);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
  position: relative;
}

.nav-login {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
  padding: 10px 8px;
}
.nav-login:hover { color: var(--text); }
.nav-clickable { cursor: pointer; }

/* Account / coin */
.coin-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex: 0 0 auto;
  vertical-align: -7px;
  filter: drop-shadow(0 5px 10px rgba(232, 179, 77, 0.25));
}
.coin-icon-small { width: 24px; height: 24px; }
.coin-icon-confirm { width: 34px; height: 34px; }

.coin-pill,
.price {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.coin-pill {
  min-height: 42px;
  padding: 0 13px 0 9px;
  border: 1px solid rgba(232, 179, 77, 0.28);
  border-radius: 999px;
  background: rgba(232, 179, 77, 0.10);
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}
.coin-pill strong { font-size: 0.98rem; }
.coin-pill span { color: var(--muted); font-weight: 750; }

.account-menu { position: relative; }
.account-trigger {
  min-height: 42px;
  max-width: 210px;
  padding: 4px 9px 4px 5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255,255,255,0.035);
  cursor: pointer;
}
.account-trigger:hover,
.account-trigger[aria-expanded="true"] { background: rgba(255,255,255,0.07); border-color: var(--border-strong); }
.account-avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #263348;
  color: #f7fafc;
  border: 1px solid rgba(255,255,255,0.10);
  font-weight: 900;
}
.account-avatar.large { width: 42px; height: 42px; }
.account-trigger-copy { min-width: 0; display: flex; align-items: center; }
.account-trigger-copy strong {
  max-width: 105px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.88rem;
}
.account-trigger-copy small { display: none; }
.account-chevron { color: var(--muted); line-height: 1; }
.account-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(310px, calc(100vw - 28px));
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #111827;
  box-shadow: 0 22px 70px rgba(0,0,0,0.44);
  z-index: 140;
}
.account-dropdown-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px;
  margin-bottom: 6px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
}
.account-dropdown-head strong,
.account-dropdown-head small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-dropdown-head small { color: var(--muted); margin-top: 2px; }
.account-dropdown a,
.account-dropdown button {
  width: 100%;
  min-height: 42px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #dbe4f0;
  text-decoration: none;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
}
.account-dropdown a:hover,
.account-dropdown button:hover { background: rgba(255,255,255,0.065); color: var(--text); }
.account-dropdown button { color: #fecdd3; }

/* Layout */
main,
.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}
.page { padding: 42px 0 56px; }
.hero { padding: 72px 0 56px; }
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.75fr);
  gap: 46px;
  align-items: center;
}
.hero-copy { max-width: 720px; }
.pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(232, 179, 77, 0.30);
  background: rgba(232, 179, 77, 0.09);
  color: var(--brand-2);
  font-size: 0.82rem;
  font-weight: 850;
}
h1 {
  margin: 16px 0 14px;
  font-size: clamp(2.35rem, 6vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}
h2 { margin: 0 0 12px; font-size: 1.35rem; letter-spacing: -0.02em; }
p { line-height: 1.62; }
.hero-copy p,
.page-heading p { max-width: 720px; color: var(--muted); font-size: 1.02rem; }
.page-heading { padding: 8px 0 26px; }

.hero-actions,
.form-actions,
.admin-toolbar-actions,
.admin-actions,
.trade-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.hero-actions { margin-top: 26px; }
.button {
  min-height: 43px;
  padding: 0 15px;
  border-radius: 11px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}
.button-large { min-height: 50px; padding: 0 19px; }
.button-primary {
  color: #15100a;
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  border-color: rgba(246, 207, 114, 0.35);
}
.button-primary:hover { filter: brightness(1.04); }
.button-ghost {
  color: var(--text);
  background: rgba(255,255,255,0.045);
  border-color: var(--border);
}
.button-ghost:hover { background: rgba(255,255,255,0.075); }
.button-danger {
  color: white;
  background: #b42337;
  border-color: rgba(244,111,125,.35);
}

/* Cards / sections */
.panel,
.feature-card,
.stat-card,
.reward-card,
.provider-card,
.hero-card,
.locked-panel,
.auth-modal,
.admin-request,
.admin-reward-row {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 14px 40px rgba(0,0,0,0.18);
}
.panel,
.feature-card,
.provider-card,
.stat-card,
.locked-panel { padding: 22px; }
.pro-card { padding: 22px; }
.card-topline,
.request-topline,
.section-headline,
.provider-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.card-topline { color: var(--muted); font-weight: 800; margin-bottom: 16px; }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}
.trust-row span,
.notice,
.stock-pill,
.rarity-badge,
.condition-badge,
.status-pill {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.045);
  color: #d7e0ec;
  font-size: 0.82rem;
  font-weight: 800;
}
.trust-row span { padding: 7px 10px; }
.notice { padding: 12px 14px; border-radius: 14px; color: var(--muted); }

.home-wallet-card { min-height: 365px; }
.wallet-glow {
  min-height: 210px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(232,179,77,0.08), rgba(255,255,255,0.025));
}
.coin-core {
  width: 126px;
  height: 126px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(232,179,77,0.10);
  border: 1px solid rgba(232,179,77,0.28);
}
.coin-core img { width: 82%; height: 82%; object-fit: contain; filter: drop-shadow(0 12px 20px rgba(232,179,77,.22)); }
.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.mini-stats div {
  padding: 13px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
}
.mini-stats strong { display: block; font-size: 1.25rem; }
.mini-stats span { color: var(--muted); font-size: 0.84rem; }

.feature-grid,
.provider-grid,
.dashboard-grid,
.reward-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.dashboard-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step-number { color: var(--brand-2); font-weight: 950; font-size: 0.9rem; }
.feature-card p,
.provider-card p,
.stat-card p { color: var(--muted); }
.stat-card span { display: block; color: var(--muted); font-weight: 800; margin-bottom: 8px; }
.stat-card strong { display: block; font-size: 2rem; letter-spacing: -0.04em; }

/* Forms */
input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: #0f1520;
  color: var(--text);
  outline: none;
}
textarea { padding: 12px; resize: vertical; }
input:focus,
select:focus,
textarea:focus { border-color: rgba(232,179,77,.55); box-shadow: 0 0 0 3px rgba(232,179,77,.12); }
label { display: grid; gap: 7px; color: #d8e1ee; font-weight: 800; }
.stack-form { display: grid; gap: 12px; }
.form-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; }
.shop-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 12px;
  margin-bottom: 18px;
}

/* Rewards */
.reward-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.reward-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.reward-card:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.reward-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--border-strong);
}
.reward-art {
  height: 190px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(0,0,0,0.08));
  border-bottom: 1px solid var(--border);
  position: relative;
}
.reward-art img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  filter: drop-shadow(0 20px 24px rgba(0,0,0,.28));
}
.skin-abbrev {
  font-size: 2.1rem;
  font-weight: 950;
  color: rgba(255,255,255,0.26);
  letter-spacing: -0.05em;
}
.has-image .fallback-abbrev { display: none; }
.image-failed .fallback-abbrev { display: block; }
.reward-info { padding: 18px; display: grid; gap: 12px; }
.reward-title-row,
.reward-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.reward-title-row { min-height: 26px; }
.rarity-badge,
.condition-badge,
.stock-pill,
.status-pill { padding: 6px 9px; }
.condition-badge { color: #bcd1ee; }
.reward-info h2 { margin: 0; font-size: 1.08rem; }
.reward-description { margin: 0; min-height: 40px; }
.reward-meta { justify-content: space-between; }
.price { color: var(--brand-2); font-weight: 950; }
.stock-out { color: #fecdd3; border-color: rgba(244,111,125,.3); }
.reserved-stock { color: #fde68a; }
.reward-actions { display: grid; }
.reward-card.is-out { opacity: .66; }
.reward-card.is-out .reward-art { filter: grayscale(.45); }
.reward-card.rarity-consumer::before { background: #b0c3d9; }
.reward-card.rarity-industrial::before { background: #5e98d9; }
.reward-card.rarity-milspec::before { background: #4b69ff; }
.reward-card.rarity-restricted::before { background: #8847ff; }
.reward-card.rarity-classified::before { background: #d32ce6; }
.reward-card.rarity-covert::before { background: #eb4b4b; }
.reward-card.rarity-contraband::before { background: #e4ae39; }

/* Favorite / goal star */
.favorite-star {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 34px;
  height: 34px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(5, 8, 12, 0.55);
  backdrop-filter: blur(4px);
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}
.favorite-star:hover { transform: scale(1.08); border-color: var(--border-strong); }
.favorite-star:active { transform: scale(0.92); }
.favorite-star.is-busy { opacity: .55; pointer-events: none; }
.star-icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.7;
  stroke-linejoin: round;
  transition: fill 160ms ease, stroke 160ms ease, transform 160ms ease;
}
.favorite-star:not(.is-favorited):hover .star-icon { stroke: var(--brand-2); }
.favorite-star.is-favorited { border-color: rgba(232, 179, 77, 0.5); background: rgba(232, 179, 77, 0.14); }
.favorite-star.is-favorited .star-icon { fill: var(--brand); stroke: var(--brand); transform: scale(1.06); }
.favorite-count-pill {
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
  white-space: nowrap;
}

/* Goal rewards (dashboard) */
.goal-rewards-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); margin-top: 14px; }
.goal-reward-card {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.035);
}
.goal-reward-card .reward-art { width: 84px; height: 84px; min-height: 84px; flex: none; border-radius: 12px; padding: 8px; }
.goal-reward-info { flex: 1; min-width: 0; display: grid; gap: 8px; }
.goal-reward-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.goal-reward-head h3 { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.goal-reward-head .favorite-star { position: static; width: 28px; height: 28px; flex: none; }
.goal-reward-head .favorite-star .star-icon { width: 15px; height: 15px; }
.goal-reward-coins { margin: 0; display: flex; align-items: center; gap: 6px; font-size: .88rem; }
.goal-progress-bar { height: 8px; border-radius: 999px; background: #0f1520; border: 1px solid var(--border); overflow: hidden; }
.goal-progress-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.goal-claim-button { padding: 9px 14px; font-size: .88rem; width: max-content; }

@media (max-width: 560px) {
  .goal-rewards-list { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .goal-reward-card { flex-direction: column; align-items: stretch; text-align: left; }
  .goal-reward-card .reward-art { width: 100%; height: 120px; min-height: 120px; }
}

/* Dashboard / history */
.account-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.account-bar strong { display: block; margin-top: 4px; }
#accountSection,
.locked-dashboard { display: grid; gap: 16px; }
.xp-row { display: flex; justify-content: space-between; color: var(--muted); font-weight: 800; }
.xp-bar { height: 10px; border-radius: 999px; background: #0f1520; overflow: hidden; border: 1px solid var(--border); }
.xp-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.redeem-list,
.coin-history-list { display: grid; gap: 10px; }
.redeem-row,
.coin-history-row {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,0.035);
}
.redeem-row { display: grid; gap: 8px; }
.coin-history-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.coin-history-row.positive strong { color: var(--green); }
.coin-history-row.negative strong { color: var(--red); }
.mini-link { color: #bcd1ee; font-size: .86rem; word-break: break-all; }

/* Earn providers */
.provider-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.provider-card.featured { border-color: rgba(232,179,77,.34); }
.provider-logo {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(255,255,255,0.06);
  font-weight: 900;
}
.provider-status.live { color: var(--green); }
.provider-status.soon { color: var(--muted); }
.provider-action { margin-top: 16px; }

/* Admin */
.admin-layout { display: grid; gap: 16px; }
.admin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.admin-toolbar-actions { justify-content: flex-end; }
.admin-list,
.admin-rewards-list { display: grid; gap: 12px; }
.admin-request { padding: 16px; display: grid; gap: 14px; }
.admin-request-main { display: grid; gap: 10px; }
.admin-url-block { display: grid; gap: 6px; }
.admin-url { word-break: break-all; color: #bfd7ff; }
.admin-grid-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.admin-grid-form.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-grid-form .wide { grid-column: 1 / -1; }
.check-row { display: flex; align-items: center; gap: 10px; }
.check-row input { width: auto; min-height: auto; }
.form-actions { grid-column: 1 / -1; justify-content: flex-end; }
.admin-reward-row {
  padding: 14px;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: center;
}
.admin-reward-row.inactive { opacity: .58; }
.admin-reward-thumb {
  width: 64px;
  height: 54px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #0f1520;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.admin-reward-thumb img { width: 94%; height: 94%; object-fit: contain; }
.admin-reward-thumb span { font-weight: 950; color: var(--muted); }
.admin-actions.vertical { display: grid; gap: 8px; }

.status-pending { color: #fde68a; border-color: rgba(250,204,21,.32); }
.status-reviewing { color: #bfdbfe; border-color: rgba(96,165,250,.32); }
.status-trade_sent { color: #c4b5fd; border-color: rgba(167,139,250,.32); }
.status-completed { color: #bbf7d0; border-color: rgba(34,197,94,.32); }
.status-rejected,
.status-refunded,
.status-cancelled { color: #fecdd3; border-color: rgba(244,111,125,.32); }

/* Legal / timeline */
.legal,
.timeline { display: grid; gap: 16px; }
.legal section,
.timeline article {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.legal h1 { font-size: clamp(2rem, 5vw, 3.4rem); }

/* Footer */
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 20px auto 28px;
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.site-footer p { margin: 6px 0 0; color: var(--muted); }
.footer-links { display: flex; gap: 12px; align-items: center; }
.footer-links a { color: var(--muted); text-decoration: none; font-weight: 800; }
.footer-links a:hover { color: var(--text); }
.site-footer .fine-print { grid-column: 1 / -1; margin-top: 0; }

/* Auth modal / toast / confirm */
.modal-backdrop,
.confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(3, 7, 18, 0.72);
  backdrop-filter: blur(9px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}
.modal-backdrop:not(.hidden),
.confirm-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}
.auth-modal,
.confirm-modal {
  width: min(460px, 100%);
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 20px;
  background: linear-gradient(180deg, #172033 0%, #111827 100%);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.52);
  transform: translateY(12px) scale(0.985);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
}
.modal-backdrop:not(.hidden) .auth-modal,
.confirm-backdrop.show .confirm-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.auth-modal-head { margin-bottom: 16px; }
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #0f1520;
  margin-bottom: 12px;
}
.auth-tab {
  min-height: 38px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-weight: 850;
  cursor: pointer;
}
.auth-tab.active { background: var(--surface-3); color: var(--text); }
.modal-close {
  float: right;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.2rem;
}
.google-button { width: 100%; background: #fff; color: #111827; }
.google-button span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f2f4f7;
  font-weight: 900;
}
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted-2); font-size: .86rem; margin: 14px 0; }
.divider::before,
.divider::after { content: ""; height: 1px; background: var(--border); flex: 1; }
.toast-stack {
  position: fixed;
  top: 94px;
  right: 18px;
  z-index: 260;
  display: grid;
  gap: 10px;
  width: min(390px, calc(100vw - 36px));
}
.toast {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 15px;
  background: linear-gradient(180deg, #172033 0%, #111827 100%);
  box-shadow: 0 18px 60px rgba(0,0,0,.42);
  transform: translateX(16px);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast-dot { width: 9px; height: 9px; border-radius: 999px; background: var(--brand); box-shadow: 0 0 0 4px rgba(232,179,77,.12); }
.toast p { margin: 0; color: #eaf0f7; line-height: 1.45; white-space: pre-line; }
.toast button { border: 0; background: transparent; color: var(--muted); font-size: 1.1rem; cursor: pointer; }
.toast.leaving { opacity: 0; transform: translateX(16px); }
.confirm-backdrop.leaving { opacity: 0; pointer-events: none; }
.confirm-backdrop.leaving .confirm-modal { transform: translateY(10px) scale(.985); opacity: 0; }
.confirm-modal { display: grid; gap: 14px; }
.confirm-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(232,179,77,.11);
  border: 1px solid rgba(232,179,77,.25);
  color: var(--brand-2);
  font-weight: 950;
}
.confirm-icon.danger { background: rgba(244,111,125,.10); border-color: rgba(244,111,125,.30); }
.confirm-icon img { display: block; }
.confirm-copy h2,
.confirm-copy p { margin: 0; }
.confirm-copy p { color: var(--muted); margin-top: 6px; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 10px; }
.empty-state {
  padding: 22px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.025);
  color: var(--muted);
}

@media (max-width: 1080px) {
  .site-header { grid-template-columns: auto auto; }
  .nav-toggle { display: inline-grid; justify-self: end; }
  .site-nav {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 4px 0 8px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { min-height: 42px; display: flex; align-items: center; }
  .nav-actions {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: space-between;
  }
  .hero-split { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reward-grid,
  .provider-grid,
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .site-header,
  main,
  .page,
  .site-footer { width: min(100% - 20px, 1180px); }
  .site-header { top: 8px; margin-top: 10px; padding: 0 10px; border-radius: 16px; gap: 10px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand span:last-child { font-size: .96rem; }
  .hero { padding: 48px 0 38px; }
  .page { padding: 32px 0 42px; }
  h1 { font-size: clamp(2.1rem, 12vw, 3.7rem); letter-spacing: -0.045em; }
  .hero-actions .button,
  .trade-row a,
  .trade-row button { width: 100%; }
  .shop-toolbar,
  .form-row,
  .admin-toolbar,
  .site-footer { grid-template-columns: 1fr; }
  .admin-toolbar { display: grid; }
  .dashboard-grid,
  .reward-grid,
  .provider-grid,
  .feature-grid,
  .admin-grid-form,
  .admin-grid-form.compact { grid-template-columns: 1fr; }
  .reward-art { height: 175px; }
  input, select, textarea { font-size: 16px; }
  .footer-links { flex-wrap: wrap; }
}

@media (max-width: 560px) {
  .nav-actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .coin-pill { width: 100%; justify-content: center; }
  .account-trigger { width: 100%; max-width: none; justify-content: flex-start; }
  .account-trigger-copy { flex: 1; }
  .account-trigger-copy strong { max-width: none; }
  .account-chevron { margin-left: auto; }
  .account-dropdown { left: 0; right: 0; width: 100%; }
  .mini-stats { grid-template-columns: 1fr; }
  .account-bar,
  .coin-history-row,
  .card-topline,
  .request-topline,
  .section-headline { align-items: flex-start; flex-direction: column; }
  .admin-reward-row { grid-template-columns: 56px 1fr; }
  .admin-reward-row .admin-actions { grid-column: 1 / -1; }
  .confirm-actions { display: grid; grid-template-columns: 1fr; }
  .toast-stack { top: 78px; right: 10px; width: calc(100vw - 20px); }
}

/* Account confirmation + testing tools */
.auth-confirm-page {
  min-height: calc(100vh - 220px);
  display: grid;
  align-items: center;
}
.auth-confirm-shell {
  width: min(720px, 100%);
  margin: 0 auto;
}
.auth-result {
  text-align: center;
  padding: 34px;
}
.auth-result h1 {
  margin: 12px 0 10px;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.045em;
}
.auth-result::before {
  content: "";
  display: block;
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
}
.auth-result-success::before { background: radial-gradient(circle, rgba(53,201,139,.9), rgba(53,201,139,.16)); }
.auth-result-warning::before { background: radial-gradient(circle, rgba(244,201,93,.9), rgba(244,201,93,.16)); }
.auth-result-error::before { background: radial-gradient(circle, rgba(244,111,125,.9), rgba(244,111,125,.16)); }
.auth-result-loading::before {
  border-color: var(--brand);
  border-top-color: transparent;
  animation: spin .85s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.auth-confirm-actions {
  justify-content: center;
  margin-top: 22px;
}
.admin-coin-panel {
  border-color: rgba(246, 207, 114, 0.22);
}
.admin-coin-panel .section-headline p {
  margin: 6px 0 0;
  max-width: 760px;
}
.toast-error .toast-dot { background: var(--red); }
.toast-success .toast-dot { background: var(--green); }
@media (max-width: 680px) {
  .auth-result { padding: 24px; }
  .auth-confirm-actions { display: grid; }
  .auth-confirm-actions .button { width: 100%; }
}

/* Dashboard and marketplace polish */
.dashboard-heading {
  padding: 2px 0 18px;
}
.dashboard-heading h1,
.compact-heading h1 {
  font-size: clamp(2.05rem, 4.2vw, 3.35rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
}
.dashboard-heading p,
.compact-heading p {
  max-width: 680px;
}
.compact-copy {
  margin: -4px 0 14px;
}
.history-show-more {
  width: fit-content;
  margin-top: 4px;
  justify-self: center;
}
.coin-history-row.history-extra.hidden { display: none !important; }

.clean-providers {
  align-items: stretch;
}
.clean-providers .provider-card {
  display: grid;
  align-content: start;
  gap: 14px;
}
.provider-main-card {
  background: linear-gradient(180deg, rgba(232,179,77,0.08), var(--surface) 46%);
}
.provider-main-card .provider-head,
.provider-muted-card .provider-head {
  justify-content: flex-start;
  align-items: center;
}
.provider-main-card .provider-head h2,
.provider-main-card .provider-head p,
.provider-muted-card .provider-head h2,
.provider-muted-card .provider-head p {
  margin: 0;
}
.provider-muted-card {
  opacity: .86;
}
.provider-muted-card .provider-logo {
  color: var(--muted);
}
.provider-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.how-page .hero-actions { margin-top: 20px; }
.how-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
  align-items: center;
  gap: 24px;
  margin-bottom: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
}
.how-overview h2 {
  margin-top: 14px;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}
.how-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.how-summary-grid div {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
}
.how-summary-grid strong {
  display: block;
  font-size: 1.65rem;
  color: var(--brand-2);
  line-height: 1;
}
.how-summary-grid span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .76rem;
}
.how-step-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.how-step-card {
  min-height: 210px;
}
.faq-card h2 { font-size: 1.1rem; }
.faq-card p { margin-bottom: 0; }

@media (max-width: 920px) {
  .how-overview { grid-template-columns: 1fr; }
  .how-step-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .dashboard-heading h1,
  .compact-heading h1 { font-size: clamp(1.9rem, 10vw, 2.45rem); }
  .how-summary-grid,
  .how-step-grid,
  .faq-grid { grid-template-columns: 1fr; }
  .history-show-more { width: 100%; }
}

/* Visual system: full-page background and cleaner app surfaces */
body {
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: -18px;
  z-index: -2;
  background:
    linear-gradient(180deg, var(--theme-bg-tint-top), var(--theme-bg-tint-bottom)),
    var(--site-background-image) center center / cover no-repeat;
  filter: blur(8px) saturate(var(--theme-bg-saturation)) contrast(var(--theme-bg-contrast));
  transform: scale(1.035);
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 0%, var(--theme-glow), transparent 34rem),
    linear-gradient(90deg, rgba(4, 7, 12, 0.66), rgba(4, 7, 12, 0.40) 50%, rgba(4, 7, 12, 0.66));
  pointer-events: none;
}

.site-header {
  background: rgba(9, 13, 21, 0.76);
  border-color: rgba(202, 213, 226, 0.16);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.34);
}

.page,
main.hero {
  margin-top: 22px;
  margin-bottom: 22px;
  padding: 30px;
  border: 1px solid rgba(202, 213, 226, 0.14);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(9, 13, 21, 0.78), rgba(8, 12, 19, 0.68));
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px);
}

.site-footer {
  background: rgba(9, 13, 21, 0.74);
  backdrop-filter: blur(18px);
  border-color: rgba(202, 213, 226, 0.14);
}

.panel,
.stat-card,
.reward-card,
.provider-card,
.admin-panel,
.auth-modal,
.confirm-modal,
.empty-state {
  background-color: rgba(16, 23, 35, 0.72);
  border-color: rgba(202, 213, 226, 0.14);
  box-shadow: 0 18px 48px rgba(0,0,0,0.18);
}

.dashboard-heading,
.compact-heading,
.page-heading {
  padding-top: 0;
}
.dashboard-heading h1,
.compact-heading h1,
.page-heading h1 {
  font-size: clamp(2rem, 4.1vw, 3.25rem);
  letter-spacing: -0.045em;
}
.dashboard-heading h1 { margin-top: 4px; }

.reward-account-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 16px;
  margin-bottom: 16px;
  border: 1px solid rgba(246, 207, 114, 0.26);
  border-radius: 16px;
  background: rgba(232, 179, 77, 0.10);
  box-shadow: 0 14px 44px rgba(0,0,0,0.18);
}
.reward-account-notice strong,
.reward-account-notice span { display: block; }
.reward-account-notice span { color: var(--muted); margin-top: 2px; }
.reward-account-notice.success { border-color: rgba(53, 201, 139, 0.24); background: rgba(53, 201, 139, 0.08); }
.reward-account-notice.warning { border-color: rgba(246, 207, 114, 0.30); background: rgba(232, 179, 77, 0.11); }

.confirm-backdrop,
.modal-backdrop {
  background:
    radial-gradient(circle at 50% 25%, rgba(110, 168, 255, 0.16), transparent 28rem),
    rgba(2, 6, 13, 0.78);
  backdrop-filter: blur(14px);
}
.confirm-modal,
.auth-modal {
  background: linear-gradient(180deg, rgba(22, 31, 47, 0.97), rgba(12, 18, 28, 0.98));
  border-color: rgba(226, 232, 240, 0.18);
}
.confirm-copy p { color: #b8c4d6; }
.toast {
  background: linear-gradient(180deg, rgba(24, 34, 51, 0.98), rgba(13, 19, 30, 0.98));
  border-color: rgba(226, 232, 240, 0.18);
  transform: translateY(-8px) scale(.98);
}
.toast.show { transform: translateY(0) scale(1); }
.toast.leaving { opacity: 0; transform: translateY(-8px) scale(.98); }

.coin-icon { width: 31px; height: 31px; }
.coin-icon-small { width: 27px; height: 27px; }
.price .coin-icon-small { width: 29px; height: 29px; }

@media (max-width: 760px) {
  .page,
  main.hero { padding: 20px; border-radius: 20px; }
  .reward-account-notice { align-items: stretch; flex-direction: column; }
  .reward-account-notice .button { width: 100%; }
}

/* Header alignment + fixed reward image frames */
.nav-actions {
  align-items: center;
}

.coin-pill {
  min-width: 126px;
  justify-content: center;
  align-items: center;
  text-align: center;
  line-height: 1;
  padding: 0 14px;
}
.coin-pill strong,
.coin-pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.coin-pill .coin-icon-small,
.coin-icon-small {
  width: 30px;
  height: 30px;
}

.account-trigger {
  min-width: 144px;
  justify-content: center;
  align-items: center;
  text-align: center;
  line-height: 1;
  padding: 5px 11px;
}
.account-trigger-copy {
  justify-content: center;
  text-align: center;
}
.account-trigger-copy strong {
  line-height: 1;
}
.account-chevron {
  display: inline-grid;
  place-items: center;
  width: 12px;
  height: 12px;
}

.reward-card {
  display: flex;
  flex-direction: column;
}
.reward-art {
  height: 210px;
  min-height: 210px;
  padding: 18px;
  overflow: hidden;
  isolation: isolate;
}
.reward-art img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 330px;
  max-height: 166px;
  object-fit: contain;
  object-position: center center;
  margin: auto;
}
.reward-info {
  flex: 1;
  grid-template-rows: auto auto 1fr auto auto;
}
.reward-description {
  min-height: 44px;
}
.admin-reward-thumb {
  overflow: hidden;
}
.admin-reward-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 760px) {
  .reward-art {
    height: 190px;
    min-height: 190px;
  }
  .reward-art img {
    max-height: 148px;
  }
}

@media (max-width: 560px) {
  .coin-pill,
  .account-trigger {
    width: 100%;
    min-width: 0;
  }
  .account-trigger {
    justify-content: center;
  }
}

/* v11.4 trust polish + mobile makeover */
.auth-provider-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.auth-provider-button {
  min-height: 54px;
  justify-content: flex-start;
  border-color: var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  position: relative;
  padding: 8px 10px;
}
.auth-provider-button span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  font-size: .72rem;
  font-weight: 950;
  flex: 0 0 auto;
}
.auth-provider-button strong {
  font-size: .82rem;
  line-height: 1.05;
}
.auth-provider-button small {
  margin-left: auto;
  color: var(--brand-2);
  font-weight: 900;
  font-size: .72rem;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(232,179,77,.12);
  border: 1px solid rgba(232,179,77,.22);
}
.steam-button span { background: rgba(110,168,255,.15); }
.google-button span { background: rgba(255,255,255,.10); }

.coin-core-clean {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 35% 28%, rgba(255,255,255,.65), transparent 17%),
    linear-gradient(145deg, #ffe18b, #e8b34d 50%, #9a6224);
  border: 1px solid rgba(255, 229, 157, .55);
}
.coin-core-clean::before {
  content: "";
  position: absolute;
  inset: 15%;
  border-radius: inherit;
  border: 1px solid rgba(84, 51, 16, .22);
  background: radial-gradient(circle at center, rgba(255,255,255,.10), transparent 58%);
}
.coin-core-clean span {
  width: 38%;
  height: 38%;
  border-radius: 999px;
  background: rgba(84, 51, 16, .18);
  box-shadow: inset 0 2px 8px rgba(0,0,0,.18);
}

.reward-toolbar {
  grid-template-columns: minmax(0, 1fr) 210px 210px;
}
.reward-card.is-out {
  opacity: .64;
}
.reward-card.is-out:hover {
  transform: none;
}
.field-help {
  display: block;
  margin-top: 6px;
  color: var(--muted-2);
  font-size: .78rem;
  line-height: 1.45;
}
.legal-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.legal-grid .panel p,
.faq-grid .panel p {
  margin-bottom: 0;
}
.nav-toggle.open {
  background: rgba(232,179,77,.12);
  border-color: rgba(232,179,77,.36);
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: auto auto;
    align-items: center;
  }
  .site-nav {
    gap: 6px;
    padding: 8px 0 10px;
    border-top: 1px solid rgba(148,163,184,.13);
    margin-top: 2px;
  }
  .site-nav a {
    padding: 12px 13px;
    border: 1px solid rgba(255,255,255,.04);
    background: rgba(255,255,255,.025);
  }
  .nav-actions {
    border-top: 1px solid rgba(148,163,184,.13);
    padding-top: 10px;
  }
}

@media (max-width: 760px) {
  body { font-size: 15px; }
  .site-header {
    width: min(100% - 16px, 1180px);
    top: 6px;
    padding: 9px;
    border-radius: 18px;
  }
  main,
  .page,
  .site-footer {
    width: min(100% - 16px, 1180px);
  }
  .page,
  main.hero {
    margin-top: 14px;
    padding: 20px;
    border-radius: 22px;
  }
  .hero-split { gap: 24px; }
  .hero-copy p,
  .page-heading p { font-size: .98rem; }
  .trust-row { gap: 8px; }
  .trust-row span { flex: 1 1 calc(50% - 8px); text-align: center; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }
  .home-wallet-card { padding: 18px; }
  .auth-modal {
    width: min(100% - 18px, 520px);
    max-height: calc(100vh - 22px);
    overflow: auto;
  }
  .auth-provider-grid,
  .reward-toolbar,
  .shop-toolbar,
  .legal-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .auth-provider-button { width: 100%; }
  .reward-card { border-radius: 18px; }
  .reward-art { height: 180px; min-height: 180px; }
  .reward-info { padding: 16px; }
  .reward-meta { gap: 8px; }
  .reward-actions .button { width: 100%; }
}

@media (max-width: 560px) {
  .brand span:last-child { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .nav-login,
  .nav-cta { width: 100%; justify-content: center; }
  .nav-actions:has(.coin-pill) {
    grid-template-columns: 1fr;
  }
  .coin-pill,
  .account-trigger {
    min-height: 46px;
  }
  .account-dropdown {
    position: static;
    width: 100%;
    margin-top: 8px;
  }
  .mini-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .mini-stats div { padding: 12px 8px; }
  .mini-stats strong { font-size: 1.1rem; }
  .reward-title-row { gap: 7px; }
  .reward-meta { align-items: stretch; flex-direction: column; }
  .price,
  .stock-pill { width: 100%; justify-content: center; }
}

/* v11.4 cleaner wallet + navigation polish */
.page-loader {
  inset: 0 0 auto 0;
  height: 3px;
  display: block;
  background: transparent;
  pointer-events: none;
  transition: opacity 90ms ease, visibility 90ms ease;
}
.loader-card {
  width: 100%;
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: block;
}
.loader-mark { display: none; }
.loader-line {
  display: block;
  width: 38%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--brand), var(--brand-2), transparent);
  animation: loaderSlide 720ms ease-in-out infinite;
  transform-origin: left center;
}
@keyframes loaderSlide {
  0% { opacity: .15; transform: translateX(-45vw) scaleX(.55); }
  50% { opacity: .85; transform: translateX(34vw) scaleX(1); }
  100% { opacity: .10; transform: translateX(105vw) scaleX(.55); }
}
.home-account-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
}
.home-account-card .card-topline strong:empty { display: none; }
.wallet-summary {
  margin: 26px 0 18px;
  padding: 18px;
  border: 1px solid rgba(226,232,240,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.035);
}
.wallet-summary h2 {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: -.04em;
}
.wallet-summary p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.wallet-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.wallet-notes span {
  flex: 1 1 auto;
  text-align: center;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.03);
  font-size: .82rem;
  font-weight: 850;
}
.wallet-glow,
.coin-core,
.coin-core-clean { display: none; }
.wallet-stat-card {
  text-align: center;
}
.wallet-balance-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 4px auto 2px;
}
.dashboard-wallet-coin {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(232,179,77,.18));
}
.wallet-stat-card strong {
  line-height: 1;
}
@media (max-width: 760px) {
  .home-account-card { min-height: 0; }
  .wallet-summary { margin: 18px 0 14px; padding: 16px; }
  .wallet-notes { display: grid; grid-template-columns: 1fr; }
}

/* v11.4 account settings, linked services and support widget */
.settings-stack {
  display: grid;
  gap: 18px;
}
.settings-profile-card {
  display: flex;
  align-items: center;
  gap: 16px;
}
.settings-profile-card h2 {
  margin: 8px 0 4px;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  letter-spacing: -.035em;
}
.linked-services-grid,
.readiness-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.linked-service,
.readiness-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 88px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: rgba(255,255,255,.035);
}
.linked-service-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 14px;
  background: rgba(255,255,255,.065);
  border: 1px solid rgba(255,255,255,.08);
  font-weight: 950;
  font-size: .78rem;
}
.linked-service div:nth-child(2),
.readiness-item div { min-width: 0; }
.linked-service strong,
.readiness-item strong { display: block; }
.linked-service p,
.readiness-item span {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.35;
}
.linked-service > span {
  margin-left: auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(53,201,139,.12);
  border: 1px solid rgba(53,201,139,.24);
  color: #a9f3d1;
  font-size: .74rem;
  font-weight: 900;
}
.linked-service .button {
  margin-left: auto;
  min-height: 36px;
  padding: 0 11px;
}
.linked-service.is-planned { opacity: .88; }
.readiness-item {
  display: block;
  position: relative;
  padding-left: 46px;
}
.readiness-item::before {
  content: "•";
  position: absolute;
  left: 16px;
  top: 18px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.06);
}
.readiness-item.is-ready::before {
  content: "✓";
  background: rgba(53,201,139,.14);
  color: #a9f3d1;
}
.readiness-item.is-warning::before {
  content: "!";
  background: rgba(244,201,93,.14);
  color: var(--brand-2);
}
.readiness-item.is-muted { opacity: .78; }
.settings-toggle-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.settings-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255,255,255,.03);
}
.settings-toggle span { display: grid; gap: 4px; }
.settings-toggle small {
  color: var(--muted);
  line-height: 1.35;
}
.settings-toggle input {
  width: 46px;
  height: 26px;
  accent-color: var(--brand);
  flex: 0 0 auto;
}
.danger-zone-lite {
  border-color: rgba(244,111,125,.18);
}
.support-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
}
.support-fab {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(246,207,114,.34);
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(232,179,77,.94), rgba(154,98,36,.95));
  color: #16100a;
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
  cursor: pointer;
}
.support-fab span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  font-weight: 950;
  font-size: 1.1rem;
}
.support-panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: min(360px, calc(100vw - 28px));
  padding: 16px;
  border: 1px solid rgba(226,232,240,.16);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(22,31,47,.98), rgba(12,18,28,.98));
  box-shadow: 0 24px 80px rgba(0,0,0,.42);
  backdrop-filter: blur(16px);
}
.support-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.support-panel-head strong { display: block; font-size: 1.05rem; }
.support-panel-head p { margin: 3px 0 0; color: var(--muted); font-size: .86rem; }
.support-panel-head button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255,255,255,.045);
  color: var(--text);
  cursor: pointer;
}
.support-form {
  display: grid;
  gap: 10px;
}
.support-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
  font-size: .84rem;
}
.support-form textarea { resize: vertical; min-height: 96px; }
.support-form .button { width: 100%; }
@media (max-width: 920px) {
  .linked-services-grid,
  .readiness-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .settings-profile-card { align-items: flex-start; }
  .linked-service { align-items: flex-start; flex-wrap: wrap; }
  .linked-service .button,
  .linked-service > span { margin-left: 54px; }
  .settings-toggle { align-items: flex-start; }
  .support-widget { right: 12px; bottom: 12px; }
  .support-fab { width: 54px; height: 54px; }
  .support-panel { bottom: 66px; }
}

/* v11.4 test-phase polish: data-loading stability, support animation, mobile alignment */
.page-loader { display: none !important; }

.nav-actions.auth-loading {
  min-height: 46px;
  justify-content: flex-end;
}
.auth-skeleton {
  width: 172px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(226,232,240,.10);
  background: linear-gradient(90deg, rgba(255,255,255,.035), rgba(255,255,255,.085), rgba(255,255,255,.035));
  background-size: 220% 100%;
  animation: skeletonSweep 1.1s ease-in-out infinite;
}
@keyframes skeletonSweep {
  from { background-position: 120% 0; }
  to { background-position: -120% 0; }
}
.auth-check-panel { margin-bottom: 18px; }

.nav-toggle {
  place-items: center;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  font-size: 1.05rem;
}
.brand-mark,
.account-avatar,
.linked-service-icon,
.auth-provider-button span,
.support-fab,
.support-fab span,
.modal-close,
.support-panel-head button {
  display: grid;
  place-items: center;
  line-height: 1;
}

.wallet-balance-line {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 6px 0 2px;
}
.dashboard-wallet-coin {
  grid-column: 1;
  justify-self: end;
  margin-right: 2px;
}
.wallet-balance-line strong {
  grid-column: 2;
  justify-self: center;
  text-align: center;
}

.redeem-blocker-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-color: rgba(244,111,125,.26);
  background: rgba(244,111,125,.075);
}
.danger-pill {
  color: #ffd0d6;
  border-color: rgba(244,111,125,.32);
  background: rgba(244,111,125,.10);
}

.support-fab {
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}
.support-fab:hover,
.support-fab.open {
  transform: translateY(-2px);
  filter: brightness(1.05);
}
.support-panel {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px) scale(.97);
  transform-origin: bottom right;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}
.support-panel.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.redeem-list .history-show-more { margin-top: 12px; width: 100%; }

@media (max-width: 760px) {
  .site-header { align-items: center; }
  .nav-toggle { width: 42px; height: 42px; }
  .auth-skeleton { width: 100%; }
  .redeem-blocker-panel { align-items: stretch; flex-direction: column; }
  .redeem-blocker-panel .button { width: 100%; }
}
@media (max-width: 560px) {
  .nav-actions.auth-loading { grid-template-columns: 1fr; }
  .wallet-balance-line { gap: 8px; }
  .dashboard-wallet-coin { width: 32px; height: 32px; }
  .support-panel { width: min(360px, calc(100vw - 24px)); }
}

/* v11.4 loading + mobile header + settings spacing fixes */
.page-loader {
  display: block !important;
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
}
.page-loader.done {
  opacity: 0;
  visibility: hidden;
  transition: opacity 160ms ease, visibility 160ms ease;
}
.account-loading-animation {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 4px 0 10px;
}
.account-loading-animation span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--brand-2);
  box-shadow: 0 0 0 6px rgba(232,179,77,.08);
  animation: loadingDots 850ms ease-in-out infinite;
}
.account-loading-animation span:nth-child(2) { animation-delay: 120ms; }
.account-loading-animation span:nth-child(3) { animation-delay: 240ms; }
@keyframes loadingDots {
  0%, 100% { opacity: .35; transform: translateY(0) scale(.85); }
  50% { opacity: 1; transform: translateY(-3px) scale(1); }
}
.settings-page .section-headline .pill,
.settings-page .settings-profile-card .pill,
.settings-page .page-heading .pill {
  display: inline-flex;
  margin-bottom: 10px;
}
.settings-page .section-headline h2,
.settings-page .settings-profile-card h2 {
  margin-top: 0;
}
.settings-page .section-headline p {
  margin-top: 7px;
}
@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: auto 42px minmax(0, 1fr);
    grid-template-areas:
      "brand toggle actions"
      "nav nav nav";
  }
  .site-header .brand { grid-area: brand; min-width: 0; }
  .site-header .nav-toggle { grid-area: toggle; justify-self: center; }
  .site-header .site-nav { grid-area: nav; grid-column: auto; }
  .site-header .nav-actions {
    grid-area: actions;
    grid-column: auto;
    width: auto;
    min-width: 0;
    border-top: 0;
    padding-top: 0;
    justify-content: flex-end;
  }
}
@media (max-width: 760px) {
  .site-header {
    min-height: 58px;
    gap: 8px;
  }
  .site-header .brand { gap: 8px; }
  .nav-actions.auth-loading { min-height: 42px; }
  .auth-skeleton { width: 118px; height: 40px; }
  .nav-actions .coin-pill { display: none; }
  .account-trigger {
    min-width: 0;
    width: auto;
    max-width: 155px;
    padding: 5px 8px;
    justify-content: flex-start;
  }
  .account-trigger-copy strong {
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .account-avatar { width: 31px; height: 31px; }
}
@media (max-width: 560px) {
  .site-header {
    grid-template-columns: minmax(108px, auto) 40px minmax(92px, 1fr);
  }
  .brand-mark { width: 32px; height: 32px; }
  .brand span:last-child { max-width: 92px; }
  .nav-actions,
  .nav-actions:has(.coin-pill) {
    display: flex;
    grid-template-columns: none;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
  }
  .nav-login { padding: 8px 4px; font-size: .82rem; }
  .nav-cta { min-height: 38px; padding: 0 10px; font-size: .82rem; }
  .account-trigger { max-width: 128px; min-height: 40px; }
  .account-trigger-copy strong { max-width: 55px; }
}

/* v11.4 version footer, nav level progress, owner/admin polish */
.site-version {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 8px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .02em;
}

.level-pill {
  min-width: 86px;
  min-height: 38px;
  padding: 7px 9px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.055);
  display: grid;
  gap: 5px;
  align-content: center;
  text-decoration: none;
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.level-pill:hover { border-color: rgba(255,170,64,.35); }
.level-pill-label { font-size: .74rem; font-weight: 950; letter-spacing: .04em; text-transform: uppercase; line-height: 1; }
.level-pill-track { height: 5px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.12); }
.level-pill-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ff9f2f, #ffd27a); }

.role-badge {
  display: inline-flex;
  vertical-align: middle;
  align-items: center;
  margin-left: 8px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255,170,64,.24);
  background: rgba(255,151,46,.1);
  color: #ffd09a;
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.owner-lock {
  border-color: rgba(255,170,64,.24);
  background: linear-gradient(180deg, rgba(255,151,46,.09), rgba(12,16,25,.72));
}

.admin-support-list { display: grid; gap: 12px; }
.admin-support-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  background: rgba(255,255,255,.045);
}
.admin-row-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .8rem;
  margin-bottom: 8px;
}
.admin-support-row p { margin: 6px 0 8px; color: var(--muted); line-height: 1.5; }

@media (max-width: 980px) {
  .level-pill { min-width: 72px; padding-inline: 8px; }
  .level-pill-label { font-size: .68rem; }
}

@media (max-width: 760px) {
  .nav-actions .level-pill { display: none; }
  .admin-support-row { grid-template-columns: 1fr; }
  .site-version { margin-left: 0; margin-top: 6px; }
}

.admin-users-list { display: grid; gap: 10px; margin-top: 12px; }
.admin-user-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
}
.compact-empty { margin-top: 12px; padding: 12px; }

/* v11.6 auth, nav and logout polish */
.site-version {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255,255,255,.18);
}
.site-version:hover { color: var(--text); border-color: rgba(255,170,64,.55); }
.account-trigger-copy small { display: block; color: var(--muted); font-size: .68rem; line-height: 1.1; margin-top: 2px; }
.account-dropdown-progress {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  margin: 8px 0;
}
.account-dropdown-progress span { color: var(--muted); font-size: .78rem; }
.account-dropdown-progress strong { font-size: .78rem; }
.account-dropdown-progress .level-pill-track { grid-column: 1 / -1; }
.get-started-panel { margin-bottom: 18px; }
.getting-started-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.setup-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.035);
}
.setup-step strong {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255,170,64,.13);
  border: 1px solid rgba(255,170,64,.24);
  color: var(--accent-strong);
  grid-row: span 2;
}
.setup-step span { font-weight: 900; }
.setup-step small { color: var(--muted); }
.setup-step.active { border-color: rgba(255,170,64,.35); background: rgba(255,170,64,.07); }
.setup-step.complete { border-color: rgba(72, 220, 153, .28); background: rgba(72, 220, 153, .06); }
.setup-step.complete strong { color: #67e8a8; background: rgba(72, 220, 153, .12); border-color: rgba(72, 220, 153, .30); }
.reward-actions-smart { gap: 7px; }
.reward-actions-smart small { color: var(--muted); text-align: center; min-height: 18px; }
.empty-action-state {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}
.empty-action-state strong { color: var(--text); font-size: 1rem; }
.empty-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.admin-inline-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.mini-button {
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.045);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: .74rem;
  font-weight: 850;
  cursor: pointer;
}
.mini-button:hover { border-color: rgba(255,170,64,.34); background: rgba(255,170,64,.08); }
.system-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.system-status-card {
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.035);
  border-radius: 18px;
  padding: 14px;
  display: grid;
  gap: 4px;
}
.system-status-card span { color: var(--muted); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.system-status-card strong { font-size: 1.15rem; }
.system-status-card small { color: var(--muted); }
.system-status-card.online { border-color: rgba(72,220,153,.23); }
.system-status-card.manual { border-color: rgba(255,170,64,.25); }
.system-status-card.attention { border-color: rgba(255,255,255,.13); }
.support-context-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}
.support-context-grid span {
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.07);
  color: var(--muted);
  font-size: .76rem;
  overflow-wrap: anywhere;
}
.support-context-grid b { color: var(--text); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }
.changelog-list { display: grid; gap: 14px; }
.changelog-entry {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.032);
}
.changelog-entry.current { border-color: rgba(255,170,64,.25); background: rgba(255,170,64,.055); }
.changelog-entry h2 { margin: 8px 0 6px; }
.changelog-entry p { margin: 0; color: var(--muted); line-height: 1.55; }
@media (max-width: 760px) {
  .getting-started-steps,
  .system-status-grid,
  .support-context-grid { grid-template-columns: 1fr; }
  .setup-step { padding: 12px; }
  .account-trigger-copy small { display: none; }
}

/* v11.8 brand logo + reward shop toolbar polish */
.brand {
  min-width: 0;
}
.brand-logo {
  display: block;
  width: auto;
  height: 42px;
  max-width: 210px;
  object-fit: contain;
}
.brand-fallback {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.shop-toolbar.reward-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(150px, 0.55fr) minmax(170px, 0.65fr) minmax(190px, 0.7fr);
  gap: 12px;
  align-items: end;
  margin: 0 0 20px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.028));
  box-shadow: 0 16px 34px rgba(0,0,0,.20);
}
.filter-control {
  display: grid;
  gap: 7px;
  min-width: 0;
  position: relative;
}
.filter-control label {
  color: var(--muted);
  font-size: .76rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.filter-control input,
.filter-control select {
  min-height: 46px;
  border-radius: 13px;
  border-color: rgba(148, 163, 184, 0.20);
  background: rgba(11, 15, 22, 0.66);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.filter-control input:hover,
.filter-control select:hover {
  border-color: rgba(148, 163, 184, 0.34);
  background: rgba(11, 15, 22, 0.82);
}
.filter-control input:focus,
.filter-control select:focus {
  transform: translateY(-1px);
}
.filter-control select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  cursor: pointer;
}
.filter-control:not(.filter-search)::after {
  content: "⌄";
  position: absolute;
  right: 13px;
  bottom: 12px;
  color: var(--muted);
  pointer-events: none;
  font-weight: 900;
  transition: transform 160ms ease, color 160ms ease;
}
.filter-control:not(.filter-search):focus-within::after {
  transform: translateY(-1px);
  color: var(--brand-2);
}
.reward-grid {
  transition: opacity 150ms ease, transform 150ms ease;
}
.reward-grid.is-refreshing {
  opacity: .72;
  transform: translateY(3px);
}
.reward-card {
  animation: rewardCardIn 180ms ease both;
}
@keyframes rewardCardIn {
  from { opacity: .72; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1180px) {
  .shop-toolbar.reward-toolbar {
    grid-template-columns: minmax(0, 1.2fr) minmax(145px, .8fr) minmax(160px, .9fr) minmax(180px, .9fr);
  }
  .brand-logo { max-width: 180px; height: 40px; }
}

@media (max-width: 900px) {
  .shop-toolbar.reward-toolbar {
    grid-template-columns: 1fr 1fr;
  }
  .filter-search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .brand-logo { height: 36px; max-width: 170px; }
  .shop-toolbar.reward-toolbar {
    grid-template-columns: 1fr;
    padding: 12px;
    gap: 10px;
  }
  .filter-search {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .brand-logo { max-width: 145px; }
}


/* v11.8 reward filters, settings polish and larger logo */
.brand-logo {
  height: 48px;
  max-width: 245px;
}
.site-header {
  min-height: 76px;
}

.shop-toolbar.reward-toolbar.reward-toolbar-v118 {
  grid-template-columns: minmax(230px, 1.05fr) minmax(245px, .9fr) minmax(350px, 1.35fr) minmax(220px, .8fr);
  align-items: end;
  overflow: visible;
}
.reward-toolbar-v118 .filter-control::after,
.reward-toolbar-v118 .filter-control:not(.filter-search)::after {
  display: none !important;
  content: none !important;
}
.filter-label {
  color: var(--muted);
  font-size: .76rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.price-range-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}
.price-range-fields input {
  min-width: 0;
}
.range-divider {
  color: var(--muted-2);
  font-weight: 900;
  font-size: .78rem;
  text-transform: uppercase;
}
.filter-chip-group {
  min-height: 46px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  padding: 5px;
  border: 1px solid rgba(148, 163, 184, 0.20);
  border-radius: 14px;
  background: rgba(11, 15, 22, 0.52);
}
.filter-chip {
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 11px;
  background: rgba(255,255,255,.035);
  color: var(--muted);
  font-weight: 850;
  font-size: .82rem;
  cursor: pointer;
  transition: transform 150ms ease, color 150ms ease, background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}
.filter-chip:hover {
  color: var(--text);
  transform: translateY(-1px);
  background: rgba(255,255,255,.065);
}
.filter-chip.active {
  color: #17100a;
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  border-color: rgba(246,207,114,.55);
  box-shadow: 0 8px 20px rgba(232,179,77,.16);
}
.custom-select {
  position: relative;
}
.custom-select-trigger {
  width: 100%;
  min-height: 46px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  border-radius: 13px;
  border: 1px solid rgba(148, 163, 184, 0.20);
  background: rgba(11, 15, 22, 0.66);
  color: var(--text);
  font-weight: 850;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.custom-select-trigger:hover,
.custom-select.open .custom-select-trigger {
  border-color: rgba(232,179,77,.42);
  background: rgba(11, 15, 22, 0.86);
}
.custom-select.open .custom-select-trigger {
  box-shadow: 0 0 0 3px rgba(232,179,77,.10);
}
.select-chevron {
  color: var(--brand-2);
  font-size: 1rem;
  line-height: 1;
  transition: transform 160ms ease;
}
.custom-select.open .select-chevron {
  transform: rotate(180deg);
}
.custom-select-menu {
  position: absolute;
  z-index: 100;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  background: rgba(15,21,32,.98);
  box-shadow: 0 24px 55px rgba(0,0,0,.38);
  backdrop-filter: blur(16px);
  opacity: 0;
  transform: translateY(-6px) scale(.98);
  pointer-events: none;
  transition: opacity 150ms ease, transform 150ms ease;
}
.custom-select.open .custom-select-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.custom-select-option {
  min-height: 38px;
  text-align: left;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font-weight: 850;
  cursor: pointer;
  transition: color 140ms ease, background 140ms ease, border-color 140ms ease, transform 140ms ease;
}
.custom-select-option:hover {
  color: var(--text);
  background: rgba(255,255,255,.06);
  transform: translateX(2px);
}
.custom-select-option.active {
  color: var(--brand-2);
  background: rgba(232,179,77,.10);
  border-color: rgba(232,179,77,.24);
}
.reward-shop-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
  margin: -4px 0 18px;
  color: var(--muted);
  font-weight: 800;
  font-size: .9rem;
}
.clear-filters-button {
  color: var(--brand-2);
}
html.compact-reward-cards .reward-art {
  height: 150px;
}
html.compact-reward-cards .reward-info {
  gap: 9px;
  padding: 14px;
}
html.compact-reward-cards .reward-description {
  min-height: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
html.compact-reward-cards .reward-actions-smart small {
  display: none;
}

.settings-status-grid .readiness-item {
  min-height: 98px;
}
.quick-action-grid,
.settings-choice-grid,
.security-checklist {
  display: grid;
  gap: 10px;
}
.quick-action-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
}
.quick-action-grid .button {
  justify-content: center;
}
.settings-choice-field {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255,255,255,.03);
}
.settings-field-label {
  color: #d8e1ee;
  font-weight: 900;
}
.settings-choice-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.settings-choice {
  min-height: 40px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  color: var(--muted);
  font-weight: 850;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease;
}
.settings-choice:hover {
  transform: translateY(-1px);
  color: var(--text);
  border-color: rgba(255,255,255,.18);
}
.settings-choice.active {
  color: #17100a;
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  border-color: rgba(246,207,114,.55);
}
.security-checklist {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}
.security-checklist span {
  position: relative;
  padding: 11px 12px 11px 38px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  color: var(--muted);
  font-weight: 800;
}
.security-checklist span::before {
  content: "✓";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(53,201,139,.14);
  color: #a9f3d1;
  font-size: .72rem;
}

@media (max-width: 1180px) {
  .brand-logo { height: 44px; max-width: 220px; }
  .shop-toolbar.reward-toolbar.reward-toolbar-v118 {
    grid-template-columns: 1fr 1fr;
  }
  .filter-search,
  .filter-availability {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .quick-action-grid,
  .settings-choice-grid,
  .security-checklist {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .brand-logo { height: 40px; max-width: 190px; }
  .site-header { min-height: 0; }
  .shop-toolbar.reward-toolbar.reward-toolbar-v118,
  .quick-action-grid,
  .settings-choice-grid,
  .security-checklist {
    grid-template-columns: 1fr;
  }
  .filter-search,
  .filter-availability {
    grid-column: auto;
  }
  .filter-chip-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .filter-chip {
    width: 100%;
  }
  .reward-shop-status {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .brand-logo { max-width: 165px; }
  .price-range-fields {
    grid-template-columns: 1fr;
  }
  .range-divider { display: none; }
  .filter-chip-group { grid-template-columns: 1fr; }
}
.linked-service.is-planned > span {
  color: var(--muted);
  background: rgba(255,255,255,.045);
  border-color: rgba(255,255,255,.10);
}


/* v11.8.1 reward toolbar hotfix: text-only price inputs and one-line availability */
.price-range-fields input {
  appearance: textfield;
  -moz-appearance: textfield;
}
.price-range-fields input::-webkit-outer-spin-button,
.price-range-fields input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}
.shop-toolbar.reward-toolbar.reward-toolbar-v118 {
  grid-template-columns: minmax(205px, 1fr) minmax(225px, .72fr) minmax(380px, 1.18fr) minmax(210px, .72fr);
}
.filter-chip-group {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.filter-chip-group::-webkit-scrollbar { display: none; }
.filter-chip {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 9px;
  font-size: .78rem;
  white-space: nowrap;
}
@media (min-width: 1181px) {
  .filter-availability .filter-label { margin-left: 1px; }
}
@media (max-width: 1180px) {
  .filter-chip-group {
    flex-wrap: wrap;
    overflow: visible;
  }
  .filter-chip {
    flex: 0 1 auto;
  }
}
@media (max-width: 760px) {
  .filter-chip-group {
    display: flex;
    flex-wrap: wrap;
  }
  .filter-chip {
    flex: 1 1 calc(50% - 7px);
  }
}
@media (max-width: 560px) {
  .filter-chip {
    flex-basis: 100%;
  }
}


/* v11.8.3 hotfix: cleaner availability pills and pre-admin nav hiding */
.shop-toolbar.reward-toolbar.reward-toolbar-v118 {
  grid-template-columns: minmax(205px, 1fr) minmax(225px, .74fr) minmax(300px, .88fr) minmax(210px, .72fr);
}
.filter-availability .filter-chip-group {
  justify-content: flex-start;
  align-content: center;
}
.filter-availability .filter-chip {
  padding-inline: 12px;
}
.linked-services-grid:has(#linkedEmailService:only-child),
.settings-page .linked-services-grid {
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 1181px) {
  .filter-availability .filter-chip-group {
    min-width: 0;
  }
}
@media (max-width: 1180px) {
  .shop-toolbar.reward-toolbar.reward-toolbar-v118 {
    grid-template-columns: 1fr 1fr;
  }
}

/* v11.8.3 support makeover + pre-test support contact polish */
.support-widget {
  right: 20px;
  bottom: 20px;
}
.support-fab {
  width: auto;
  min-width: 68px;
  height: 52px;
  padding: 0 13px 0 9px;
  grid-template-columns: 32px auto;
  gap: 7px;
  border-radius: 999px;
  border-color: rgba(246, 207, 114, .42);
  background:
    radial-gradient(circle at 24% 22%, rgba(255,255,255,.32), transparent 24px),
    linear-gradient(135deg, #f6cf72, #e8b34d 48%, #9a6224);
  color: #160f07;
  box-shadow: 0 18px 48px rgba(0,0,0,.36), 0 0 0 5px rgba(232,179,77,.10);
}
.support-fab span {
  width: 32px;
  height: 32px;
  background: rgba(12,18,28,.88);
  border: 1px solid rgba(255,255,255,.16);
  color: var(--brand-2);
  font-size: 1rem;
  box-shadow: inset 0 0 18px rgba(246,207,114,.08);
}
.support-fab small {
  display: block;
  font-weight: 950;
  letter-spacing: -.02em;
  line-height: 1;
}
.support-fab:hover,
.support-fab.open {
  transform: translateY(-3px);
  box-shadow: 0 22px 58px rgba(0,0,0,.42), 0 0 0 6px rgba(232,179,77,.13);
}
.support-panel {
  width: min(390px, calc(100vw - 28px));
  padding: 18px;
  border-radius: 22px;
  border-color: rgba(226,232,240,.20);
  background:
    radial-gradient(circle at 15% 0%, rgba(232,179,77,.12), transparent 11rem),
    linear-gradient(180deg, rgba(22,31,47,.985), rgba(12,18,28,.985));
}
.support-panel-head {
  align-items: flex-start;
  margin-bottom: 14px;
}
.support-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 6px;
  padding: 4px 8px;
  border: 1px solid rgba(232,179,77,.22);
  border-radius: 999px;
  color: var(--brand-2);
  background: rgba(232,179,77,.075);
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.support-panel-head strong {
  font-size: 1.22rem;
  letter-spacing: -.035em;
}
.support-panel-head p {
  max-width: 260px;
  line-height: 1.4;
}
.support-form {
  gap: 12px;
}
.support-form input,
.support-form select,
.support-form textarea {
  background: rgba(7, 12, 20, .68);
  border-color: rgba(226,232,240,.17);
}
.support-form textarea {
  min-height: 108px;
}
.support-form a {
  color: var(--brand-2);
  font-weight: 850;
  text-decoration: none;
}
.support-form a:hover {
  text-decoration: underline;
}
.support-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.support-form .button[disabled] {
  opacity: .7;
  cursor: wait;
}
@media (max-width: 560px) {
  .support-widget { right: 12px; bottom: 12px; }
  .support-fab { min-width: 62px; height: 50px; padding-right: 11px; }
  .support-fab small { display: none; }
  .support-panel { width: min(380px, calc(100vw - 24px)); bottom: 64px; padding: 16px; }
}


/* v11.9.2.2 settings cleanup + sharper guide/admin support polish */
.settings-account-panel,
.settings-notifications-panel,
.settings-theme-panel {
  overflow: hidden;
}
.account-settings-grid,
.theme-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.settings-info-card {
  min-height: 100px;
  display: grid;
  gap: 6px;
  align-content: center;
  padding: 16px;
  border: 1px solid rgba(226,232,240,.12);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.025));
}
.settings-info-card span,
.settings-subsection-head h3 {
  color: var(--brand-2);
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.settings-info-card strong {
  overflow-wrap: anywhere;
  font-size: 1.05rem;
}
.settings-info-card small {
  color: var(--muted);
  line-height: 1.35;
}
.settings-trade-form {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(232,179,77,.16);
  border-radius: 18px;
  background: rgba(232,179,77,.045);
}
.settings-subsection {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.settings-subsection-head {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}
.settings-subsection-head h3 {
  margin: 0;
}
.settings-login-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.theme-option {
  min-height: 104px;
  display: grid;
  gap: 7px;
  align-content: center;
  justify-items: start;
  text-align: left;
  padding: 16px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(6,10,17,.20), rgba(6,10,17,.76)),
    var(--theme-preview-image, var(--site-background-image)) center center / cover no-repeat;
  color: var(--text);
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}
.theme-option::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.08), transparent);
  opacity: 0;
  transition: opacity 150ms ease;
  pointer-events: none;
}
.theme-option:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.22);
  filter: brightness(1.04);
}
.theme-option:hover::after { opacity: 1; }
.theme-option > * {
  position: relative;
  z-index: 1;
}
.theme-option strong {
  font-size: 1.02rem;
}
.theme-option span {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.055);
  font-size: .74rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.theme-option.active {
  border-color: rgba(246,207,114,.52);
  box-shadow: inset 0 0 0 1px rgba(232,179,77,.12), 0 16px 36px rgba(0,0,0,.26);
}
.theme-option.active span {
  color: #17100a;
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
}
.how-step-grid-compact .how-step-card p,
.faq-grid-compact .panel p {
  line-height: 1.5;
}
.admin-support-row.status-resolved {
  display: none;
}
@media (max-width: 900px) {
  .account-settings-grid,
  .theme-option-grid,
  .settings-login-grid {
    grid-template-columns: 1fr;
  }
}

/* v11.9.2.2 Steam Connect UI polish */
.linked-service#linkedSteamService.is-connected {
  border-color: rgba(53,201,139,.28);
  background: rgba(53,201,139,.055);
}
.linked-service#linkedSteamService.is-connected .linked-service-icon {
  border-color: rgba(53,201,139,.32);
  background: rgba(53,201,139,.12);
}

.linked-service-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.danger-button {
  border-color: rgba(255, 100, 110, 0.45);
  color: #ffd5d8;
}

.danger-button:hover {
  border-color: rgba(255, 100, 110, 0.85);
}


/* v12.0 map themes */
:root,
:root[data-theme="nuke"] {
  --site-background-image: url("assets/interface/nuke-background.png");
  --theme-preview-image: url("assets/interface/nuke-background.png");
  --theme-bg-tint-top: rgba(7, 10, 16, 0.18);
  --theme-bg-tint-bottom: rgba(7, 10, 16, 0.76);
  --theme-glow: rgba(91, 141, 232, 0.22);
  --theme-bg-saturation: 1.08;
  --theme-bg-contrast: 0.98;
  --bg: #050811;
  --page: #0f1520;
  --surface: #141b28;
  --surface-2: #192232;
  --surface-3: #202b3e;
  --brand: #e8b34d;
  --brand-2: #f6cf72;
  --accent: #6ea8ff;
}
:root[data-theme="train"] {
  --site-background-image: url("assets/interface/train-background.png");
  --theme-preview-image: url("assets/interface/train-background.png");
  --theme-bg-tint-top: rgba(15, 6, 8, 0.18);
  --theme-bg-tint-bottom: rgba(15, 6, 8, 0.78);
  --theme-glow: rgba(231, 80, 70, 0.22);
  --theme-bg-saturation: 1.12;
  --theme-bg-contrast: 1.02;
  --bg: #09080b;
  --page: #151016;
  --surface: #1b1419;
  --surface-2: #24191e;
  --surface-3: #302027;
  --brand: #d84c43;
  --brand-2: #ff8a5f;
  --accent: #d9a35a;
}
:root[data-theme="mirage"] {
  --site-background-image: url("assets/interface/mirage-background.png");
  --theme-preview-image: url("assets/interface/mirage-background.png");
  --theme-bg-tint-top: rgba(21, 13, 5, 0.16);
  --theme-bg-tint-bottom: rgba(21, 13, 5, 0.76);
  --theme-glow: rgba(236, 168, 78, 0.24);
  --theme-bg-saturation: 1.04;
  --theme-bg-contrast: 1.0;
  --bg: #0d0a07;
  --page: #17120d;
  --surface: #1d1710;
  --surface-2: #281e14;
  --surface-3: #342719;
  --brand: #d9953d;
  --brand-2: #ffd27a;
  --accent: #6ea8ff;
}
:root[data-theme="dust2"] {
  --site-background-image: url("assets/interface/dust2-background.png");
  --theme-preview-image: url("assets/interface/dust2-background.png");
  --theme-bg-tint-top: rgba(20, 14, 7, 0.14);
  --theme-bg-tint-bottom: rgba(20, 14, 7, 0.74);
  --theme-glow: rgba(245, 191, 105, 0.24);
  --theme-bg-saturation: 1.02;
  --theme-bg-contrast: 1.0;
  --bg: #0e0b07;
  --page: #18130c;
  --surface: #21190f;
  --surface-2: #2c2113;
  --surface-3: #3a2a16;
  --brand: #d6a150;
  --brand-2: #f4d08a;
  --accent: #78aee8;
}
:root[data-theme="ancient"] {
  --site-background-image: url("assets/interface/ancient-background.png");
  --theme-preview-image: url("assets/interface/ancient-background.png");
  --theme-bg-tint-top: rgba(5, 16, 10, 0.15);
  --theme-bg-tint-bottom: rgba(5, 16, 10, 0.78);
  --theme-glow: rgba(74, 210, 126, 0.20);
  --theme-bg-saturation: 1.05;
  --theme-bg-contrast: 0.98;
  --bg: #07100b;
  --page: #0e1912;
  --surface: #132219;
  --surface-2: #182d20;
  --surface-3: #1f3a29;
  --brand: #4fb06e;
  --brand-2: #96e6a8;
  --accent: #d7b46a;
}
.theme-option[data-theme-option="nuke"] { --theme-preview-image: url("assets/interface/nuke-background.png"); }
.theme-option[data-theme-option="train"] { --theme-preview-image: url("assets/interface/train-background.png"); }
.theme-option[data-theme-option="mirage"] { --theme-preview-image: url("assets/interface/mirage-background.png"); }
.theme-option[data-theme-option="dust2"] { --theme-preview-image: url("assets/interface/dust2-background.png"); }
.theme-option[data-theme-option="ancient"] { --theme-preview-image: url("assets/interface/ancient-background.png"); }

/* v12.1.1 theme tuning + navigation/settings polish */
:root,
:root[data-theme="nuke"],
:root[data-theme="train"],
:root[data-theme="mirage"],
:root[data-theme="dust2"],
:root[data-theme="ancient"] {
  --bg: #0b0f16;
  --page: #0f1520;
  --surface: #141b28;
  --surface-2: #192232;
  --surface-3: #202b3e;
  --brand: #e8b34d;
  --brand-2: #f6cf72;
  --accent: #6ea8ff;
  --theme-map-accent: #6ea8ff;
  --theme-map-accent-2: #f6cf72;
  --theme-map-rgb: 110, 168, 255;
}

:root,
:root[data-theme="nuke"] {
  --site-background-image: url("assets/interface/nuke-background.png");
  --theme-preview-image: url("assets/interface/nuke-background.png");
  --theme-bg-tint-top: rgba(5, 8, 14, 0.08);
  --theme-bg-tint-bottom: rgba(5, 8, 14, 0.68);
  --theme-glow: rgba(91, 141, 232, 0.30);
  --theme-map-accent: #6ea8ff;
  --theme-map-accent-2: #f6cf72;
  --theme-map-rgb: 110, 168, 255;
  --theme-bg-saturation: 1.14;
  --theme-bg-contrast: 1.03;
}
:root[data-theme="train"] {
  --site-background-image: url("assets/interface/train-background.png");
  --theme-preview-image: url("assets/interface/train-background.png");
  --theme-bg-tint-top: rgba(16, 6, 7, 0.10);
  --theme-bg-tint-bottom: rgba(16, 6, 7, 0.70);
  --theme-glow: rgba(232, 89, 72, 0.29);
  --theme-map-accent: #ff6b57;
  --theme-map-accent-2: #f6cf72;
  --theme-map-rgb: 255, 107, 87;
  --theme-bg-saturation: 1.18;
  --theme-bg-contrast: 1.05;
}
:root[data-theme="mirage"] {
  --site-background-image: url("assets/interface/mirage-background.png");
  --theme-preview-image: url("assets/interface/mirage-background.png");
  --theme-bg-tint-top: rgba(18, 11, 4, 0.06);
  --theme-bg-tint-bottom: rgba(18, 11, 4, 0.66);
  --theme-glow: rgba(236, 168, 78, 0.32);
  --theme-map-accent: #f3b45b;
  --theme-map-accent-2: #6ea8ff;
  --theme-map-rgb: 243, 180, 91;
  --theme-bg-saturation: 1.12;
  --theme-bg-contrast: 1.04;
}
:root[data-theme="dust2"] {
  --site-background-image: url("assets/interface/dust2-background.png");
  --theme-preview-image: url("assets/interface/dust2-background.png");
  --theme-bg-tint-top: rgba(18, 12, 4, 0.06);
  --theme-bg-tint-bottom: rgba(18, 12, 4, 0.66);
  --theme-glow: rgba(245, 191, 105, 0.31);
  --theme-map-accent: #e1b76a;
  --theme-map-accent-2: #6ea8ff;
  --theme-map-rgb: 225, 183, 106;
  --theme-bg-saturation: 1.10;
  --theme-bg-contrast: 1.04;
}
:root[data-theme="ancient"] {
  --site-background-image: url("assets/interface/ancient-background.png");
  --theme-preview-image: url("assets/interface/ancient-background.png");
  --theme-bg-tint-top: rgba(3, 15, 8, 0.07);
  --theme-bg-tint-bottom: rgba(3, 15, 8, 0.70);
  --theme-glow: rgba(74, 210, 126, 0.30);
  --theme-map-accent: #65d982;
  --theme-map-accent-2: #f6cf72;
  --theme-map-rgb: 101, 217, 130;
  --theme-bg-saturation: 1.16;
  --theme-bg-contrast: 1.03;
}

body::before {
  inset: -14px;
  filter: blur(5px) saturate(var(--theme-bg-saturation)) contrast(var(--theme-bg-contrast));
  transform: scale(1.025);
}
body::after {
  background:
    radial-gradient(circle at 50% -4%, var(--theme-glow), transparent 32rem),
    radial-gradient(circle at 86% 18%, rgba(var(--theme-map-rgb), .10), transparent 24rem),
    linear-gradient(90deg, rgba(4, 7, 12, 0.72), rgba(4, 7, 12, 0.38) 50%, rgba(4, 7, 12, 0.72));
}
.site-header,
.page,
main.hero,
.panel,
.card,
.provider-card,
.reward-card,
.settings-info-card,
.linked-service,
.theme-option {
  box-shadow: 0 18px 58px rgba(0,0,0,.28), 0 0 0 1px rgba(var(--theme-map-rgb), .025);
}
.site-header {
  border-color: rgba(var(--theme-map-rgb), .16);
}
.page,
main.hero {
  border-color: rgba(var(--theme-map-rgb), .12);
}
.panel:hover,
.card:hover,
.provider-card:hover,
.reward-card:hover {
  border-color: rgba(var(--theme-map-rgb), .23);
}
.theme-option {
  min-height: 112px;
  background:
    linear-gradient(180deg, rgba(6,10,17,.06), rgba(6,10,17,.82)),
    var(--theme-preview-image, var(--site-background-image)) center center / cover no-repeat;
}
.theme-option.active {
  border-color: rgba(var(--theme-map-rgb), .72);
  box-shadow: inset 0 0 0 1px rgba(var(--theme-map-rgb), .20), 0 16px 42px rgba(0,0,0,.30), 0 0 34px rgba(var(--theme-map-rgb), .14);
}
.theme-option.active::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 0%, rgba(var(--theme-map-rgb), .24), transparent 62%);
  pointer-events: none;
}
.theme-option.active span {
  color: #0b0f16;
  background: linear-gradient(180deg, #eef2f8, var(--theme-map-accent));
}

@media (min-width: 1081px) {
  .nav-actions {
    min-width: 380px;
  }
  .nav-actions.auth-loading .auth-skeleton {
    width: 380px;
  }
}
.nav-actions.nav-restored {
  transition: opacity 120ms ease;
}
.auth-skeleton {
  opacity: .72;
}
.page-loader {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.settings-page .linked-service {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
}
.settings-page .linked-service-actions {
  display: contents;
}
.settings-page .linked-service-actions .button {
  grid-column: 3;
  margin-left: 0;
  justify-self: end;
}
.settings-page .linked-service-actions > span {
  grid-column: 4;
  justify-self: end;
  margin-left: 0;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(53,201,139,.12);
  border: 1px solid rgba(53,201,139,.24);
  color: #a9f3d1;
  font-size: .74rem;
  font-weight: 900;
}
.settings-page .linked-service > span {
  grid-column: 4;
  justify-self: end;
}
.linked-service#linkedSteamService.is-connected {
  border-color: rgba(53,201,139,.30);
  background: linear-gradient(180deg, rgba(53,201,139,.070), rgba(255,255,255,.024));
}

@media (max-width: 760px) {
  .settings-page .linked-service {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .settings-page .linked-service-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .settings-page .linked-service-actions .button,
  .settings-page .linked-service-actions > span,
  .settings-page .linked-service > span {
    grid-column: auto;
    justify-self: start;
    margin-left: 54px;
  }
}

/* v12.1.1 release polish: calmer typography, slightly larger logo, steadier nav, and lighter theme touch */
html {
  background: #0b0f16;
  color-scheme: dark;
}

.brand-logo {
  height: 54px;
  max-width: 270px;
}
.site-header {
  min-height: 82px;
}
.brand-fallback .brand-mark {
  width: 42px;
  height: 42px;
}

/* Keep headings strong, but make regular UI copy feel less AI-heavy. */
p,
li,
small,
.muted,
.fine-print,
.fine-auth,
.provider-card p,
.reward-card p,
.card p,
.panel p,
.settings-toggle small,
.security-checklist span,
.account-dropdown button,
.footer-links a {
  font-weight: 400;
}

.site-nav a,
.nav-login,
.coin-pill span,
.card-topline,
label,
.settings-info-card span,
.settings-subsection-head h3,
.filter-control label,
.level-pill-label,
.setup-step span,
.system-status-card span {
  font-weight: 700;
}

.pill,
.button,
.status-pill,
.stock-pill,
.theme-option span,
.theme-option strong,
.settings-info-card strong,
.linked-service strong,
.account-trigger-copy strong,
.coin-pill strong,
.price,
h1,
h2,
h3,
.brand,
.brand-mark,
.account-avatar,
.provider-logo {
  font-weight: 800;
}

h1 {
  font-weight: 850;
}

/* Make map themes more visible through mood/glow, not by changing the core blue interface. */
body::before {
  opacity: .98;
  filter: blur(6px) saturate(calc(var(--theme-bg-saturation) + .06)) contrast(calc(var(--theme-bg-contrast) + .02));
}
body::after {
  background:
    radial-gradient(circle at 50% -5%, var(--theme-glow), transparent 29rem),
    radial-gradient(circle at 88% 16%, rgba(var(--theme-map-rgb), .13), transparent 25rem),
    radial-gradient(circle at 10% 22%, rgba(var(--theme-map-rgb), .08), transparent 24rem),
    linear-gradient(90deg, rgba(4, 7, 12, 0.74), rgba(4, 7, 12, 0.34) 50%, rgba(4, 7, 12, 0.74));
}

.page-heading,
.section-headline {
  position: relative;
}
.page-heading::after,
.section-headline::after {
  content: "";
  display: block;
  width: 78px;
  height: 1px;
  margin-top: 14px;
  background: linear-gradient(90deg, rgba(var(--theme-map-rgb), .55), transparent);
  opacity: .55;
}
.theme-option {
  min-height: 118px;
}
.theme-option:hover {
  box-shadow: 0 16px 42px rgba(0,0,0,.26), 0 0 24px rgba(var(--theme-map-rgb), .08);
}
.theme-option.active {
  transform: translateY(-1px);
}

/* Reduce visible layout movement while auth/profile refreshes. */
.nav-actions {
  min-height: 46px;
}
.account-trigger {
  min-width: 162px;
  justify-content: flex-start;
}
.nav-actions.auth-loading .auth-skeleton {
  width: 240px;
  max-width: 100%;
}
.nav-actions.nav-restored {
  min-height: 46px;
}

/* Settings order polish: Themes now sits before Notifications in the markup. */
.settings-theme-panel {
  border-color: rgba(var(--theme-map-rgb), .18);
}

@media (max-width: 1180px) {
  .brand-logo { height: 50px; max-width: 235px; }
}
@media (max-width: 760px) {
  .brand-logo { height: 42px; max-width: 185px; }
  .site-header { min-height: 72px; }
  .nav-actions.auth-loading .auth-skeleton { width: 128px; }
  .account-trigger { min-width: 0; }
}
@media (max-width: 560px) {
  .brand-logo { max-width: 155px; height: 38px; }
}

/* v12.1.1 hotfix: keep the site background layer above the body color but below all content. */
body {
  isolation: isolate;
}
body::before {
  z-index: 0 !important;
  background-image:
    linear-gradient(180deg, var(--theme-bg-tint-top), var(--theme-bg-tint-bottom)),
    var(--site-background-image),
    url("assets/interface/site-background.png");
  background-position: center center, center center, center center;
  background-size: cover, cover, cover;
  background-repeat: no-repeat, no-repeat, no-repeat;
}
body::after {
  z-index: 0 !important;
}
body > header,
body > main,
body > footer {
  position: relative;
  z-index: 1;
}
.page-loader {
  z-index: 999 !important;
}


/* v12.1.1 Steam email prompt + settings interaction polish */
.email-prompt-modal { width: min(500px, 100%); }
.email-prompt-form { display: grid; gap: 13px; }
.input-label { display: grid; gap: 7px; color: var(--text); font-weight: 760; }
.input-label input {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(255,255,255,.045);
  color: var(--text);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.input-label input:focus {
  border-color: rgba(110,168,255,.58);
  box-shadow: 0 0 0 4px rgba(110,168,255,.12);
  background: rgba(255,255,255,.065);
}
.button {
  position: relative;
  transition: transform 160ms ease, filter 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}
.button:active:not(:disabled) { transform: translateY(1px) scale(.99); }
.button.is-saving,
.button.is-saved { pointer-events: none; }
.button.is-saving {
  opacity: .92;
  box-shadow: 0 0 0 4px rgba(110,168,255,.10), 0 16px 40px rgba(0,0,0,.24);
}
.button.is-saving::after {
  content: "";
  width: 13px;
  height: 13px;
  margin-left: 9px;
  display: inline-block;
  vertical-align: -2px;
  border-radius: 999px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: skinquest-spin .72s linear infinite;
}
.button.is-saved {
  color: #082115;
  background: linear-gradient(180deg, #73edb8, #35c98b);
  border-color: rgba(53,201,139,.42);
  box-shadow: 0 0 0 4px rgba(53,201,139,.13), 0 18px 42px rgba(0,0,0,.24);
}
@keyframes skinquest-spin { to { transform: rotate(360deg); } }
.settings-toggle {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.settings-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(110,168,255,.28);
  background: rgba(255,255,255,.045);
}
.settings-toggle:has(input:focus-visible) {
  box-shadow: 0 0 0 4px rgba(110,168,255,.12);
  border-color: rgba(110,168,255,.45);
}
.settings-toggle input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}
.toggle-switch {
  width: 56px;
  height: 30px;
  padding: 3px;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.25);
  background: rgba(15,21,32,.92);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.toggle-switch span {
  width: 22px;
  height: 22px;
  display: block;
  border-radius: 999px;
  background: linear-gradient(180deg, #e6edf7, #93a4b8);
  box-shadow: 0 6px 14px rgba(0,0,0,.35);
  transform: translateX(0);
  transition: transform 210ms cubic-bezier(.2,.8,.2,1), background 180ms ease;
}
.settings-toggle input[type="checkbox"]:checked + .toggle-switch {
  border-color: rgba(53,201,139,.48);
  background: linear-gradient(90deg, rgba(53,201,139,.85), rgba(110,168,255,.78));
  box-shadow: 0 0 0 4px rgba(53,201,139,.10), inset 0 0 0 1px rgba(255,255,255,.10);
}
.settings-toggle input[type="checkbox"]:checked + .toggle-switch span {
  transform: translateX(26px);
  background: linear-gradient(180deg, #ffffff, #dcecff);
}
@media (max-width: 680px) {
  .settings-toggle { align-items: center; }
  .toggle-switch { width: 52px; height: 29px; }
  .settings-toggle input[type="checkbox"]:checked + .toggle-switch span { transform: translateX(23px); }
}


/* v12.2.4 CS2 profile titles + earned coin/XP animation */
.level-stat-card {
  position: relative;
  overflow: hidden;
}

.level-title-display {
  display: inline-flex !important;
  width: fit-content;
  max-width: 100%;
  margin: 8px 0 10px !important;
  padding: 5px 9px;
  border: 1px solid rgba(255, 170, 64, .25);
  border-radius: 999px;
  background: rgba(255, 151, 46, .09);
  color: #ffd09a !important;
  font-size: .76rem;
  font-weight: 800 !important;
  line-height: 1.2;
}

.xp-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.xp-panel-heading h2,
.xp-panel-heading p {
  margin-top: 0;
}

.xp-panel-heading p {
  margin-bottom: 0;
}

.level-rank-badge {
  flex: 0 1 auto;
  max-width: 300px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 170, 64, .28);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 174, 76, .13), rgba(255, 151, 46, .07));
  color: #ffd39f;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.account-rank-line {
  display: block;
  margin-top: 3px;
  color: #ffd09a !important;
  font-size: .74rem;
}

.progress-gain-stack {
  position: fixed;
  top: 92px;
  left: 50%;
  z-index: 420;
  width: min(390px, calc(100vw - 28px));
  display: grid;
  gap: 10px;
  pointer-events: none;
  transform: translateX(-50%);
}

.progress-gain-popup {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 185, 92, .32);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% -35%, rgba(255, 184, 80, .24), transparent 56%),
    linear-gradient(180deg, rgba(24, 34, 51, .98), rgba(11, 17, 27, .99));
  box-shadow: 0 22px 70px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .08);
  opacity: 0;
  transform: translateY(-20px) scale(.92);
  transition: opacity 340ms ease, transform 420ms cubic-bezier(.18, .89, .32, 1.28);
}

.progress-gain-popup::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,.12) 45%, transparent 70%);
  opacity: 0;
  transform: translateX(-100%);
  pointer-events: none;
}

.progress-gain-popup.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.progress-gain-popup.show::after {
  animation: progressGainShine 900ms 180ms ease-out forwards;
}

.progress-gain-popup.leaving {
  opacity: 0;
  transform: translateY(-14px) scale(.96);
  transition-timing-function: ease-in;
}

.progress-level-up {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 185, 92, .18);
  background: rgba(255, 157, 44, .08);
  text-align: center;
}

.progress-level-up span,
.progress-level-up strong {
  display: block;
}

.progress-level-up span {
  margin-bottom: 3px;
  color: #ffbf72;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.progress-level-up strong {
  color: #fff3df;
  font-size: 1rem;
}

.progress-gain-rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255,255,255,.07);
}

.progress-gain-rows > :only-child {
  grid-column: 1 / -1;
}

.progress-gain-row {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 13px 16px;
  background: rgba(12, 19, 30, .98);
}

.progress-gain-row > div {
  display: grid;
  gap: 1px;
}

.progress-gain-row strong {
  color: #fff5e5;
  font-size: 1.22rem;
  line-height: 1;
}

.progress-gain-row span:not(.progress-xp-icon) {
  color: var(--muted);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.progress-gain-coin {
  width: 43px;
  height: 43px;
  animation: progressCoinPop 780ms cubic-bezier(.2, .85, .25, 1.3);
}

.progress-xp-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(103, 176, 255, .38);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(95, 167, 255, .22), rgba(95, 167, 255, .07));
  color: #beddff;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .04em;
  box-shadow: 0 9px 22px rgba(68, 143, 237, .16);
  animation: progressXpPop 780ms 80ms cubic-bezier(.2, .85, .25, 1.3) both;
}

@keyframes progressGainShine {
  0% { opacity: 0; transform: translateX(-100%); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translateX(100%); }
}

@keyframes progressCoinPop {
  0% { opacity: 0; transform: translateY(10px) rotate(-20deg) scale(.45); }
  65% { opacity: 1; transform: translateY(-2px) rotate(7deg) scale(1.12); }
  100% { transform: translateY(0) rotate(0) scale(1); }
}

@keyframes progressXpPop {
  0% { opacity: 0; transform: translateY(10px) scale(.45); }
  65% { opacity: 1; transform: translateY(-2px) scale(1.12); }
  100% { transform: translateY(0) scale(1); }
}

@media (max-width: 640px) {
  .xp-panel-heading {
    display: grid;
    gap: 12px;
  }

  .level-rank-badge {
    width: fit-content;
    max-width: 100%;
    text-align: left;
  }

  .progress-gain-stack {
    top: 76px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .progress-gain-popup,
  .progress-gain-popup::after,
  .progress-gain-coin,
  .progress-xp-icon {
    animation: none !important;
    transition-duration: 1ms !important;
  }
}

.mini-stats [data-home-level-title] {
  line-height: 1.2;
  overflow-wrap: anywhere;
}


/* Trade URL save feedback */
.form-feedback {
  min-height: 1.35em;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.45;
}
.form-feedback-info { color: var(--accent); }
.form-feedback-success { color: var(--green); }
.form-feedback-error { color: var(--red); }

/* v13.1.0: install discovery, platform icons, and final responsive pass */
.home-install-cta {
  width: min(100%, 520px);
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 180, 78, .28);
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(255, 172, 63, .13), rgba(255, 139, 35, .05));
  color: var(--text);
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}

.home-install-cta:hover {
  border-color: rgba(255, 191, 93, .54);
  background: linear-gradient(135deg, rgba(255, 172, 63, .2), rgba(255, 139, 35, .08));
  transform: translateY(-2px);
}

.home-install-cta > span:nth-child(2) { min-width: 0; display: grid; gap: 2px; }
.home-install-cta strong { color: #fff4e2; font-size: .94rem; }
.home-install-cta small { color: var(--muted); font-size: .76rem; line-height: 1.35; }
.home-install-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 184, 80, .24);
  border-radius: 13px;
  background: rgba(255, 167, 54, .1);
}
.home-install-icon svg { width: 23px; height: 23px; fill: none; stroke: #ffc469; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.home-install-arrow { color: #ffc469; font-size: 1.8rem; line-height: 1; }

.platform-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,255,255,.035));
  color: #f4f6fb;
}
.platform-icon svg { width: 27px; height: 27px; fill: currentColor; }
.platform-icon-desktop svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.platform-icon-android { color: #a4df64; }
.platform-icon-apple { color: #f4f5f8; }
.platform-icon-desktop { color: #9fcaff; }
.provider-bitlabs-card { border-color: rgba(99, 155, 255, .25); }

@media (max-width: 760px) {
  html { overflow-x: hidden; scroll-padding-top: 86px; }
  body { min-width: 0; overflow-x: hidden; }

  .site-header {
    width: calc(100% - 16px);
    min-height: 62px;
    margin: 8px auto 0;
    padding: 9px 10px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    border-radius: 16px;
  }

  .brand { min-width: 0; }
  .brand-logo { width: auto; max-width: 116px; height: 31px; object-fit: contain; }
  .nav-toggle { width: 42px; height: 42px; min-width: 42px; padding: 0; border-radius: 12px; }
  .nav-actions { min-width: 0; gap: 6px; }
  .nav-actions .button { min-height: 42px; padding: 9px 11px; font-size: .77rem; }
  .coin-pill, .level-pill { display: none !important; }
  .account-trigger { width: 44px; min-width: 44px; max-width: 44px; height: 44px; padding: 5px; justify-content: center; }
  .account-trigger-copy, .account-chevron { display: none; }

  .site-nav {
    grid-column: 1 / -1;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    padding: 0;
    opacity: 0;
    pointer-events: none;
    transition: max-height .24s ease, padding .24s ease, opacity .18s ease;
  }
  .site-nav.open { max-height: 260px; padding-top: 7px; opacity: 1; pointer-events: auto; }
  .site-nav a { min-height: 44px; display: grid; place-items: center; padding: 9px 8px; border-radius: 10px; text-align: center; }

  main, main.page { width: 100%; max-width: none; padding-left: 12px; padding-right: 12px; }
  .hero, .page-heading, .panel, .provider-card, .reward-card, .settings-card { border-radius: 17px; }
  .hero { min-height: 0; padding: 24px 18px; }
  .hero-split, .feature-grid, .provider-grid, .recommended-surveys-grid, .reward-grid, .settings-grid, .install-layout { grid-template-columns: minmax(0, 1fr) !important; }
  .hero-copy h1, .page-heading h1 { max-width: 100%; font-size: clamp(2.15rem, 10.5vw, 3.35rem); line-height: .98; overflow-wrap: anywhere; }
  .hero-copy > p, .page-heading > p { max-width: 100%; font-size: .94rem; line-height: 1.65; }
  .hero-actions { width: 100%; display: grid; grid-template-columns: 1fr; gap: 9px; }
  .hero-actions.hidden { display: none; }
  .hero-actions .button, .provider-action { width: 100%; min-height: 49px; }
  .home-install-cta { width: 100%; margin-top: 11px; padding: 11px; }
  .trust-row { gap: 7px; }
  .trust-row span { font-size: .72rem; }
  .hero-card { min-width: 0; padding: 16px; }
  .mini-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .mini-stats > div { min-width: 0; padding: 10px 5px; }
  .mini-stats strong { font-size: clamp(1rem, 5vw, 1.35rem); overflow-wrap: anywhere; }

  .page-heading { padding: 24px 16px; text-align: left; }
  .compact-heading { align-items: flex-start; }
  .section-headline, .xp-panel-heading, .reward-toolbar { display: grid; gap: 11px; }
  .panel, .provider-card { padding: 16px; }
  .recommended-surveys-panel { min-height: 0; }
  .recommended-surveys-grid { gap: 10px; }
  .survey-result-card { min-width: 0; min-height: 0; padding: 15px; }
  .survey-result-meta { gap: 8px; flex-wrap: wrap; }
  .provider-grid { gap: 10px; }
  .provider-card { min-height: 0; }
  .provider-head { align-items: flex-start; }
  .provider-head > div { min-width: 0; }
  .provider-head h2, .provider-head p { overflow-wrap: anywhere; }

  .install-hero { padding-top: 26px; padding-bottom: 26px; }
  .install-hero .button { width: 100%; }
  .install-layout { gap: 10px; }
  .install-card { min-height: 0; }
  .install-card ol { padding-left: 21px; }
  .install-card li { margin-bottom: 8px; line-height: 1.55; }
  .install-qr-card { grid-column: auto; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; align-items: center; }
  .install-qr-card img { width: 92px; height: 92px; }

  .reward-toolbar input, .reward-toolbar select, .stack-form input, .stack-form textarea, .stack-form select { width: 100%; min-width: 0; }
  .reward-card-actions, .settings-actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .reward-card-actions .button, .settings-actions .button { width: 100%; }
  .dashboard-grid, .account-grid, .admin-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .table-wrap { margin-left: -4px; margin-right: -4px; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  .site-footer { width: calc(100% - 24px); margin-left: auto; margin-right: auto; padding: 22px 4px 28px; display: grid; gap: 18px; }
  .footer-links { justify-content: flex-start; gap: 10px 16px; }
  .auth-modal { width: calc(100vw - 20px); max-height: calc(100dvh - 24px); overflow-y: auto; padding: 20px 15px; border-radius: 18px; }
  .support-widget { right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); }
  .support-panel { width: calc(100vw - 20px); max-height: calc(100dvh - 90px); overflow-y: auto; }
  .progress-gain-stack { top: 78px; width: calc(100vw - 20px); }
}

@media (max-width: 420px) {
  .site-header { width: calc(100% - 10px); margin-top: 5px; padding: 8px; gap: 5px; }
  .brand-logo { max-width: 102px; height: 28px; }
  main, main.page { padding-left: 8px; padding-right: 8px; }
  .hero, .page-heading { padding-left: 14px; padding-right: 14px; }
  .hero-copy h1, .page-heading h1 { font-size: clamp(2rem, 11vw, 2.75rem); }
  .panel, .provider-card { padding: 14px; }
  .home-install-cta { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 9px; }
  .home-install-icon { width: 40px; height: 40px; }
  .home-install-cta small { font-size: .7rem; }
  .install-qr-card { grid-template-columns: 76px minmax(0, 1fr); }
  .install-qr-card img { width: 76px; height: 76px; }
  .mini-stats { grid-template-columns: 1fr; }
}
