@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* KOW CLIENT - Website Redesign (Shadcn UI Theme) v6 */
:root {
  --background: 240 10% 3.9%;      /* #09090b */
  --foreground: 0 0% 98%;          /* #fafafa */
  --card: 240 10% 3.9%;            /* #09090b */
  --card-foreground: 0 0% 98%;
  --popover: 240 10% 3.9%;
  --popover-foreground: 0 0% 98%;
  --primary: 0 0% 98%;             /* #fafafa */
  --primary-foreground: 240 5.9% 10%; /* #18181b */
  --secondary: 240 3.7% 15.9%;     /* #27272a */
  --secondary-foreground: 0 0% 98%;
  --muted: 240 5% 64.9%;           /* #a1a1aa */
  --muted-foreground: 240 5% 46.1%; /* #71717a */
  --accent: 240 3.7% 15.9%;        /* #27272a */
  --accent-foreground: 0 0% 98%;
  --destructive: 0 62.8% 30.6%;
  --destructive-foreground: 0 0% 98%;
  --border: 240 3.7% 15.9%;        /* #27272a */
  --input: 240 3.7% 15.9%;         /* #27272a */
  --ring: 240 4.9% 83.9%;          /* #d4d4d8 */
  --radius: 0.5rem;                /* 8px */
  
  --success: 142.1 76.2% 36.3%;     /* #16a34a */
  --danger: 0 84.2% 60.2%;          /* #ef4444 */
  --warning: 37.9 97.2% 53.9%;      /* #f97316 */

  /* Legacy short aliases used by the admin panel and a few secondary pages
     (var(--bg2), var(--text), ...). Unlike the shadcn tokens above, these are
     plain, already-usable colors (not bare HSL triples) — they were never
     actually defined, so every rule that referenced them silently fell back
     to CSS's initial value (transparent background / inherited text color).
     That's why buttons and cards on those pages looked broken/invisible in
     some contexts and fine in others, depending on what the fallback happened
     to inherit. */
  --bg: hsl(var(--background));
  --bg2: hsl(240 6% 10%);
  --bg3: hsl(var(--secondary));
  --bg4: hsl(240 5% 20%);
  --text: hsl(var(--foreground));
  --accent2: #5eead4;
}

* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

html { 
  scroll-behavior: smooth; 
}

/* Custom Scrollbar - Shadcn style */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: hsl(var(--secondary));
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: hsl(var(--muted-foreground));
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

/* Background grid pattern - Shadcn style */
body::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
}

a { 
  color: inherit; 
  text-decoration: none; 
  transition: color 0.15s ease;
}

code {
  font-family: ui-monospace, monospace;
  font-size: 0.85em;
  background-color: hsl(var(--secondary));
  border: 1px solid hsl(var(--border));
  padding: 2px 6px;
  border-radius: 4px;
  color: hsl(var(--foreground));
}

.container { 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 0 24px; 
}

.container-narrow { 
  max-width: 760px; 
}

body.home-sparkles {
  background-color: #000;
}

body.home-sparkles::before {
  display: none;
}

#site-sparkles-bg-root {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Os overlays da lista de excecoes ficam de fora: esta regra poe position:relative
   + z-index:1 e, com a especificidade que tem (varios :not de id), esmagava o
   position:fixed deles. Foi exatamente o que aconteceu ao #kow-loader — aparecia
   colado ao topo com ~180px de altura em vez de cobrir o ecra. */
body.home-sparkles > :not(#site-sparkles-bg-root):not(#user-profile-panel-root):not(#kow-profile-backdrop):not(#kow-profile-sidebar):not(#kow-loader) {
  position: relative;
  z-index: 1;
}

body.home-sparkles .navbar {
  /* A barra é a mesma em todo o site; só o conteúdo da home usa o fundo
     de estrelas. Não deixar a navegação mudar de tom ao trocar de página. */
  background: rgba(18,19,25,.94);
}

body.home-sparkles .section {
  background: transparent;
}

body.home-sparkles .section-alt {
  background-color: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
}

body.home-sparkles .site-footer {
  background-color: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
}

body.home-sparkles .feature-tile,
body.home-sparkles .news-card,
body.home-sparkles .server-card {
  background-color: rgba(9, 9, 11, 0.72);
  backdrop-filter: blur(8px);
}

body.home-sparkles .hero {
  background: transparent;
}

body.home-sparkles .hero-mesh {
  display: none;
}

.section { 
  padding: 96px 0; 
}

.section-alt {
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
  background-color: rgba(255, 255, 255, 0.005);
}

.eyebrow {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  margin-bottom: 12px;
}

.section-heading {
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 56px;
  color: hsl(var(--foreground));
}

