:root {
  --bg-main: #020617;
  --bg-elevated: rgba(15, 23, 42, 0.9);
  --bg-card: rgba(15, 23, 42, 0.98);
  --accent: #22d3ee;
  --accent-strong: #06b6d4;
  --accent-purple: #a855f7;
  --accent-pink: #ec4899;
  --accent-green: #4ade80;
  --border-subtle: rgba(148, 163, 184, 0.25);
  --text-main: #e5e7eb;
  --text-muted: #94a3b8;
  --danger: #f97373;
  --success: #4ade80;
  --shadow-soft: 0 20px 60px rgba(15, 23, 42, 0.9);
  --radius-sm: 10px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --nav-height: 70px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top, rgba(56, 189, 248, 0.16) 0, transparent 55%),
    radial-gradient(circle at bottom, rgba(168, 85, 247, 0.2) 0, transparent 55%),
    #020617;
  overflow-x: hidden;

  /* Sticky footer layout */
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

/* Noise + orbs */
.noise-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='noStitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  z-index: -1;
}

.orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.5;
  z-index: -2;
  pointer-events: none;
}

.orb-1 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.9), transparent 55%);
  top: -120px;
  left: -80px;
  animation: floatOrb 18s ease-in-out infinite alternate;
}
.orb-2 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.9), transparent 55%);
  top: 30%;
  right: -120px;
  animation: floatOrb 22s ease-in-out infinite alternate;
}
.orb-3 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(251, 146, 60, 0.9), transparent 55%);
  bottom: -160px;
  left: 25%;
  animation: floatOrb 26s ease-in-out infinite alternate;
}

@keyframes floatOrb {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(40px, -30px, 0);
  }
}

/* Layout utils */
.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.section {
  padding: 3.7rem 0;
}

body[data-page="admin"] .section {
  padding: 2.2rem 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.4rem;
}
.section-header h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.9rem, 2vw + 1rem, 2.3rem);
}
.section-header p {
  margin: 0;
  color: var(--text-muted);
}

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.98),
    rgba(15, 23, 42, 0.75),
    transparent
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.nav-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}
.brand-icon {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #22d3ee, #0f172a);
  box-shadow:
    0 0 24px rgba(34, 211, 238, 0.9),
    0 0 60px rgba(34, 211, 238, 0.6);
}
.brand-orbit {
  position: absolute;
  inset: 7px;
  border-radius: inherit;
  border: 2px solid rgba(248, 250, 252, 0.9);
  border-top-color: transparent;
  border-right-color: transparent;
  transform: rotate(-20deg);
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-title {
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.92rem;
}
.brand-subtitle {
  font-size: 0.75rem;
  color: var(--accent);
}

.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1.8rem;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 0.2rem 0;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--accent),
    var(--accent-purple),
    var(--accent-pink)
  );
  transition: width 0.25s ease-out;
}
.nav-links a:hover {
  color: var(--text-main);
}
.nav-links a:hover::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.5rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition:
    transform 0.12s ease-out,
    box-shadow 0.14s ease-out,
    background 0.18s ease-out,
    border-color 0.18s ease-out;
  font-family: inherit;
}
.btn-lg {
  padding-inline: 1.4rem;
  padding-block: 0.75rem;
  font-size: 0.98rem;
}
.btn.primary {
  background: radial-gradient(
    circle at 0% 0%,
    var(--accent-strong) 0,
    var(--accent-purple) 50%,
    var(--accent-pink) 100%
  );
  border-color: rgba(34, 211, 238, 0.6);
  color: #020617;
  box-shadow:
    0 0 16px rgba(34, 211, 238, 0.7),
    0 0 40px rgba(168, 85, 247, 0.4);
}
.btn.primary:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow:
    0 0 22px rgba(34, 211, 238, 0.8),
    0 0 55px rgba(168, 85, 247, 0.5);
}
.btn.secondary {
  background: rgba(15, 23, 42, 0.96);
  border-color: rgba(148, 163, 184, 0.6);
  color: var(--text-main);
}
.btn.secondary:hover {
  background: rgba(15, 23, 42, 1);
  border-color: rgba(148, 163, 184, 0.9);
  transform: translateY(-1px);
}
.btn.ghost {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.6);
  color: var(--accent);
}
.btn.ghost:hover {
  background: rgba(15, 23, 42, 0.9);
  border-color: var(--accent);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.7);
}
.btn.block {
  width: 100%;
  justify-content: center;
}

