/* PixGo UI system (flat, PixCon-like, Pixel purple accent) */
/* BUILD: PIXGO 21JAN TEST */
:root{
  --ink: #15121b;
  --muted: #4e465b;
  --paper: #fbfaf6;

  --purple: #8547da;
  --purple2: #a77bff;

  --card: rgba(255,255,255,.92);
  --lineSoft: rgba(21,18,27,.12);
  --lineMed: rgba(21,18,27,.18);

  --rCard: 16px;
  --rCtl: 12px;
}

body.pixgo{
  background:
    linear-gradient(to bottom, rgba(133,71,218,.08), transparent 220px),
    linear-gradient(to right, rgba(21,18,27,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(21,18,27,.06) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 42px 42px, 42px 42px, auto;
  color: var(--ink);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

/* layout wrapper spacing (default, non-capsule pages can use this) */
.wrap{
  max-width: 1040px;
  margin: 0 auto;
  padding: 22px 18px;
}

/* Top bar (only for in-app pages) */
body.pixgo.inapp .top{
  background: rgba(255,255,255,.75);
  border-bottom: 1px solid rgba(21,18,27,.10);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 5;
}

body.pixgo.inapp .brand{
  font-weight: 950;
  letter-spacing: .6px;
}

body.pixgo.inapp .nav a,
body.pixgo.inapp .linkbtn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-left: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(21,18,27,.14);
  background: rgba(255,255,255,.80);
  color: var(--ink);
  font-weight: 850;
  text-decoration:none;
}

body.pixgo.inapp .nav a:hover,
body.pixgo.inapp .linkbtn:hover{
  border-color: rgba(133,71,218,.35);
  box-shadow: 0 0 0 4px rgba(133,71,218,.12);
}

body.pixgo.inapp .linkbtn{
  cursor:pointer;
}

/* IMPORTANT:
   Remove the old "phone-like width clamp" because the capsule handles it now.
   Keeping this causes double-centering and weird drift on desktop.
*/
/*
body.pixgo.inapp .wrap{
  max-width: 560px;
  margin: 0 auto;
  padding: 14px 14px 22px;
}
*/

/* Appbar inner layout: GRID locks left / center / right */
.appbar-inner{
  width: 100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding-right: 8px;   /* 👈 pulls ticket slightly inward */
  padding-left: 4px;    /* optional: balances left icon */
}

.appbar-left{ justify-self: start; }
.appbar-center{ justify-self: center; }
.appbar-right{ justify-self: center; }

.appbar-right .ticketpill{
  padding: 8px 12px;
}


/* If you still want slightly taller tiles */
.tile{
  min-height: 140px;
}

/* Small phones: allow single column if needed */
@media (max-width: 380px){
  .tilegrid{
    grid-template-columns: 1fr;
  }
}

/* Let auth pages stay wider if you want */
body.pixgo.auth .wrap{
  max-width: 980px;
}

/* Cards */
.card{
  background: var(--card);
  border: 1px solid var(--lineSoft);
  border-radius: var(--rCard);
  box-shadow: none;
  padding: 18px;
  margin: 16px 0;
}

/* Headings */
h1, h2{
  margin: 0 0 12px;
  letter-spacing: .2px;
}

.big{
  font-size: 22px;
  font-weight: 950;
}

.small{
  font-size: 13px;
  color: var(--muted);
}

/* Form controls */
label{
  display:block;
  margin: 10px 0 6px;
  font-size: 13px;
  font-weight: 850;
  color: var(--muted);
}

input{
  width:100%;
  padding: 12px 12px;
  border-radius: var(--rCtl);
  border: 1px solid var(--lineMed);
  background: rgba(255,255,255,.96);
  color: var(--ink);
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease;
}

input:focus{
  border-color: rgba(133,71,218,.50);
  box-shadow: 0 0 0 4px rgba(133,71,218,.14);
}

/* Buttons */
button, .btn{
  border: 1px solid rgba(21,18,27,.14);
  border-radius: var(--rCtl);
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 950;
  background: linear-gradient(135deg, var(--purple), var(--purple2));
  color: #fff;
  box-shadow: none;
}

button:active, .btn:active{ transform: translateY(1px); }

button[disabled]{ opacity:.45; cursor:not-allowed; box-shadow:none; }

/* Messages */
.error{
  background: rgba(255, 68, 68, .10);
  border: 1px solid rgba(255, 68, 68, .25);
  border-radius: 14px;
  padding: 12px 12px;
  box-shadow: none;
}

.ok{
  background: rgba(22, 180, 90, .10);
  border: 1px solid rgba(22, 180, 90, .25);
  border-radius: 14px;
  padding: 12px 12px;
  box-shadow: none;
}

/* Grid utilities */
.grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

/* Tables */
.tbl{ width:100%; border-collapse: collapse; background: transparent; }
.tbl th, .tbl td{
  border-bottom: 1px solid rgba(21,18,27,.12);
  padding: 10px 8px;
  text-align:left;
}
.tbl th{ color: var(--muted); font-size: 12px; }

/* Footer */
.foot{ opacity:.75; }

/* Auth pages shell */
body.pixgo.auth .wrap{ max-width: 980px; }

.auth-shell{
  min-height: calc(100vh - 40px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 26px 16px;
}

.auth-card{
  width: 100%;
  max-width: 520px;
}

.auth-header{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 12px;
  margin-bottom: 14px;
  text-align:center;
}

.auth-logo{
  width: 74px;
  height: 74px;
  border-radius: 18px;
  border: 1px solid var(--lineMed);
  background: rgba(255,255,255,.95);
  box-shadow: none;
  display:grid;
  place-items:center;
  overflow:hidden;
}

.auth-logo img{
  width: 54px;
  height: 54px;
  image-rendering: pixelated;
}

.auth-title{
  font-size: 22px;
  font-weight: 950;
}

.auth-sub{
  color: var(--muted);
  font-size: 16px;
  margin-top: -6px;
  font-weight: bold;
}
.auth-sub-1{
  color: var(--muted);
  font-size: 13px;
  margin-top: -6px;
}

.auth-links{
  margin-top: 14px;
  text-align:center;
  color: var(--muted);
  font-size: 13px;
}

.auth-links a{
  color: var(--purple);
  font-weight: 950;
  text-decoration:none;
}

/* Dashboard PixGo mobile vibe */

.appbar{
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(135deg, #8547da, #a77bff);
  color: #fff;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.18);
  display: block; /* IMPORTANT: appbar is NOT flex */
}

.app-title{
  font-weight: 950;
  letter-spacing: .8px;
}

.iconbtn{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.14);
  display:grid;
  place-items:center;
  color: #fff;
  text-decoration:none;
  box-shadow: none;
}

.ticketpill{
  display:flex;
  align-items:center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.14);
  box-shadow: none;
  font-weight: 900;
}

.card.promo{
  background: rgba(255,255,255,.92);
}

.promo-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}

.promo-kicker{
  font-size: 12px;
  font-weight: 950;
  color: rgba(133,71,218,1);
}

.promo-title{
  font-size: 20px;
  font-weight: 950;
  margin-top: 6px;
  margin-bottom: 6px;
}

.promo-art{
  width: 64px;
  height: 64px;
  border-radius: 16px;
  border: 1px solid var(--lineMed);
  background: rgba(133,71,218,.10);
  display:grid;
  place-items:center;
  font-size: 26px;
  box-shadow: none;
}

.section-title{
  font-size: 18px;
  font-weight: 950;
  letter-spacing: .2px;
  margin: 18px 2px 12px;
}

.tilegrid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.tile{
  text-decoration:none;
  color: var(--ink);
  background: rgba(255,255,255,.92);
  border: 1px solid var(--lineSoft);
  border-radius: var(--rCard);
  box-shadow: none;
  padding: 14px;
  min-height: 120px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  gap: 6px;
}

.tile:focus,
.tile:hover{
  border-color: rgba(133,71,218,.35);
  box-shadow: 0 0 0 4px rgba(133,71,218,.10);
}

.tile-emoji{
  font-size: 28px;
  margin-bottom: 6px;
}

.tile-label{
  font-weight: 950;
  font-size: 14px;
}

.tile-sub{
  font-size: 12px;
  color: var(--muted);
}

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

/* Bottom nav */
.bottomnav{
  position: sticky;
  bottom: 0;
  margin-top: 16px;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--lineSoft);
  border-radius: var(--rCard);
  box-shadow: none;
  padding: 10px 10px;
  display:flex;
  justify-content:space-between;
  gap: 8px;
}