.loading-text { 
  color: hsl(var(--muted-foreground)); 
  text-align: center; 
  padding: 40px; 
  font-size: 14px; 
}

/* Animations */
.hero-copy,
.hero-visual,
.feature-tile,
.news-card,
.server-card,
.steps-list li,
.download-panel,
.faq-list details,
.auth-card {
  animation: fadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Shadcn Sticky Navbar */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  background-color: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border));
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-text {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-accent {
  color: hsl(var(--muted-foreground));
  margin-left: 2px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  border-radius: var(--radius);
  padding: 6px 10px;
  cursor: pointer;
  font-size: 14px;
}

.nav-toggle:hover {
  background-color: hsl(var(--accent));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links > a:not(.btn) {
  color: hsl(var(--muted-foreground));
  font-size: 14px;
  font-weight: 500;
}

.nav-links > a:not(.btn):hover {
  color: hsl(var(--foreground));
}

.nav-user-wrap {
  position: relative;
}

/* Shadcn Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
  border: 1px solid transparent;
  font-family: inherit;
  user-select: none;
}

.btn-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
  background-color: rgba(250, 250, 250, 0.9);
}

.btn-ghost {
  background-color: transparent;
  color: hsl(var(--foreground));
}

.btn-ghost:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.btn-outline {
  background-color: transparent;
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
}

.btn-outline:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.btn-danger {
  background-color: hsl(var(--destructive));
  color: hsl(var(--destructive-foreground));
}

.btn-danger:hover {
  background-color: rgba(239, 68, 68, 0.9);
}

.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 10px 20px; font-size: 15px; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.badge {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
}

.badge-admin {
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.2);
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 80px;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% -20%, rgba(255, 255, 255, 0.04), transparent 50%);
}

.hero-grid-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 16px;
  color: hsl(var(--foreground));
}

.hero-lead {
  color: hsl(var(--muted));
  font-size: 16px;
  max-width: 500px;
  margin-bottom: 28px;
  line-height: 1.6;
}

.status-row { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 8px; 
  margin-bottom: 20px; 
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  background-color: hsl(var(--secondary));
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
}

.status-pill-muted {
  background-color: transparent;
  color: hsl(var(--muted-foreground));
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: hsl(var(--success));
}

.status-dot.offline {
  background-color: hsl(var(--danger));
}

.hero-actions { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 12px; 
  margin-bottom: 36px; 
}

.hero-stats { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 36px; 
}

.hero-stats dt { 
  font-family: 'Inter', sans-serif;
  font-size: 28px; 
  font-weight: 800; 
  color: hsl(var(--foreground)); 
  line-height: 1;
}

.hero-stats dd { 
  font-size: 11px; 
  color: hsl(var(--muted-foreground)); 
  margin-top: 4px; 
  font-weight: 500;
}

/* Launcher Preview - Shadcn Dashboard Style */
.hero-visual {
  display: flex;
  justify-content: center;
}

.launcher-preview {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 420px;
}

.launcher-preview-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background-color: rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid hsl(var(--border));
}

.launcher-preview-bar span { 
  width: 8px; 
  height: 8px; 
  border-radius: 50%; 
  background-color: hsl(var(--border)); 
}
.launcher-preview-bar span:nth-child(1) { background-color: #ef4444; }
.launcher-preview-bar span:nth-child(2) { background-color: #f59e0b; }
.launcher-preview-bar span:nth-child(3) { background-color: #10b981; }

.launcher-preview-bar p { 
  margin-left: auto; 
  font-size: 10px; 
  color: hsl(var(--muted-foreground)); 
  font-weight: 600;
}

.launcher-preview-body { 
  display: flex; 
  min-height: 250px; 
}

.launcher-nav {
  width: 110px;
  padding: 12px 8px;
  background-color: rgba(0, 0, 0, 0.08);
  border-right: 1px solid hsl(var(--border));
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.launcher-nav div {
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 11px;
  color: hsl(var(--muted-foreground));
  font-weight: 500;
}

.launcher-nav div.active {
  background-color: hsl(var(--secondary));
  color: hsl(var(--foreground));
}

.launcher-main { 
  flex: 1; 
  padding: 16px; 
  display: flex; 
  flex-direction: column; 
  justify-content: space-between;
}

.launcher-profile {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  background-color: rgba(0, 0, 0, 0.05);
  border: 1px solid hsl(var(--border));
  border-radius: 6px;
}

.launcher-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: hsl(var(--secondary));
}

.launcher-profile strong {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  display: block;
}

.launcher-profile small { 
  display: block; 
  color: #10b981; 
  font-size: 9px; 
}

.launcher-play {
  height: 38px;
  border: none;
  border-radius: 6px;
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-weight: 600;
  font-size: 13px;
}

.launcher-tags { 
  display: flex; 
  gap: 4px; 
}

.launcher-tags span {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 500;
  background-color: hsl(var(--secondary));
  color: hsl(var(--muted-foreground));
  border: 1px solid hsl(var(--border));
}

.launcher-tags span.active {
  background-color: hsl(var(--accent));
  color: hsl(var(--foreground));
}

/* Grids */
.feature-grid,
.news-grid,
.servers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

/* Shadcn Cards */
.feature-tile,
.news-card,
.server-card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 24px;
  transition: background-color 0.15s, border-color 0.15s;
}

.feature-tile:hover,
.news-card:hover,
.server-card:hover {
  background-color: hsl(var(--accent));
  border-color: hsl(var(--ring));
}

.feature-icon-wrap span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 16px;
  background-color: hsl(var(--secondary));
  border: 1px solid hsl(var(--border));
  border-radius: 6px;
  margin-bottom: 16px;
  color: hsl(var(--foreground));
}

.feature-tile h3 { 
  font-family: 'Inter', sans-serif;
  font-size: 18px; 
  font-weight: 600;
  margin-bottom: 8px; 
  color: hsl(var(--foreground));
}

.feature-tile p,
.news-card p { 
  color: hsl(var(--muted-foreground)); 
  font-size: 14px; 
  line-height: 1.5; 
}

.news-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--foreground));
  background-color: hsl(var(--secondary));
  border: 1px solid hsl(var(--border));
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.news-card h3,
.server-card h3 { 
  font-family: 'Inter', sans-serif;
  font-size: 16px; 
  font-weight: 600;
  margin-bottom: 6px; 
  color: hsl(var(--foreground));
}

