@font-face {
  font-family: 'DrukWide';
  src: url('https://fonts.cdnfonts.com/s/15622/DrukWide-Heavy-Trial.woff') format('woff');
  font-weight: 900;
  font-display: swap;
}
/* =============================================
   TEMA GLOBAL — paleta GhostPay (cores exatas)
   bg #000000 · surface #000000 · accent #ffffff
   ============================================= */
:root {
  /* Era #000000. Esta e a cor que html e body recebem com !important
     (linhas abaixo), entao ela e o fundo real da pagina — e aparecia
     como faixa preta dura sempre que o fundo animado nao alcancava o
     pe da tela (barra do navegador escondendo, overscroll). Este tom
     e a base do degradê do .stars-wrapper, entao a emenda some. */
  --gp-bg:            #05030c;
  --gp-bg-deep:       #050505;
  --gp-accent:        #ffffff;
  --gp-accent-hover:  #e4e4e7;
  --gp-accent-deep:   #a1a1aa;
  --gp-accent-light:  #e4e4e7;
  --gp-accent-soft:   rgba(255, 255, 255, 0.05);
  --gp-accent-border: rgba(255, 255, 255, 0.15);

  /* aliases usados pelo resto do site */
  --accent:        var(--gp-accent);
  --accent-hover:  var(--gp-accent-hover);
  --accent-deep:   var(--gp-accent-deep);
  --accent-soft:   var(--gp-accent-soft);
  --accent-border: var(--gp-accent-border);
}

/* ── Fundo global: glow magenta idêntico ao GhostPay ── */
html { background: var(--gp-bg) !important; }
body {
  background: var(--gp-bg) !important;
  position: relative;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(800px 500px at 20% 0%,    rgba(0, 0, 0, 0) 0%, transparent 60%),
    radial-gradient(900px 400px at 80% -10%,  rgba(255, 255, 255, 0.03) 0%, transparent 100%),
    radial-gradient(700px 500px at 85% 100%,  rgba(0, 0, 0, 0) 0%, transparent 65%);
}
/* glow do body: o body::before já posiciona fixed, não precisa de z-index nos filhos */