/* Tombol mini untuk dashboard admin */
.btn-mini {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  background: rgba(15, 23, 42, 0.96);
  color: var(--text-main);
  cursor: pointer;
}
.btn-mini:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-mini.danger {
  border-color: rgba(248, 113, 113, 0.8);
  color: #fecaca;
}
.btn-mini.danger:hover {
  border-color: #f97373;
  background: rgba(127, 29, 29, 0.9);
}

/* User pill (lama, masih boleh ada) */
.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(15, 23, 42, 0.96);
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 0.2rem 0.6rem 0.2rem 0.25rem;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.8);
}
.user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(148, 163, 184, 0.55);
}
.user-name {
  font-size: 0.8rem;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chip-button {
  border: none;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  border: 1px solid rgba(148, 163, 184, 0.4);
}
.chip-button:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Nav toggle (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.96);
  cursor: pointer;
}
.nav-toggle span {
  width: 16px;
  height: 2px;
  background: rgba(226, 232, 240, 0.9);
  border-radius: 999px;
  margin-inline: auto;
}

/* HERO HOME */
.hero {
  padding: 4.5rem 0 3.7rem;
}
.hero-home {
  text-align: center;
}
.hero-home-inner {
  max-width: 720px;
  margin: 0 auto;
}
.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.hero-title {
  margin: 0 0 0.7rem;
  font-size: clamp(2.2rem, 2vw + 1.7rem, 3rem);
}
.text-glow {
  color: var(--accent);
  text-shadow: 0 0 18px rgba(34, 211, 238, 0.9);
}
.hero-gradient {
  display: block;
  background: linear-gradient(
    120deg,
    var(--accent-strong),
    var(--accent-purple),
    var(--accent-pink)
  );
  -webkit-background-clip: text;
  color: transparent;
}
.hero-lead {
  margin: 0 0 1.8rem;
  color: var(--text-muted);
}

/* Join card di tengah */
.join-card {
  margin: 0 auto 2.2rem;
  max-width: 540px;
  background: radial-gradient(
      circle at 0 0,
      rgba(34, 211, 238, 0.25),
      transparent 60%
    ),
    rgba(15, 23, 42, 0.98);
  border-radius: var(--radius-xl);
  padding: 1.6rem 1.7rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: var(--shadow-soft);
}
.form-card {
  margin: 0 auto 2.2rem;
  max-width: 540px; /* lebih pendek dari full width, bisa kamu ubah 720 / 900 sesuai selera */
  background: radial-gradient(
      circle at 0 0,
      rgba(34, 211, 238, 0.2),
      transparent 60%
    ),
    var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 1.8rem 2rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: var(--shadow-soft);
}
.form-card p {
  margin: 0;
  color: var(--text-muted);
}
.join-card p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}
.join-meta {
  margin-top: 1.3rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.member-count {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  margin-top: 0.5rem;
}
.member-count-number {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  text-shadow: 0 0 18px rgba(34, 211, 238, 0.9);
}
.member-count-label {
  font-size: 0.9rem;
}

/* Games row */
.hero-games {
  margin-top: 2.2rem;
}
.hero-games-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}
.hero-games-row {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}
.game-chip {
  font-size: 0.85rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.98);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
}
.card {
  position: relative;
  background: radial-gradient(
      circle at 0 0,
      rgba(56, 189, 248, 0.16),
      transparent 60%
    ),
    var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top right,
    rgba(236, 72, 153, 0.18),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.25s ease-out;
}
.card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
}
.card p {
  margin: 0 0 0.7rem;
  color: var(--text-muted);
}
.card ul {
  margin: 0;
  padding-left: 1.2rem;
  color: rgba(226, 232, 240, 0.95);
  font-size: 0.9rem;
}
.card li + li {
  margin-top: 0.25rem;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.8);
}
.card:hover::before {
  opacity: 1;
}