.bn-item{
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap: 6px;
  padding: 10px 8px;
  border-radius: 14px;
  text-decoration:none;
  color: var(--ink);
  font-weight: 900;
  border: 1px solid rgba(21,18,27,.10);
  background: rgba(255,255,255,.75);
}

.bn-item span{
  font-size: 11px;
  color: var(--muted);
  font-weight: 850;
}

.bn-item.is-active{
  border: 1px solid rgba(133,71,218,.55);
  box-shadow: 0 0 0 4px rgba(133,71,218,.10);
}

.bn-form{ margin:0; flex:1; }
.bn-btn{
  width: 100%;
  cursor:pointer;
  border: 1px solid rgba(21,18,27,.10);
  background: rgba(255,255,255,.75);
}

.costpill{
  display:inline-block;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid rgba(21,18,27,.14);
  background: rgba(133,71,218,.10);
  font-weight: 900;
  font-size: 12px;
  box-shadow: none;
}

/* App-like page transitions (supported in modern Chromium browsers) */
@view-transition {
  navigation: auto;
}

/* Keep it subtle and fast */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 180ms;
  animation-timing-function: ease;
}

::view-transition-old(root) {
  animation-name: pixgo-fade-out;
}

::view-transition-new(root) {
  animation-name: pixgo-fade-in;
}

@keyframes pixgo-fade-out {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(2px); }
}