/* ── Navbar ── */
.header-inner {
  background: transparent !important;
  border-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.header.scrolled .header-inner {
  background: transparent !important;
  border-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.nav-hover-pill { display: none !important; }
.nav-link:hover, .nav-link.active { color: #fff !important; }
.nav-cart-btn:hover { background: none !important; color: #fff !important; }
.nav-cart-count { background: var(--gp-accent) !important; color: #000 !important; }

.nav-login-btn {
  background: #ffffff !important;
  color: #000000 !important;
  box-shadow: 0 12px 30px -12px rgba(255, 255, 255, 0.15) !important;
  transition: background 0.18s, transform 0.15s, box-shadow 0.18s;
}
.nav-login-btn:hover {
  background: #e4e4e7 !important;
  color: #000000 !important;
  transform: translateY(-1px);
  box-shadow: 0 14px 34px -10px rgba(255, 255, 255, 0.25) !important;
}

/* ── Cards ── */
.product-card, .sw-card, .glass-card,
.checkout-order-box, .stat-card, .dash-card {
  background: rgba(255, 255, 255, 0.026) !important;
  border-color: rgba(255, 255, 255, 0.03) !important;
}
.product-card:hover, .sw-card:hover {
  border-color: rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.8), 0 0 34px rgba(255, 255, 255, 0.06) !important;
}
.product-card-tilt:hover {
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.85), 0 0 42px rgba(255, 255, 255, 0.08) !important;
}
.product-card-tilt .card-shine {
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(255, 255, 255, 0.08) 0%, transparent 58%) !important;
}

/* ── Botões primários ── */
.btn-primary, .buy-btn, .checkout-pay-btn, .auth-submit-btn,
.plan-buy-btn, .p-modal-buy-btn {
  background: #ffffff !important;
  color: #000000 !important;
  border: 1px solid #ffffff !important;
  box-shadow: 0 12px 30px -12px rgba(255, 255, 255, 0.15) !important;
}
.btn-primary:hover, .buy-btn:hover, .checkout-pay-btn:hover,
.auth-submit-btn:hover, .plan-buy-btn:hover, .p-modal-buy-btn:hover {
  background: #e4e4e7 !important;
  color: #000000 !important;
  transform: translateY(-1px);
  box-shadow: 0 14px 36px -10px rgba(255, 255, 255, 0.25) !important;
}

/* ── Planos ── */
.plan-card { border-color: rgba(255, 255, 255, 0.06) !important; }
.plan-card:hover { border-color: rgba(255, 255, 255, 0.15) !important; }
.plan-card.active {
  border-color: var(--gp-accent) !important;
  background: rgba(204, 8, 84, 0.08) !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15), 0 0 26px rgba(255, 255, 255, 0.06) !important;
}
.plan-card.active .plan-card-radio { border-color: var(--gp-accent) !important; }
.plan-card.active .plan-card-radio-dot { background: var(--gp-accent) !important; }
.plan-card.active .plan-card-price { color: #fff !important; }
.plan-badge-popular {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--gp-accent-light) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}
.plan-per-day {
  color: var(--gp-accent-light) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

/* ── Inputs ── */
input:focus, textarea:focus, select:focus,
.checkout-input:focus, .auth-input:focus, .search-input-el:focus {
  border-color: var(--gp-accent-border) !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.03) !important;
}

/* ── Métodos de pagamento ── */
.chk-method-card.active, .checkout-pay-option.active {
  border-color: var(--gp-accent) !important;
  background: rgba(0, 0, 0, 0) !important;
}

/* ── Scrollbar / seleção ── */
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.30); }
::selection      { background: rgba(255, 255, 255, 0.20); color: #fff; }
::-moz-selection { background: rgba(255, 255, 255, 0.20); color: #fff; }

/* ── Efeitos ── */
#cursor-glow {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 62%) !important;
}
.glow-orb-1 { background: radial-gradient(circle, rgba(255, 255, 255, 0.05), transparent 70%) !important; }
.glow-orb-2 { background: radial-gradient(circle, rgba(255, 255, 255, 0.05), transparent 70%) !important; }
.glow-orb-3 { background: radial-gradient(circle, rgba(255, 255, 255, 0.03), transparent 70%) !important; }

.section-divider, hr {
  border-color: rgba(255, 255, 255, 0.06) !important;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.10), transparent) !important;
}
.live-toast, .toast-accent {
  border-color: rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 12px 30px -12px rgba(255, 255, 255, 0.15), 0 4px 24px -8px rgba(0, 0, 0, 0.6) !important;
}

/* ── Painel esquerdo do login ── */
.auth-left {
  background:
    radial-gradient(800px 500px at 20% 0%,   rgba(0, 0, 0, 0) 0%, transparent 60%),
    radial-gradient(900px 400px at 80% -10%, rgba(255, 255, 255, 0.03) 0%, transparent 100%),
    var(--gp-bg) !important;
}
.auth-brand-icon {
  background: linear-gradient(145deg, var(--gp-accent), var(--gp-accent-deep)) !important;
  box-shadow: 0 12px 30px -12px rgba(255, 255, 255, 0.15) !important;
}
.auth-field-input:focus {
  border-color: var(--gp-accent) !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.03) !important;
}

/* =============================================
   DASHBOARD & PAINEL
   ============================================= */
.dash-stat, .dash-card, .prod-card,
#section-dashboard .card {
  background: rgba(255, 255, 255, 0.026) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
}
.dash-stat:hover, .dash-card:hover, .prod-card:hover {
  border-color: rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.75), 0 0 30px rgba(255, 255, 255, 0.03) !important;
}