/* Page hero */
.page-hero {
  padding: 4rem 0 3rem;
}
.page-hero-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.minecraft-main .page-hero {
  padding-top: 5rem;   /* kalau masih terasa mepet, bisa naikin ke 5.5rem */
}
.page-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.page-hero-inner h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 1.8vw + 1.4rem, 2.4rem);
}
.page-hero-inner p {
  margin: 0;
  color: var(--text-muted);
}

/* Game grid */
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.game-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.3);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-soft);
}
.game-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}
.game-tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent-purple);
}
.game-card h3 {
  margin: 0.7rem 0 0.45rem;
  font-size: 1rem;
}
.game-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.game-meta {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

/* Minecraft layout */
.minecraft-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2.3rem;
}
.minecraft-panel {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 1.7rem 1.8rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-soft);
}
.minecraft-info-list {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  font-size: 0.9rem;
}
.minecraft-info-list li {
  display: flex;
  gap: 0.7rem;
  margin-bottom: 0.4rem;
}
.minecraft-info-key {
  min-width: 80px;
  color: var(--accent);
  font-weight: 500;
}
.minecraft-info-value {
  color: var(--text-muted);
}
.minecraft-card {
  background: radial-gradient(
      circle at 0 0,
      rgba(74, 222, 128, 0.18),
      transparent 60%
    ),
    var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(74, 222, 128, 0.45);
  padding: 1.3rem 1.4rem;
  margin-bottom: 1rem;
}
.minecraft-card h3 {
  margin: 0 0 0.4rem;
}
.minecraft-card ul {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.95);
}
.minecraft-cta {
  margin-top: 1.5rem;
}

/* Section split */
.section-split {
  padding-bottom: 4.5rem;
}
.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2.8rem;
  align-items: flex-start;
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.1rem;
}
.faq-item {
    background: rgba(15, 23, 42, 0.92);
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    padding: 0.9rem 1rem;
    transition: all 0.25s ease-out;
    position: relative;
    overflow: hidden;
}
.faq-item:hover {
    border-color: rgba(34, 211, 238, 0.9);
    box-shadow: 
        0 0 16px rgba(34, 211, 238, 0.5),
        0 0 40px rgba(168, 85, 247, 0.25),
        inset 0 0 25px rgba(34, 211, 238, 0.08);
    background: rgba(20, 31, 57, 0.96);
    transform: translateY(-2px);
}
.faq-item::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 14px;
    padding: 1px;
    background: linear-gradient(120deg, 
        rgba(34,211,238,0.6),
        rgba(168,85,247,0.6),
        rgba(236,72,153,0.6)
    );
    mask: 
      linear-gradient(#fff 0 0) content-box, 
      linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    opacity: 0;
    transition: opacity .25s ease-out;
}
.faq-item:hover::before {
    opacity: 1;
}
.faq-item summary {
    cursor: pointer;
    list-style: none;
    font-size: 1rem;
    font-weight: 500;
    color: #e2e8f0;
    padding-right: 1.4rem;
    position: relative;
}
.faq-item summary::marker,
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
    content: '▾';
    position: absolute;
    right: 0;
    top: 4px;
    font-size: 0.75rem;
    color: #94a3b8;
    transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
    transform: rotate(-180deg);
}
.faq-item p {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-top: .6rem;
}

/* Forms */
.field {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 0.8rem;
  font-size: 0.85rem;
}
.field span {
  color: var(--text-muted);
}
.field input {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.96);
  color: var(--text-main);
  padding: 0.5rem 0.9rem;
  font-family: inherit;
}
.field input:focus {
  outline: none;
  border-color: rgba(34, 211, 238, 0.9);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.4);
}