@keyframes pixgo-fade-in {
  from { opacity: 0; transform: translateY(2px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none !important;
  }
}

/* Fallback fade overlay */


/* Desktop phone-capsule shell */
.app-shell{
  min-height: 100vh;
  display:flex;
  justify-content:center;
  padding: 28px 16px;
}

/* The capsule itself */
.app-capsule{
  width: 100%;
  max-width: 460px; /* feels like a phone */
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(21,18,27,.18);
  border-radius: 26px;
  overflow: hidden;
}

/* Appbar inside capsule */
.app-capsule .appbar{
  position: sticky;
  top: 0;
}

/* Appbar inner should fill capsule width */
.app-capsule .appbar-inner{
  max-width: none;
  margin: 0;
  padding: 0 12px;
}

/* Wrap should use capsule width */
.app-capsule .wrap{
  max-width: none;
  margin: 0;
  padding: 14px 14px 22px;
}

/* Keep tiles looking like your phone layout */
.app-capsule .tilegrid{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Very small screens: go single column */
@media (max-width: 380px){
  .app-capsule .tilegrid{
    grid-template-columns: 1fr;
  }
}

/* Phones should not look like a floating capsule, use full width */
@media (max-width: 520px){
  .app-shell{
    padding: 0;
  }
  .app-capsule{
    max-width: none;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
}
/* FORCE appbar layout: left | center | right */
.appbar-inner{
  display: grid !important;
  grid-template-columns: auto 1fr auto !important;
  align-items: center !important;
}

.appbar-left{ justify-self: start !important; }
.appbar-center{ justify-self: center !important; }
.appbar-right{ justify-self: end !important; }

/* Promo slider */
.promo-card { overflow: hidden; }
.promo-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
.promo-title { font-weight:900; letter-spacing:0.08em; font-size:12px; opacity:0.85; }
.promo-nav { display:flex; gap:8px; }

.promo-viewport {
  width:100%;
  overflow:hidden;
  border-radius:16px;
  position:relative;
}
.promo-track {
  display:flex;
  transition: transform 260ms ease;
  will-change: transform;
}
.promo-slide { min-width:100%; }

.promo-click {
  width:100%;
  border:0;
  padding:0;
  background:transparent;
  cursor:pointer;
  position:relative;
  display:block;
  border-radius:16px;
  overflow:hidden;
  transform: translateY(0);
  transition: transform 120ms ease;
}
.promo-click:active { transform: translateY(2px) scale(0.995); }

.promo-img {
  width:100%;
  height:auto;
  display:block;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  filter: saturate(1.05);
}

.promo-meta {
  position:absolute;
  left:14px;
  right:14px;
  bottom:12px;
  padding:10px 12px;
  border-radius:14px;
  background: rgba(0,0,0,0.42);
  backdrop-filter: blur(6px);
}
.promo-h { font-weight:900; font-size:14px; line-height:1.1; }
.promo-s { font-size:12px; opacity:0.9; margin-top:4px; }

.promo-dots {
  display:flex;
  justify-content:center;
  gap:8px;
  margin-top:10px;
}
.promo-dot {
  width:8px;
  height:8px;
  border-radius:999px;
  border:0;
  cursor:pointer;
  opacity:0.35;
}
.promo-dot.is-active { opacity:1; transform: scale(1.2); }

.promo-empty {
  width:100%;
  padding:26px 12px;
  display:flex;
  justify-content:center;
  align-items:center;
  border-radius:16px;
  background: rgba(0,0,0,0.05);
}

/* Scanlines overlay */
.promo-scanlines {
  position:absolute;
  inset:0;
  pointer-events:none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.06),
    rgba(255,255,255,0.06) 1px,
    rgba(0,0,0,0.00) 2px,
    rgba(0,0,0,0.00) 6px
  );
  mix-blend-mode: overlay;
  opacity: 0.35;
}

/* NEW / LIMITED badge */
.promo-badge {
  position:absolute;
  top:10px;
  left:10px;
  z-index:2;
  font-size:11px;
  font-weight:900;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(255,255,255,0.92);
  color: rgba(0,0,0,0.85);
  animation: promoPulse 1.25s infinite ease-in-out;
}
@keyframes promoPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

/* Small press-down feel for all buttons if you want */
.btn { transition: transform 120ms ease; }
.btn:active { transform: translateY(2px); }

/* Utility if not present */
.w-100 { width:100%; display:block; text-align:center; }

/* ===========================
   DASHBOARD ONLY: PROMO SLIDER
   Safe scope: .page-dashboard
   =========================== */

.page-dashboard .promo-card{
  margin-top: 0;
}

/* keep your existing .promo-title used elsewhere, so here we use a different label class */
.page-dashboard .promo-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:5px;
  margin-bottom:0px;
}

.page-dashboard .promo-top .promo-title{
  /* IMPORTANT: your CSS already defines .promo-title as 20px for the old banner
     so we override ONLY inside dashboard slider */
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.10em;
  opacity: 0.85;
  margin: 0;
}

.page-dashboard .promo-nav{
  display:flex;
  gap:8px;
}

/* The slider viewport */
.page-dashboard .promo-viewport{
  width:100%;
  overflow:hidden;
  border-radius: 16px;
  position:relative;
  border: 1px solid rgba(21,18,27,.10);
  background: rgba(255,255,255,.80);
}