.news-card time { 
  font-size: 12px; 
  color: hsl(var(--muted-foreground)); 
}

.server-card code { 
  background-color: hsl(var(--secondary));
  color: hsl(var(--foreground)); 
  border: 1px solid hsl(var(--border));
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px; 
  font-family: ui-monospace, monospace;
  display: inline-block;
  width: 100%;
  text-align: center;
}

/* Steps list - Clean Shadcn Style */
.steps-list {
  list-style: none;
  counter-reset: step;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.steps-list li {
  counter-increment: step;
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 20px 20px 20px 58px;
  position: relative;
}

.steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: hsl(var(--secondary));
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 12px;
}

.steps-list strong { 
  display: block; 
  font-family: 'Inter', sans-serif;
  font-size: 16px; 
  font-weight: 600; 
  color: hsl(var(--foreground));
  margin-bottom: 4px;
}

.steps-list p { 
  color: hsl(var(--muted-foreground)); 
  font-size: 14px; 
  line-height: 1.5;
}

/* Download Dashboard */
.download-panel {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 28px;
}

.download-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.download-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--muted-foreground));
  margin-bottom: 4px;
}

.download-row h3 { 
  font-family: 'Inter', sans-serif;
  font-size: 18px; 
  font-weight: 700; 
  color: hsl(var(--foreground));
  margin-bottom: 2px; 
}

.download-meta { 
  color: hsl(var(--muted-foreground)); 
  font-size: 12px; 
}

.download-notes { 
  list-style: none; 
  display: flex; 
  flex-wrap: wrap; 
  gap: 16px; 
  margin-bottom: 16px; 
  padding-top: 8px;
}

.download-notes li { 
  font-size: 13px; 
  color: hsl(var(--foreground)); 
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.download-notes li::before { 
  content: '✓'; 
  color: hsl(var(--foreground)); 
  font-weight: 800; 
}

.download-hint {
  font-size: 12px;
  color: hsl(var(--muted-foreground));
  line-height: 1.5;
  padding-top: 16px;
  border-top: 1px solid hsl(var(--border));
}

/* FAQ Accordion - Exact Shadcn UI style */
.faq-list { 
  display: flex; 
  flex-direction: column; 
}

.faq-list details {
  background-color: transparent;
  border: none;
  border-bottom: 1px solid hsl(var(--border));
  border-radius: 0;
  padding: 16px 0;
}

.faq-list summary {
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: hsl(var(--foreground));
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  user-select: none;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid hsl(var(--muted));
  border-bottom: 2px solid hsl(var(--muted));
  transform: rotate(45deg);
  transition: transform 0.2s;
  margin-right: 4px;
}

.faq-list details[open] > summary::after {
  transform: rotate(-135deg);
}

.faq-list p { 
  color: hsl(var(--muted-foreground)); 
  font-size: 14px; 
  margin-top: 10px; 
  line-height: 1.6; 
}

/* Site Footer */
.site-footer {
  border-top: 1px solid hsl(var(--border));
  padding: 64px 0 32px;
  background-color: hsl(var(--background));
}

.footer-grid { 
  display: grid; 
  grid-template-columns: 1.3fr 0.7fr; 
  gap: 40px; 
  margin-bottom: 40px; 
}

.footer-brand-block p {
  color: hsl(var(--muted-foreground));
  font-size: 14px;
  margin-top: 14px;
  max-width: 360px;
  line-height: 1.5;
}

.footer-links { 
  display: flex; 
  gap: 48px; 
}

.footer-links h4 {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--foreground));
  margin-bottom: 12px;
  font-weight: 600;
}