/* OAuth buttons */
.oauth-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}
.btn.oauth {
  justify-content: flex-start;
  padding-inline: 0.9rem;
}
.oauth-icon {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: white;
  box-shadow: 0 0 12px rgba(15, 23, 42, 0.6);
}
.oauth-icon.discord {
  background: #5865f2;
}
.oauth-icon.google {
  background: conic-gradient(
    from 180deg,
    #4285f4,
    #34a853,
    #fbbc05,
    #ea4335,
    #4285f4
  );
}
.btn.oauth.discord {
  background: linear-gradient(90deg, #5865f2, #4f46e5);
  color: #f9fafb;
  border-color: rgba(129, 140, 248, 0.7);
}
.btn.oauth.discord:hover {
  background: linear-gradient(90deg, #6366f1, #4f46e5);
}
.btn.oauth.google {
  background: #f9fafb;
  color: #111827;
  border-color: rgba(148, 163, 184, 0.7);
}
.btn.oauth.google:hover {
  background: #ffffff;
}
.btn.oauth span:last-child {
  flex: 1;
  text-align: center;
  font-size: 0.87rem;
}

.divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.9rem 0 0.8rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(148, 163, 184, 0.7),
    transparent
  );
}

.auth-status {
  min-height: 1rem;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.auth-status.error {
  color: var(--danger);
}
.auth-status.success {
  color: var(--success);
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 1.4rem;
  right: 1.4rem;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.toast {
  background: rgba(15, 23, 42, 0.98);
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: var(--text-main);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.9);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}
.toast-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.95);
}
.toast.fade-out {
  opacity: 0;
  transform: translateY(6px);
}

/* Dashboard Member */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;   /* ⬅ sekarang selalu 1 kolom */
  gap: 24px;
  align-items: stretch;
}
.dashboard-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 1.7rem 1.8rem;
  box-shadow: var(--shadow-soft);
}
.dashboard-card h2 {
  margin-top: 0;
  margin-bottom: 0.7rem;
}
.dashboard-meta {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.dashboard-meta strong {
  color: var(--text-main);
}
.stat-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 0.4rem;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.stat-value {
  font-size: 1.1rem;
  font-weight: 600;
}

/* Dashboard Admin */
.admin-grid {
  display: grid;
  grid-template-columns: 1fr;   /* ⬅ ini juga 1 kolom */
  gap: 24px;
  align-items: flex-start;
}

#admin-root .section.section--admin-lists {
  padding-top: 0.8rem;   /* dulu pakai 3.7rem dari .section, sekarang jauh lebih kecil */
  margin-top: -1.2rem;   /* sedikit tarik naik supaya jarak mirip seperti antar box di dalam grid */
}

.admin-summary-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 1.7rem 1.8rem;
  box-shadow: var(--shadow-soft);
}
.admin-summary-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}
.metric-chip {
  background: rgba(15, 23, 42, 0.95);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 0.6rem 0.85rem;
  font-size: 0.85rem;
}
.metric-label {
  color: var(--text-muted);
  font-size: 0.8rem;
}
.metric-value {
  font-size: 1.1rem;
  font-weight: 600;
}

.admin-table-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-soft);
}
.admin-table-card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}
.admin-table-wrapper {
  max-height: 320px;
  overflow: auto;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.4);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}
.admin-table thead {
  background: rgba(15, 23, 42, 0.96);
}
.admin-table th,
.admin-table td {
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid rgba(30, 41, 59, 0.85);
}
.admin-table th {
  text-align: left;
  font-weight: 500;
  color: var(--text-muted);
}