.dash-stat-value, .stat-value, .dash-highlight { color: #fff !important; }
.dash-stat-icon, .stat-icon {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: var(--gp-accent-light) !important;
}

table thead th {
  color: rgba(255, 255, 255, 0.38) !important;
  border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}
table tbody tr { border-bottom-color: rgba(255, 255, 255, 0.05) !important; }
table tbody tr:hover { background: rgba(255, 255, 255, 0.03) !important; }

.tab-btn.active, .user-tab-btn.active, .admin-tab-btn.active {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #fff !important;
}

.sidebar-item.active, .portal-nav-item.active {
  background: rgba(255, 255, 255, 0.03) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}
.sidebar-item:hover, .portal-nav-item:hover {
  background: rgba(255, 255, 255, 0.04) !important;
}

.progress-fill, .bar-fill {
  background: linear-gradient(90deg, var(--gp-accent-deep), var(--gp-accent)) !important;
}
.badge-info, .tag-info {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: var(--gp-accent-light) !important;
}

.admin-modal, .user-portal-modal, .prod-modal, .checkout-modal {
  background: linear-gradient(150deg, #050505, var(--gp-bg-deep)) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}
.admin-modal::before, .prod-modal::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.20), transparent) !important;
}

/* ── Sobrepõe os #09090b inline (bento/dashboard/chat) ── */
.prod-card,
.dash-stat, .dash-card, .box {
  background: rgba(255, 255, 255, 0.026) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
}
.prod-card:hover, .box:hover {
  border-color: rgba(255, 255, 255, 0.15) !important;
}
#page-chat {
  background: var(--gp-bg-deep) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* superfícies escuras genéricas herdam o tom magenta */
.glass-panel, .panel, .card-dark, .modal-dark {
  background: rgba(255, 255, 255, 0.026) !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
}

/* =============================================
   HERO ESTILO GHOSTPAY (dashboard)
   ============================================= */
.gp-hero {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem 5rem;
  box-sizing: border-box;
}
.gp-hero-inner {
  width: 100%;
  max-width: 760px;
  text-align: center;
}

.gp-hero-title {
  font-size: clamp(1.9rem, 4.6vw, 3.1rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.035em;
  line-height: 1.18;
  margin: 0 0 2.5rem;

  font-family: \'DrukWide\', 'Space Grotesk', 'Inter', system-ui, sans-serif !important;
  font-weight: 900 !important;
  text-transform: uppercase;
  letter-spacing: -0.01em !important;
}

.gp-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.6rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 10px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'DrukWide', 'Space Grotesk', 'Inter', system-ui, sans-serif !important;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition: background 0.2s, border-color 0.2s, transform 0.18s, box-shadow 0.2s;
}
/* linha de luz no topo do botão, igual ao GhostPay */
.gp-hero-cta::before {
  content: '';
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  width: 65%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent) !important;
  border-radius: 999px;
}
.gp-hero-cta:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 30px -12px rgba(255, 255, 255, 0.15) !important;
}

.gp-hero-note {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.36);
  margin: 0.9rem 0 0;
}

.gp-hero-divider {
  height: 1px;
  margin: 3rem auto 2.5rem;
  max-width: 460px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

/* ── Blocos 01 / 02 / 03 ── */
.gp-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.25rem;
  text-align: left;
  max-width: 620px;
  margin: 0 auto;
}
.gp-feature-num {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.08em;
  margin-bottom: 0.55rem;
}
.gp-feature-title {
  font-size: 0.83rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  margin: 0 0 0.45rem;
}
.gp-feature-desc {
  font-size: 0.73rem;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 720px) {
  .gp-hero {
    min-height: auto;
    padding: 6.5rem 1.25rem 3.5rem;
    align-items: flex-start;
  }
  .gp-hero-title {
    font-size: 1.75rem;
    line-height: 1.2;
    margin-bottom: 1.75rem;
  
  font-family: \'DrukWide\', 'Space Grotesk', 'Inter', system-ui, sans-serif !important;
  font-weight: 900 !important;
  text-transform: uppercase;
  letter-spacing: -0.01em !important;
}
  .gp-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.6rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 10px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'DrukWide', 'Space Grotesk', 'Inter', system-ui, sans-serif !important;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition: background 0.2s, border-color 0.2s, transform 0.18s, box-shadow 0.2s;
}
  .gp-hero-note { font-size: 0.78rem; margin-top: 0.8rem; }
  .gp-hero-divider { margin: 2.5rem auto 2.25rem; max-width: 100%; }

  .gp-features {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 100%;
    text-align: center;
  }
  .gp-feature {
    padding: 1.1rem 1rem;
    background: rgba(255, 255, 255, 0.026);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
  }
  .gp-feature-num { font-size: 0.6rem; margin-bottom: 0.5rem; }
  .gp-feature-title { font-size: 0.88rem; margin-bottom: 0.4rem; }
  .gp-feature-desc { font-size: 0.78rem; line-height: 1.6; }
}

