/* ============================================================
   Loja do Cliente — Neomorphism (branco/amarelo, compra verde)
   Página independente da app do dono. Sem gamble, sem finanças.
   ============================================================ */
:root {
  --nm-bg: #eef1f6;
  --nm-surface: #f4f6fb;
  --nm-card: #f3f5fa;
  --nm-text: #232a36;
  --nm-muted: #6b7484;
  --nm-line: #e2e6ee;
  --nm-yellow: #ffc83d;
  --nm-yellow-deep: #f5a700;
  --nm-green: #16a34a;
  --nm-green-deep: #128a3e;
  --nm-red: #e23b3b;
  --nm-shadow-d: #c9ced8;
  --nm-shadow-l: #ffffff;
  --nm-radius: 18px;
}

/* ---- Modo noturno (neomorphism escuro) — segue o sistema ---- */
@media (prefers-color-scheme: dark) {
  :root {
    --nm-bg: #23272f;
    --nm-surface: #272c35;
    --nm-card: #272c35;
    --nm-text: #e7ebf3;
    --nm-muted: #9aa4b6;
    --nm-line: #323844;
    --nm-yellow: #ffce53;
    --nm-yellow-deep: #f0b42b;
    --nm-green: #2dd47f;
    --nm-green-deep: #1f9d5f;
    --nm-red: #f4595b;
    /* sombras suaves: escura em baixo/direita, realce subtil em cima/esquerda */
    --nm-shadow-d: #181b21;
    --nm-shadow-l: #31373f;
  }
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--nm-bg);
  color: var(--nm-text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
body { min-height: 100vh; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; }

/* ---- Neomorphism helpers ---- */
.nm-raised {
  background: var(--nm-surface);
  border-radius: var(--nm-radius);
  box-shadow: 7px 7px 16px var(--nm-shadow-d), -7px -7px 16px var(--nm-shadow-l);
}
.nm-inset {
  background: var(--nm-surface);
  border-radius: 14px;
  box-shadow: inset 4px 4px 9px var(--nm-shadow-d), inset -4px -4px 9px var(--nm-shadow-l);
}

/* ---- Botões ---- */
.lj-btn {
  border: none; border-radius: 14px; padding: 12px 18px;
  font-weight: 700; font-size: 0.95rem; color: var(--nm-text);
  background: var(--nm-surface);
  box-shadow: 5px 5px 12px var(--nm-shadow-d), -5px -5px 12px var(--nm-shadow-l);
  transition: transform .12s, box-shadow .12s;
}
.lj-btn:active { transform: translateY(1px); box-shadow: inset 3px 3px 7px var(--nm-shadow-d), inset -3px -3px 7px var(--nm-shadow-l); }
.lj-btn:disabled { opacity: .5; cursor: not-allowed; }
.lj-btn-buy {
  color: #fff;
  background: linear-gradient(135deg, var(--nm-green), var(--nm-green-deep));
  box-shadow: 4px 4px 10px rgba(18,138,62,.35), -3px -3px 9px var(--nm-shadow-l);
}
.lj-btn-buy:active { box-shadow: inset 3px 3px 8px rgba(0,0,0,.25); }
.lj-btn-yellow {
  color: #4a3500;
  background: linear-gradient(135deg, var(--nm-yellow), var(--nm-yellow-deep));
  box-shadow: 4px 4px 10px rgba(245,167,0,.32), -3px -3px 9px var(--nm-shadow-l);
}
.lj-btn-block { width: 100%; display: block; }
.lj-btn-lg { padding: 15px 20px; font-size: 1.05rem; }
.lj-btn-ghost { background: transparent; box-shadow: none; padding: 8px 12px; }

/* ---- Header ---- */
.lj-header {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: var(--nm-bg);
  border-bottom: 1px solid var(--nm-line);
}
.lj-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; }
.lj-brand .lj-logo {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  color: #4a3500; background: linear-gradient(135deg, var(--nm-yellow), var(--nm-yellow-deep));
  box-shadow: 3px 3px 8px var(--nm-shadow-d), -3px -3px 8px var(--nm-shadow-l);
}
.lj-header-spacer { flex: 1; }
.lj-iconbtn {
  position: relative; width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center; border: none; color: var(--nm-text);
  background: var(--nm-surface);
  box-shadow: 4px 4px 10px var(--nm-shadow-d), -4px -4px 10px var(--nm-shadow-l);
}
.lj-iconbtn:active { box-shadow: inset 3px 3px 7px var(--nm-shadow-d), inset -3px -3px 7px var(--nm-shadow-l); }
.lj-badge {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--nm-red); color: #fff; font-size: 0.72rem; font-weight: 800;
  display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.25);
}