/* Toolbar / controls di atas tabel admin */
.admin-table-controls {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.admin-table-controls-left,
.admin-table-controls-right {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.control-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
}

.control-field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.control-input,
.control-select {
  background: radial-gradient(circle at top, #28344f 0%, #151b2f 70%);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 0.55rem 1rem;
  color: #fff;
  font-size: 0.85rem;
  min-width: 180px;
  outline: none;
}

.control-input::placeholder {
  color: rgba(255,255,255,0.4);
}

.control-select {
  padding-right: 2rem;
}

.control-hint {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* Footer pagination tabel */
.admin-table-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.admin-table-page-info {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
}

/* Tombol pill */
.btn-pill,
.btn-outline-pill {
  border-radius: 999px;
  padding: 0.45rem 1.3rem;
  font-size: 0.85rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn-pill {
  background: linear-gradient(90deg, #15b4ff, #ff3fb4);
  box-shadow: 0 0 18px rgba(21, 180, 255, 0.45);
  color: #fff;
}

.btn-outline-pill {
  background: transparent;
  border-color: rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.9);
}

.btn-pill:hover,
.btn-outline-pill:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 0 22px rgba(21, 180, 255, 0.6);
}

/* === Admin Discord Members Toolbar & Pagination === */

.admin-table-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.admin-table-toolbar-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.admin-table-toolbar-right {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.admin-filter-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.admin-filter-count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Input & select dengan nuansa neon cyber */
.admin-filter-control {
  min-height: 32px;
  padding: 0.2rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: radial-gradient(circle at top left, #020617, #020617);
  color: #e5e7eb;
  font-size: 0.85rem;
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    transform 0.12s ease;
}

.admin-filter-control::placeholder {
  color: rgba(148, 163, 184, 0.9);
}

.admin-filter-control:focus {
  border-color: #38bdf8;
  background: radial-gradient(circle at top left, #020617, #0b1120);
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.7),
    0 0 18px rgba(56, 189, 248, 0.45);
  transform: translateY(-1px);
}

/* === Dropdown list background (Pilih role, Tampilkan) === */
.admin-filter-select,
.admin-filter-select option,
.admin-filter-select optgroup {
  background-color: #020617 !important;   /* dasar gelap */
  color: #e5e7eb !important;              /* teks terang */
}

/* warna saat opsi di-hover / dipilih di list */
.admin-filter-select option:checked,
.admin-filter-select option:hover {
  background-color: #1f2937 !important;   /* sedikit lebih terang */
  color: #e5e7eb !important;
}

/* Wrapper untuk select dengan arrow custom */
.admin-select-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.admin-select-wrapper select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 2.5rem;
}

/* Icon arrow */
.admin-select-wrapper::after {
  content: "▾";
  position: absolute;
  right: 0.75rem;
  pointer-events: none;
  font-size: 0.7rem;
  color: rgba(148, 163, 184, 0.9);
}

/* Tombol aksi member Discord (kick / ban / role) */
.admin-member-btn {
  min-width: 60px;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: radial-gradient(circle at top left, #020617, #020617);
  color: #e5e7eb;
  font-size: 0.78rem;
  line-height: 1.2;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.12s ease,
    color 0.18s ease;
}

.admin-member-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

/* Variasi tombol */
.admin-member-btn--danger {
  border-color: rgba(248, 113, 113, 0.8);
  background: radial-gradient(circle at top left, #450a0a, #111827);
}

.admin-member-btn--danger:hover:not(:disabled) {
  box-shadow: 0 0 14px rgba(248, 113, 113, 0.6);
}

.admin-member-btn--danger-ghost {
  border-color: rgba(248, 113, 113, 0.65);
  background: radial-gradient(circle at top left, #020617, #111827);
  color: #fecaca;
}

.admin-member-btn--danger-ghost:hover:not(:disabled) {
  box-shadow: 0 0 14px rgba(248, 113, 113, 0.45);
}

.admin-member-btn--primary {
  border-color: transparent;
  background: linear-gradient(120deg, #22d3ee, #e879f9);
  color: #020617;
}

.admin-member-btn--primary:hover:not(:disabled) {
  background: linear-gradient(120deg, #22d3ee, #e879f9) !important;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.6);
}

.admin-member-btn--ghost {
  border-color: rgba(148, 163, 184, 0.8);
  background: radial-gradient(circle at top left, #020617, #020617);
  color: #e5e7eb;
}

.admin-member-btn--ghost:hover:not(:disabled) {
  border-color: #38bdf8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.4);
}

/* Select khusus (biarkan arrow default biar minimalis) */
.admin-filter-select {
  padding-right: 2.25rem;
}

/* Pagination */
.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.6rem;
  font-size: 0.85rem;
}

.admin-page-info {
  color: var(--text-muted);
}

/* Tombol page: pill, neon, minimal */
.admin-page-btn {
  min-width: 102px;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: radial-gradient(circle at top left, #020617, #020617);
  color: #e5e7eb;
  font-size: 0.85rem;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.12s ease,
    color 0.18s ease,
    opacity 0.18s ease;
}

.admin-page-btn:hover:not(:disabled) {
  border-color: #38bdf8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.45);
  background: radial-gradient(circle at top left, #0f172a, #020617);
  transform: translateY(-1px);
}

.admin-page-btn:disabled {
  opacity: 0.35;
  cursor: default;
  box-shadow: none;
}

.admin-page-btn--primary {
  border-color: transparent;
  background: linear-gradient(120deg, #22d3ee, #e879f9);
  color: #020617;
}

/* Pastikan hover tidak di-override style lain */
.admin-page-btn--primary:hover:not(:disabled) {
  background: linear-gradient(120deg, #22d3ee, #e879f9) !important;
  color: #020617 !important;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.55);
}

/* Tooltip role untuk member Discord */
.discord-role-tooltip {
  position: fixed;
  z-index: 9999;
  min-width: 180px;
  max-width: 260px;
  padding: 10px 12px;
  border-radius: 14px;
  background: radial-gradient(circle at top left, #0f172a, #020617);
  border: 1px solid rgba(148, 163, 184, 0.8);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.9),
    0 0 24px rgba(56, 189, 248, 0.4);
  color: #e5e7eb;
  font-size: 0.8rem;
  pointer-events: none; /* supaya tidak mengganggu hover */
}

.discord-role-tooltip-title {
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #38bdf8;
  margin-bottom: 0.35rem;
}

.discord-role-tooltip-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.15rem;
}

.discord-role-tooltip-item .dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  flex-shrink: 0;
}

.discord-role-tooltip-item .label {
  font-size: 0.8rem;
}

.discord-role-tooltip-empty {
  font-size: 0.78rem;
  color: #9ca3af;
}

.role-color {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.7);
}

/* Admin status */
#admin-status {
  margin-top: 0.7rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
#admin-status.error {
  color: var(--danger);
}
#admin-status.success {
  color: var(--success);
}

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease-out, transform 0.45s ease-out;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  padding: 1.3rem 0 1.6rem;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.98),
    rgba(15, 23, 42, 0.7)
  );
  flex-shrink: 0;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.7rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Utility */
.hidden {
  display: none !important;
}

/* Responsive */
@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .split-grid,
  .minecraft-layout,
  .dashboard-grid,
  .admin-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .nav-container {
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    row-gap: 0.6rem;
    height: auto;
    padding-block: 0.6rem;
  }
  .nav-links {
    position: absolute;
    inset: var(--nav-height) 0 auto 0;
    padding: 0.8rem 1.4rem 1rem;
    background: rgba(15, 23, 42, 0.98);
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
    display: none;
    flex-direction: column;
    gap: 0.5rem;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-right {
    justify-self: flex-end;
  }
  .nav-toggle {
    display: flex;
    justify-self: flex-end;
  }
  .hero,
  .page-hero {
    padding-top: 3.8rem;
  }
  .card-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .game-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-home-inner {
    text-align: left;
  }
  .hero-games-row {
    justify-content: flex-start;
  }
  .toast-container {
    right: 50%;
    transform: translateX(50%);
  }
}

@media (max-width: 480px) {
  .brand-subtitle {
    display: none;
  }
  .join-card {
    padding-inline: 1.2rem;
  }
}

/* ============================================================
   TAMBAHAN BARU UNTUK NAV PROFILE, AUTH, ADMIN, SCROLLBAR
   ============================================================ */

/* Text helpers */
.text-muted {
  color: var(--text-muted);
}
.text-accent {
  color: var(--accent);
}
.link-muted {
  color: var(--text-muted);
  text-decoration: none;
}
.link-muted:hover {
  color: var(--accent);
}

/* Nav profile avatar + dropdown */
.nav-profile {
  position: relative;
}

.nav-profile-circle {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.96);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.9);
}

.nav-profile-guest {
  background: radial-gradient(circle at 30% 20%, #020617, #020617);
}

.nav-profile-emoji {
  font-size: 0.95rem;
}

.nav-profile-img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.nav-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 210px;
  background: rgba(15, 23, 42, 0.98);
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: var(--shadow-soft);
  padding: 0.55rem 0.6rem 0.6rem;
  z-index: 50;
}

.nav-dropdown-header {
  padding: 0.4rem 0.4rem 0.35rem;
}
.nav-dropdown-name {
  font-size: 0.9rem;
  font-weight: 500;
}
.nav-dropdown-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.nav-dropdown-separator {
  height: 1px;
  margin: 0.35rem 0 0.4rem;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(148, 163, 184, 0.8),
    transparent
  );
}

.nav-dropdown a {
  display: block;
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
  font-size: 0.83rem;
  text-decoration: none;
  color: var(--text-main);
}
.nav-dropdown a:hover {
  background: rgba(15, 23, 42, 0.9);
  color: var(--accent);
}

/* Extra small layout helpers */
.auth-extra-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Member roles pill */
.role-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 0.78rem;
  margin: 0.15rem;
  background: rgba(15, 23, 42, 0.98);
}

/* Mini avatar untuk admin members */
.miniAvatar {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(148, 163, 184, 0.6);
}

/* Admin channel list */
.channel-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.4rem 0.6rem;
  margin-bottom: 0.35rem;
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(30, 41, 59, 0.9);
  font-size: 0.85rem;
}
.channel-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* =========================================================
   Neon Cyber Scrollbar
   ========================================================= */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(34, 211, 238, 0.85) rgba(15, 23, 42, 0.98);
}