/* =============================================
   TELA DE IDIOMAS — mesmo background do site
   ============================================= */
#loading-screen {
  background:
    radial-gradient(800px 500px at 20% 0%,   rgba(0, 0, 0, 0) 0%, transparent 60%),
    radial-gradient(900px 400px at 80% -10%, rgba(255, 255, 255, 0.03) 0%, transparent 100%),
    radial-gradient(700px 500px at 85% 100%, rgba(0, 0, 0, 0) 0%, transparent 65%),
    var(--gp-bg) !important;
}
.lang-logo { color: #fff !important; }
.lang-btn {
  border-color: rgba(255, 255, 255, 0.06) !important;
  background: rgba(255, 255, 255, 0.026) !important;
  transition: border-color 0.18s, background 0.18s, transform 0.18s, box-shadow 0.18s;
}
.lang-btn:hover {
  border-color: rgba(204, 8, 84, 0.5) !important;
  background: rgba(0, 0, 0, 0) !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -12px rgba(204, 8, 84, 0.5) !important;
}

/* =============================================
   MOBILE NAV — hamburger + drawer
   ============================================= */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 34px; height: 34px;
  padding: 0 7px;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s;
}
.nav-burger:hover { background: rgba(255, 255, 255, 0.08); }
.nav-burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1), opacity 0.2s;
  pointer-events: none;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mnav-backdrop {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 999996;
  opacity: 0; visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s, visibility 0.28s;
}
.mnav-backdrop.open { opacity: 1; visibility: visible; pointer-events: auto; }

.mnav-drawer {
  position: fixed;
  top: 0; left: 0;
  width: min(300px, 84vw);
  /* `100%` num `fixed` pega a viewport grande (com a barra de URL junto) e o
     rodapé do drawer fica escondido atrás do chrome do celular. O `#mnav-drawer`
     em index.html tem a mesma correção: lá vale por especificidade de ID. */
  height: 100%;
  height: 100dvh;
  z-index: 999997;
  background:
    radial-gradient(600px 420px at 0% 0%, rgba(255, 255, 255, 0.12) 0%, transparent 62%),
    #000000;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 18px 0 45px -24px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  padding: 1.1rem 1rem 1.25rem;
  box-sizing: border-box;
  transform: translateX(-100%);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.25s;
  overflow-y: auto;
}
.mnav-drawer.open {
  transform: translateX(0);
  opacity: 1;
}