.footer-links a { 
  display: block; 
  color: hsl(var(--muted-foreground)); 
  font-size: 13px; 
  margin-bottom: 8px; 
}

.footer-links a:hover { 
  color: hsl(var(--foreground)); 
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid hsl(var(--border));
  font-size: 12px;
  color: hsl(var(--muted-foreground));
}

/* Authentication Pages (Shadcn layout) */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 40px;
  background: transparent;
}

.auth-card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 32px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.auth-logo { 
  text-align: center; 
  margin-bottom: 24px; 
}

.auth-logo .logo-icon { 
  font-size: 28px; 
  color: hsl(var(--foreground)); 
  display: inline-block; 
  margin-bottom: 8px; 
}

.auth-logo h1 { 
  font-family: 'Inter', sans-serif;
  font-size: 20px; 
  font-weight: 700; 
  letter-spacing: -0.02em; 
  color: hsl(var(--foreground));
}

/* Shadcn Tabs */
.tabs {
  display: flex;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 2px;
  margin-bottom: 24px;
}

.tab-btn {
  flex: 1;
  padding: 6px 12px;
  border: none;
  background: transparent;
  color: hsl(var(--muted-foreground));
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-radius: calc(var(--radius) - 2px);
  transition: background-color 0.1s, color 0.1s;
}

.tab-btn.active {
  background-color: hsl(var(--accent));
  color: hsl(var(--foreground));
}

.form-group { 
  margin-bottom: 16px; 
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  margin-bottom: 6px;
}

.form-group input,
.form-input {
  width: 100%;
  padding: 8px 12px;
  background-color: transparent;
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) - 2px);
  color: hsl(var(--foreground));
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input:focus,
.form-input:focus {
  border-color: hsl(var(--ring));
}

.form-error,
.form-success {
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
  font-weight: 500;
}

.form-error { 
  background-color: rgba(239, 68, 68, 0.1); 
  border: 1px solid rgba(239, 68, 68, 0.2); 
  color: #fca5a5; 
}

.form-success { 
  background-color: rgba(22, 163, 74, 0.1); 
  border: 1px solid rgba(22, 163, 74, 0.2); 
  color: #86efac; 
}

.form-error.visible,
.form-success.visible {
  display: block;
}

