:root {
  --bg: #050506;
  --panel: rgba(255, 255, 255, .028);
  --panel-2: rgba(255, 255, 255, .05);
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .12);
  --text: #ededf0;
  --muted: #85858f;
  --red: #d92b3a;
  --red-soft: #e5505d;
  --red-deep: #8f1622;
  --green: #4cc38a;
  --amber: #d6a243;
  --grad: linear-gradient(180deg, #df3443, #b81f2e);
  --radius: 18px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Sora", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: dark; }
body {
  margin: 0; min-height: 100vh;
  font-family: var(--font); color: var(--text); background: var(--bg);
  line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); letter-spacing: -.02em; }
.muted { color: var(--muted); margin: 0; }
.small { font-size: .8rem; }
.center { text-align: center; }
.green { color: var(--green); }
.mono { font-family: var(--mono); }

i[data-icon] { display: inline-flex; width: 20px; height: 20px; flex: none; font-style: normal; }
i[data-icon] svg { width: 100%; height: 100%; }

/* ---------------------------------------------------------------- fundo vivo (discreto) */

.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.aurora span {
  position: absolute; border-radius: 50%; filter: blur(110px);
  animation: float 26s ease-in-out infinite alternate;
}
.aurora span:nth-child(1) { width: 50vw; height: 50vw; left: -14vw; top: -22vw; background: #4a0710; opacity: .55; }
.aurora span:nth-child(2) { width: 40vw; height: 40vw; right: -12vw; top: 30vh; background: #2a060c; opacity: .5; animation-duration: 32s; animation-delay: -8s; }
.aurora span:nth-child(3) { width: 40vw; height: 40vw; left: 30vw; bottom: -30vw; background: #16161b; opacity: .8; animation-duration: 36s; animation-delay: -14s; }
@keyframes float {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(5vw, 4vh) scale(1.1); }
  100% { transform: translate(-4vw, 7vh) scale(.95); }
}
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  border: 1px solid var(--line);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
}

/* ---------------------------------------------------------------- componentes base */

.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 12px; cursor: pointer; font-weight: 600; white-space: nowrap;
  background: var(--panel-2); border: 1px solid var(--line-2);
  transition: transform .2s var(--ease), box-shadow .3s var(--ease), background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .07); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn i[data-icon] { width: 17px; height: 17px; }
.btn.block { width: 100%; }
.btn.lg { padding: 13px 20px; font-size: .98rem; border-radius: 14px; }
.btn.sm { padding: 7px 11px; font-size: .83rem; border-radius: 10px; }
.btn.sm i[data-icon] { width: 15px; height: 15px; }