/* DESKTOP: drawer e burger NUNCA visíveis */
@media (min-width: 1025px) {
  .mnav-drawer,
  .mnav-backdrop,
  .nav-burger,
  #nav-burger {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

.mnav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.1rem;
  margin-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.mnav-logo { font-size: 1rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.mnav-close {
  background: none; border: none; cursor: pointer;
  color: rgba(255, 255, 255, 0.45);
  padding: 0.35rem; border-radius: 8px;
  display: flex; transition: color 0.15s, background 0.15s;
}
.mnav-close:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }

.mnav-links { display: flex; flex-direction: column; gap: 0.15rem; }
.mnav-link {
  display: flex; align-items: center; gap: 0.7rem;
  width: 100%;
  padding: 0.72rem 0.75rem;
  background: none; border: none;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.87rem; font-weight: 500; font-family: 'DrukWide', 'Space Grotesk', 'Inter', system-ui, sans-serif !important;
  text-align: left; cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.mnav-link:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.mnav-link.active { background: rgba(255, 255, 255, 0.08); color: #fff; }
.mnav-badge {
  margin-left: auto;
  /* era `color: #fff` sobre `background: #fff`: o número ficava invisível e a
     bolha virava um círculo branco solto ao lado do "Carrinho" */
  background: #ffffff; color: #09090b;
  font-size: 0.68rem; font-weight: 800;
  padding: 0.08rem 0.4rem; border-radius: 999px;
  min-width: 16px; text-align: center;
}
.mnav-sep { height: 1px; background: rgba(255,255,255,0.07); margin: 0.6rem 0; }

.mnav-foot { margin-top: auto; padding-top: 1rem; }
.mnav-cta {
  width: 100%;
  padding: 0.78rem;
  background: #ffffff !important; color: #000000 !important;
  border: none; border-radius: 10px;
  font-size: 0.88rem; font-weight: 700; font-family: 'DrukWide', 'Space Grotesk', 'Inter', system-ui, sans-serif !important;
  cursor: pointer;
  box-shadow: 0 12px 30px -12px rgba(255, 255, 255, 0.15) !important;
  transition: background 0.16s, transform 0.15s;
}
.mnav-cta:hover { background: #e4e4e7 !important; transform: translateY(-1px); }
.mnav-cta-ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
}
.mnav-cta-ghost:hover { background: rgba(255, 255, 255, 0.09); }

/* bloco do usuário logado no drawer */
.mnav-user {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.75rem;
  margin-bottom: 0.6rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}
.mnav-user-avatar {
  width: 34px; height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 800; color: #fff;
  background: linear-gradient(145deg, #ffffff, #a1a1aa);
  overflow: hidden;
}
.mnav-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mnav-user-info { min-width: 0; flex: 1; }
.mnav-user-name {
  font-size: 0.82rem; font-weight: 700; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mnav-user-mail {
  font-size: 0.68rem; color: rgba(255, 255, 255, 0.38);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ── breakpoint: esconde nav desktop, mostra burger ── */
@media (max-width: 1024px) {
  /* burger sempre visível, logado ou não */
  #nav-burger, .nav-burger { display: flex !important; }
  .header-inner .nav-links { display: none !important; }
  .header-inner .nav-cart-btn span:not(.nav-cart-count) { display: none; }
  /* no mobile o perfil vive no drawer; o burger assume o lugar */
  #nav-logged-items { display: none !important; }
  #nav-guest-items .galaxy-btn { display: none !important; }
  .header-inner {
    width: 100% !important;
    padding: 0 1rem !important;
    gap: 0.6rem !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  .header.scrolled .header-inner { width: 100% !important; max-width: none !important; background: transparent !important; border: none !important; box-shadow: none !important; }
  .nav-logo { font-size: 1.05rem; margin-right: auto; }
  .nav-burger { order: -1; }
  .nav-right-actions { gap: 0.5rem !important; }
  .nav-login-btn {
  background: #ffffff !important;
  color: #000000 !important;
  box-shadow: 0 12px 30px -12px rgba(255, 255, 255, 0.15) !important;
  transition: background 0.18s, transform 0.15s, box-shadow 0.18s;
}
}
@media (max-width: 480px) {
  .nav-right-actions .nav-cart-btn { padding: 0.35rem 0.45rem !important; }
  .nav-login-btn {
  background: #ffffff !important;
  color: #000000 !important;
  box-shadow: 0 12px 30px -12px rgba(255, 255, 255, 0.15) !important;
  transition: background 0.18s, transform 0.15s, box-shadow 0.18s;
}
}
body.mnav-open { overflow: hidden; }

/* =============================================
   GALAXY BUTTON (Uiverse) — botão Entrar
   ============================================= */
.galaxy-btn {
  --btn-bg: #0c0c14;
  --btn-text: #ffffff;
  --btn-primary: #ffffff;
  --btn-secondary: #e4e4e7;
  --btn-accent: #a1a1aa;
  --btn-font-size: 13px;

  font-family: 'DrukWide', 'Space Grotesk', 'Inter', system-ui, sans-serif !important;
  font-size: var(--btn-font-size);
  padding: 0.7em 1.5em;
  border-radius: 0.7em;
  border: none;
  background: var(--btn-bg);
  position: relative;
  cursor: pointer;
  overflow: hidden;
  z-index: 1;
  transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 0.5em 1.5em -0.5em rgba(255, 255, 255, 0.15);
}
.galaxy-btn:focus-visible { outline: 2px solid var(--btn-primary); outline-offset: 4px; }
.galaxy-btn:active { transform: scale(0.96); }

.galaxy-btn__content {
  display: flex;
  align-items: center;
  gap: 0.6em;
  position: relative;
  z-index: 2;
  color: var(--btn-text);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.galaxy-btn__icon {
  width: 1.15em; height: 1.15em;
  transition: transform 0.3s ease;
  fill: var(--btn-text);
}
.galaxy-btn:hover .galaxy-btn__icon { transform: translateX(0.25em) rotate(-10deg); }

.galaxy-btn::before {
  content: "";
  position: absolute;
  inset: -4px;
  z-index: 0;
  background: conic-gradient(from 0deg,
    var(--btn-bg) 0deg,
    var(--btn-primary) 60deg,
    var(--btn-secondary) 120deg,
    var(--btn-bg) 180deg,
    var(--btn-accent) 240deg,
    var(--btn-primary) 300deg,
    var(--btn-bg) 360deg);
  border-radius: 0.7em;
  animation: rotate-nebula 4s linear infinite;
  filter: blur(8px);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}
.galaxy-btn:hover::before { opacity: 1; animation-duration: 2s; }
.galaxy-btn::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: var(--btn-bg);
  border-radius: 0.55em;
  z-index: 1;
}
.galaxy-btn__stars {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 30%, white 1px, transparent 1.5px),
    radial-gradient(circle at 80% 70%, white 1px, transparent 1.5px),
    radial-gradient(circle at 40% 80%, white 0.5px, transparent 1px);
  background-size: 120% 120%;
  opacity: 0.3;
  transition: opacity 0.3s ease, background-position 0.3s ease;
}
.galaxy-btn:hover .galaxy-btn__stars { opacity: 0.8; animation: star-drift 5s linear infinite alternate; }

@keyframes rotate-nebula { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes star-drift { 0% { transform: scale(1); } 100% { transform: scale(1.1) translate(-2%, -2%); } }

@media (max-width: 900px) {
  .galaxy-btn { --btn-font-size: 11px; padding: 0.6em 1.1em; }
}

/* =============================================
   NOTIFICAÇÕES estilo macOS (canto superior direito)
   ============================================= */
#mac-notify-stack {
  position: fixed;
  top: 92px;
  right: 18px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  pointer-events: none;
  max-width: 340px;
}
.mac-notify {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 320px;
  padding: 0.85rem 0.95rem;
  background: rgba(10, 10, 10, 0.82)
  border-radius: 14px;
  box-shadow: 0 18px 45px -18px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  pointer-events: auto;
  cursor: default;
  box-sizing: border-box;
  opacity: 0;
  transform: translateX(28px) scale(0.96);
  transition: opacity 0.32s ease, transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
}
.mac-notify.show { opacity: 1; transform: translateX(0) scale(1); }
.mac-notify.hide { opacity: 0; transform: translateX(28px) scale(0.97); }

.mac-notify-icon {
  width: 34px; height: 34px;
  flex-shrink: 0;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.mac-notify-body { min-width: 0; flex: 1; }
.mac-notify-title {
  font-size: 0.81rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 0.12rem;
}
.mac-notify-msg {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.45;
  word-wrap: break-word;
}
.mac-notify-time {
  font-size: 0.66rem;
  color: rgba(255, 255, 255, 0.28);
  flex-shrink: 0;
  margin-left: 0.3rem;
}
/* variantes */
.mac-notify.coin  .mac-notify-icon { background: rgba(245, 158, 11, 0.16); border-color: rgba(245, 158, 11, 0.32); }
.mac-notify.role   .mac-notify-icon { background: rgba(139, 92, 246, 0.16); border-color: rgba(139, 92, 246, 0.32); }
.mac-notify.success .mac-notify-icon { background: rgba(34, 197, 94, 0.16);  border-color: rgba(34, 197, 94, 0.32); }
.mac-notify.error  .mac-notify-icon { background: rgba(239, 68, 68, 0.16);  border-color: rgba(239, 68, 68, 0.32); }

@media (max-width: 560px) {
  #mac-notify-stack { top: 78px; right: 10px; left: 10px; max-width: none; }
  .mac-notify { width: 100%; }
}

/* =============================================
   LOGIN: spinner + boas-vindas
   ============================================= */
#login-transition {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  background:
    radial-gradient(800px 500px at 20% 0%,   rgba(0, 0, 0, 0) 0%, transparent 60%),
    radial-gradient(900px 400px at 80% -10%, rgba(255, 255, 255, 0.03) 0%, transparent 100%),
    #000000;
  opacity: 0;
  transition: opacity 0.35s ease;
}
#login-transition.show { opacity: 1; }

/* bolinha rosa girando */
.lt-spinner {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.08);
  border-top-color: #ffffff;
  animation: lt-spin 0.75s linear infinite;
  box-shadow: 0 0 26px rgba(255, 255, 255, 0.15);
}
@keyframes lt-spin { to { transform: rotate(360deg); } }

.lt-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.02em;
}

/* ── Mensagem de boas-vindas ── */
#welcome-splash {
  position: fixed;
  inset: 0;
  z-index: 999998;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}
#welcome-splash.show { opacity: 1; }

.ws-card {
  text-align: center;
  padding: 0 1.5rem;
  transform: translateY(14px) scale(0.97);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
#welcome-splash.show .ws-card { transform: translateY(0) scale(1); }

.ws-avatar {
  width: 58px; height: 58px;
  border-radius: 50%;
  margin: 0 auto 1.1rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 800; color: #fff;
  background: linear-gradient(145deg, #ffffff, #a1a1aa);
  box-shadow: 0 14px 34px -12px rgba(204, 8, 84, 0.75);
  overflow: hidden;
}
.ws-avatar img { width: 100%; height: 100%; object-fit: cover; }

.ws-title {
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.035em;
  margin: 0 0 0.45rem;
}
.ws-sub {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}

/* =============================================
   CHAT — fundo magenta ocupando a tela toda
   ============================================= */
#page-chat {
  /* ocupa toda a viewport abaixo do header */
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  height: calc(100vh - 64px) !important;
  min-height: 0 !important;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
  z-index: 1;

  /* mesmo gradiente do resto do site */
  background:
    radial-gradient(1100px 620px at 50% 0%,   rgba(255, 255, 255, 0.04) 0%, transparent 62%),
    radial-gradient(900px 500px at 15% 15%,   rgba(255, 255, 255, 0.06) 0%, transparent 60%),
    radial-gradient(900px 500px at 85% 85%,   rgba(255, 255, 255, 0.03) 0%, transparent 62%),
    #000000 !important;
}

/* titulo/subtitulo do chat: esconde no modo fullscreen */
#page-chat > h2,
#page-chat > p:not([class]),
#page-chat > .page-title,
#page-chat > .page-subtitle,
#page-chat > div:first-child:not(.discord-app) {
  display: none !important;
}

/* app do Discord: preenche TODO o espaço disponível */
#page-chat .discord-app {
  max-width: none !important;
  width: 100% !important;
  flex: 1 1 auto !important;
  height: 100% !important;
  border-radius: 0 !important;
  border: none !important;
  margin: 0 !important;
  background: rgba(10, 10, 10, 0.50) !important;
  box-shadow: none !important;
}

/* colunas internas translúcidas para o gradiente aparecer */
#page-chat .discord-servers        { background: rgba(10, 10, 10, 0.72) !important; }
#page-chat .discord-sidebar        { background: rgba(10, 10, 10, 0.58) !important; }
#page-chat .discord-chat-container { background: transparent !important; }
#page-chat .discord-header,
#page-chat .discord-chat-header    { background: rgba(10, 10, 10, 0.45) !important; border-color: rgba(255, 255, 255, 0.06) !important; }
#page-chat .discord-chat-messages  { background: transparent !important; }
#page-chat .discord-user-panel     { background: rgba(10, 10, 10, 0.7) !important; }
#page-chat .discord-call-panel     { background: rgba(10, 10, 10, 0.6) !important; border-color: rgba(255, 255, 255, 0.08) !important; }

/* canal ativo em magenta (era azul do Discord) */
#page-chat .discord-channel-item.active {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #fff !important;
  border-left-color: #ffffff !important;
}
#page-chat .discord-channel-item:hover {
  background: rgba(0, 0, 0, 0) !important;
}