.page-dashboard .promo-track{
  display:flex;
  transition: transform 260ms ease;
  will-change: transform;
}

.page-dashboard .promo-slide{
  min-width:100%;
}

/* Click surface */
.page-dashboard .promo-click{
  width:100%;
  border:0;
  padding:0;
  background:transparent;
  cursor:pointer;
  position:relative;
  display:block;
  border-radius:16px;
  overflow:hidden;
  transform: translateY(0);
  transition: transform 120ms ease;
}

.page-dashboard .promo-click:active{
  transform: translateY(2px) scale(0.995);
}

/* Promo image */
.page-dashboard .promo-img{
  width:100%;
  height:auto;
  display:block;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  filter: saturate(1.05);
}

/* Text overlay */
.page-dashboard .promo-meta{
  position:absolute;
  left:12px;
  right:12px;
  bottom:12px;
  padding:10px 12px;
  border-radius:14px;
  background: rgba(0,0,0,0.42);
  backdrop-filter: blur(6px);
}

.page-dashboard .promo-h{
  font-weight: 950;
  font-size: 14px;
  line-height: 1.1;
  color: #fff;
}

.page-dashboard .promo-s{
  font-size: 12px;
  opacity: 0.9;
  margin-top: 4px;
  color: rgba(255,255,255,.92);
}

/* Dots */
.page-dashboard .promo-dots{
  display:flex;
  justify-content:center;
  gap:8px;
  margin-top:10px;
}

.page-dashboard .promo-dot{
  width:8px;
  height:8px;
  border-radius:999px;
  border:0;
  cursor:pointer;
  opacity:0.35;
  background: rgba(21,18,27,.35);
}

.page-dashboard .promo-dot.is-active{
  opacity:1;
  transform: scale(1.2);
  background: rgba(133,71,218,1);
}

/* Empty state */
.page-dashboard .promo-empty{
  width:100%;
  padding:26px 12px;
  display:flex;
  justify-content:center;
  align-items:center;
  border-radius:16px;
  background: rgba(0,0,0,0.04);
}

/* Scanlines overlay */
.page-dashboard .promo-scanlines{
  position:absolute;
  inset:0;
  pointer-events:none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.06),
    rgba(255,255,255,0.06) 1px,
    rgba(0,0,0,0.00) 2px,
    rgba(0,0,0,0.00) 6px
  );
  mix-blend-mode: overlay;
  opacity: 0.35;
}

/* Badge */
.page-dashboard .promo-badge{
  position:absolute;
  top:10px;
  left:10px;
  z-index:2;
  font-size:11px;
  font-weight:950;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(255,255,255,0.92);
  color: rgba(0,0,0,0.85);
  animation: promoPulse 1.25s infinite ease-in-out;
}

/* Goodies CTA width helper (local, safe) */
.page-dashboard .w-100{
  width:100%;
  display:block;
  text-align:center;
}

/* Goodies page only - tighten tile feel */
.page-goodies .goodies-grid{
  gap: 12px;
}

.page-goodies .goodies-tile{
  min-height: 0; /* stop forcing tall tiles if you changed .tile earlier */
}

@media (max-width: 520px){
  .page-goodies .goodies-grid{
    grid-template-columns: 1fr; /* one column on phones */
  }
}

/* Dashboard only tweaks */
.page-dashboard .promo-wrap{
  margin: 0;
}

/* Remove the "inside another capsule" look */
.page-dashboard .promo-viewport{
  border: 0;
  background: transparent;
  border-radius: 18px;
}

/* Make image feel like the main hero */
.page-dashboard .promo-img{
  border-radius: 18px;
}

/* Smaller CTA button on dashboard only */
.page-dashboard .btn-compact{
  padding: 10px 12px;
  font-size: 13px;
  border-radius: 14px;
}
/* ===========================
   Dashboard promo dots (overlay, small)
   =========================== */

.page-dashboard .promo-dots-overlay{
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
  pointer-events: auto;
}

/* Smaller dots */
.page-dashboard .promo-dot{
  width: 6px;
  height: 6px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,.55);
  opacity: 0.7;
  padding: 0;
}

/* Active dot */
.page-dashboard .promo-dot.is-active{
  background: rgba(255,255,255,1);
  opacity: 1;
  transform: scale(1.15);
}

/* Make sure image is the positioning context */
.page-dashboard .promo-viewport{
  position: relative;
}
/* ===========================
   Dashboard mobile fixes: promo viewport + dots + spacing
   =========================== */

/* Make viewport a stable box everywhere (prevents dot drift on mobile) */
.page-dashboard .promo-viewport{
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 2 / 1;   /* keeps height stable even before image loads */
  height: auto;
}

/* Track and slides must fill the viewport height */
.page-dashboard .promo-track{
  height: 100%;
}

.page-dashboard .promo-slide{
  height: 100%;
}

/* Make click area fill the viewport */
.page-dashboard .promo-click{
  height: 100%;
  border-radius: 18px;
}

/* Make image fill the viewport, not define it */
.page-dashboard .promo-img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0; /* viewport already has rounding */
}