.btn-primary {
  background: var(--grad); border-color: rgba(255, 255, 255, .08); color: #fff;
  box-shadow: 0 8px 22px -12px rgba(217, 43, 58, .9), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn-primary:hover { background: var(--grad); border-color: rgba(255, 255, 255, .14); box-shadow: 0 12px 30px -12px rgba(217, 43, 58, .95), inset 0 1px 0 rgba(255, 255, 255, .22); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .22) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-light { background: #ededf0; color: #111; border-color: transparent; }
.btn-light:hover { background: #fff; border-color: transparent; }
.btn-danger { color: #ff8892; border-color: rgba(217, 43, 58, .35); }
.btn-danger:hover { background: rgba(217, 43, 58, .14); border-color: rgba(217, 43, 58, .55); }

.ripple {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: rgba(255, 255, 255, .25); transform: translate(-50%, -50%) scale(0);
  animation: ripple .6s var(--ease) forwards;
}
@keyframes ripple { to { transform: translate(-50%, -50%) scale(1); opacity: 0; } }

.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px; cursor: pointer;
  background: transparent; border: 1px solid transparent; color: var(--muted);
  transition: color .2s, background .2s, border-color .2s, transform .2s var(--ease);
}
.icon-btn:hover { color: var(--text); background: var(--panel-2); border-color: var(--line); }
.icon-btn:active { transform: scale(.94); }
.icon-btn:disabled { opacity: .3; cursor: default; background: transparent; border-color: transparent; }
.icon-btn.sm { width: 32px; height: 32px; border-radius: 9px; }
.icon-btn.sm i[data-icon] { width: 16px; height: 16px; }
.icon-btn.danger:hover { color: #ff8892; background: rgba(217, 43, 58, .12); }

.brand { display: flex; align-items: center; gap: 12px; }
.brand strong { display: block; font-family: var(--display); font-weight: 700; font-size: 1.02rem; line-height: 1.2; }
.brand small { color: var(--muted); font-size: .76rem; }
.logo {
  flex: none; width: 46px; height: 46px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 1px rgba(217, 43, 58, .5), 0 6px 20px -8px rgba(217, 43, 58, .8);
  animation: logo-glow 4s ease-in-out infinite;
}
@keyframes logo-glow { 50% { box-shadow: 0 0 0 1px rgba(217, 43, 58, .8), 0 0 22px rgba(217, 43, 58, .45); } }
@keyframes spin { to { transform: rotate(360deg); } }

.live-chip {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  padding: 5px 11px; border-radius: 999px; font-size: .76rem; font-weight: 600;
  background: rgba(255, 255, 255, .04); color: #b8b8c2; border: 1px solid var(--line);
}
.live-chip .dot, .stat-live {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 rgba(76, 195, 138, .6); animation: pulse 2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(76, 195, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(76, 195, 138, 0); }
}

.grad-text {
  background: linear-gradient(90deg, var(--red-soft), #ff8a94, var(--red), var(--red-soft));
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 8s linear infinite;
}
@keyframes shimmer { to { background-position: 300% 0; } }

.swap.swapping { animation: swap .45s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } }

/* ---------------------------------------------------------------- formulários */

.field { display: grid; gap: 7px; }
.field > span { font-size: .83rem; font-weight: 600; color: #c6c6cf; }
.field em { color: var(--muted); font-style: normal; font-weight: 400; }
.input {
  display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 12px;
  background: rgba(0, 0, 0, .45); border: 1px solid var(--line-2);
  transition: border-color .2s, box-shadow .25s var(--ease), background .2s;
}
.input:hover { border-color: rgba(255, 255, 255, .2); }
.input:focus-within { border-color: var(--red); background: rgba(0, 0, 0, .6); box-shadow: 0 0 0 4px rgba(217, 43, 58, .14); }
.input i[data-icon] { color: var(--muted); width: 18px; height: 18px; transition: color .2s; }
.input:focus-within i[data-icon] { color: var(--red-soft); }
.input input, .input textarea, .input select {
  flex: 1; min-width: 0; padding: 12px 0; background: transparent; border: 0; outline: 0;
  color: var(--text); font: inherit;
}
.input textarea { resize: vertical; min-height: 84px; }
.input input::placeholder, .input textarea::placeholder { color: #55555f; }
.input input[readonly] { color: var(--green); font-family: var(--mono); font-weight: 700; letter-spacing: .06em; }
.input input[type="color"] { flex: none; width: 34px; height: 34px; padding: 0; border-radius: 8px; cursor: pointer; }
.input input:-webkit-autofill {
  -webkit-text-fill-color: var(--text); -webkit-box-shadow: 0 0 0 40px #0d0d10 inset; caret-color: var(--text);
}
.input.big input { font-family: var(--mono); font-size: 1.35rem; font-weight: 700; padding: 11px 0; }
.input .prefix { font-family: var(--mono); color: var(--muted); font-weight: 700; }

.tabs {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  padding: 4px; border-radius: 14px; background: rgba(0, 0, 0, .45); border: 1px solid var(--line);
}
.tabs::before {
  content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  border-radius: 10px; background: var(--grad); box-shadow: 0 6px 16px -8px rgba(217, 43, 58, .9);
  transition: transform .45s var(--spring);
}
.tabs[data-mode="signup"]::before, .tabs[data-mode="out"]::before { transform: translateX(100%); }
.tabs button {
  position: relative; z-index: 1; border: 0; background: transparent; cursor: pointer;
  padding: 9px; border-radius: 10px; font-weight: 700; color: var(--muted); transition: color .3s;
}
.tabs[data-mode="login"] [data-mode="login"], .tabs[data-mode="signup"] [data-mode="signup"],
.tabs[data-mode="in"] [data-mode="in"], .tabs[data-mode="out"] [data-mode="out"] { color: #fff; }

.collapse {
  display: grid; grid-template-rows: 1fr; opacity: 1;
  transition: grid-template-rows .45s var(--ease), opacity .35s var(--ease), margin .45s var(--ease);
}
.collapse > div { min-height: 0; overflow: hidden; padding: 4px; margin: -4px; }
.collapse.closed { grid-template-rows: 0fr; opacity: 0; }

.error {
  margin: 0; padding: 11px 14px; border-radius: 12px; font-size: .88rem;
  background: rgba(217, 43, 58, .1); color: #ff8892; border: 1px solid rgba(217, 43, 58, .28);
  animation: shake .4s var(--ease);
}
@keyframes shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }

.switch {
  position: relative; width: 42px; height: 24px; border-radius: 12px; cursor: pointer; flex: none;
  background: rgba(255, 255, 255, .1); border: 1px solid var(--line-2); transition: background .25s;
}
.switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: #9a9aa5; transition: transform .35s var(--spring), background .25s;
}
.switch.on { background: rgba(76, 195, 138, .3); border-color: rgba(76, 195, 138, .5); }
.switch.on::after { transform: translateX(18px); background: var(--green); }

/* ---------------------------------------------------------------- login */

.auth-screen { min-height: 100vh; display: grid; grid-template-columns: 1.15fr 1fr; }
.auth-hero {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; padding: 36px 56px;
}
.auth-hero-text { position: relative; z-index: 1; max-width: 600px; display: grid; gap: 18px; }
.auth-hero-text > * { animation: rise .8s var(--ease) both; }
.auth-hero-text > :nth-child(2) { animation-delay: .08s; }
.auth-hero-text > :nth-child(3) { animation-delay: .16s; }
.auth-hero-text > :nth-child(4) { animation-delay: .24s; }
.auth-hero-text > :nth-child(5) { animation-delay: .32s; }
.auth-hero-text > :nth-child(6) { animation-delay: .4s; }
.headline { font-size: clamp(2.4rem, 4.2vw, 4rem); font-weight: 800; line-height: 1.02; letter-spacing: -.04em; }
.auth-hero-text p { margin: 0; color: #a9a9b3; font-size: 1.05rem; max-width: 460px; }

.auth-hero-text > .hero-logo {
  position: relative; width: clamp(110px, 10vw, 140px); aspect-ratio: 1; margin: 6px 0 8px 6px;
  animation: rise .8s var(--ease) both, levitate 6s ease-in-out .8s infinite;
}
.hero-logo::before {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--red), transparent 30%, rgba(255, 255, 255, .5) 50%, transparent 70%, var(--red));
  animation: spin 5s linear infinite;
}
.hero-logo::after {
  content: ""; position: absolute; inset: -40px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(217, 43, 58, .35), transparent 65%);
  animation: breathe 3.6s ease-in-out infinite;
}
.hero-logo img {
  position: relative; display: block; width: 100%; height: 100%;
  border-radius: 50%; object-fit: cover; border: 4px solid #070708;
}
@keyframes levitate { 50% { transform: translateY(-8px); } }
@keyframes breathe { 50% { opacity: .5; transform: scale(1.1); } }
.brand-mobile .logo { width: 56px; height: 56px; }

.flow-card { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 20px; }
.flow-step { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.flow-step small { display: block; color: var(--muted); font-size: .74rem; }
.flow-step b { font-family: var(--mono); font-size: .98rem; }
.flow-icon {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: rgba(255, 255, 255, .05); color: var(--red-soft);
}
.flow-icon.green { color: var(--green); animation: glow 2.8s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 20px rgba(76, 195, 138, .3); } }
.flow-track { position: relative; flex: 1; min-width: 40px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.flow-track span {
  position: absolute; inset: 0; width: 40%; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--red), var(--green));
  animation: travel 2.6s var(--ease) infinite;
}
@keyframes travel { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

.perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.perks li { display: flex; gap: 12px; align-items: center; color: #c9c9d1; }
.perks li i[data-icon] {
  width: 32px; height: 32px; padding: 7px; border-radius: 10px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); color: var(--red-soft);
}

.ring {
  position: absolute; right: -200px; bottom: -200px; width: 560px; height: 560px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, rgba(217, 43, 58, .35), transparent 35%, rgba(255, 255, 255, .12), transparent 70%);
  -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%, #000 64%, transparent 65%);
          mask: radial-gradient(circle, transparent 62%, #000 63%, #000 64%, transparent 65%);
  animation: spin 22s linear infinite;
}

.auth-panel { display: grid; place-items: center; padding: 40px 24px; }
.auth-card {
  width: min(440px, 100%); display: grid; gap: 16px; padding: 32px; border-radius: 26px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9); animation: pop .7s var(--ease) both .1s;
}
.auth-card h2 { font-size: 1.7rem; font-weight: 800; }
.auth-card .collapse.closed { margin-top: -16px; }
.brand-mobile { display: none; }

.link-row { display: flex; justify-content: flex-end; margin-top: -6px; }
.link-row.center { justify-content: center; margin-top: 0; }
.link-btn {
  background: none; border: 0; padding: 2px 0; cursor: pointer; font-size: .85rem; font-weight: 600;
  color: var(--red-soft); transition: color .2s;
}
.link-btn:hover { color: #fff; text-decoration: underline; }
.wa-help { margin: 0; animation: rise .4s var(--ease) both; }
.info-box {
  margin: 0; padding: 12px 14px; border-radius: 12px; font-size: .9rem; animation: rise .4s var(--ease) both;
  background: rgba(76, 195, 138, .08); color: #a6e8c7; border: 1px solid rgba(76, 195, 138, .28);
}
.ref-callout {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; font-size: .9rem;
  background: rgba(76, 195, 138, .07); border: 1px solid rgba(76, 195, 138, .25);
}
.ref-callout i[data-icon] { color: var(--green); width: 22px; height: 22px; }
.ref-status { font-size: .8rem; min-height: 1.2em; color: var(--muted); transition: color .2s; }
.ref-status.ok { color: var(--green); }
.ref-status.bad { color: #ff8892; }
.ref-status button {
  background: none; border: 0; padding: 0; margin-left: 6px; cursor: pointer;
  color: var(--muted); text-decoration: underline; font-size: inherit;
}

/* ---------------------------------------------------------------- shell do app */

.app { display: grid; grid-template-columns: 272px 1fr; min-height: 100vh; }

.sidebar {
  position: sticky; top: 14px; height: calc(100vh - 28px); margin: 14px 0 14px 14px;
  display: flex; flex-direction: column; gap: 8px; padding: 18px 14px;
  border-radius: 24px; z-index: 15; overflow-y: auto;
}
.sidebar > .brand { padding: 4px 8px 18px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }

.nav { position: relative; display: grid; gap: 3px; align-content: start; flex: 1; }
.nav a {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 13px;
  padding: 11px 14px; border-radius: 12px; font-weight: 500; color: #a2a2ad; font-size: .95rem;
  transition: color .25s, transform .25s var(--ease);
}
.nav a:hover { color: #fff; transform: translateX(3px); }
.nav a.active { color: #fff; }
.nav a i[data-icon] { transition: transform .35s var(--spring), color .25s; }
.nav a.active i[data-icon] { color: var(--red-soft); transform: scale(1.08); }
.nav-indicator {
  position: absolute; left: 0; right: 0; top: 0; height: 44px; border-radius: 12px;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line);
  transition: transform .5s var(--spring), height .3s var(--ease), opacity .3s;
}
.nav-indicator::before {
  content: ""; position: absolute; left: -15px; top: 11px; bottom: 11px; width: 3px; border-radius: 0 3px 3px 0;
  background: var(--red); box-shadow: 0 0 12px var(--red);
}
.nav-badge {
  margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  display: grid; place-items: center; font-size: .7rem; font-weight: 700;
  background: var(--red); color: #fff; animation: bump .5s var(--spring);
}
.bell-ring i[data-icon] { animation: ring 1s var(--ease); transform-origin: 50% 10%; }
@keyframes ring { 15% { transform: rotate(16deg); } 30% { transform: rotate(-14deg); } 45% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } 75% { transform: rotate(3deg); } }
.nav-section {
  margin: 14px 14px 4px; font-size: .68rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: #5f5f6a; display: flex; align-items: center; gap: 8px;
}
.nav-section::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.invite-card {
  position: relative; overflow: hidden; display: grid; gap: 8px;
  padding: 16px; border-radius: 18px; margin: 8px 0;
  background: linear-gradient(160deg, rgba(217, 43, 58, .14), rgba(255, 255, 255, .015));
  border: 1px solid rgba(217, 43, 58, .22);
}
.invite-card b { font-family: var(--display); }
.invite-card p { margin: 0 0 6px; color: #b7b7c0; font-size: .83rem; }
.invite-glow {
  position: absolute; width: 140px; height: 140px; right: -60px; top: -70px; border-radius: 50%;
  background: var(--red); filter: blur(55px); opacity: .25; animation: float 9s ease-in-out infinite alternate;
}
.invite-card > :not(.invite-glow) { position: relative; }

.nav-logout {
  display: flex; align-items: center; gap: 13px; padding: 11px 14px; border-radius: 12px;
  border: 0; background: transparent; color: var(--muted); cursor: pointer; text-align: left;
  transition: color .2s, background .2s;
}
.nav-logout:hover { color: #fff; background: rgba(217, 43, 58, .1); }

.main { min-width: 0; display: flex; flex-direction: column; padding: 14px 14px 14px 18px; gap: 18px; }
.topbar {
  position: sticky; top: 14px; z-index: 10;
  display: flex; align-items: center; gap: 16px; padding: 11px 14px 11px 24px; border-radius: 20px;
}
.burger { display: none; }
.title-wrap { flex: 1; min-width: 0; }
.title-wrap small { color: var(--muted); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.title-wrap h1 { font-size: 1.4rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-actions { display: flex; align-items: center; gap: 10px; }

.wallet-pill {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  padding: 6px 8px 6px 6px; border-radius: 14px; background: rgba(0, 0, 0, .4); border: 1px solid var(--line);
  transition: border-color .2s, transform .2s var(--ease), box-shadow .3s;
}
.wallet-pill:hover { border-color: var(--line-2); }
.wallet-pill.flash { animation: flash 1.2s var(--ease); }
@keyframes flash { 30% { box-shadow: 0 0 0 3px rgba(76, 195, 138, .3), 0 0 30px rgba(76, 195, 138, .35); transform: scale(1.03); } }
.wallet-icon {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: rgba(76, 195, 138, .1); color: var(--green);
}
.wallet-icon i[data-icon], .wallet-plus i[data-icon] { width: 17px; height: 17px; }
.wallet-text small { display: block; color: var(--muted); font-size: .6rem; letter-spacing: .12em; line-height: 1.2; }
.wallet-text b { font-family: var(--mono); color: var(--green); font-size: .96rem; }
.wallet-plus {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px;
  background: rgba(255, 255, 255, .08); color: #fff; transition: background .2s;
}
.wallet-pill:hover .wallet-plus { background: var(--red); }

.cart-btn .count {
  position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--red); color: #fff; font-size: .68rem; font-weight: 700; display: grid; place-items: center;
}
.bump { animation: bump .5s var(--spring); }
@keyframes bump { 40% { transform: scale(1.3); } }

.user-chip { display: flex; align-items: center; gap: 10px; padding-left: 6px; }
.avatar {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: #121215; border: 1px solid var(--line-2); color: var(--red-soft);
  font-family: var(--display); font-weight: 800;
}
.user-meta b { display: block; font-size: .9rem; line-height: 1.2; }
.user-meta small { color: var(--muted); font-size: .73rem; }
.user-meta small.admin { color: var(--red-soft); font-weight: 600; }

.view { display: grid; gap: 20px; align-content: start; transition: opacity .16s, transform .16s var(--ease); }
.view.leaving { opacity: 0; transform: translateY(6px); }

.reveal { animation: rise .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.99); filter: blur(4px); } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } }

/* ---------------------------------------------------------------- cartões / painéis */

.card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line);
  transition: transform .35s var(--ease), border-color .3s, box-shadow .35s var(--ease);
}
.spot::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .05), transparent 45%);
  opacity: 0; transition: opacity .35s;
}
.spot:hover::before { opacity: 1; }
.spot > * { position: relative; z-index: 1; }
.lift:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: 0 22px 44px -24px rgba(0, 0, 0, .95); }