/* card de boas-vindas do canal */
#page-chat .discord-welcome-card {
  background: rgba(10, 10, 10, 0.55) !important;
  border-color: rgba(204, 8, 84, 0.22) !important;
}

/* avatares e ícones do servidor em magenta */
#page-chat .discord-server-icon.active,
#page-chat .discord-user-avatar,
#page-chat .discord-voice-avatar {
  background: linear-gradient(145deg, #ffffff, #a1a1aa) !important;
}

/* barra de digitar */
#page-chat input[type="text"],
#page-chat textarea {
  background: rgba(10, 10, 10, 0.72) !important;
  border-color: rgba(204, 8, 84, 0.22) !important;
  color: #fff !important;
}
#page-chat input[type="text"]:focus,
#page-chat textarea:focus {
  border-color: rgba(204, 8, 84, 0.5) !important;
}

/* painel de diagnóstico — escondido no modo fullscreen */
#dc-voice-logger-wrapper {
  display: none !important;
}

/* lista de membros online */
#page-chat .discord-member-item:hover { background: rgba(204, 8, 84, 0.08) !important; }

@media (max-width: 720px) {
  #page-chat {
    padding: 0 !important;
    height: calc(100vh - 64px) !important;
    height: calc(100dvh - 64px) !important;
  }
  #page-chat .discord-servers { display: none !important; }
}