body {
  /* biar area scroll track tetap gelap */
  background-color: #020617;
}

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.98);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #22d3ee, #a855f7);
  border-radius: 999px;
  border: 2px solid #020617;
  box-shadow:
    0 0 10px rgba(34, 211, 238, 0.7),
    0 0 22px rgba(168, 85, 247, 0.7);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #0ea5e9, #c084fc);
}

/* ==== Reset Password – Success Popup ==== */

.reset-modal-backdrop {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(56, 189, 248, 0.18), transparent 55%),
    rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.reset-modal-backdrop.show {
  display: flex;
}

.reset-modal-card {
  padding: 1.75rem 2rem 1.5rem;
  width: min(460px, 92vw);
  text-align: center;
  position: relative;
  animation: modal-pop 0.2s ease-out;
}


.reset-modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  color: #e5e7eb;              /* penting: jangan transparent */
}


.reset-modal-body {
  color: var(--muted-foreground);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.reset-modal-actions {
  display: flex;
  justify-content: center;
}

.reset-modal-close-icon {
  position: absolute;
  top: 0.35rem;
  right: 0.75rem;
  border: none;
  background: transparent;
  color: var(--muted-foreground);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 999px;
}

.reset-modal-close-icon:hover {
  background: rgba(15, 23, 42, 0.45);
  color: var(--foreground);
}

@keyframes modal-pop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ==== Admin confirm popup ==== */

.admin-confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 25, 0.80);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-out;
}