/* Dots overlay, always inside viewport */
.page-dashboard .promo-dots-overlay{
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
  margin: 0; /* important: remove any default margins */
}

/* Smaller dots */
.page-dashboard .promo-dot{
  width: 6px;
  height: 6px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(255,255,255,.55);
  opacity: 0.7;
}

.page-dashboard .promo-dot.is-active{
  background: rgba(255,255,255,1);
  opacity: 1;
  transform: scale(1.15);
}

/* Reduce the gap between promo and goodies button */
.page-dashboard .promo-wrap{
  margin-bottom: 10px;
}

.page-dashboard .card.pad{
  margin-top: 10px;
}
/* ===========================
   Dashboard: Goodies CTA card
   =========================== */

.page-dashboard .goodies-cta-card{
  display: block;
  text-decoration: none;
  color: var(--ink);
  margin-top: 10px;
}

.page-dashboard .goodies-cta-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--lineSoft);
  border-radius: var(--rCard);
  transition: border-color .15s ease, box-shadow .15s ease, transform .12s ease;
}

.page-dashboard .goodies-cta-card:hover .goodies-cta-inner,
.page-dashboard .goodies-cta-card:focus-visible .goodies-cta-inner{
  border-color: rgba(133,71,218,.35);
  box-shadow: 0 0 0 4px rgba(133,71,218,.10);
}

.page-dashboard .goodies-cta-card:active .goodies-cta-inner{
  transform: translateY(1px);
}

.page-dashboard .goodies-cta-kicker{
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .12em;
  color: rgba(133,71,218,1);
}

.page-dashboard .goodies-cta-title{
  font-size: 16px;
  font-weight: 950;
  margin-top: 4px;
}

.page-dashboard .goodies-cta-sub{
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.page-dashboard .goodies-cta-icon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--lineMed);
  background: rgba(133,71,218,.10);
  display: grid;
  place-items: center;
  font-size: 22px;
  flex-shrink: 0;
}

.dash-links{
    display:grid;
    gap:12px;
  }
  .dash-link-card{
    display:block;
    text-decoration:none;
    color:inherit;
    border-radius:18px;
    border:1px solid rgba(26,16,40,.10);
    background:#fff;
    box-shadow: 0 10px 30px rgba(26,16,40,.06);
  }
  .dash-link-card:active{
    transform: scale(.99);
  }
  .dash-link-inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    padding:14px 14px;
  }
  .dash-link-kicker{
    font-size:12px;
    letter-spacing:.12em;
    font-weight:950;
    opacity:.65;
  }
  .dash-link-title{
    font-size:16px;
    font-weight:950;
    margin-top:4px;
  }
  .dash-link-sub{
    font-size:13px;
    opacity:.75;
    margin-top:2px;
  }
  .dash-link-icon{
    font-size:26px;
    width:46px;
    height:46px;
    border-radius:14px;
    display:flex;
    align-items:center;
    justify-content:center;
    background: rgba(133,71,218,.10);
    border:1px solid rgba(133,71,218,.18);
    flex: 0 0 auto;
  }

  /* =========================
   Admin UI polish (non-breaking)
   ========================= */

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

.admin-title {
  font-weight: 950;
  letter-spacing: .5px;
}

.admin-subtitle {
  opacity: .75;
  margin-top: 4px;
}

.admin-navgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (min-width: 720px) {
  .admin-navgrid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.admin-navcard {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(26,16,40,.10);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255,255,255,.75);
  transition: transform .08s ease, border-color .08s ease;
}

.admin-navcard:hover {
  transform: translateY(-1px);
  border-color: rgba(26,16,40,.18);
}

.admin-navcard .kicker {
  font-size: 12px;
  opacity: .72;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .7px;
}

.admin-navcard .label {
  margin-top: 6px;
  font-weight: 950;
  font-size: 16px;
}

.admin-navcard .hint {
  margin-top: 6px;
  font-size: 12px;
  opacity: .75;
  line-height: 1.3;
}

.admin-statgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (min-width: 720px) {
  .admin-statgrid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}

.admin-stat {
  border: 1px solid rgba(26,16,40,.10);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255,255,255,.65);
}

.admin-stat .slabel {
  font-size: 12px;
  opacity: .75;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .7px;
}

.admin-stat .snum {
  font-size: 22px;
  font-weight: 950;
  margin-top: 4px;
}

.admin-pillrow {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* =========================
   Missions page polish
   ========================= */

.page-missions .m-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.14);
  color: #fff;
  font-weight: 900;
  font-size: 12px;
}

.page-missions .m-section-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  margin: 6px 2px 10px;
}

.page-missions .m-section-title{
  font-weight: 950;
  letter-spacing: .2px;
  font-size: 16px;
}

.page-missions .m-section-sub{
  font-size: 12px;
  color: var(--muted);
  font-weight: 850;
  opacity: .9;
}

.page-missions .m-card{
  padding: 16px;
}

.page-missions .m-card.is-done{
  border-color: rgba(133,71,218,.22);
}

.page-missions .m-title-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.page-missions .m-title{
  font-weight: 950;
  font-size: 15px;
  line-height: 1.2;
  min-width: 0;
}