/* garante que as colunas internas do discord esticam junto */
#page-chat .discord-app {
  height: 100% !important;
  max-height: none !important;
  min-height: 0 !important;
}
#page-chat .discord-chat-container {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
}
#page-chat .discord-chat-messages {
  flex: 1 1 auto !important;
  overflow-y: auto !important;
  min-height: 0 !important;
}
/* main-content não pode ter overflow hidden que corte o chat */
.main-content {
  overflow-x: visible !important;
  overflow-y: visible !important;
}

/* =============================================
   CART DRAWER — fade in/out
   ============================================= */
#cart-drawer, .cart-drawer {
  transition: opacity 0.26s ease, transform 0.28s cubic-bezier(0.32, 0.72, 0, 1) !important;
  opacity: 0 !important;
  transform: translateX(14px) !important;
  pointer-events: none;
}
#cart-drawer.open, .cart-drawer.open {
  opacity: 1 !important;
  transform: translateX(0) !important;
  pointer-events: auto;
}
#cart-overlay, .cart-overlay {
  transition: opacity 0.24s ease !important;
  opacity: 0 !important;
  pointer-events: none;
}
#cart-overlay.open, .cart-overlay.open {
  opacity: 1 !important;
  pointer-events: auto;
}

/* =============================================
   KIRO AI — Carrossel de feedbacks infinito
   ============================================= */
.kiro-feed-wrap {
  overflow: hidden;
  position: relative;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}
.kiro-feed-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: kiroScroll 30s linear infinite;
}
.kiro-feed-track:hover { animation-play-state: paused; }

.kiro-feed-img {
  width: 280px;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  object-fit: cover;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s, border-color 0.2s;
}
.kiro-feed-img:hover {
  transform: scale(1.03);
  border-color: rgba(255, 255, 255, 0.15);
}

@keyframes kiroScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 720px) {
  .kiro-feed-img { width: 220px; }
}


/* Ocultar orbs de brilho magenta residuais */
.glow-orb-1, .glow-orb-2, .glow-orb-3 { display: none !important; }

/* Ocultar tela de seleção de idiomas */
#loading-screen { display: none !important; }