.admin-confirm-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.admin-confirm-modal {
  width: 100%;
  max-width: 360px;
  padding: 1.5rem 1.75rem;
  border-radius: 20px;
  background:
    radial-gradient(circle at top left, #0f172a 0%, #020617 60%, #020617 100%);
  border: 1px solid rgba(148, 163, 184, 0.7);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.9),
    0 0 30px rgba(56, 189, 248, 0.35);
  color: #e5e7eb;
}

.admin-confirm-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.admin-confirm-text {
  margin: 0 0 1.1rem;
  font-size: 0.9rem;
  color: #9ca3af;
}

.admin-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.admin-confirm-btn {
  min-width: 96px;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: none;
  font-size: 0.85rem;
  cursor: pointer;
  color: #f9fafb;
  outline: none;
  transition:
    transform 0.12s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

/* efek membesar dikit saat hover */
.admin-confirm-btn:hover {
  transform: translateY(-1px) scale(1.04);
  filter: brightness(1.06);
}

.admin-confirm-btn--no {
  background: linear-gradient(135deg, #450a0a, #fb7185);
  box-shadow: 0 0 16px rgba(248, 113, 113, 0.55);
}

.admin-confirm-btn--yes {
  background: linear-gradient(135deg, #064e3b, #22c55e);
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.55);
}