.page-missions .m-right{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.page-missions .m-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 950;
  font-size: 11px;
  border: 1px solid rgba(21,18,27,.12);
  background: rgba(255,255,255,.75);
  color: var(--ink);
}

.page-missions .m-pill-kind{
  opacity: .8;
}

.page-missions .m-pill-reward{
  border-color: rgba(133,71,218,.24);
  background: rgba(133,71,218,.12);
}

.page-missions .m-pill-noreward{
  opacity: .65;
}

.page-missions .m-progress-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.page-missions .m-status{
  font-size: 11px;
  font-weight: 950;
  opacity: .75;
  letter-spacing: .08em;
}

.page-missions .m-status.is-done{
  opacity: 1;
}

.page-missions .m-bar{
  height: 10px;
  border-radius: 999px;
  background: rgba(26,16,40,.08);
  overflow: hidden;
}

.page-missions .m-bar-fill{
  height: 10px;
  background: rgba(133,71,218,.95);
}

.page-missions .m-cta{
  display:block;
  text-align:center;
  padding: 11px 12px;
  border-radius: 14px;
}

/* Add to /public/assets/css/pixgo.css */

/* Goodies cards */
.goodies-card{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.goodies-imgwrap{
  width:100%;
  border-radius:14px;
  overflow:hidden;
  border:1px solid rgba(21,18,27,.10);
  background: rgba(255,255,255,.80);
}

.goodies-img{
  width:100%;
  display:block;
  aspect-ratio: 1 / 1; /* square image area */
  object-fit: cover;
}

.goodies-imgplaceholder{
  width:100%;
  aspect-ratio: 1 / 1;
  background: rgba(0,0,0,.05);
}

.goodies-name{
  font-family: "Press Start 2P", system-ui, sans-serif;
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: .3px;
}

.goodies-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:auto;
}

.goodies-cost{
  display:flex;
  align-items:baseline;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(21,18,27,.12);
  background: rgba(255,255,255,.70);
  font-size: 12px;
}

.btn-claim{
  padding:8px 10px;
  border-radius:12px;
  font-weight:900;
  font-size:12px;
  line-height: 1;
  min-height: 0;
}
/* =========================
   Goodies page: 2 cards per row on mobile (like PC)
   ========================= */

@media (max-width: 520px){
  .page-goodies .goodies-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px;
  }

  .page-goodies .goodies-tile{
    width: 100%;
    max-width: none; /* allow it to fill its grid cell */
  }

  /* Make image less tall so 2-up feels right */
  .page-goodies .goodies-img,
  .page-goodies .goodies-imgplaceholder{
    aspect-ratio: 4 / 3;
  }

  /* Slightly tighten text so it fits nicely */
  .page-goodies .goodies-name{
    font-size: 11px;
    line-height: 1.25;
  }

  .page-goodies .btn-claim{
    padding: 8px 10px;
    font-size: 11px;
  }
}

/* Super small phones: drop back to 1 column */
@media (max-width: 360px){
  .page-goodies .goodies-grid{
    grid-template-columns: 1fr !important;
  }
}

/* =========================
   Goodies: fix 2-column mobile overlap (allow cards to shrink)
   ========================= */