/* Toast System (Shadcn style toast) */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: hsl(var(--foreground));
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  animation: toastSlideIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes toastSlideIn {
  from { transform: translateY(12px) scale(0.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.toast.success { border-color: rgba(22, 163, 74, 0.3); color: #86efac; }
.toast.error { border-color: rgba(239, 68, 68, 0.3); color: #fca5a5; }
.toast.info { border-color: hsl(var(--border)); color: hsl(var(--foreground)); }

/* User Navigation Controls */
.nav-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: transparent;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 4px 10px 4px 4px;
  cursor: pointer;
  font-family: inherit;
  color: hsl(var(--foreground));
  font-size: 13px;
  font-weight: 500;
}

.nav-user-btn:hover {
  background-color: hsl(var(--accent));
}

.nav-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: hsl(var(--secondary));
  color: hsl(var(--foreground));
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  image-rendering: pixelated;
}

.nav-avatar.has-skin-head {
  background: hsl(var(--secondary));
}

.nav-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  z-index: 1000;
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.user-dropdown.open { 
  opacity: 1; 
  transform: scale(1); 
  pointer-events: all; 
}

.dropdown-header { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
  padding: 14px; 
}

.dropdown-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: hsl(var(--secondary));
  color: hsl(var(--foreground));
  font-weight: 700;
  font-size: 14px;
  display: grid;
  place-items: center;
}

.dropdown-username { 
  font-family: inherit;
  font-weight: 600; 
  font-size: 14px; 
  color: hsl(var(--foreground));
}

.dropdown-role { 
  font-size: 11px; 
  color: hsl(var(--muted-foreground)); 
}

.dropdown-divider { 
  height: 1px; 
  background-color: hsl(var(--border)); 
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: hsl(var(--foreground));
  width: 100%;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.1s;
}

.dropdown-item:hover { 
  background-color: hsl(var(--accent)); 
}

.dropdown-item-danger { 
  color: #fca5a5 !important; 
}

.dropdown-item-danger:hover {
  background-color: rgba(239, 68, 68, 0.1) !important;
}

.nav-chevron {
  transition: transform 0.15s;
  color: hsl(var(--muted-foreground));
}

/* Responsive Styles */
@media (max-width: 960px) {
  .hero-grid-layout { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .hero-visual { display: none; }
  .hero-lead { margin: 0 auto 24px; }
  .status-row, .hero-actions, .hero-stats { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .nav-inner { height: 56px; }
  .section { padding: 72px 0; }
  .nav-toggle { display: block; }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background-color: hsl(var(--background));
    border-bottom: 1px solid hsl(var(--border));
    padding: 16px 24px;
  }
  
  .nav-links.open { 
    display: flex; 
  }
  
  .nav-links > a:not(.btn) { 
    padding: 8px 0; 
    border-bottom: 1px solid rgba(255,255,255,0.02); 
  }
  
  #nav-auth { 
    display: flex; 
    flex-direction: column; 
    gap: 8px; 
    padding-top: 12px; 
  }
  
  #nav-auth .btn { 
    width: 100%; 
    justify-content: center; 
  }
  
  #nav-user { 
    padding-top: 10px; 
  }
  
  .hero { padding-top: 96px; min-height: auto; }
  .hero-copy h1 { font-size: clamp(30px, 8vw, 44px); }
  .hero-lead { font-size: 15px; }
  .hero-stats { gap: 20px; }
  .auth-card { padding: 24px 16px; }
  .toast-container { left: 16px; right: 16px; bottom: 16px; }
  .toast { max-width: none; }
  .feature-grid, .news-grid, .servers-grid { grid-template-columns: 1fr; }
  .download-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-links { flex-direction: column; gap: 20px; }
  .steps-list li { padding: 18px 18px 18px 52px; }
  .steps-list li::before { left: 14px; top: 18px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .hero-lead { font-size: 14px; }
  .hero-actions .btn { width: 100%; }
  .hero-stats > div { min-width: 80px; }
  .feature-tile { padding: 20px; }
  .feature-icon-wrap span { width: 32px; height: 32px; font-size: 14px; margin-bottom: 12px; }
  .auth-card { padding: 20px 14px; border-radius: 6px; }
  .steps-list li { padding: 16px 16px 16px 48px; }
  .steps-list li::before { left: 12px; top: 16px; width: 24px; height: 24px; font-size: 11px; }
  .download-panel { padding: 20px 14px; }
  .site-footer { padding: 40px 0 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .user-dropdown { width: calc(100vw - 32px); right: -8px; }
  .toast-container { left: 12px; right: 12px; bottom: 12px; }
}

@media (min-width: 1440px) {
  .container { max-width: 1280px; }
  .hero-copy h1 { font-size: 64px; }
  .hero-grid-layout { gap: 64px; }
}

/* ══════════ INFINITE LOGO MARQUEE (PARTNERS) ══════════ */
.partners-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 24px 0;
  background: transparent;
  display: flex;
  align-items: center;
}

.partners-track {
  display: flex;
  width: max-content;
  animation: scroll-left 25s linear infinite;
  gap: 60px;
  padding-right: 60px;
}

.partner-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease;
  user-select: none;
}