/* ---- Tabs ---- */
.lj-tabs { display: flex; gap: 8px; padding: 12px 18px 4px; overflow-x: auto; }
.lj-tab {
  border: none; border-radius: 12px; padding: 9px 16px; font-weight: 700; font-size: 0.9rem; white-space: nowrap;
  color: var(--nm-muted); background: var(--nm-surface);
  box-shadow: 3px 3px 8px var(--nm-shadow-d), -3px -3px 8px var(--nm-shadow-l);
}
.lj-tab.active { color: #4a3500; background: linear-gradient(135deg, var(--nm-yellow), var(--nm-yellow-deep)); }

/* ---- Layout ---- */
.lj-main { max-width: 1100px; margin: 0 auto; padding: 8px 18px 120px; }
.lj-search { margin: 14px 0; }
.lj-search input {
  width: 100%; border: none; border-radius: 14px; padding: 13px 16px; font-size: 0.98rem; color: var(--nm-text);
  background: var(--nm-surface);
  box-shadow: inset 4px 4px 9px var(--nm-shadow-d), inset -4px -4px 9px var(--nm-shadow-l);
}
.lj-search input:focus { outline: 2px solid var(--nm-yellow); }

.lj-section-title { font-size: 1.05rem; font-weight: 800; margin: 18px 2px 10px; }

/* ---- Catálogo ---- */
.lj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 16px; }
.lj-prod {
  position: relative; display: flex; flex-direction: column; padding: 14px;
  background: var(--nm-card); border-radius: var(--nm-radius);
  box-shadow: 6px 6px 14px var(--nm-shadow-d), -6px -6px 14px var(--nm-shadow-l);
}
.lj-prod-thumb {
  aspect-ratio: 1 / 1; width: 100%; border-radius: 14px; display: grid; place-items: center;
  font-size: 2.8rem; font-weight: 800; color: #fff; margin-bottom: 10px; overflow: hidden;
  /* profundidade subtil: realce no topo + sombra interior em baixo (menos "chapado") */
  box-shadow: inset 0 2px 10px rgba(255,255,255,0.18), inset 0 -22px 38px rgba(0,0,0,0.16);
  text-shadow: 0 2px 8px rgba(0,0,0,0.22);
}
.lj-prod-name { font-weight: 700; font-size: 0.95rem; line-height: 1.25; margin-bottom: 6px; min-height: 2.4em; }
.lj-prod-cat { font-size: 0.74rem; color: var(--nm-muted); margin-bottom: 8px; }
.lj-price { font-weight: 800; font-size: 1.15rem; color: var(--nm-text); }
.lj-price-old { font-size: 0.82rem; color: var(--nm-muted); text-decoration: line-through; margin-right: 6px; font-weight: 600; }
.lj-prod-foot { margin-top: 10px; display: flex; align-items: center; gap: 8px; }
.lj-prod-foot .lj-btn-buy { flex: 1; padding: 10px; font-size: 0.9rem; }
.lj-tag {
  position: absolute; top: 10px; left: 10px; font-size: 0.68rem; font-weight: 800; letter-spacing: .04em;
  padding: 4px 8px; border-radius: 8px; color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.lj-tag-promo { background: var(--nm-red); }
.lj-tag-new { background: var(--nm-green); }
.lj-tag-out { right: 10px; left: auto; background: #8a93a3; }
.lj-promo-clock { font-size: 0.72rem; font-weight: 700; color: var(--nm-red); margin-top: 4px; }

/* qty stepper dentro do card depois de adicionado */
.lj-stepper { flex: 1; display: flex; align-items: center; justify-content: space-between;
  border-radius: 12px; padding: 4px; box-shadow: inset 3px 3px 7px var(--nm-shadow-d), inset -3px -3px 7px var(--nm-shadow-l); }
.lj-stepper button { width: 32px; height: 32px; border: none; border-radius: 9px; font-size: 1.1rem; font-weight: 800;
  background: var(--nm-surface); color: var(--nm-green); box-shadow: 2px 2px 5px var(--nm-shadow-d), -2px -2px 5px var(--nm-shadow-l); }
.lj-stepper span { font-weight: 800; }

/* ---- Cart drawer ---- */
.lj-overlay { position: fixed; inset: 0; background: rgba(20,24,32,.45); z-index: 50; opacity: 0; pointer-events: none; transition: opacity .2s; }
.lj-overlay.open { opacity: 1; pointer-events: auto; }
.lj-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 92vw); z-index: 60;
  background: var(--nm-bg); transform: translateX(100%); transition: transform .25s ease;
  display: flex; flex-direction: column; box-shadow: -10px 0 30px rgba(0,0,0,.2);
}
.lj-drawer.open { transform: translateX(0); }
.lj-drawer-head { display: flex; align-items: center; padding: 18px; border-bottom: 1px solid var(--nm-line); }
.lj-drawer-head h3 { margin: 0; font-size: 1.15rem; font-weight: 800; flex: 1; }
.lj-drawer-body { flex: 1; overflow-y: auto; padding: 16px 18px; }
.lj-drawer-foot { padding: 16px 18px 22px; border-top: 1px solid var(--nm-line); }
.lj-cart-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--nm-line); }
.lj-cart-thumb { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 800; }
.lj-cart-item .lj-ci-name { flex: 1; font-weight: 700; font-size: 0.92rem; }
.lj-cart-item .lj-ci-price { font-weight: 800; }
.lj-total-row { display: flex; justify-content: space-between; font-size: 1.25rem; font-weight: 800; margin: 6px 0 14px; }
.lj-note { width: 100%; border: none; border-radius: 12px; padding: 12px; font-family: inherit; font-size: 0.92rem; resize: vertical; min-height: 60px;
  background: var(--nm-surface); color: var(--nm-text); box-shadow: inset 3px 3px 8px var(--nm-shadow-d), inset -3px -3px 8px var(--nm-shadow-l); margin-bottom: 12px; }