@media (max-width: 520px){
  /* Let grid items shrink inside their columns */
  .page-goodies .goodies-grid{
    align-items: start;
  }

  .page-goodies .goodies-tile{
    min-width: 0;          /* critical */
    overflow: hidden;      /* prevents spill into next column */
  }

  /* Titles can overflow because of pixel font */
  .page-goodies .goodies-name{
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  /* Safety: images never exceed card width */
  .page-goodies .goodies-img{
    max-width: 100%;
  }

  /* Optional: tighten inner spacing slightly */
  .page-goodies .goodies-bottom{
    gap: 8px;
  }
}
/* =========================
   Goodies: HARD fix for 2-column overlap on phones
   ========================= */

@media (max-width: 520px){
  .page-goodies .goodies-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 12px !important;
    row-gap: 12px !important;
  }

  /* Force every grid item to be shrinkable */
  .page-goodies .goodies-grid > *{
    min-width: 0 !important;
  }

  /* Force tile to never exceed its column width */
  .page-goodies .goodies-tile{
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  /* Pixel font titles can push width, so clamp them */
  .page-goodies .goodies-name{
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  /* Make sure inner image wrapper doesn't grow wider */
  .page-goodies .goodies-imgwrap,
  .page-goodies .goodies-img{
    max-width: 100% !important;
  }
}
/* =========================
   Goodies image: perfect square, no crop
   ========================= */

.page-goodies .goodies-imgwrap{
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.85);
}

.page-goodies .goodies-img{
  width: 100%;
  height: 100%;
  object-fit: contain;   /* 👈 THIS is the key */
  padding: 8px;          /* breathing space for pixel art */
  image-rendering: auto; /* keep it clean, not forced pixelated */
}




/* =========================
   Ticket pill (global)
   ========================= */

/* =========================
   Ticket pill (global) FIXED
   ========================= */

.ticketpill{
  display:inline-flex;
  align-items:center;
  gap:6px;

  padding:0 8px !important;
  border-radius:12px;
  line-height:1;
  position:relative;

  overflow: visible; /* key: prevents ticket image clipping */
}

.ticketpill span,
.ticketpill b{
  line-height:1;
  display:flex;
  align-items:center;
}

/* Keep 50x50 and FIT inside pill */
.tix-icon{
  width:50px;
  height:50px;
  object-fit: contain;
  image-rendering: pixelated;
  flex-shrink:0;

  transform: none;  /* key: removes overscale that caused clipping */
}

/* Pop on increase */
.ticketpill.is-pop{
  animation: tixPop 420ms ease-out;
}

@keyframes tixPop{
  0%   { transform: scale(1); }
  35%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* Sparkle burst */
.ticketpill.is-pop::before{
  content:"";
  position:absolute;
  right:10px;
  top:50%;
  width:6px;
  height:6px;
  border-radius:2px;
  background: rgba(255,255,255,.92);
  transform: translateY(-50%) rotate(45deg);
  box-shadow:
    -10px -8px 0 rgba(255,255,255,.75),
    -6px  10px 0 rgba(255,255,255,.55),
     8px  -6px 0 rgba(255,255,255,.65);
  animation: tixSpark 420ms ease-out;
  pointer-events:none;
}

@keyframes tixSpark{
  0%   { opacity:0; transform: translateY(-50%) scale(.6) rotate(45deg); }
  35%  { opacity:1; transform: translateY(-50%) scale(1.2) rotate(45deg); }
  100% { opacity:0; transform: translateY(-50%) scale(.9) rotate(45deg); }
}

/* Shimmer sweep (stays inside pill even when pill overflow is visible) */
/* Shimmer sweep (starts at pill edge, never before it) */
.ticketpill::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:12px;
  overflow:hidden;
  pointer-events:none;
}

/* the moving band */
.ticketpill::after{
  /* keep the layer, but we draw the band using background-position */
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(255,255,255,.00) 40%,
      rgba(255,255,255,.18) 50%,
      rgba(255,255,255,.00) 60%,
      transparent 100%
    );
  background-size: 200% 100%;     /* big strip we slide */
  background-position: 0% 0%;
  animation: tixShimmer 4.2s ease-in-out infinite;
  opacity:.85;
}

@keyframes tixShimmer{
  0%   { background-position: 0% 0%; opacity:0; }
  15%  { opacity:.9; }
  35%  { background-position: 100% 0%; opacity:.55; }
  100% { background-position: 100% 0%; opacity:0; }
}

/* Subtract animation: quick shrink + shake */
.ticketpill.is-minus{
  animation: tixMinus 260ms ease-out;
}

@keyframes tixMinus{
  0%   { transform: scale(1); }
  40%  { transform: scale(0.90); }
  100% { transform: scale(1); }
}

.ticketpill.is-minus .tix-icon{
  animation: tixShake 260ms ease-out;
}

@keyframes tixShake{
  0%   { transform: translateX(0); }
  25%  { transform: translateX(-2px); }
  50%  { transform: translateX(2px); }
  75%  { transform: translateX(-1px); }
  100% { transform: translateX(0); }
}
/* =============================================
   APP-LIKE FEEL — animations, touch, transitions
   ============================================= */

/* 1. Kill native tap flash on everything */
*, *::before, *::after {
  -webkit-tap-highlight-color: transparent;
}

/* 2. Desktop capsule: elevated card depth */
@media (min-width: 521px) {
  .app-capsule {
    box-shadow:
      0 0 0 1px rgba(21,18,27,.10),
      0 8px 32px rgba(21,18,27,.12),
      0 32px 72px rgba(21,18,27,.10);
  }
}

/* 3. iOS overscroll / momentum */
html, body { overscroll-behavior: none; }
.app-capsule {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

/* 4. Safe area insets (iPhone notch / home indicator) */
.appbar {
  padding-top: max(12px, env(safe-area-inset-top));
}
@media (max-width: 520px) {
  body.pixgo { padding-bottom: env(safe-area-inset-bottom, 0px); }
}

/* 5. Appbar scrolled-shadow state (toggled by JS) */
.appbar.is-scrolled {
  box-shadow: 0 4px 20px rgba(21,18,27,.22);
}

/* 6. Spring press — tiles */
.pixcon-tile {
  transition:
    transform 220ms cubic-bezier(.175,.885,.32,1.275),
    box-shadow 220ms ease !important;
}
.pixcon-tile:active {
  transform: scale(.955) !important;
  transition-duration: 65ms !important;
  box-shadow: 0 4px 14px rgba(26,16,40,.06) !important;
}

/* 7. Spring press — standard buttons */
button:not([disabled]),
.btn:not([disabled]) {
  transition:
    transform 150ms cubic-bezier(.175,.885,.32,1.1),
    opacity 150ms ease !important;
}
button:not([disabled]):active,
.btn:not([disabled]):active {
  transform: scale(.96) translateY(1px) !important;
  transition-duration: 55ms !important;
}

/* 8. Spring press — icon buttons */
.iconbtn {
  transition:
    transform 150ms cubic-bezier(.175,.885,.32,1.3),
    background 150ms ease !important;
}
.iconbtn:active {
  transform: scale(.87) !important;
  transition-duration: 55ms !important;
}

/* 9. Light press — linked cards */
.dash-link-card,
.goodies-cta-card {
  transition: transform 150ms cubic-bezier(.2,.8,.4,1) !important;
}
.dash-link-card:active,
.goodies-cta-card:active {
  transform: scale(.985) !important;
  transition-duration: 55ms !important;
}

/* 10. Ripple element */
.pg-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.26);
  transform: scale(0);
  pointer-events: none;
  z-index: 99;
  animation: pgRipple 560ms cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes pgRipple {
  to { transform: scale(4); opacity: 0; }
}