.panel { padding: 22px; display: grid; gap: 16px; align-content: start; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.panel-title { font-size: 1.02rem; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.panel-title i[data-icon] { color: var(--red-soft); }
.link-accent { color: var(--red-soft); font-size: .87rem; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.link-accent i[data-icon] { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-accent:hover i[data-icon] { transform: translateX(4px); }

.hero {
  position: relative; overflow: hidden; border-radius: 24px; padding: 36px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center;
  background: linear-gradient(135deg, #0f0709, #09090b 70%);
  border: 1px solid var(--line);
}
.hero-orbs { position: absolute; inset: 0; pointer-events: none; }
.hero-orbs span { position: absolute; border-radius: 50%; filter: blur(70px); animation: float 16s ease-in-out infinite alternate; }
.hero-orbs span:nth-child(1) { width: 360px; height: 360px; left: -100px; top: -180px; background: rgba(217, 43, 58, .28); }
.hero-orbs span:nth-child(2) { width: 280px; height: 280px; right: 12%; bottom: -200px; background: rgba(143, 22, 34, .3); animation-delay: -6s; }
.hero-orbs span:nth-child(3) { width: 200px; height: 200px; right: -60px; top: -90px; background: rgba(255, 255, 255, .04); animation-delay: -10s; }
.hero > :not(.hero-orbs) { position: relative; }
.hero h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 800; line-height: 1.06; letter-spacing: -.035em; margin: 14px 0 12px; }
.hero p { margin: 0; color: #a9a9b3; max-width: 460px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.hero-side {
  display: grid; gap: 6px; padding: 22px; border-radius: 20px;
  background: rgba(0, 0, 0, .4); border: 1px solid var(--line);
}
.hero-side small { color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; }
.hero-side strong { font-family: var(--mono); font-size: 2.1rem; color: var(--green); line-height: 1.1; }
.progress { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .07); overflow: hidden; margin-top: 10px; }
.progress span {
  display: block; height: 100%; width: 0; border-radius: 3px;
  background: linear-gradient(90deg, var(--red-deep), var(--red));
  transition: width 1.2s var(--ease) .3s;
}

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { padding: 20px; display: grid; gap: 14px; min-height: 160px; align-content: space-between; }
.stat-top { display: flex; justify-content: space-between; align-items: flex-start; }
.stat-icon {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--red-soft);
  transition: transform .4s var(--spring);
}
.stat:hover .stat-icon { transform: rotate(-8deg) scale(1.08); }
.stat-icon i[data-icon] { width: 20px; height: 20px; }
.stat strong { display: block; font-family: var(--mono); font-size: 1.75rem; line-height: 1.1; }
.stat strong.money { color: var(--green); }
.stat b { display: block; font-size: .88rem; margin-top: 4px; }
.stat span.sub { color: var(--muted); font-size: .8rem; }
.stat::after {
  content: ""; position: absolute; width: 150px; height: 150px; right: -60px; bottom: -70px; border-radius: 50%;
  background: var(--red); filter: blur(60px); opacity: .06; transition: opacity .4s;
}
.stat:hover::after { opacity: .14; }

.panels { display: grid; grid-template-columns: 1fr 1.4fr; gap: 14px; }
.panels.even { grid-template-columns: 1fr 1fr; }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick > * {
  display: grid; justify-items: start; gap: 12px; padding: 16px; border-radius: 16px; cursor: pointer; text-align: left;
  background: rgba(0, 0, 0, .3); border: 1px solid var(--line); font-weight: 600;
  transition: transform .3s var(--ease), border-color .25s, background .25s;
}
.quick > *:hover { transform: translateY(-2px); border-color: rgba(217, 43, 58, .4); background: rgba(217, 43, 58, .05); }
.quick i[data-icon] {
  width: 38px; height: 38px; padding: 9px; border-radius: 11px;
  background: rgba(255, 255, 255, .05); color: var(--red-soft); transition: transform .35s var(--spring);
}
.quick > *:hover i[data-icon] { transform: scale(1.1) rotate(-6deg); }
.quick small { display: block; color: var(--muted); font-weight: 400; font-size: .77rem; }

.list { display: grid; gap: 8px; }
.row-item {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px;
  background: rgba(0, 0, 0, .28); border: 1px solid var(--line);
  transition: border-color .25s, transform .25s var(--ease);
}
.row-item:hover { border-color: var(--line-2); transform: translateX(3px); }
.row-item .emojis { font-size: 1.35rem; letter-spacing: -.25em; }
.row-item .info { flex: 1; min-width: 0; }
.row-item .info small { color: var(--muted); }
.row-item .amount { font-family: var(--mono); font-weight: 700; }

.empty-state { display: grid; justify-items: center; gap: 12px; padding: 30px 12px; text-align: center; color: var(--muted); }
.empty-icon {
  display: grid; place-items: center; width: 68px; height: 68px; border-radius: 20px;
  background: rgba(255, 255, 255, .03); border: 1px dashed var(--line-2); animation: bob 3s ease-in-out infinite;
}
.empty-icon i[data-icon] { width: 28px; height: 28px; }
@keyframes bob { 50% { transform: translateY(-6px); } }

/* ---------------------------------------------------------------- marketplace */

.banner {
  display: flex; align-items: center; gap: 12px; padding: 13px 17px; border-radius: 14px;
  background: rgba(76, 195, 138, .06); border: 1px solid rgba(76, 195, 138, .22);
}
.banner i[data-icon] { color: var(--green); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.product { display: flex; flex-direction: column; }
.product-img {
  position: relative; height: 180px; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 65%, color-mix(in srgb, var(--pc) 14%, transparent), transparent 65%), #0a0a0c;
}
.product-img img.product-photo { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product:hover .product-img img.product-photo { transform: scale(1.06); }
.product-emoji { font-size: 4.2rem; filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .6)); transition: transform .5s var(--spring); }
.product:hover .product-emoji { transform: translateY(-8px) rotate(-7deg) scale(1.06); }
.product-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; border-top: 1px solid var(--line); }
.product-body h3 { font-size: 1rem; font-weight: 700; }
.product-body p { margin: 0; color: var(--muted); font-size: .86rem; flex: 1; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.price { font-family: var(--mono); font-weight: 700; font-size: 1.1rem; }
.product.soldout .product-img > :not(.stock-tag) { filter: grayscale(1) brightness(.5); }
.stock-tag {
  position: absolute; top: 12px; left: 12px; z-index: 2; padding: 4px 10px; border-radius: 999px;
  font-size: .72rem; font-weight: 700; backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, .55); border: 1px solid var(--line-2); color: #c9c9d1;
}
.stock-tag.low { color: var(--amber); border-color: rgba(214, 162, 67, .4); }
.stock-tag.out { color: #ff8892; border-color: rgba(217, 43, 58, .45); }

.flyer {
  position: fixed; z-index: 60; pointer-events: none; font-size: 2.4rem;
  transform: translate(-50%, -50%); filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .6));
}
img.flyer { width: 64px; height: 64px; object-fit: cover; border-radius: 14px; }
.coin {
  position: fixed; z-index: 60; pointer-events: none; width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #c9f5df, var(--green)); box-shadow: 0 0 8px var(--green);
}

