/* Ajustes complementares — Afilikit */

/* ---------- Tema escuro + laranja (baseado na referência) ---------- */
:root, .dark {
  --background: 0 0% 5%;
  --foreground: 0 0% 98%;
  --card: 0 0% 10%;
  --card-foreground: 0 0% 98%;
  --popover: 0 0% 10%;
  --popover-foreground: 0 0% 98%;
  --primary: 24 100% 50%;
  --primary-foreground: 0 0% 100%;
  --secondary: 24 100% 50%;
  --secondary-foreground: 0 0% 100%;
  --muted: 0 0% 14%;
  --muted-foreground: 0 0% 63%;
  --accent: 24 100% 50%;
  --accent-foreground: 0 0% 100%;
  --border: 0 0% 18%;
  --input: 0 0% 18%;
  --ring: 24 100% 50%;
  --gradient-shopee: linear-gradient(135deg, hsl(24, 100%, 50%), hsl(14, 100%, 50%));
  --gradient-subtle: linear-gradient(180deg, hsl(0, 0%, 5%), hsl(0, 0%, 8%));
  --gradient-glass: linear-gradient(135deg, hsl(0, 0%, 14% / .7), hsl(0, 0%, 10% / .5));
  --shadow-glow: 0 10px 40px -10px hsl(24 100% 50% / .4);
  --shadow-card: 0 4px 20px -4px hsl(0 0% 0% / .4);
  --shadow-elevated: 0 20px 60px -15px hsl(0 0% 0% / .6);
}
html { color-scheme: dark; }
body { background: hsl(0 0% 5%); }

.border-red-500 { border-color: #ef4444 !important; }

[role="region"][aria-roledescription="carousel"] .overflow-hidden > .flex {
  scroll-behavior: smooth;
}
[role="region"][aria-roledescription="carousel"] .overflow-hidden > .flex::-webkit-scrollbar {
  display: none;
}

html.dark { color-scheme: dark; }

/* ---------- Menu lateral (estilo hambúrguer) ---------- */
.afk-hamburger {
  position: fixed; top: 14px; left: 14px; z-index: 70;
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--gradient-shopee, linear-gradient(135deg, hsl(24,100%,50%), hsl(14,100%,50%)));
  border: none; display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 4px 14px -4px rgba(0,0,0,.5);
}
.afk-hamburger svg { color: #fff; }

.afk-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
  opacity: 0; pointer-events: none; transition: opacity .2s ease; z-index: 55;
}
.afk-overlay.open { opacity: 1; pointer-events: auto; }

.afk-sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: 264px;
  background: hsl(0 0% 6.7%);
  border-right: 1px solid hsl(0 0% 18%);
  display: flex; flex-direction: column;
  padding: 18px 14px 16px;
  transform: translateX(-100%);
  transition: transform .25s ease;
  z-index: 60;
  overflow-y: auto;
}
.afk-sidebar.open { transform: translateX(0); }

.afk-logo {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 6px 18px; text-decoration: none;
}
.afk-logo-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--gradient-shopee, linear-gradient(135deg, hsl(24,100%,50%), hsl(14,100%,50%)));
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.afk-logo-icon svg { color: #fff; }
.afk-logo span { font-weight: 800; font-size: 17px; color: #fff; letter-spacing: -0.01em; }

.afk-nav-label {
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: hsl(0 0% 55%); margin: 16px 10px 8px;
}
.afk-nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: 10px;
  color: hsl(0 0% 80%); font-weight: 600; font-size: 14px;
  text-decoration: none; border: 1px solid transparent;
  cursor: pointer; background: none; width: 100%; text-align: left;
  transition: background-color .15s ease, color .15s ease;
}
.afk-nav-item svg { flex-shrink: 0; width: 18px; height: 18px; }
.afk-nav-item:hover { background: hsl(0 0% 13%); color: #fff; }
.afk-nav-item.active {
  background: hsl(24 100% 50% / .14);
  color: hsl(24 100% 58%);
  border-color: hsl(24 100% 50% / .35);
}

.afk-referral {
  margin: 14px 6px; padding: 14px;
  background: hsl(24 60% 12%);
  border: 1px solid hsl(24 100% 50% / .25);
  border-radius: 12px;
}
.afk-referral p { font-size: 12.5px; color: hsl(0 0% 85%); line-height: 1.4; margin-bottom: 10px; }
.afk-referral strong { color: hsl(24 100% 60%); }
.afk-referral a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--gradient-shopee, linear-gradient(135deg, hsl(24,100%,50%), hsl(14,100%,50%)));
  color: #fff; font-weight: 700; font-size: 13px;
  padding: 9px 10px; border-radius: 8px; text-decoration: none;
}

.afk-sidebar-footer {
  margin-top: auto; padding-top: 12px; border-top: 1px solid hsl(0 0% 16%);
  display: flex; flex-direction: column; gap: 2px;
}

.afk-main { min-height: 100vh; padding-top: 62px; }

@media (min-width: 768px) {
  .afk-hamburger { display: none; }
  .afk-overlay { display: none; }
  .afk-sidebar { transform: none; }
  .afk-main { margin-left: 264px; padding-top: 0; }
}