/* ---- Orders / account lists ---- */
.lj-list-card { padding: 16px; margin-bottom: 12px; }
.lj-status { display: inline-block; padding: 4px 10px; border-radius: 9px; font-size: 0.74rem; font-weight: 800; }
.lj-status.pending { background: #fff1cc; color: #8a6500; }
.lj-status.accepted { background: #d7ecff; color: #14598f; }
.lj-status.done { background: #d6f5e0; color: var(--nm-green-deep); }
.lj-status.rejected { background: #ffd9d9; color: #a32020; }
.lj-debt-card { padding: 22px; text-align: center; margin-bottom: 16px; }
.lj-debt-amount { font-size: 2.4rem; font-weight: 800; margin: 6px 0; }
.lj-debt-amount.zero { color: var(--nm-green); }
.lj-debt-amount.owe { color: var(--nm-red); }

/* ---- Login / register ---- */
.lj-auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.lj-auth-card { width: 100%; max-width: 380px; padding: 30px 26px; }
.lj-auth-logo { display: flex; align-items: center; gap: 12px; justify-content: center; font-weight: 800; font-size: 1.4rem; margin-bottom: 6px; }
.lj-auth-sub { text-align: center; color: var(--nm-muted); margin: 0 0 22px; font-size: 0.92rem; }
.lj-field { margin-bottom: 14px; }
.lj-field label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--nm-muted); margin-bottom: 6px; }
.lj-field input {
  width: 100%; border: none; border-radius: 12px; padding: 13px 14px; font-size: 1rem; color: var(--nm-text);
  background: var(--nm-surface); box-shadow: inset 4px 4px 9px var(--nm-shadow-d), inset -4px -4px 9px var(--nm-shadow-l);
}
.lj-field input:focus { outline: 2px solid var(--nm-yellow); }
.lj-auth-switch { text-align: center; margin-top: 16px; font-size: 0.9rem; color: var(--nm-muted); }
.lj-auth-switch a { color: var(--nm-yellow-deep); font-weight: 800; cursor: pointer; text-decoration: none; }
.lj-msg { border-radius: 12px; padding: 12px 14px; font-size: 0.9rem; font-weight: 600; margin-bottom: 14px; }
.lj-msg.err { background: #ffe0e0; color: #a32020; }
.lj-msg.ok { background: #d6f5e0; color: var(--nm-green-deep); }
.lj-msg.info { background: #fff1cc; color: #8a6500; }

/* ---- Empty / toast ---- */
.lj-empty { text-align: center; padding: 50px 20px; color: var(--nm-muted); }
.lj-empty .lj-empty-icon { font-size: 3rem; margin-bottom: 10px; opacity: .5; }
.lj-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  background: #232a36; color: #fff; padding: 13px 22px; border-radius: 14px; font-weight: 700; font-size: 0.92rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.3); opacity: 0; pointer-events: none; transition: all .25s; z-index: 80; max-width: 90vw;
}
.lj-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- Hidden helper ---- */
.lj-hidden { display: none !important; }

@media (max-width: 480px) {
  .lj-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  .lj-main { padding: 8px 12px 120px; }
  .lj-header { padding: 12px 14px; }
}

/* ============================================================
   Gamble It do cliente (overlay + 3 jogos) — sem emojis nos jogos
   ============================================================ */
.lj-order-gamble { margin-top: 8px; font-size: 0.84rem; font-weight: 700; color: var(--nm-muted); }
.lj-order-gamble.won { color: var(--nm-green); }
.lj-betback-cta { display: block; width: 100%; margin-top: 10px; padding: 12px 14px; border: none; border-radius: 14px;
  background: linear-gradient(135deg, #16a34a, #0e7a37); color: #fff; font-weight: 900; font-size: 0.96rem; cursor: pointer;
  box-shadow: 0 6px 18px rgba(22,163,74,0.4); animation: ljBetbackPulse 1.6s ease-in-out infinite; }
.lj-betback-cta:hover { filter: brightness(1.06); }
.lj-betback-cta:active { transform: scale(0.98); }
@keyframes ljBetbackPulse { 0%,100% { box-shadow: 0 6px 18px rgba(22,163,74,0.4); } 50% { box-shadow: 0 6px 26px rgba(22,163,74,0.75); } }

/* Caixa de BetBack na aba Conta */
.lj-betback-box { padding: 16px; margin-bottom: 16px; border-radius: 18px;
  background: linear-gradient(160deg, rgba(22,163,74,0.16), var(--nm-bg, #fff)); border: 2px solid rgba(22,163,74,0.35); }
.lj-betback-box-head { font-size: 1.05rem; color: var(--nm-green, #16a34a); margin-bottom: 2px; }
.lj-betback-box-sub { font-size: 0.85rem; color: var(--nm-muted); margin-bottom: 10px; }

/* Badge na aba "Conta" */
.lj-tab { position: relative; }
.lj-tab-badge { position: absolute; top: 2px; right: calc(50% - 22px); min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: #16a34a; color: #fff; font-size: 0.72rem; font-weight: 900; display: grid; place-items: center;
  box-shadow: 0 0 0 2px var(--nm-bg, #fff); animation: ljBetbackPulse 1.6s ease-in-out infinite; }

/* POP-UP de dopamina: ganhaste uma spin */
.bbwin-overlay { position: fixed; inset: 0; z-index: 4000; display: grid; place-items: center; padding: 22px;
  background: rgba(8,14,10,0.72); backdrop-filter: blur(3px); opacity: 0; transition: opacity 0.25s; overflow: hidden; }
.bbwin-overlay.open { opacity: 1; }
.bbwin-card { position: relative; max-width: 360px; width: 100%; text-align: center; padding: 28px 22px 22px;
  border-radius: 26px; background: linear-gradient(165deg, #103d22, #0a2417); border: 2px solid rgba(255,213,74,0.5);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6); transform: scale(0.7); transition: transform 0.3s cubic-bezier(.2,1.4,.4,1); overflow: hidden; }
.bbwin-overlay.open .bbwin-card { transform: scale(1); }
.bbwin-rays { position: absolute; inset: -40% -40% auto -40%; height: 200%; z-index: 0;
  background: conic-gradient(from 0deg, rgba(255,213,74,0.22) 0 12deg, transparent 12deg 30deg);
  animation: bbwinSpin 9s linear infinite; }
@keyframes bbwinSpin { to { transform: rotate(360deg); } }
.bbwin-card > *:not(.bbwin-rays) { position: relative; z-index: 1; }
.bbwin-gift { font-size: 3.6rem; animation: bbwinPop 0.6s cubic-bezier(.2,1.6,.4,1) both, bbwinBob 2s ease-in-out 0.6s infinite; }
@keyframes bbwinPop { from { transform: scale(0) rotate(-30deg); } to { transform: scale(1) rotate(0); } }
@keyframes bbwinBob { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-7px) rotate(4deg); } }
.bbwin-badge { display: inline-block; margin: 6px 0 4px; padding: 4px 12px; border-radius: 999px; font-size: 0.7rem; font-weight: 900;
  letter-spacing: 0.08em; color: #0a2417; background: linear-gradient(160deg, #2dd47f, #16a34a); }
.bbwin-title { font-size: 1.7rem; font-weight: 900; margin: 4px 0 6px;
  background: linear-gradient(180deg, #fff, #ffd54a); -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: bbwinShine 1.4s ease-in-out infinite; }
@keyframes bbwinShine { 0%,100% { filter: drop-shadow(0 0 6px rgba(255,213,74,0.5)); } 50% { filter: drop-shadow(0 0 16px rgba(255,213,74,0.95)); } }
.bbwin-sub { color: #cfe9da; font-size: 0.92rem; margin-bottom: 18px; }
.bbwin-sub b { color: #ffd54a; }
.bbwin-btn { display: block; width: 100%; padding: 14px; border: none; border-radius: 14px; cursor: pointer;
  background: linear-gradient(135deg, #ffd54a, #ff9f1c); color: #1a1404; font-weight: 900; font-size: 1.05rem;
  box-shadow: 0 8px 22px rgba(255,159,28,0.5); animation: ljBetbackPulse 1.5s ease-in-out infinite; }
.bbwin-btn:active { transform: scale(0.98); }
.bbwin-later { margin-top: 10px; background: none; border: none; color: #9fc4b1; font-weight: 700; cursor: pointer; font-size: 0.88rem; }
.bbwin-confetti { position: fixed; top: -12px; width: 9px; height: 14px; border-radius: 2px; z-index: 4001;
  animation: bbwinFall 2.8s linear forwards; }
@keyframes bbwinFall { to { transform: translateY(105vh) rotate(540deg); opacity: 0.9; } }
@media (prefers-reduced-motion: reduce) {
  .bbwin-rays, .bbwin-gift, .bbwin-title, .bbwin-btn, .lj-tab-badge, .lj-betback-cta { animation: none !important; }
  .bbwin-confetti { display: none; }
}

.cg-overlay { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px;
  background: radial-gradient(ellipse at 50% 20%, #1a1030, #06040d 75%); opacity: 0; pointer-events: none; transition: opacity .25s; overflow: hidden; }
.cg-overlay.open { opacity: 1; pointer-events: auto; }
.cg-overlay.cg-roulette { background: radial-gradient(ellipse at 50% 46%, rgba(10,2,4,0) 48%, rgba(10,2,4,.3) 100%), url('/img/scene-roulette.svg') center/cover, #0a0204; }
.cg-overlay.cg-bonanza { background: radial-gradient(ellipse at 50% 46%, rgba(11,7,22,0) 48%, rgba(11,7,22,.3) 100%), url('/img/scene-bonanza.svg') center/cover, #0b0716; }
.cg-overlay.cg-plinko { background: radial-gradient(ellipse at 50% 46%, rgba(4,8,15,0) 48%, rgba(4,8,15,.3) 100%), url('/img/scene-plinko.svg') center/cover, #04080f; }

.cg-modal { position: relative; width: min(440px, 94vw); max-height: 92vh; overflow-y: auto; text-align: center;
  background: linear-gradient(165deg, #16203a, #0b1220); border-radius: 22px; padding: 22px 22px 26px;
  box-shadow: 0 0 0 2px rgba(243,209,104,.5), 0 30px 80px rgba(0,0,0,.7); color: #fff; }
.cg-badge { display: inline-block; font-size: 0.66rem; font-weight: 900; letter-spacing: .12em; color: #ffd54a;
  border: 1px solid #ffd54a; border-radius: 999px; padding: 4px 14px; margin-bottom: 8px; }
.cg-title { font-size: 2rem; font-weight: 900; margin: 0 0 4px; color: #ffd54a; text-shadow: 0 0 16px rgba(255,179,0,.5); }
.cg-title-game { font-size: 1.5rem; }
.cg-sub { font-size: 0.92rem; color: #c9d2e6; margin: 0 0 18px; }
.cg-sub b { color: #fff; }

.cg-choice { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.cg-game-card { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 16px; border: none; border-radius: 14px;
  background: linear-gradient(160deg, #1d2942, #131c2e); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); cursor: pointer; transition: transform .12s, box-shadow .12s; }
.cg-game-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.4), 0 0 0 1px #f3d168; }
.cg-game-name { font-weight: 900; font-size: 1.05rem; color: #fff; }
.cg-game-desc { font-size: 0.78rem; color: #93a0bd; }
.cg-skip { background: none; border: none; color: #93a0bd; font-size: 0.88rem; cursor: pointer; padding: 6px; text-decoration: underline; }
.cg-back { position: absolute; top: 14px; left: 14px; width: 34px; height: 34px; border-radius: 10px; border: none; background: #1d2942; color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; }

.cg-stage { position: relative; display: grid; place-items: center; margin: 8px 0 18px; min-height: 220px; }
.cg-btn { font-family: inherit; cursor: pointer; }
.cg-btn-go { width: 100%; border: none; border-radius: 14px; padding: 15px; font-size: 1.1rem; font-weight: 900; color: #052b16;
  background: linear-gradient(135deg, #2dd47f, #12a35a); box-shadow: 0 6px 18px rgba(18,138,62,.4); animation: cgPulse 1.4s ease-in-out infinite; }
.cg-btn-go:disabled { opacity: .8; animation: none; cursor: default; }
@keyframes cgPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.03); } }

/* Resultado */
.cg-result { margin: 6px 0 14px; padding: 14px; border-radius: 14px; background: rgba(0,0,0,.3); animation: cgPop .5s cubic-bezier(.18,.9,.32,1.3); }
.cg-result-label { font-size: 1.7rem; font-weight: 900; }
.cg-result.win-100 .cg-result-label { color: #6bffb0; text-shadow: 0 0 18px rgba(45,212,127,.6); }
.cg-result.win-50 .cg-result-label { color: #ffd54a; }
.cg-result.win-cash .cg-result-label { color: #5eead4; }
.cg-result.lose .cg-result-label { color: #c9d2e6; font-size: 1.2rem; }
.cg-result-sub { margin-top: 6px; font-size: 0.95rem; color: #e7ecf7; }
.cg-result-sub b { color: #fff; } .cg-result-sub s { color: #8a93a3; }
.cg-result-spins { margin-top: 4px; font-size: 0.78rem; color: #8fc0ff; }
@keyframes cgPop { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }

/* Roleta */
.cg-wheel { position: relative; width: 200px; height: 200px; border-radius: 50%; transform: rotate(0deg);
  box-shadow: 0 0 0 6px #14100a, 0 0 0 9px #f3d168, 0 0 0 13px #14100a, 0 0 30px rgba(243,209,104,.4); }
.cg-wheel-lbl { position: absolute; top: 50%; left: 50%; font-size: 0.64rem; font-weight: 900; color: #fff; transform-origin: 0 0; text-shadow: 0 1px 2px rgba(0,0,0,.7); }
.cg-wheel-hub { position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; transform: translate(-50%,-50%); border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe9a8, #c9912f); box-shadow: 0 0 0 3px #14100a; }
.cg-wheel-pointer { position: absolute; top: 2px; left: 50%; transform: translateX(-50%); width: 0; height: 0;
  border-left: 12px solid transparent; border-right: 12px solid transparent; border-top: 20px solid #fff; z-index: 4; filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); }

/* Bonanza */
.cg-bz-bar { position: relative; width: 100%; height: 22px; border-radius: 999px; background: #0c1422; box-shadow: inset 0 2px 6px rgba(0,0,0,.6), 0 0 0 2px rgba(243,209,104,.5); margin-bottom: 4px; }
.cg-bz-fill { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg,#4d8df7,#2dd47f); transition: width .12s; }
.cg-bz-fill.hot { background: linear-gradient(90deg,#2dd47f,#ffd54a,#ff9f45); }
.cg-bz-fill.max { background: linear-gradient(90deg,#ffd54a,#2dd47f,#ff6bd0,#ffd54a); }
.cg-bz-chk { position: absolute; top: 50%; transform: translate(-50%,-50%); font-size: 0.56rem; font-weight: 900; color: #2a1d00; background: #ffd54a; border-radius: 999px; padding: 1px 5px; }
.cg-bz-num { font-size: 1.6rem; font-weight: 900; color: #ffd54a; margin-bottom: 8px; }
.cg-bz-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; width: 100%; max-width: 260px; background: rgba(0,0,0,.35); padding: 6px; border-radius: 12px; }
.cg-bz-cell { aspect-ratio: 1; display: grid; place-items: center; font-size: 1.4rem; color: #ffd54a; background: linear-gradient(160deg,#1d2942,#121a2c); border-radius: 8px; }
@keyframes cgBzDrop { from { opacity: 0; transform: translateY(-22px); } to { opacity: 1; transform: none; } }

/* Plinko */
.cg-pk-board { position: relative; width: min(300px, 80vw); height: 300px; border-radius: 14px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 15%, #14253f, #070d18); box-shadow: inset 0 4px 20px rgba(0,0,0,.6), 0 0 0 2px rgba(22,211,163,.35); }
.cg-pk-pegs { position: absolute; inset: 14px 14px 46px; display: flex; flex-direction: column; justify-content: space-around; }
.cg-pk-row { display: flex; justify-content: center; gap: 20px; }
.cg-pk-peg { width: 7px; height: 7px; border-radius: 50%; background: #cfe4ff; box-shadow: 0 0 6px rgba(150,200,255,.8); }
.cg-pk-ball { position: absolute; top: 4px; left: 0; width: 18px; height: 18px; border-radius: 50%; opacity: 0; z-index: 5;
  background: radial-gradient(circle at 35% 30%, #fff, #ff5d9e 60%, #c41d6f); box-shadow: 0 0 12px rgba(255,93,158,.9); }
.cg-pk-slots { position: absolute; left: 6px; right: 6px; bottom: 6px; display: flex; gap: 3px; }
.cg-pk-slot { flex: 1; text-align: center; padding: 7px 0; border-radius: 7px; font-size: 0.58rem; font-weight: 900; color: #fff; }
.cg-pk-slot.s-win100 { background: linear-gradient(180deg,#2dd47f,#0a9c4f); color: #052b16; }
.cg-pk-slot.s-win50 { background: linear-gradient(180deg,#f5b53d,#d59a26); color: #3a2600; }
.cg-pk-slot.s-cashback { background: linear-gradient(180deg,#2dd4bf,#0e9684); color: #04231f; }
.cg-pk-slot.s-lose { background: #18233a; color: #8a93a3; }
.cg-pk-slot.hit { box-shadow: 0 0 18px rgba(255,255,255,.9); transform: translateY(-3px); }

/* Confetti */
.cg-confetti { position: fixed; top: -12px; width: 10px; height: 14px; z-index: 95; pointer-events: none; animation: cgFall 2.4s linear forwards; }
@keyframes cgFall { to { transform: translateY(105vh) rotate(540deg); opacity: .7; } }

/* Saldo com encomendas pendentes */
.lj-balance-split { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 10px; font-size: 0.84rem; color: var(--nm-muted); }
.lj-pending-pill { background: rgba(245,181,61,0.18); color: #b8801a; font-weight: 800; padding: 3px 10px; border-radius: 999px; }

/* ===== Slide de promoções (prémio animado) ===== */
.lj-promo-ov { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center;
  background: rgba(20,16,8,0.55); backdrop-filter: blur(4px); opacity: 0; transition: opacity .25s ease; padding: 20px; }
.lj-promo-ov.show { opacity: 1; }
.lj-promo-card { position: relative; width: 100%; max-width: 380px; border-radius: 26px; padding: 26px 22px 22px;
  background: linear-gradient(165deg, #fff8e6, #ffffff); box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  text-align: center; transform: scale(.8); transition: transform .35s cubic-bezier(.2,1.4,.4,1); overflow: hidden; }
.lj-promo-ov.show .lj-promo-card { transform: scale(1); }
.lj-promo-card::before { content: ''; position: absolute; top: -40%; left: -40%; width: 180%; height: 180%;
  background: conic-gradient(from 0deg, transparent, rgba(245,181,61,0.18), transparent 30%);
  animation: lj-promo-rays 6s linear infinite; }
@keyframes lj-promo-rays { to { transform: rotate(360deg); } }
.lj-promo-title { position: relative; font-size: 1.7rem; font-weight: 900; color: #c8102e; letter-spacing: 0.02em;
  animation: lj-promo-pop .5s cubic-bezier(.2,1.6,.4,1) both; }
.lj-promo-sub { position: relative; color: #8a7a55; font-weight: 700; font-size: 0.9rem; margin-top: 2px; }
@keyframes lj-promo-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lj-promo-stage { position: relative; margin: 18px 0 6px; }
.lj-promo-stage.pop { animation: lj-promo-pop .35s ease both; }
.lj-promo-slide { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.lj-promo-gift { font-size: 1.6rem; font-weight: 900; color: #fff; background: linear-gradient(135deg, #f5b53d, #c8102e);
  padding: 10px 20px; border-radius: 16px; box-shadow: 0 8px 20px rgba(200,16,46,0.35);
  animation: lj-promo-bob 1.4s ease-in-out infinite; }
@keyframes lj-promo-bob { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-7px) rotate(2deg); } }
.lj-promo-name { font-size: 1.25rem; font-weight: 800; color: #2a2410; }
.lj-promo-prices { display: flex; align-items: baseline; gap: 10px; }
.lj-promo-old { text-decoration: line-through; color: #b0a589; font-weight: 700; }
.lj-promo-new { font-size: 1.8rem; font-weight: 900; color: #1f9d57; }
.lj-promo-clock2 { font-size: 0.84rem; font-weight: 800; color: #c8102e; }
.lj-promo-dots { display: flex; justify-content: center; gap: 6px; margin: 10px 0; position: relative; }
.lj-promo-dots span { width: 7px; height: 7px; border-radius: 50%; background: #e3d6b3; transition: all .2s; }
.lj-promo-dots span.on { background: #c8102e; width: 18px; border-radius: 4px; }
.lj-promo-actions { position: relative; display: flex; gap: 10px; margin-top: 8px; }

/* Demo do casino na conta + flag DEMO no resultado */
.lj-casino-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin: 16px 0; }
.lj-casino-info { flex: 1; }
.lj-casino-title { font-weight: 800; }
.lj-casino-sub { font-size: 0.82rem; color: var(--nm-muted); }
.cg-demo-flag { display: inline-block; background: var(--nm-muted, #999); color: #fff; font-size: 0.62rem; font-weight: 900;
  letter-spacing: 0.1em; padding: 2px 8px; border-radius: 999px; margin-bottom: 6px; }

/* Foto de produto no catálogo do cliente */
.lj-thumb-photo { padding: 0 !important; overflow: hidden; }
.lj-thumb-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Botão "Atualizar" (canto inferior esquerdo) */
.lj-update-fab {
  position: fixed; left: 12px; bottom: 12px; z-index: 1400;
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px;
  background: var(--nm-bg, #fff); color: var(--nm-muted, #666); border: 1px solid rgba(0,0,0,0.08);
  font-size: 0.8rem; font-weight: 700; cursor: pointer; box-shadow: 0 6px 16px rgba(0,0,0,0.14); opacity: 0.9;
}
.lj-update-fab:hover { opacity: 1; color: #1f9d57; }
@media (max-width: 700px) { .lj-update-fab { bottom: 74px; } }

/* Produto esgotado no catálogo */
.lj-prod-sold { opacity: 0.62; }
.lj-prod-sold .lj-thumb-photo, .lj-prod-sold .lj-prod-thumb { filter: grayscale(0.6); }
.lj-tag-sold { background: #8a8a8a !important; color: #fff !important; }
.lj-btn-buy[disabled] { background: #d9d9d9; color: #777; cursor: not-allowed; box-shadow: none; }

/* Miniaturas dos itens nas encomendas do cliente */
.lj-item-thumbs { display: flex; gap: 6px; margin: 6px 0 4px; flex-wrap: wrap; }
.lj-item-thumb { width: 40px; height: 40px; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.12); flex: 0 0 auto; }
.lj-item-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============================================================ Catálogo: slider de mais vendidos + hero catchy (#73) */
.lj-bestslider { margin-bottom: 18px; }
.lj-best-title { margin-bottom: 10px; }
.lj-slider { display: flex; gap: 12px; overflow-x: auto; overflow-y: hidden; padding: 4px 2px 12px; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; touch-action: pan-x; scrollbar-width: none; }
.lj-slider::-webkit-scrollbar { display: none; }
.lj-slide { flex: 0 0 132px; scroll-snap-align: start; position: relative; background: var(--nm-card, #fff); border-radius: 16px; padding: 10px;
  box-shadow: 4px 4px 12px var(--nm-d, rgba(0,0,0,0.08)), -4px -4px 12px var(--nm-l, rgba(255,255,255,0.7)); text-align: center; }
.lj-slide-rank { position: absolute; top: 6px; left: 8px; font-size: 0.9rem; }
.lj-slide .lj-prod-thumb, .lj-slide .lj-thumb-photo { aspect-ratio: 1; width: 100%; margin-bottom: 8px; }
.lj-slide-name { font-weight: 700; font-size: 0.82rem; line-height: 1.2; margin-bottom: 4px; min-height: 2em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lj-slide .lj-prod-foot { margin-top: 6px; }
.lj-slide .lj-btn-buy { width: 100%; padding: 7px; font-size: 0.8rem; }

/* Hero catchy (imagem preenche, nome/preço sobrepostos) */
.lj-hero { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 320px; margin-bottom: 20px; overflow: hidden;
  border-radius: 22px; box-shadow: 0 14px 36px rgba(0,0,0,0.18); }
.lj-hero-media { position: absolute; inset: 0; background: #fff; }
.lj-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.lj-hero-media--icon { display: grid; place-items: center; font-size: 5rem; background: linear-gradient(160deg, #fff, #f0f0f5); }
.lj-hero-overlay { position: absolute; left: 0; right: 0; bottom: 0; padding: 56px 20px 18px; text-align: left;
  background: linear-gradient(to top, rgba(8,10,18,0.92) 8%, rgba(8,10,18,0.55) 45%, transparent 100%); }
.lj-hero-label { display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; color: #ffd54a; margin-bottom: 4px; }
.lj-hero-name { font-size: clamp(1.4rem, 5vw, 2.1rem); font-weight: 900; color: #fff; line-height: 1.05; margin-bottom: 4px; text-shadow: 0 2px 12px rgba(0,0,0,0.5); }
.lj-hero-prices { margin-bottom: 12px; }
.lj-hero-price { font-size: 1.6rem; font-weight: 900; color: #fff; }
.lj-hero-old { font-size: 1rem; text-decoration: line-through; color: rgba(255,255,255,0.65); font-weight: 600; }
.lj-hero-buy { background: var(--nm-green, #16a34a); color: #fff; border: none; padding: 11px 22px; border-radius: 999px; font-weight: 800; font-size: 0.95rem; }
.lj-hero-stepper { display: inline-flex; }
@media (max-width: 380px) { .lj-slide { flex-basis: 116px; } }

/* ===== BetBack: roleta de cashback pós-compra (#77) — design catchy ===== */
.bb-overlay { position: fixed; inset: 0; z-index: 4000; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 30%, rgba(26,54,38,0.92), rgba(4,7,12,0.97)); backdrop-filter: blur(12px);
  opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s; padding: 16px; overflow: hidden; }
.bb-overlay.open { opacity: 1; visibility: visible; }
.bb-modal { position: relative; width: 100%; max-width: 372px; text-align: center; padding: 24px 22px 26px; border-radius: 28px;
  background: linear-gradient(168deg, #1f4630 0%, #0c1c13 70%); overflow: hidden;
  border: 2px solid transparent; background-clip: padding-box;
  box-shadow: 0 0 0 2px rgba(243,209,104,0.55), 0 0 60px rgba(45,212,127,0.18), 0 30px 80px rgba(0,0,0,0.75); color: #fff;
  transform: scale(0.86) translateY(8px); transition: transform 0.35s cubic-bezier(.2,1.3,.35,1); }
.bb-overlay.open .bb-modal { transform: scale(1) translateY(0); }
/* raios dourados a girar atrás do conteúdo */
.bb-modal::before { content: ''; position: absolute; top: -60%; left: -30%; width: 160%; height: 160%; z-index: 0;
  background: conic-gradient(from 0deg, rgba(255,213,74,0.14) 0 10deg, transparent 10deg 30deg);
  animation: bbRays 14s linear infinite; pointer-events: none; }
@keyframes bbRays { to { transform: rotate(360deg); } }
.bb-modal > * { position: relative; z-index: 1; }
.bb-coins { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bb-mascot { font-size: 2.8rem; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4)); animation: bbBob 1.6s ease-in-out infinite; }
@keyframes bbBob { 0%,100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(-7px) rotate(5deg); } }
.bb-badge { display: inline-block; font-size: 0.7rem; font-weight: 900; letter-spacing: 0.12em; color: #2a1c02;
  background: linear-gradient(180deg,#fff0b8,#ffc83d); padding: 4px 14px; border-radius: 999px; margin: 4px 0 6px;
  box-shadow: 0 2px 8px rgba(255,200,61,0.5); }
.bb-title { font-size: 1.55rem; font-weight: 900; margin-bottom: 6px; line-height: 1.1;
  background: linear-gradient(180deg, #fff, #ffd54a); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.25)); }
.bb-sub { font-size: 0.84rem; color: #c7ead8; margin-bottom: 16px; }
.bb-sub b { color: #ffd54a; }
.bb-wheelwrap { position: relative; width: 248px; height: 248px; margin: 4px auto 20px; }
/* aro exterior dourado com brilho */
.bb-rim { position: absolute; inset: -10px; border-radius: 50%; z-index: 1;
  background: conic-gradient(#9a6b16, #ffe9a8, #c9912f, #ffe9a8, #9a6b16, #ffe9a8, #c9912f, #ffe9a8, #9a6b16);
  box-shadow: 0 0 26px rgba(243,209,104,0.45), inset 0 0 14px rgba(0,0,0,0.55); animation: bbRimSpin 9s linear infinite; }
@keyframes bbRimSpin { to { transform: rotate(360deg); } }
.bb-rim::after { content: ''; position: absolute; inset: 9px; border-radius: 50%; background: #0e1a13; }
/* lâmpadas à volta (luz em cadeia) */
.bb-bulb { position: absolute; top: 50%; left: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #ffd54a); box-shadow: 0 0 6px #ffd54a; z-index: 3; }
.bb-bulb:nth-child(odd) { animation: bbBulb 1s ease-in-out infinite; }
.bb-bulb:nth-child(even) { animation: bbBulb 1s ease-in-out infinite 0.5s; }
@keyframes bbBulb { 0%,100% { opacity: 0.4; box-shadow: 0 0 4px #ffd54a; } 50% { opacity: 1; box-shadow: 0 0 12px #fff, 0 0 18px #ffd54a; } }
.bb-pointer { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); width: 26px; height: 34px; z-index: 6;
  background: linear-gradient(180deg,#fff,#ffb938); clip-path: polygon(50% 100%, 0 0, 100% 0); filter: drop-shadow(0 4px 5px rgba(0,0,0,0.6)); }
.bb-pointer::after { content: ''; position: absolute; top: -7px; left: 50%; transform: translateX(-50%); width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 30%,#fff,#e0a91f); box-shadow: 0 0 8px rgba(255,200,61,0.8); }
.bb-wheel { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; z-index: 2;
  box-shadow: inset 0 0 0 4px rgba(0,0,0,0.35), inset 0 0 22px rgba(0,0,0,0.5); transform: rotate(0deg); }
.bb-gloss { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; z-index: 3;
  background: radial-gradient(120px 90px at 32% 22%, rgba(255,255,255,0.32), transparent 60%); }
.bb-lbl { position: absolute; top: 50%; left: 50%; margin-left: -18px; width: 36px; font-weight: 900; font-size: 0.9rem; color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.85), 0 0 5px rgba(0,0,0,0.5); }
.bb-hub { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 56px; height: 56px; border-radius: 50%; z-index: 5;
  background: radial-gradient(circle at 35% 26%, #fff6d8, #f3c64e 45%, #b9831c); border: 4px solid #2a1c02;
  display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0,0,0,0.5), inset 0 -3px 6px rgba(120,80,0,0.5); }
.bb-hub span { font-weight: 900; color: #4a3203; font-size: 1.5rem; text-shadow: 0 1px 0 rgba(255,255,255,0.5); }
.bb-btn { position: relative; width: 100%; padding: 15px; border: none; border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg,#ffe14d,#ff9f1c); color: #2a1c02; font-weight: 900; font-size: 1.15rem; letter-spacing: 0.02em;
  cursor: pointer; box-shadow: 0 10px 26px rgba(255,159,28,0.55); animation: bbBtnPulse 1.5s ease-in-out infinite; }
.bb-btn::after { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent); animation: bbBtnShine 2.4s ease-in-out infinite; }
@keyframes bbBtnShine { 0% { left: -60%; } 55%,100% { left: 130%; } }
@keyframes bbBtnPulse { 0%,100% { box-shadow: 0 10px 26px rgba(255,159,28,0.5); } 50% { box-shadow: 0 10px 34px rgba(255,159,28,0.85); } }
.bb-btn:active { transform: scale(0.98); }
.bb-btn:disabled { animation: none; filter: saturate(0.6); }
.bb-skip { margin-top: 10px; background: none; border: none; color: #9fc4b1; font-size: 0.85rem; font-weight: 700; cursor: pointer; }
.bb-result { margin: 16px 0 4px; font-size: 1.2rem; font-weight: 900; color: #ffd54a; animation: bbPop 0.5s cubic-bezier(.2,1.4,.4,1); }
.bb-result b { color: #fff; }
.bb-result small { display: block; margin-top: 6px; font-size: 0.78rem; color: #c7ead8; font-weight: 600; }
.bb-lbl-none { color: rgba(255,255,255,0.85); font-size: 1.05rem; }
.bb-result-none { color: #d7dbe0; }
.bb-result-none small { color: #aab2bd; }
.bb-coin-fly { position: absolute; top: -8%; font-size: 1.2rem; z-index: 0; animation: bbCoinFall linear forwards; }
@keyframes bbCoinFall { to { transform: translateY(380px) rotate(360deg); opacity: 0; } }
@keyframes bbPop { 0%{transform:scale(0.3);opacity:0;} 60%{transform:scale(1.15);} 100%{transform:scale(1);opacity:1;} }
@media (prefers-reduced-motion: reduce) {
  .bb-modal::before, .bb-rim, .bb-bulb, .bb-btn, .bb-btn::after, .bb-mascot, .bb-coin-fly { animation: none !important; }
}

/* ============================================================
   Modo noturno — ajustes de componentes (no fim para vencer em cascata)
   ============================================================ */
@media (prefers-color-scheme: dark) {
  /* chips de estado legíveis sobre fundo escuro */
  .lj-status.pending { background: rgba(245,181,61,0.20); color: #f5c451; }
  .lj-status.accepted { background: rgba(77,141,247,0.22); color: #8fbcff; }
  .lj-status.done { background: rgba(45,212,127,0.20); color: #5fe0a0; }
  .lj-status.rejected { background: rgba(244,89,91,0.22); color: #ff9092; }
  .lj-msg.err { background: rgba(244,89,91,0.18); color: #ff9092; }
  .lj-msg.ok { background: rgba(45,212,127,0.18); color: #5fe0a0; }
  .lj-msg.info { background: rgba(245,181,61,0.18); color: #f5c451; }
  .lj-toast { background: #11141a; box-shadow: 0 8px 28px rgba(0,0,0,.6); }
  .lj-tag-out, .lj-tag-sold { background: #5b6472 !important; }
  /* fotos/miniaturas: moldura escura suave em vez de branco puro */
  .lj-thumb-photo, .lj-item-thumb, .lj-cart-thumb, .lj-hero-media { background: #1c2027 !important; }
  .lj-hero-media--icon { background: linear-gradient(160deg, #2b313b, #20242c) !important; }
  .lj-update-fab { background: var(--nm-surface); color: var(--nm-muted); border-color: rgba(255,255,255,0.07); }
  /* pílula de pendentes na conta */
  .lj-pending-pill { background: rgba(245,181,61,0.20); color: #f5c451; }
  /* cartão de promoção (slide de prémio) — escuro */
  .lj-promo-card { background: linear-gradient(165deg, #2b313b, #23272f); }
  .lj-promo-name { color: var(--nm-text); }
  .lj-promo-old { color: var(--nm-muted); }
}

/* ============================================================
   CAMADA PREMIUM — loja do cliente
   Mesma linguagem da app do dono: grafite + dourado, profundidade
   nítida com fio de luz na borda em vez de neumorfismo.
   Só aparência: nenhuma alteração ao fluxo de encomenda.
   ============================================================ */
:root {
  --lj-gold: #96690F;
  --lj-gold-grad: linear-gradient(135deg, #F2D68C 0%, #D9A93C 55%, #C08F22 100%);
  --lj-gold-ink: #1A1405;
  --lj-hair: 0 0 0 1px rgba(26,23,18,.06);
  --lj-lift: 0 6px 20px rgba(40,34,24,.10), var(--lj-hair);
  --lj-display: 'Sora', 'Inter', -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --nm-bg: #0E1013;
    --nm-surface: #14181D;
    --nm-card: #171B21;
    --nm-text: #F5F7FA;
    --nm-muted: #6E7787;
    --nm-line: #232830;
    --nm-shadow-d: #05070A;
    --nm-shadow-l: #1E242C;
    --lj-gold: #E3B44A;
    --lj-hair: 0 0 0 1px rgba(255,255,255,.045);
    --lj-lift: 0 8px 24px rgba(0,0,0,.45), var(--lj-hair);
  }
}

body { background: var(--nm-bg); }

/* --- Cabeçalho e separadores --- */
.lj-header { box-shadow: 0 1px 0 var(--nm-line), 0 8px 24px rgba(0,0,0,.18); }
.lj-logo { font-family: var(--lj-display); font-weight: 700; letter-spacing: -.01em; }
.lj-tab { font-weight: 640; }
.lj-tab.active {
  background: var(--lj-gold-grad);
  color: var(--lj-gold-ink);
  box-shadow: 0 6px 18px rgba(217,169,60,.22), inset 0 1px 0 rgba(255,255,255,.35);
}
.lj-tab-badge { background: var(--lj-gold-grad); color: var(--lj-gold-ink); font-weight: 800; }

.lj-section-title {
  font-family: var(--lj-display);
  font-weight: 700; letter-spacing: -.015em;
}

/* --- Cartões de produto --- */
.lj-grid { gap: 14px; }
.lj-prod {
  background: linear-gradient(180deg, rgba(255,255,255,.022), transparent), var(--nm-card);
  border-radius: var(--nm-radius);
  box-shadow: var(--lj-lift);
  transition: transform .16s cubic-bezier(.4,0,.2,1), box-shadow .16s cubic-bezier(.4,0,.2,1);
}
.lj-prod:active { transform: translateY(1px) scale(.995); }
.lj-prod-thumb {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
  border-radius: 14px;
}
.lj-prod-name { font-weight: 640; letter-spacing: -.005em; }
.lj-prod-cat { text-transform: uppercase; letter-spacing: .06em; font-weight: 700; font-size: .66rem; }

.lj-price {
  font-family: var(--lj-display);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--lj-gold);
  white-space: nowrap;
}
.lj-price-old { text-decoration: line-through; opacity: .75; }
.lj-hero-price { font-family: var(--lj-display); font-variant-numeric: tabular-nums; color: var(--lj-gold); }

.lj-tag {
  background: #E2483F; color: #fff;
  font-size: .6rem; font-weight: 800; letter-spacing: .08em;
  border-radius: 6px; padding: 3px 7px;
}

/* --- Botões --- */
.lj-btn-buy, .lj-btn-block, .lj-btn-lg {
  background: var(--lj-gold-grad);
  color: var(--lj-gold-ink);
  border: none;
  font-weight: 760;
  letter-spacing: .01em;
  box-shadow: 0 8px 22px rgba(217,169,60,.24), inset 0 1px 0 rgba(255,255,255,.34);
}
.lj-btn-buy:active, .lj-btn-block:active, .lj-btn-lg:active {
  box-shadow: inset 0 2px 6px rgba(0,0,0,.28);
  transform: translateY(1px);
}
.lj-btn-lg { min-height: 54px; font-size: 1.02rem; }

.lj-stepper button {
  background: var(--nm-surface);
  color: var(--lj-gold);
  border: 1px solid var(--nm-line);
  font-weight: 800;
}
.lj-stepper span { font-variant-numeric: tabular-nums; font-weight: 700; }

/* --- Telemóvel: mais produtos por ecrã --- */
@media (max-width: 480px) {
  .lj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .lj-prod-thumb { aspect-ratio: 1 / 1; max-height: 110px; }
  .lj-prod-name { font-size: .88rem; min-height: 2.2em; }
  .lj-price { font-size: 1.05rem; }
  .lj-prod-foot .lj-btn-buy { padding: 9px; font-size: .84rem; }
}