/* ---------------------------------------------------------------- tabelas */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
tbody tr { transition: background .2s; }
tbody tr:hover { background: rgba(255, 255, 255, .02); }
tbody tr:last-child td { border-bottom: 0; }
th { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .09em; background: rgba(0, 0, 0, .35); font-weight: 600; }
td.plus { color: var(--green); font-family: var(--mono); font-weight: 700; }
td.minus, td.num { font-family: var(--mono); font-weight: 700; }
td small { display: block; color: var(--muted); font-size: .78rem; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; }
.pill.active, .pill.ok { background: rgba(76, 195, 138, .1); color: var(--green); }
.pill.active::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 2s infinite; }
.pill.pending, .pill.off { background: rgba(255, 255, 255, .05); color: var(--muted); }
.pill.low { background: rgba(214, 162, 67, .12); color: var(--amber); }
.pill.out { background: rgba(217, 43, 58, .12); color: #ff8892; }

.order-card { padding: 18px 20px; display: grid; gap: 12px; }
.order-card header { display: flex; justify-content: space-between; color: var(--muted); }
.order-card header b { color: var(--text); font-family: var(--display); }
.order-card ul { margin: 0; padding-left: 20px; color: #c6c6cf; }

.summary { display: grid; gap: 8px; }
.summary .row { display: flex; justify-content: space-between; gap: 12px; }
.summary .row span:last-child { font-family: var(--mono); }
.summary .row.discount { color: var(--green); }
.summary .row.total { font-weight: 800; font-size: 1.08rem; border-top: 1px solid var(--line); padding-top: 10px; }
.summary .row.sub { color: var(--muted); font-size: .85rem; }

/* ---------------------------------------------------------------- indicações / regras */

.link-box { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; }
.link-box code {
  flex: 1; min-width: 220px; display: flex; align-items: center; padding: 11px 15px; border-radius: 12px;
  background: rgba(0, 0, 0, .45); border: 1px dashed var(--line-2);
  font-family: var(--mono); color: var(--green); overflow-wrap: anywhere;
}
.share { display: flex; gap: 10px; flex-wrap: wrap; }

.rules { display: grid; gap: 10px; }
.rule { display: flex; gap: 16px; align-items: flex-start; padding: 18px; }
.rule .num {
  flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  background: rgba(217, 43, 58, .12); border: 1px solid rgba(217, 43, 58, .3);
  color: var(--red-soft); font-family: var(--mono); font-weight: 700;
}
.rule b { font-family: var(--display); }
.rule p { margin: 4px 0 0; color: #b5b5bf; }

/* ---------------------------------------------------------------- admin */

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.toolbar .input { flex: 1; min-width: 200px; }
.p-cell { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.p-cell b { display: block; white-space: nowrap; }
.p-cell small { display: block; color: var(--muted); font-size: .78rem; max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.thumb {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); font-size: 1.4rem; overflow: hidden;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.lg { width: 64px; height: 64px; border-radius: 16px; font-size: 2rem; }
.order-cell { display: flex; flex-direction: column; gap: 2px; width: 40px; }
.order-cell .icon-btn { width: 28px; height: 22px; border-radius: 7px; }
.actions-cell { display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
tr.inactive td:not(:last-child):not(:nth-last-child(2)) { opacity: .45; }
tr.flash-row { animation: row-flash 1.4s var(--ease); }
@keyframes row-flash { 20% { background: rgba(76, 195, 138, .08); } }
.admin-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px;
  font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(217, 43, 58, .12); color: var(--red-soft); border: 1px solid rgba(217, 43, 58, .3);
}

.modal-card.wide { width: min(720px, 100%); }
.modal-card.mid { width: min(540px, 100%); }
.form-grid { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; }
.form-fields { display: grid; gap: 14px; }
.form-fields > * { min-width: 0; }
.form-fields > .collapse.closed { margin-top: -14px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.input input { width: 100%; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; }

.image-drop {
  position: relative; display: grid; place-items: center; align-content: center; gap: 10px; text-align: center;
  aspect-ratio: 1; border-radius: 18px; border: 1.5px dashed var(--line-2); background: rgba(0, 0, 0, .35);
  cursor: pointer; overflow: hidden; transition: border-color .2s, background .2s;
}
.image-drop:hover, .image-drop.drag { border-color: var(--red); background: rgba(217, 43, 58, .05); }
.image-drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.image-drop .ph-emoji { font-size: 3.4rem; }
.image-drop small { color: var(--muted); font-size: .76rem; padding: 0 12px; }
.image-drop .remove {
  position: absolute; top: 8px; right: 8px; z-index: 2; background: rgba(0, 0, 0, .7);
}
.image-drop.loading::after {
  content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .55);
}
.image-drop.loading::before {
  content: ""; position: absolute; z-index: 3; width: 28px; height: 28px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .2); border-top-color: #fff; animation: spin .8s linear infinite;
}

.stock-head { display: flex; align-items: center; gap: 14px; padding-right: 40px; }
.stock-head .info { flex: 1; min-width: 0; }
.stock-now { text-align: right; }
.stock-now small { display: block; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.stock-now strong { font-family: var(--mono); font-size: 2rem; line-height: 1.1; }
.stock-preview { color: var(--muted); font-size: .85rem; min-height: 1.3em; }
.stock-preview b { font-family: var(--mono); color: var(--text); }
.history { display: grid; gap: 6px; max-height: 210px; overflow-y: auto; padding-right: 4px; }
.history-item {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center;
  padding: 9px 12px; border-radius: 10px; background: rgba(0, 0, 0, .3); font-size: .84rem;
}
.history-item .delta { font-family: var(--mono); font-weight: 700; }
.history-item .delta.in { color: var(--green); }
.history-item .delta.out { color: #ff8892; }
.history-item small { color: var(--muted); }

/* ---------------------------------------------------------------- entrega automática */

.tabs[data-mode="fixed"]::before { transform: translateX(100%); }
.tabs[data-mode="codes"] [data-mode="codes"], .tabs[data-mode="fixed"] [data-mode="fixed"] { color: #fff; }
.tabs.locked { opacity: .55; pointer-events: none; }
.input textarea.mono { font-family: var(--mono); font-size: .88rem; }

.auto-tag {
  display: inline-flex; align-items: center; gap: 5px; width: fit-content;
  font-size: .72rem; font-weight: 600; color: var(--green);
}
.auto-tag i[data-icon] { width: 13px; height: 13px; }

.delivery { display: grid; gap: 6px; margin-top: 8px; }
.code-row {
  display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 10px;
  background: rgba(0, 0, 0, .45); border: 1px dashed rgba(76, 195, 138, .3);
}
.code-row code {
  flex: 1; min-width: 0; font-family: var(--mono); font-size: .86rem; color: var(--green);
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.code-row code a { color: inherit; text-decoration: underline; }
.code-row .icon-btn { flex: none; }
.code-row .icon-btn.copied { color: var(--green); }

.deliveries { display: grid; gap: 12px; max-height: 50vh; overflow-y: auto; padding-right: 4px; }
.delivery-card { padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.delivery-head { display: flex; align-items: center; gap: 12px; }
.delivery-head small { display: block; color: var(--muted); }

.order-item { display: grid; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.order-item:last-child { border-bottom: 0; }
.order-item-head { display: flex; align-items: center; gap: 10px; }
.order-item-head small { color: var(--muted); }

.item-list { display: grid; gap: 6px; max-height: 220px; overflow-y: auto; padding-right: 4px; }
.item-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center;
  padding: 7px 8px 7px 12px; border-radius: 10px; background: rgba(0, 0, 0, .3); font-size: .84rem;
  animation: rise .35s var(--ease) both;
}
.item-row code { font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-row small { color: var(--muted); }
.item-row .icon-btn.armed { color: #fff; background: var(--red); width: auto; padding: 0 10px; font-size: .75rem; font-weight: 700; }

/* ---------------------------------------------------------------- meus pedidos */

.order-line {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 16px; align-items: center;
  padding: 14px 16px; transition: transform .3s var(--ease), border-color .25s, background .25s;
}
.order-line:hover { transform: translateX(3px); border-color: var(--line-2); background: rgba(255, 255, 255, .035); }
.thumb.order-thumb { width: 56px; height: 56px; border-radius: 14px; font-size: 1.8rem; color: var(--red-soft); }
.thumb.order-thumb i[data-icon] { width: 22px; height: 22px; }
.order-line .info b { display: block; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 4px; color: var(--muted); font-size: .84rem; }
.order-meta span { display: inline-flex; align-items: center; gap: 6px; }
.order-meta i[data-icon] { width: 15px; height: 15px; }
.order-amount { display: grid; justify-items: end; gap: 4px; }
.order-amount strong { font-family: var(--mono); font-size: 1.12rem; color: var(--red-soft); }
.order-view { color: var(--red-soft); }
.order-view:hover { color: #fff; }

.order-mini { grid-template-columns: auto minmax(0, 1fr) auto; }
.order-mini .thumb.order-thumb { width: 44px; height: 44px; font-size: 1.4rem; border-radius: 12px; }
.order-mini .info b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.order-detail-head { display: flex; align-items: center; gap: 14px; }
.order-detail-head .info { flex: 1; min-width: 0; }
.order-detail-head h2 { font-size: 1.25rem; }

@media (max-width: 640px) {
  .order-line { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; }
  .order-line .order-view { grid-column: 1 / -1; justify-self: stretch; }
  .thumb.order-thumb { width: 46px; height: 46px; }
}

/* ---------------------------------------------------------------- avisos */

.pill i[data-icon] { width: 12px; height: 12px; }
.pill.kind-info { background: rgba(255, 255, 255, .06); color: #c9c9d1; }
.pill.kind-promo { background: rgba(76, 195, 138, .1); color: var(--green); }
.pill.kind-alert { background: rgba(217, 43, 58, .14); color: #ff8892; }
.pill.kind-news { background: rgba(214, 162, 67, .12); color: var(--amber); }

.ann { padding: 20px 22px; display: grid; gap: 10px; }
.ann-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ann h3 { font-size: 1.12rem; font-weight: 700; }
.ann-body { color: #c6c6cf; white-space: pre-wrap; overflow-wrap: anywhere; }
.ann-body a, .msg a { color: var(--red-soft); text-decoration: underline; }
.ann-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: .8rem; }
.ann.pinned { border-color: rgba(217, 43, 58, .3); background: linear-gradient(160deg, rgba(217, 43, 58, .06), var(--panel) 50%); }
.ann.draft { border-style: dashed; }
.ann.unread::after {
  content: ""; position: absolute; top: 20px; right: 20px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 12px var(--red);
}
.ann-strip {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px;
}
.ann-strip > i[data-icon] { color: var(--red-soft); }
.ann-strip .info { flex: 1; min-width: 0; }
.ann-strip .info span { display: block; color: var(--muted); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.chip-select { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-select label { cursor: pointer; }
.chip-select input { position: absolute; opacity: 0; pointer-events: none; }
.chip-select span {
  display: inline-block; padding: 7px 13px; border-radius: 999px; font-size: .85rem; font-weight: 600;
  border: 1px solid var(--line-2); color: var(--muted); transition: all .2s;
}
.chip-select input:checked + span { background: rgba(217, 43, 58, .14); border-color: var(--red); color: #fff; }
.chip-select input:focus-visible + span { box-shadow: 0 0 0 3px rgba(217, 43, 58, .3); }

/* escolher pedido ao abrir chamado */
.order-filter { display: grid; gap: 8px; }
.order-picks {
  display: grid; gap: 8px; max-height: 300px; overflow-y: auto; padding: 2px 4px 2px 2px; margin-top: 4px;
  overscroll-behavior: contain;
}
.order-pick {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; cursor: pointer;
  border: 1px solid var(--line-2); border-radius: 14px; background: rgba(255, 255, 255, .02);
  transition: border-color .2s, background .2s, transform .2s var(--spring);
}
.order-pick[hidden] { display: none; }
.order-pick:hover { border-color: rgba(255, 255, 255, .2); }
.order-pick:active { transform: scale(.99); }
.order-pick input { position: absolute; opacity: 0; pointer-events: none; }
.order-pick .thumb.order-thumb { width: 48px; height: 48px; font-size: 1.5rem; border-radius: 12px; flex-shrink: 0; }
.order-pick .info { flex: 1; min-width: 0; display: grid; gap: 2px; }
.order-pick .info b { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-pick .info small { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: .76rem; }
.order-pick .info small svg { width: 12px; height: 12px; }
.order-pick .amount { font-weight: 700; font-size: .9rem; white-space: nowrap; }
.order-pick .pick-check {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid var(--line-2); color: transparent; transition: all .2s;
}
.order-pick .pick-check svg { width: 13px; height: 13px; }
.order-pick:has(input:checked) { border-color: var(--red); background: rgba(217, 43, 58, .08); }
.order-pick:has(input:checked) .pick-check { background: var(--red); border-color: var(--red); color: #fff; }
.order-pick:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(217, 43, 58, .3); }
@media (max-width: 520px) {
  .order-pick { flex-wrap: wrap; }
  .order-pick .amount { margin-left: 60px; }
}

/* ---------------------------------------------------------------- perfil */

.profile-head { display: flex; align-items: center; gap: 20px; padding: 24px; flex-wrap: wrap; }
.avatar.xl { width: 76px; height: 76px; border-radius: 22px; font-size: 2rem; }
.profile-head h2 { font-size: 1.55rem; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.input input:disabled { color: var(--muted); }

/* foto de perfil */
.avatar { overflow: hidden; flex-shrink: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.sm { width: 34px; height: 34px; border-radius: 10px; font-size: .85rem; }
.avatar.lg { width: 64px; height: 64px; border-radius: 18px; font-size: 1.6rem; }
.avatar-edit { display: grid; justify-items: center; gap: 6px; }
.avatar-pick { position: relative; cursor: pointer; border-radius: 22px; }
.avatar-pick .avatar { transition: filter .2s; }
.avatar-cam {
  position: absolute; right: -6px; bottom: -6px; display: grid; place-items: center; width: 28px; height: 28px;
  border-radius: 50%; background: var(--red); color: #fff; border: 2px solid #0b0b0d; transition: transform .2s var(--spring);
}
.avatar-cam svg { width: 14px; height: 14px; }
.avatar-pick:hover .avatar { filter: brightness(.75); }
.avatar-pick:hover .avatar-cam { transform: scale(1.12); }
.avatar-pick.loading { pointer-events: none; animation: pulse-soft 1s ease-in-out infinite; }
@keyframes pulse-soft { 50% { opacity: .5; } }
.avatar-edit .link-accent { background: none; border: 0; cursor: pointer; font: inherit; }

/* admin: clientes */
tr.click-row { cursor: pointer; }
tr.click-row:hover td { background: rgba(255, 255, 255, .02); }
.p-cell .badges { margin-top: 4px; gap: 4px; }
.p-cell .badges .pill { font-size: .68rem; }
.mini-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mini-stats div {
  position: relative; padding: 12px 14px; min-width: 0;
  border: 1px solid var(--line-2); border-radius: 14px; background: rgba(255, 255, 255, .02);
}
.mini-stats i[data-icon] { position: absolute; top: 12px; right: 12px; width: 15px; height: 15px; color: var(--muted); opacity: .6; }
.mini-stats small { display: block; color: var(--muted); font-size: .72rem; margin-bottom: 4px; }
.mini-stats b {
  display: block; font-size: 1.02rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-variant-numeric: tabular-nums; letter-spacing: -.01em;
}
.mini-stats .hl { border-color: rgba(76, 195, 138, .3); background: rgba(76, 195, 138, .06); }
.mini-stats .hl b, .mini-stats .hl i[data-icon] { color: var(--green); opacity: 1; }
@media (max-width: 520px) { .mini-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.danger-zone { flex-wrap: wrap; border-top: 1px solid var(--line-2); padding-top: 14px; }

/* estoque visível para o comprador */
.stock-line { display: block; font-size: .78rem; color: var(--muted); margin-top: 2px; }
.stock-line b { color: var(--text); }
.stock-line.low b { color: var(--amber); }

/* ---------------------------------------------------------------- suporte */

.support-card .modal-icon { margin-bottom: -4px; }
.ticket-row {
  width: 100%; text-align: left; cursor: pointer; font: inherit; color: inherit;
  display: grid; grid-template-columns: 10px 1fr auto auto; gap: 14px;
}
.ticket-row small { color: var(--muted); white-space: nowrap; }
.ticket-row .info small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.unread-dot { width: 8px; height: 8px; border-radius: 50%; background: transparent; }
.unread-dot.on { background: var(--red); box-shadow: 0 0 10px var(--red); animation: pulse-red 2s infinite; }
@keyframes pulse-red { 70% { box-shadow: 0 0 0 7px rgba(217, 43, 58, 0); } }

.segmented { display: flex; gap: 6px; flex-wrap: wrap; }
.segmented button {
  padding: 8px 14px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .86rem;
  background: transparent; border: 1px solid var(--line-2); color: var(--muted); transition: all .2s;
}
.segmented button:hover { color: var(--text); }
.segmented button.on { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .25); }

.input select {
  flex: 1; min-width: 0; padding: 12px 0; background: transparent; border: 0; outline: 0;
  color: var(--text); font: inherit; cursor: pointer;
}
.input select option { background: #121215; }

.thread { display: grid; gap: 10px; max-height: 42vh; overflow-y: auto; padding: 4px; }
.msg {
  max-width: 85%; justify-self: start; padding: 10px 14px; border-radius: 16px 16px 16px 4px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line); animation: rise .35s var(--ease) both;
}
.msg.mine { justify-self: end; border-radius: 16px 16px 4px 16px; background: rgba(217, 43, 58, .12); border-color: rgba(217, 43, 58, .28); }
.msg .who { display: flex; gap: 10px; align-items: baseline; font-size: .74rem; color: var(--muted); margin-bottom: 4px; }
.msg .who b { color: #d7d7de; font-size: .8rem; }
.msg.staff .who b { color: var(--red-soft); }
.msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

.order-ref { border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; background: rgba(0, 0, 0, .3); }
.order-ref summary { cursor: pointer; font-weight: 600; font-size: .9rem; display: flex; align-items: center; gap: 12px; list-style: none; }
.order-ref summary::-webkit-details-marker { display: none; }
.order-ref summary .thumb.order-thumb { width: 44px; height: 44px; font-size: 1.4rem; border-radius: 12px; flex-shrink: 0; }
.order-ref summary .info { flex: 1; min-width: 0; display: grid; gap: 2px; }
.order-ref summary .info b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-ref summary .info small { color: var(--muted); font-size: .76rem; font-weight: 500; }
.order-ref summary .amount { white-space: nowrap; }
.order-ref[open] summary { margin-bottom: 6px; }

/* ---------------------------------------------------------------- skeleton */

.skeleton { display: grid; gap: 14px; }
.sk { border-radius: 18px; background: rgba(255, 255, 255, .03); position: relative; overflow: hidden; }
.sk::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .05), transparent);
  animation: skel 1.2s infinite;
}
@keyframes skel { to { transform: translateX(100%); } }

/* ---------------------------------------------------------------- overlays */

.backdrop {
  position: fixed; inset: 0; z-index: 20; background: rgba(0, 0, 0, .65);
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility 0s .35s;
}
.backdrop.open { opacity: 1; visibility: visible; transition: opacity .35s var(--ease); }

.drawer {
  position: fixed; top: 12px; right: 12px; bottom: 12px; z-index: 30;
  width: min(440px, calc(100% - 24px)); padding: 24px; overflow-y: auto; border-radius: 24px;
  display: flex; flex-direction: column; gap: 16px; background-color: rgba(10, 10, 12, .92);
  transform: translateX(calc(100% + 24px)); visibility: hidden;
  transition: transform .5s var(--ease), visibility 0s .5s;
}
.drawer.open { transform: none; visibility: visible; transition: transform .5s var(--ease); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer-head h2 { font-size: 1.25rem; }
#cart-items { display: grid; gap: 8px; }
.cart-line {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px;
  background: rgba(0, 0, 0, .35); border: 1px solid var(--line); animation: rise .4s var(--ease) both;
}
.cart-line .info { flex: 1; min-width: 0; }
.cart-line .info small { color: var(--muted); font-family: var(--mono); }
.qty { display: flex; align-items: center; gap: 10px; font-family: var(--mono); }
.qty button {
  width: 28px; height: 28px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); transition: background .2s, transform .15s;
}
.qty button:hover { background: rgba(217, 43, 58, .18); }
.qty button:active { transform: scale(.9); }
.qty button:disabled { opacity: .35; cursor: not-allowed; }
.check { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.check input { accent-color: var(--red); width: 18px; height: 18px; }
.warn {
  margin: 0; padding: 11px 14px; border-radius: 12px; font-size: .9rem;
  background: rgba(217, 43, 58, .08); color: #ff8892; border: 1px solid rgba(217, 43, 58, .25);
}

.modal {
  position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; overflow-y: auto;
  visibility: hidden; pointer-events: none; transition: visibility 0s .4s;
}
.modal.open { visibility: visible; pointer-events: auto; transition: none; }
.modal-card {
  position: relative; width: min(440px, 100%); display: grid; gap: 18px; padding: 28px; border-radius: 24px;
  background-color: rgba(12, 12, 15, .94); box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .95);
  opacity: 0; transform: translateY(24px) scale(.95);
  transition: opacity .3s var(--ease), transform .45s var(--spring);
}
.modal.open .modal-card { opacity: 1; transform: none; }
.modal-card .close { position: absolute; top: 14px; right: 14px; }
.modal-card h2 { font-size: 1.35rem; }
.modal-icon {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px;
  background: rgba(76, 195, 138, .1); color: var(--green);
}
.modal-icon.red { background: rgba(217, 43, 58, .12); color: var(--red-soft); }
.modal-icon i[data-icon] { width: 23px; height: 23px; }
.quick-amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.quick-amounts button {
  padding: 10px 0; border-radius: 11px; cursor: pointer; font-weight: 700; font-family: var(--mono);
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03);
  transition: border-color .2s, color .2s, transform .2s var(--spring), background .2s;
}
.quick-amounts button:hover { border-color: rgba(217, 43, 58, .6); transform: translateY(-2px); }
.quick-amounts button.picked { background: rgba(217, 43, 58, .14); border-color: var(--red); color: #fff; }

/* Depósito via Pix */
.pix-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .pix-fields { grid-template-columns: 1fr; } }
.pix-qr {
  justify-self: center; width: 240px; height: 240px; padding: 10px; border-radius: 18px; background: #fff;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .9);
}
.pix-code input { font-size: .78rem !important; letter-spacing: 0 !important; text-overflow: ellipsis; }
.pix-status { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0; font-weight: 600; }
.pix-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--amber); animation: pix-pulse 1.4s ease-in-out infinite; }
.pix-status.ok { color: var(--green); }
.pix-status.ok .pix-dot { background: var(--green); animation: none; }
.pix-status.fail { color: var(--red-soft); }
.pix-status.fail .pix-dot { background: var(--red); animation: none; }
@keyframes pix-pulse { 50% { opacity: .3; transform: scale(.7); } }
@media (prefers-reduced-motion: reduce) { .pix-dot { animation: none; } }

.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 70; display: grid; gap: 10px; width: min(380px, calc(100% - 40px)); }
.toast {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; border-radius: 14px; font-weight: 500; font-size: .91rem;
  background: rgba(14, 14, 17, .95); border: 1px solid var(--line-2);
  backdrop-filter: blur(16px); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .95);
  animation: toast-in .5s var(--spring) both;
}
.toast.out { animation: toast-out .35s var(--ease) forwards; }
.toast i[data-icon] { width: 21px; height: 21px; color: #b8b8c2; }
.toast.success i[data-icon] { color: var(--green); }
.toast.error i[data-icon] { color: #ff8892; }
.toast .bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; transform-origin: left; background: var(--red); animation: bar linear forwards; }
.toast.success .bar { background: var(--green); }
@keyframes toast-in { from { opacity: 0; transform: translateX(40px) scale(.95); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(40px) scale(.95); } }
@keyframes bar { to { transform: scaleX(0); } }

::view-transition-old(root) { animation: .3s var(--ease) both vt-out; }
::view-transition-new(root) { animation: .45s var(--ease) both vt-in; }
@keyframes vt-out { to { opacity: 0; transform: scale(.985); filter: blur(6px); } }
@keyframes vt-in { from { opacity: 0; transform: scale(1.015); filter: blur(6px); } }

/* ---------------------------------------------------------------- responsivo */

@media (max-height: 940px) {
  .invite-card { display: none; }
  .nav a { padding-top: 9px; padding-bottom: 9px; }
}
@media (max-width: 1280px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .panels, .panels.even { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
  .live-chip.compact { display: none; }
  .hero { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .auth-screen { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
  .brand-mobile { display: flex; }

  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; left: 12px; top: 12px; bottom: 12px; height: auto; margin: 0; width: 272px; z-index: 35;
    background-color: rgba(10, 10, 12, .95);
    transform: translateX(calc(-100% - 24px)); transition: transform .5s var(--ease);
  }
  .sidebar.open { transform: none; }
  .burger { display: inline-grid; }
  .main { padding: 10px; gap: 14px; }
  .topbar { top: 10px; padding: 8px 10px; gap: 8px; }
  .title-wrap small { display: none; }
  .title-wrap h1 { font-size: 1.12rem; }
  .user-meta { display: none; }
  .hero { padding: 24px; }
}
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 16px; min-height: 140px; }
  .stat strong { font-size: 1.3rem; }
  .wallet-text small, .wallet-plus, .user-chip { display: none; }
  .auth-card { padding: 24px; }
  .quick-amounts { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .image-drop { aspect-ratio: 16 / 9; }
  .form-row { grid-template-columns: 1fr; }
}

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