.partner-logo-item img {
  height: 100%;
  max-height: 40px;
  object-fit: contain;
  filter: grayscale(100%) brightness(85%);
  opacity: 0.7;
  transition: filter 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.partner-logo-item:hover img {
  filter: grayscale(0%) brightness(100%) contrast(100%);
  opacity: 1;
  transform: scale(1.04);
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Gradient overlays for smooth fading edges */
.partners-marquee::before,
.partners-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.partners-marquee::before {
  left: 0;
  background: linear-gradient(to right, hsl(var(--background)) 0%, transparent 100%);
}

.partners-marquee::after {
  right: 0;
  background: linear-gradient(to left, hsl(var(--background)) 0%, transparent 100%);
}

@media (max-width: 768px) {
  .partners-track {
    gap: 40px;
    padding-right: 40px;
    animation-duration: 20s;
  }
  .partner-logo-item {
    height: 32px;
  }
  .partner-logo-item img {
    max-height: 32px;
  }
}

/* ════ Premium Dynamic Download Button Stages ════ */
.btn-download-stages {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #000000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 10px 24px;
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  user-select: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  height: 42px;
  box-sizing: border-box;
}

.btn-download-stages:hover {
  background-color: #050505;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
}

.btn-download-stages:active {
  transform: translateY(1px);
}

/* Status Icons */
.btn-download-stages .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #6b7280; /* Gray for Idle */
  display: inline-block;
  transition: all 0.3s ease;
}

/* Loading Dots */
.btn-download-stages .loading-dots {
  display: none;
  align-items: center;
  gap: 4px;
  margin-right: 2px;
}

.btn-download-stages .loading-dots span {
  width: 5px;
  height: 5px;
  background-color: #ffffff;
  border-radius: 50%;
  display: inline-block;
  animation: bounce-dots 1.4s infinite ease-in-out both;
}

.btn-download-stages .loading-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.btn-download-stages .loading-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes bounce-dots {
  0%, 80%, 100% { 
    transform: scale(0.3);
    opacity: 0.3;
  } 
  40% { 
    transform: scale(1.1);
    opacity: 1;
  }
}

/* Complete check icon */
.btn-download-stages .check-icon {
  display: none;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #10b981; /* green */
  color: #000000;
  font-size: 10px;
  font-weight: 900;
}

/* States styling */
.btn-download-stages.state-idle .status-dot {
  display: inline-block;
  background-color: #6b7280;
}
.btn-download-stages.state-idle .loading-dots,
.btn-download-stages.state-idle .check-icon {
  display: none;
}

.btn-download-stages.state-processing {
  pointer-events: none;
  border-color: rgba(255, 255, 255, 0.15);
}
.btn-download-stages.state-processing .status-dot,
.btn-download-stages.state-processing .check-icon {
  display: none;
}
.btn-download-stages.state-processing .loading-dots {
  display: inline-flex;
}

.btn-download-stages.state-complete {
  pointer-events: none;
  border-color: rgba(16, 185, 129, 0.3);
}
.btn-download-stages.state-complete .status-dot,
.btn-download-stages.state-complete .loading-dots {
  display: none;
}
.btn-download-stages.state-complete .check-icon {
  display: inline-flex;
}


/* ── Native Pure JS Profile Sidebar Modal ── */
.kow-profile-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99998 !important;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease-out, visibility 0.15s ease-out;
}
.kow-profile-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.kow-profile-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 99999 !important;
  width: 280px;
  max-width: 90vw;
  height: 100vh;
  background: #0d0d11;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  transform: translate3d(100%, 0, 0);
  will-change: transform;
  transition: transform 0.18s cubic-bezier(0, 0, 0.2, 1);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}
.kow-profile-sidebar.is-open {
  transform: translate3d(0, 0, 0);
}

.kow-ps-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke-width: 2;
  color: #a1a1aa;
  transition: color 0.15s ease;
}
.kow-ps-link:hover .kow-ps-icon, .kow-ps-link.is-active .kow-ps-icon {
  color: #fff;
}