/* 11. Entrance stagger — wrap children slide up */
@keyframes pgEnterUp {
  from { opacity: 0; transform: translateY(20px) scale(.99); }
  to   { opacity: 1; transform: translateY(0)   scale(1);   }
}
.enter-stagger > * {
  animation: pgEnterUp 320ms cubic-bezier(.2,.8,.4,1) both;
}
.enter-stagger > *:nth-child(1) { animation-delay: 0ms;   }
.enter-stagger > *:nth-child(2) { animation-delay: 52ms;  }
.enter-stagger > *:nth-child(3) { animation-delay: 98ms;  }
.enter-stagger > *:nth-child(4) { animation-delay: 138ms; }
.enter-stagger > *:nth-child(5) { animation-delay: 172ms; }
.enter-stagger > *:nth-child(6) { animation-delay: 202ms; }
.enter-stagger > *:nth-child(7) { animation-delay: 228ms; }
.enter-stagger > *:nth-child(8) { animation-delay: 250ms; }

/* Tile grid pop-in (scale from slightly small) */
@keyframes pgTileEnter {
  from { opacity: 0; transform: scale(.91) translateY(10px); }
  to   { opacity: 1; transform: scale(1)   translateY(0);    }
}
.tile-stagger > * {
  animation: pgTileEnter 320ms cubic-bezier(.2,.8,.4,1) both;
}
.tile-stagger > *:nth-child(1) { animation-delay: 55ms;  }
.tile-stagger > *:nth-child(2) { animation-delay: 95ms;  }
.tile-stagger > *:nth-child(3) { animation-delay: 135ms; }
.tile-stagger > *:nth-child(4) { animation-delay: 170ms; }

/* 12. Named view transitions — appbar stays, content slides */
.app-capsule .appbar { view-transition-name: pg-appbar; }
.app-capsule .wrap   { view-transition-name: pg-content; }

/* Appbar: smooth crossfade between pages */
::view-transition-old(pg-appbar) {
  animation: pgFadeOut 140ms ease both;
}
::view-transition-new(pg-appbar) {
  animation: pgFadeIn 200ms ease 40ms both;
}

/* Content: slide up on every navigation */
::view-transition-old(pg-content) {
  animation: pgContentOut 160ms cubic-bezier(.4,0,1,1) both;
}
::view-transition-new(pg-content) {
  animation: pgContentIn  260ms cubic-bezier(.0,0,.2,1) both;
}

/* Root (shell background): simple fade */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 180ms;
  animation-timing-function: ease;
}
::view-transition-old(root) { animation-name: pgFadeOut; }
::view-transition-new(root) { animation-name: pgFadeIn;  }

@keyframes pgFadeOut {
  to   { opacity: 0; }
}
@keyframes pgFadeIn  {
  from { opacity: 0; }
}
@keyframes pgContentOut {
  to   { opacity: 0; transform: translateY(-6px) scale(1.005); }
}
@keyframes pgContentIn  {
  from { opacity: 0; transform: translateY(14px)  scale(.99);  }
}

/* 13. Reduced-motion overrides */
@media (prefers-reduced-motion: reduce) {
  .enter-stagger > *,
  .tile-stagger  > * {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  ::view-transition-old(pg-content),
  ::view-transition-new(pg-content),
  ::view-transition-old(pg-appbar),
  ::view-transition-new(pg-appbar) {
    animation-duration: 80ms !important;
  }
}

/* AUTH PATCH: fix logo cropping + input leaking */

/* 1) Stop inputs from leaking outside cards */
.auth-card *,
.auth-card *::before,
.auth-card *::after{
  box-sizing: border-box;
}

.auth-card input,
.auth-card button,
.auth-card select,
.auth-card textarea{
  width: 100%;
  max-width: 100%;
  display: block;
}

/* 2) Fix logo being forced into a square container */
.auth-logo.auth-logo--free{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;

  width: auto !important;
  height: auto !important;

  overflow: visible !important;
  display: flex;
  justify-content: center;
  align-items: center;

  margin: 0 auto 10px;
}

.auth-logo-img{
  width: 240px;   /* try 220px or 260px if you want */
  height: auto;
  max-width: 80vw;
}


/* 3) Press Start title styling */
.auth-title.auth-title--pix{
  color: var(--purple) !important;
  font-family: "Press Start 2P", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  letter-spacing: .5px;
}