.kow-ps-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.kow-ps-header span {
  font-size: 13px;
  font-weight: 600;
  color: #f4f4f5;
}
.kow-ps-close {
  background: transparent;
  border: none;
  color: #a1a1aa;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  line-height: 1;
}
.kow-ps-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.kow-ps-user {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}
.kow-ps-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38f8d4, #38f8d4);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kow-ps-user-info {
  display: flex;
  flex-direction: column;
}
.kow-ps-username {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.kow-ps-role {
  font-size: 11px;
  color: #a1a1aa;
  margin-top: 2px;
}

.kow-ps-token-card {
  margin: 12px 12px 0;
  padding: 12px;
  border: 1px solid rgba(56, 248, 212, 0.2);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(56, 248, 212, 0.08), rgba(255, 255, 255, 0.025));
}
.kow-ps-token-heading,
.kow-ps-token-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.kow-ps-token-heading span {
  color: #d4d4d8;
  font-size: 11px;
  font-weight: 600;
}
.kow-ps-token-heading strong {
  color: #38f8d4;
  font-size: 16px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.kow-ps-token-track {
  height: 5px;
  margin: 10px 0 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}
.kow-ps-token-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #38f8d4;
  transition: width 0.3s ease;
}
.kow-ps-token-fill.is-warning { background: #f59e0b; }
.kow-ps-token-fill.is-low { background: #ef4444; }
.kow-ps-token-meta {
  color: #71717a;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}
.kow-ps-token-message {
  min-height: 32px;
  display: flex;
  align-items: center;
  color: #a1a1aa;
  font-size: 11px;
}

.kow-ps-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.kow-ps-section-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #71717a;
  text-transform: uppercase;
  padding: 0 8px;
  margin-bottom: 4px;
}
.kow-ps-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.kow-ps-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  color: #a1a1aa;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}
.kow-ps-link:hover, .kow-ps-link.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.kow-ps-footer {
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.kow-ps-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}
.kow-ps-logout:hover {
  background: rgba(239, 68, 68, 0.15);
}






/* Sleek Floating Window Modal (Janela Flutuante de Resgate) */
.kow-rfm-backdrop {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 999999 !important;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  will-change: opacity, visibility;
  transition: opacity 0.16s ease-out, visibility 0.16s ease-out;
}
.kow-rfm-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.kow-rfm-window {
  width: 100%;
  max-width: 440px;
  background: #0e0e12;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
  padding: 24px;
  position: relative;
  transform: translate3d(0, 8px, 0) scale(0.96);
  will-change: transform;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}
.kow-rfm-backdrop.is-open .kow-rfm-window {
  transform: translate3d(0, 0, 0) scale(1);
}

.kow-rfm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.kow-rfm-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.kow-rfm-close {
  background: transparent;
  border: none;
  color: #a1a1aa;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kow-rfm-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}
.kow-rfm-subtitle {
  font-size: 13px;
  color: #a1a1aa;
  margin-bottom: 20px;
  line-height: 1.5;
}

.kow-rfm-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.kow-rfm-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.kow-rfm-input-wrap label {
  font-size: 12px;
  font-weight: 600;
  color: #d4d4d8;
}
.kow-rfm-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #ffffff;
  font-size: 14px;
  font-family: monospace;
  letter-spacing: 0.05em;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.kow-rfm-input:focus {
  border-color: #38f8d4;
  background: rgba(255, 255, 255, 0.07);
}

.kow-rfm-btn {
  width: 100%;
  height: 44px;
  background: linear-gradient(180deg, #38f8d4 0%, #14b8a6 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(56, 248, 212, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}
.kow-rfm-btn:hover {
  background: linear-gradient(180deg, #14b8a6 0%, #0d9488 100%);
  box-shadow: 0 6px 18px rgba(56, 248, 212, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.kow-rfm-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(56, 248, 212, 0.2), inset 0 1px 0 rgba(0, 0, 0, 0.2);
}
.kow-rfm-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.kow-rfm-feedback {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  display: none;
  line-height: 1.4;
  text-align: center;
}
.kow-rfm-feedback.success {
  display: block;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #4ade80;
}
.kow-rfm-feedback.error {
  display: block;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
}





/* Clean Native Gaming Shop Styling */
.shop-clean-header {
  margin-bottom: 24px;
}
.shop-clean-title {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.shop-clean-desc {
  font-size: 14px;
  color: #a1a1aa;
  max-width: 600px;
  line-height: 1.5;
}

.shop-vip-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #121216;
  border: 1px solid #27272a;
  border-radius: 10px;
  padding: 14px 20px;
  margin-bottom: 24px;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.shop-vip-banner:hover {
  border-color: #3f3f46;
  background: #16161c;
}
.svb-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.svb-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #38f8d4;
  background: rgba(56, 248, 212, 0.12);
  border: 1px solid rgba(56, 248, 212, 0.25);
  padding: 3px 8px;
  border-radius: 6px;
}
.svb-title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}
.svb-btn {
  font-size: 13px;
  font-weight: 600;
  color: #a1a1aa;
  white-space: nowrap;
}
.shop-vip-banner:hover .svb-btn {
  color: #ffffff;
}

.shop-nav-bar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.shop-search-box {
  position: relative;
  width: 100%;
}
.shop-search-input {
  width: 100%;
  height: 44px;
  padding: 0 36px 0 40px;
  background: #121216;
  border: 1px solid #27272a;
  border-radius: 8px;
  color: #ffffff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease;
}
.shop-search-input:focus {
  border-color: #38f8d4;
}
.shop-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #71717a;
  width: 16px;
  height: 16px;
  pointer-events: none;
}
.shop-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #71717a;
  font-size: 14px;
  cursor: pointer;
  display: none;
}
.shop-search-clear:hover {
  color: #ffffff;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: #121216;
  border: 1px solid #27272a;
  border-radius: 8px;
  color: #a1a1aa;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.chip:hover {
  border-color: #3f3f46;
  color: #ffffff;
}
.chip.active {
  background: #38f8d4;
  border-color: #38f8d4;
  color: #ffffff;
  font-weight: 600;
}

.cat-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #1f1f23;
}
.cat-count {
  font-size: 11px;
  font-weight: 600;
  color: #5eead4;
  background: rgba(56, 248, 212, 0.12);
  padding: 2px 8px;
  border-radius: 10px;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.shop-card {
  background: #121216;
  border: 1px solid #27272a;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease;
}
.shop-card:hover {
  border-color: #3f3f46;
}

.shop-card__media {
  height: 170px;
  background: #09090b;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.shop-card__media img {
  max-height: 130px;
  max-width: 80%;
  object-fit: contain;
}

.shop-card__body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.shop-card__name {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.shop-card__desc {
  font-size: 12px;
  color: #a1a1aa;
  line-height: 1.4;
  margin-bottom: 14px;
  flex: 1;
}

.shop-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #1f1f23;
  padding-top: 10px;
  margin-top: auto;
}

.shop-card__price {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.btn-buy {
  height: 34px;
  padding: 0 16px;
  background: #38f8d4;
  border: none;
  border-radius: 6px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-buy:hover {
  background: #14b8a6;
}

@media (max-width: 640px) {
  .shop-vip-banner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .svb-btn { align-self: flex-end; }
}


/* Nav Logo Image Styling */
.logo-mark img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}
.logo-mark {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 3px;
  overflow: hidden;
}


/* Ensure text on bright teal buttons is dark & legible */
.btn-buy, .kow-rfm-btn, .chip.active {
  color: #09090b !important;
  font-weight: 800 !important;
}
.chip.active {
  background: #38f8d4 !important;
  border-color: #38f8d4 !important;
}
.kow-irc-badge, .kow-ps-role, .logo-accent {
  color: #38f8d4 !important;
}
.logo-accent {
  color: #38f8d4 !important;
}




/* Tops Minecraft Skin Heads & SVG Icons */
.top-rank-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.top-avatar-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #18181c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.top-skin-head {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
  display: block;
  image-rendering: pixelated;
}
.top-svg-icon {
  width: 20px;
  height: 20px;
  color: #38f8d4;
  flex-shrink: 0;
}

/* Cabeçalho público: navegação inspirada no menu compacto do client. */
.navbar { background:rgba(18,19,25,.94); border-bottom:1px solid rgba(255,255,255,.07); }
.nav-inner { position:relative; max-width:1200px; height:66px; padding-left:14px; padding-right:18px; }
.nav-links { position:static; flex:1; min-width:0; gap:7px; }
.kow-nav-primary { position:absolute; left:50%; top:50%; display:flex; align-items:center; gap:7px; transform:translate(-50%,-50%); }
.nav-links > #nav-auth,.nav-links > #nav-user { margin-left:auto; }
.kow-nav-link,.kow-nav-explore-trigger {
  display:inline-flex; align-items:center; gap:6px; min-height:34px; padding:0 10px;
  border:1px solid transparent; border-radius:7px; background:transparent; color:#d6d6df;
  font:700 13px/1 Inter,system-ui,sans-serif; cursor:pointer; white-space:nowrap;
}
.kow-nav-link:hover,.kow-nav-explore-trigger:hover,.kow-nav-explore.is-open .kow-nav-explore-trigger { background:#252630; color:#fff; }
.kow-nav-icon { display:block; width:17px; height:17px; flex:0 0 17px; color:#9ca2b3; stroke:currentColor; opacity:1; transition:color .16s ease,transform .16s ease; }
.kow-nav-link:hover .kow-nav-icon,.kow-nav-explore-trigger:hover .kow-nav-icon,.kow-nav-explore.is-open .kow-nav-icon { color:#55ead2; transform:translateY(-1px); }
.kow-nav-chevron { width:13px; height:13px; margin-left:0; fill:none; stroke:#858a99; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; transition:transform .16s ease; }
.kow-nav-explore.is-open .kow-nav-chevron { transform:rotate(180deg); }
.kow-nav-explore { position:relative; }.kow-explore-menu { display:none; position:absolute; top:calc(100% + 11px); left:0; z-index:300; width:430px; padding:10px; grid-template-columns:1fr 1fr; gap:4px; border:1px solid rgba(255,255,255,.1); border-radius:10px; background:rgba(27,28,35,.98); box-shadow:0 20px 45px rgba(0,0,0,.45); }
.kow-nav-explore.is-open .kow-explore-menu { display:grid; animation:kowMenuIn .16s ease-out both; }
.kow-explore-menu a { display:flex; gap:10px; padding:11px; border-radius:7px; color:#dcdde5; text-decoration:none; }.kow-explore-menu a:hover { background:#252630; }.kow-menu-icon { display:grid; place-items:center; width:25px; height:25px; flex:0 0 25px; color:#55ead2; }.kow-menu-icon .kow-nav-icon { width:18px; height:18px; color:currentColor; }.kow-explore-menu b { display:block; font-size:13px; }.kow-explore-menu small { display:block; margin-top:3px; color:#9a9daa; font-size:11px; font-weight:500; line-height:1.35; }
@keyframes kowMenuIn { from { opacity:0; transform:translateY(-5px); } to { opacity:1; transform:translateY(0); } }
@media(max-width:760px) { .nav-links { position:absolute; }.kow-nav-primary { position:static; transform:none; width:100%; flex-direction:column; align-items:stretch; gap:0; }.nav-links > #nav-auth,.nav-links > #nav-user { margin-left:0; }.kow-nav-link,.kow-nav-explore { width:100%; }.kow-nav-explore-trigger { width:100%; justify-content:flex-start; }.kow-explore-menu { position:static; width:100%; margin:5px 0; grid-template-columns:1fr; box-shadow:none; }.kow-nav-explore.is-open .kow-explore-menu { display:grid; } }
