:root {
  --bg-base: #06080f;
  --bg-surface: rgba(16, 19, 28, 0.78);
  --bg-card: rgba(18, 22, 33, 0.78);
  --bg-elevated: rgba(24, 29, 43, 0.92);
  --bg-glass: rgba(10, 13, 21, 0.82);

  --text-primary: #f8fafc;
  --text-secondary: #9ca3af;
  --text-muted: #64748b;

  --accent: #e50914;
  --accent-bright: #ff2a4b;
  --accent-soft: rgba(255, 42, 75, 0.16);
  --gold: #fbbf24;
  --emerald: #10b981;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --font-display: "Outfit", sans-serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}

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

[hidden] {
  display: none !important;
}

/* ===== Opening Logo & Brand Name Splash Animation ===== */
.nd-intro-splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 42, 75, 0.16), transparent 46%),
    radial-gradient(ellipse 75% 55% at 50% 0%, rgba(190, 215, 255, 0.12), transparent 62%),
    #03050c;
  transition: opacity 0.68s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.68s ease;
  will-change: opacity;
}

.nd-intro-splash.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.nd-intro-splash.is-leaving .nd-intro-inner {
  transform: translateY(-6px) scale(1.03);
  opacity: 0;
}

.nd-intro-splash.is-leaving .nd-intro-progress-bar {
  width: 100%;
  animation: none;
  transform: translateX(0);
  transition: width 0.32s ease;
}

.nd-intro-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  max-width: calc(100vw - 40px);
  transition: transform 0.64s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.56s ease;
}

.nd-intro-logo-stage {
  position: relative;
  width: 112px;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nd-intro-ring-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 112px;
  height: 112px;
  pointer-events: none;
  display: block;
  transform-origin: 50% 50%;
  will-change: transform;
  animation: ndOrbitSpin 1.95s linear infinite;
}

.nd-intro-ring-inner {
  animation: ndOrbitSpinReverse 2.85s linear infinite;
}

.nd-intro-logo {
  position: relative;
  z-index: 2;
  width: 66px;
  height: 66px;
  display: block;
  border-radius: 17px;
  box-shadow:
    0 12px 34px rgba(229, 9, 20, 0.45),
    0 0 24px rgba(255, 255, 255, 0.14);
  animation:
    ndLogoPop 0.85s cubic-bezier(0.16, 1, 0.3, 1) both,
    ndLogoBreath 2.1s 0.85s ease-in-out infinite;
}

.nd-intro-wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: ndWordReveal 0.88s 0.22s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.nd-intro-name {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.nd-intro-name span {
  color: var(--accent-bright);
  text-shadow: 0 0 26px rgba(255, 42, 75, 0.62);
}

.nd-intro-tagline {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--text-secondary);
  animation: ndWordReveal 0.82s 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.nd-intro-progress {
  width: 176px;
  height: 3px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  animation: ndWordReveal 0.72s 0.52s ease both;
}

.nd-intro-progress-bar {
  display: block;
  width: 44%;
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--accent), var(--accent-bright), #ffffff);
  animation: ndSplashSweep 1.35s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

@keyframes ndOrbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes ndOrbitSpinReverse {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

@keyframes ndLogoPop {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes ndLogoBreath {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.045);
  }
}

@keyframes ndWordReveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ndSplashSweep {
  0% { transform: translateX(-100%); width: 38%; }
  50% { width: 65%; }
  100% { transform: translateX(260%); width: 38%; }
}

@media (prefers-reduced-motion: reduce) {
  .nd-intro-ring-svg,
  .nd-intro-ring-inner,
  .nd-intro-logo,
  .nd-intro-wordmark,
  .nd-intro-progress,
  .nd-intro-progress-bar {
    animation: none !important;
  }
  .nd-intro-progress-bar {
    width: 100%;
  }
}

html {
  scroll-behavior: smooth;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(ellipse 85% 55% at 50% -10%, rgba(180, 210, 255, 0.08), transparent 65%),
    radial-gradient(circle at 85% 15%, rgba(255, 42, 75, 0.06), transparent 40%),
    linear-gradient(180deg, #04060c 0%, #070a14 55%, #04060b 100%);
  color: var(--text-primary);
  overflow-x: hidden;
  position: relative;
}

@supports (overflow-x: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

body.is-splashing {
  overflow: hidden;
}

/* ===== Live Starry Night Background (GPU-Isolated Compositor Layer) ===== */
.nd-starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100lvh;
  pointer-events: none;
  z-index: 0;
  display: block;
  contain: strict;
  transform: translateZ(0);
  backface-visibility: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.nd-container {
  width: min(1340px, calc(100% - 32px));
  max-width: 100%;
  margin-inline: auto;
}

@media (max-width: 600px) {
  .nd-container {
    width: calc(100% - 24px);
  }
}

/* ===== Top Header Bar ===== */
.nd-topbar {
  position: sticky;
  top: 0;
  z-index: 95;
  width: 100%;
  height: 62px;
  background: rgba(7, 9, 16, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
}

.nd-topbar-inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.nd-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.nd-brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  box-shadow: 0 4px 16px rgba(255, 42, 75, 0.28);
}

.nd-brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
  color: #ffffff;
  white-space: nowrap;
}

.nd-brand-text span {
  color: var(--accent-bright);
}

.nd-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-end;
}

.nd-search-wrap {
  position: relative;
  flex: 1 1 260px;
  max-width: 360px;
  min-width: 0;
}

.nd-search-field {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.nd-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  pointer-events: none;
  z-index: 1;
}

.nd-search-input {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 34px 0 36px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
  font-size: 0.85rem;
  text-overflow: ellipsis;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.nd-search-input::-webkit-search-decoration,
.nd-search-input::-webkit-search-cancel-button,
.nd-search-input::-webkit-search-results-button,
.nd-search-input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.nd-search-input::placeholder {
  color: var(--text-secondary);
}

.nd-search-input:focus {
  outline: none;
  border-color: var(--accent-bright);
  background: rgba(15, 19, 30, 0.95);
  box-shadow: 0 0 0 3px rgba(255, 42, 75, 0.16);
}

.nd-search-clear-btn {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.16s, color 0.16s;
}

.nd-search-clear-btn:hover {
  background: rgba(255, 42, 75, 0.28);
  color: #fff;
}

.nd-search-clear-btn[hidden],
.nd-search-dropdown[hidden] {
  display: none !important;
}

.nd-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  width: max(100%, 390px);
  max-width: min(460px, calc(100vw - 32px));
  max-height: min(440px, calc(100vh - 82px));
  max-height: min(440px, calc(var(--nd-vvh, 100dvh) - 76px));
  display: flex;
  flex-direction: column;
  background: rgba(12, 15, 24, 0.98);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.82);
  overflow: hidden;
  z-index: 130;
}

.nd-search-dropdown-list {
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
  min-height: 0;
  scrollbar-width: thin;
}

.nd-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background 0.15s;
}

.nd-search-item:last-child {
  border-bottom: none;
}

.nd-search-item:hover,
.nd-search-item.is-highlighted {
  background: rgba(255, 255, 255, 0.07);
}

.nd-search-item img {
  width: 44px;
  height: 60px;
  object-fit: cover;
  border-radius: 7px;
  background: #161a26;
  flex-shrink: 0;
  display: block;
  color: transparent;
}

.nd-search-meta {
  min-width: 0;
  flex: 1 1 0%;
}

.nd-search-title {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.32;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
  overflow-wrap: anywhere;
}

.nd-search-sub {
  font-size: 0.74rem;
  color: var(--text-secondary);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nd-search-status-msg {
  padding: 16px 14px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.nd-search-footer-btn {
  width: 100%;
  flex-shrink: 0;
  padding: 11px 14px;
  border: none;
  border-top: 1px solid var(--border-strong);
  background: rgba(229, 9, 20, 0.13);
  color: #ff6b81;
  font-size: 0.81rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  text-align: center;
  transition: background 0.16s, color 0.16s;
}

.nd-search-footer-btn:hover {
  background: rgba(229, 9, 20, 0.24);
  color: #fff;
}

.nd-search-footer-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nd-icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.nd-icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-strong);
}

.nd-notif-dot {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 8px var(--accent-bright);
}

.nd-pwa-btn {
  height: 40px;
  padding: 0 13px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.nd-pwa-btn:hover {
  background: rgba(255, 42, 75, 0.16);
  border-color: rgba(255, 42, 75, 0.45);
  color: #fff;
}

.nd-pwa-btn.is-ready {
  border-color: rgba(255, 42, 75, 0.5);
  background: rgba(255, 42, 75, 0.14);
}

@media (max-width: 920px) {
  .nd-pwa-btn {
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
  }
  .nd-pwa-btn-label {
    display: none;
  }
}

@media (max-width: 820px) {
  .nd-search-wrap {
    position: static;
  }
  .nd-search-dropdown {
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    width: auto;
    max-width: 100%;
    max-height: min(420px, calc(100vh - 76px));
    max-height: min(420px, calc(var(--nd-vvh, 100dvh) - 68px));
  }
}

@media (max-width: 760px) {
  .nd-topbar {
    height: 56px;
  }
  .nd-topbar-inner {
    gap: 8px;
  }
  .nd-brand {
    gap: 6px;
  }
  .nd-brand-logo {
    width: 28px;
    height: 28px;
  }
  .nd-brand-text {
    font-size: 0.98rem;
  }
  .nd-topbar-actions {
    gap: 6px;
  }
  .nd-search-icon {
    left: 10px;
    width: 15px;
    height: 15px;
  }
  .nd-search-input {
    height: 36px;
    padding: 0 30px 0 32px;
    /* Ukuran 16px mencegah browser mobile/iOS melakukan auto-zoom paksa yang memotong layar */
    font-size: 16px;
  }
  .nd-search-input::placeholder {
    font-size: 0.81rem;
  }
  .nd-pwa-btn,
  .nd-icon-btn {
    width: 34px;
    height: 34px;
  }

  /* Ekspansi penuh kolom pencarian saat fokus/aktif mengetik di mobile agar teks tidak terpotong */
  .nd-topbar-inner.is-search-active .nd-brand-text,
  .nd-topbar-inner.is-search-active #qrisSupportTopBtn,
  .nd-topbar-inner.is-search-active #pwaInstallBtn,
  .nd-topbar-inner.is-search-active #notifWrap {
    display: none;
  }
  .nd-topbar-inner.is-search-active .nd-search-wrap {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

@supports selector(:has(*)) {
  @media (max-width: 760px) {
    .nd-topbar-inner:has(.nd-search-field:focus-within) .nd-brand-text,
    .nd-topbar-inner:has(.nd-search-field:focus-within) #qrisSupportTopBtn,
    .nd-topbar-inner:has(.nd-search-field:focus-within) #pwaInstallBtn,
    .nd-topbar-inner:has(.nd-search-field:focus-within) #notifWrap {
      display: none;
    }
    .nd-topbar-inner:has(.nd-search-field:focus-within) .nd-search-wrap {
      flex: 1 1 100%;
      max-width: 100%;
    }
  }
}

@media (max-width: 400px) {
  .nd-topbar-inner {
    gap: 6px;
  }
  .nd-brand-text {
    font-size: 0.92rem;
  }
  .nd-topbar-actions {
    gap: 5px;
  }
  .nd-pwa-btn,
  .nd-icon-btn {
    width: 33px;
    height: 33px;
  }
}

.nd-notif-wrap {
  position: relative;
}

.nd-notif-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(400px, calc(100vw - 24px));
  max-height: min(560px, calc(100vh - 96px));
  display: flex;
  flex-direction: column;
  background: rgba(12, 15, 24, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  box-shadow: 0 26px 68px rgba(0, 0, 0, 0.85);
  overflow: hidden;
  z-index: 140;
}

@media (max-width: 520px) {
  .nd-notif-panel {
    position: fixed;
    top: 76px;
    right: 12px;
    left: 12px;
    width: auto;
    max-height: calc(100vh - 172px);
  }
}

.nd-notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--border-subtle);
  font-weight: 700;
  font-size: 0.85rem;
}

.nd-notif-title-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}

.nd-notif-title-group svg {
  color: var(--accent-bright);
}

.nd-notif-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nd-mini-icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.16s, color 0.16s;
}

.nd-mini-icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.nd-live-pill {
  font-size: 0.66rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.16);
  color: var(--emerald);
}

.nd-comm-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.28);
  border-bottom: 1px solid var(--border-subtle);
}

.nd-comm-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s;
}

.nd-comm-tab small {
  font-size: 0.68rem;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

.nd-comm-tab.active {
  background: rgba(255, 42, 75, 0.16);
  border-color: rgba(255, 42, 75, 0.42);
  color: #fff;
}

.nd-comm-tab.active small {
  background: var(--accent-bright);
  color: #fff;
}

.nd-comm-pane {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}

.nd-notif-list {
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
  max-height: 310px;
}

.nd-notif-item {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.038);
  border: 1px solid var(--border-subtle);
}

.nd-notif-item.is-admin-msg {
  border-color: rgba(255, 42, 75, 0.35);
  background: rgba(255, 42, 75, 0.07);
}

.nd-notif-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.nd-notif-user {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.79rem;
  font-weight: 700;
  color: #fff;
  min-width: 0;
}

.nd-comm-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 42, 75, 0.32), rgba(59, 130, 246, 0.28));
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.nd-admin-badge {
  font-size: 0.62rem;
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.nd-notif-time {
  font-size: 0.68rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.nd-comm-quote {
  margin-top: 6px;
  padding: 5px 8px;
  border-radius: 7px;
  border-left: 2px solid var(--accent-bright);
  background: rgba(0, 0, 0, 0.3);
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.nd-comm-quote strong {
  color: #e2e8f0;
}

.nd-notif-msg {
  margin-top: 6px;
  font-size: 0.81rem;
  color: #e2e8f0;
  line-height: 1.48;
  word-break: break-word;
}

.nd-notif-foot {
  margin-top: 6px;
  display: flex;
  justify-content: flex-end;
}

.nd-comm-reply-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
}

.nd-comm-reply-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.nd-comm-composer {
  padding: 10px 12px 12px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(7, 9, 15, 0.92);
}

.nd-comm-reply-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 9px;
  margin-bottom: 7px;
  border-radius: 8px;
  background: rgba(255, 42, 75, 0.14);
  border: 1px solid rgba(255, 42, 75, 0.32);
  font-size: 0.72rem;
  color: #f8fafc;
}

.nd-comm-reply-bar button {
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  padding: 2px;
}

.nd-comm-inputs {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.nd-comm-nick {
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 0.77rem;
}

.nd-comm-msg-row {
  display: flex;
  gap: 7px;
}

.nd-comm-msg-input {
  flex: 1;
  height: 36px;
  padding: 0 11px;
  border-radius: 9px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 0.8rem;
}

.nd-comm-nick:focus,
.nd-comm-msg-input:focus {
  outline: none;
  border-color: var(--accent-bright);
}

.nd-comm-send-btn {
  width: 38px;
  height: 36px;
  border-radius: 9px;
  border: none;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.nd-comm-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.nd-info-card {
  padding: 12px 13px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
}

.nd-info-card.is-pinned {
  border-color: rgba(255, 42, 75, 0.38);
  background: linear-gradient(180deg, rgba(255, 42, 75, 0.09), rgba(255, 255, 255, 0.03));
}

.nd-info-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.nd-info-cat {
  font-size: 0.66rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.09);
  color: #f1f5f9;
}

.nd-info-card.is-pinned .nd-info-cat {
  background: rgba(255, 42, 75, 0.22);
  color: #ff8fa0;
}

.nd-info-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.nd-info-body {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ===== Main Content ===== */
.nd-main {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 180px);
  padding: 24px 0 60px;
}

/* ===== Hero Banner ===== */
.nd-hero {
  position: relative;
  border-radius: var(--radius-lg);
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  margin-bottom: 26px;
  display: flex;
  align-items: flex-end;
  background: #0b0e17;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.62);
}

.nd-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75) saturate(1.08);
  transform: scale(1.02);
  transition: transform 6s ease;
}

.nd-hero:hover .nd-hero-bg {
  transform: scale(1.06);
}

.nd-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 8, 15, 0.95) 0%, rgba(6, 8, 15, 0.72) 50%, rgba(6, 8, 15, 0.2) 100%),
    linear-gradient(0deg, rgba(6, 8, 15, 0.96) 0%, rgba(6, 8, 15, 0.3) 60%, transparent 100%);
}

.nd-hero-content {
  position: relative;
  z-index: 2;
  padding: 34px 36px;
  max-width: 680px;
}

@media (max-width: 640px) {
  .nd-hero {
    min-height: 360px;
  }
  .nd-hero-content {
    padding: 24px 20px 38px;
  }
}

.nd-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.nd-pill-crimson {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.nd-pill-glass {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f1f5f9;
  font-size: 0.72rem;
  font-weight: 600;
}

.nd-hero-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.2vw, 2.65rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.nd-hero-synopsis {
  margin: 0 0 20px;
  font-size: 0.92rem;
  line-height: 1.62;
  color: rgba(248, 250, 252, 0.82);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nd-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.nd-hero-dots {
  position: absolute;
  right: 28px;
  bottom: 24px;
  z-index: 3;
  display: flex;
  gap: 7px;
}

.nd-hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: var(--radius-pill);
  border: none;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
  transition: width 0.22s, background 0.22s;
}

.nd-hero-dot.active {
  width: 26px;
  background: var(--accent-bright);
}

/* ===== Buttons ===== */
.nd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.88rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.nd-btn:active {
  transform: scale(0.98);
}

.nd-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.nd-btn-primary {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  color: #fff;
  box-shadow: 0 8px 24px rgba(229, 9, 20, 0.36);
}

.nd-btn-primary:hover:not(:disabled) {
  box-shadow: 0 12px 30px rgba(255, 42, 75, 0.48);
  transform: translateY(-1px);
}

.nd-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  color: #fff;
  border-color: var(--border-strong);
}

.nd-btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.14);
}

/* ===== Genre & Filter Pills ===== */
.nd-pills-row {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  margin-bottom: 24px;
  scrollbar-width: thin;
}

.nd-pill-btn {
  flex-shrink: 0;
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: rgba(17, 21, 32, 0.76);
  backdrop-filter: blur(10px);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
}

.nd-pill-btn:hover {
  color: #fff;
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.09);
}

.nd-pill-btn.active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(229, 9, 20, 0.32);
}

/* ===== Sections & Layout ===== */
.nd-section {
  margin-bottom: 38px;
}

.nd-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
  margin-bottom: 16px;
  min-width: 0;
}

.nd-section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 2vw, 1.42rem);
  font-weight: 800;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.nd-section-title::before {
  content: "";
  width: 4px;
  height: 20px;
  border-radius: 4px;
  background: var(--accent-bright);
  display: inline-block;
  flex-shrink: 0;
}

/* ===== Dedicated Search Results Page Box ===== */
.nd-search-page-box {
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 22px;
}

.nd-search-page-form {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.nd-search-page-input-wrap {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.nd-search-page-input {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 16px 0 40px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: rgba(8, 11, 19, 0.85);
  color: #fff;
  font-size: 16px;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.nd-search-page-input:focus {
  outline: none;
  border-color: var(--accent-bright);
  box-shadow: 0 0 0 3px rgba(255, 42, 75, 0.16);
}

.nd-search-page-submit {
  height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  border: none;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(229, 9, 20, 0.3);
  transition: transform 0.16s, box-shadow 0.16s;
}

.nd-search-page-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(255, 42, 75, 0.42);
}

.nd-search-quick-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
}

.nd-search-quick-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.nd-search-quick-chip {
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s, border-color 0.16s, color 0.16s;
}

.nd-search-quick-chip:hover {
  background: rgba(255, 42, 75, 0.14);
  border-color: rgba(255, 42, 75, 0.42);
  color: #fff;
}

@media (max-width: 520px) {
  .nd-search-page-box {
    padding: 14px;
  }
  .nd-search-page-submit {
    padding: 0 15px;
    font-size: 0.82rem;
  }
}

.nd-link-more {
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.nd-link-more:hover {
  background: rgba(255, 42, 75, 0.14);
  border-color: rgba(255, 42, 75, 0.4);
  color: #fff;
}

.nd-home-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 26px;
  align-items: start;
}

.nd-home-split > *,
.nd-detail-body > *,
.nd-watch-layout > *,
.nd-api-grid > * {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 1060px) {
  .nd-home-split {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ===== Anime Cards ===== */
.nd-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 16px;
}

@media (max-width: 540px) {
  .nd-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

.nd-card {
  background: rgba(15, 19, 30, 0.92);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  contain: layout paint style;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
}

.nd-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 42, 75, 0.48);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.55);
}

.nd-card-poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4.2;
  background: #101420;
  overflow: hidden;
}

.nd-card-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  color: transparent;
  transition: transform 0.38s ease;
}

.nd-card:hover .nd-card-poster {
  transform: scale(1.06);
}

.nd-badge-top-left {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: 7px;
  background: rgba(229, 9, 20, 0.92);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
}

.nd-badge-top-right {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 8px;
  border-radius: 7px;
  background: rgba(8, 10, 17, 0.85);
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 700;
}

.nd-badge-bottom {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(8, 10, 17, 0.82);
  color: #e2e8f0;
  font-size: 0.66rem;
  font-weight: 600;
}

.nd-card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 8, 15, 0.46);
  opacity: 0;
  transition: opacity 0.2s;
}

.nd-card:hover .nd-card-play {
  opacity: 1;
}

.nd-play-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(255, 42, 75, 0.55);
}

.nd-card-body {
  padding: 11px 12px 13px;
}

.nd-card-title {
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.3rem;
}

.nd-card-sub {
  margin-top: 5px;
  font-size: 0.73rem;
  color: var(--text-secondary);
}

/* ===== Sidebar Top 10 Ranking ===== */
.nd-top-box {
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.nd-tabs-mini {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  background: rgba(0, 0, 0, 0.35);
  padding: 4px;
  border-radius: 10px;
  margin: 14px 0 16px;
}

.nd-tab-mini {
  padding: 6px 4px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.nd-tab-mini.active {
  background: var(--accent-bright);
  color: #fff;
}

.nd-rank-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nd-rank-item {
  display: grid;
  grid-template-columns: 28px 46px 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  transition: background 0.16s, transform 0.16s;
}

.nd-rank-item:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(3px);
}

.nd-rank-num {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-secondary);
  font-weight: 800;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nd-rank-item:nth-child(1) .nd-rank-num {
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #090b10;
}

.nd-rank-item:nth-child(2) .nd-rank-num {
  background: linear-gradient(135deg, #e2e8f0, #94a3b8);
  color: #090b10;
}

.nd-rank-item:nth-child(3) .nd-rank-num {
  background: linear-gradient(135deg, #f97316, #b45309);
  color: #fff;
}

.nd-rank-poster {
  width: 46px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  background: #141824;
}

.nd-rank-info {
  min-width: 0;
}

.nd-rank-title {
  font-size: 0.83rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nd-rank-views {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 3px;
}

/* ===== Detail View ===== */
.nd-detail-hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  margin-bottom: 26px;
}

.nd-detail-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: blur(18px) saturate(1.2);
  transform: scale(1.1);
}

.nd-detail-body {
  position: relative;
  z-index: 2;
  padding: 30px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
}

@media (max-width: 760px) {
  .nd-detail-body {
    grid-template-columns: minmax(0, 1fr);
    padding: 20px;
  }
}

.nd-detail-poster {
  width: 220px;
  aspect-ratio: 3 / 4.2;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.65);
}

@media (max-width: 760px) {
  .nd-detail-poster {
    width: 165px;
    margin-inline: auto;
  }
}

.nd-detail-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.3rem);
  font-weight: 800;
}

.nd-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.nd-score-badge {
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: rgba(251, 191, 36, 0.16);
  color: var(--gold);
  border: 1px solid rgba(251, 191, 36, 0.35);
  font-size: 0.76rem;
  font-weight: 700;
}

.nd-detail-synopsis {
  color: #cbd5e1;
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 0 0 20px;
}

.nd-ep-box {
  background: var(--bg-surface);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 30px;
}

.nd-ep-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.nd-ep-search {
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.36);
  color: #fff;
  width: min(270px, 100%);
  font-size: 0.83rem;
}

.nd-ep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
  max-height: 460px;
  overflow-y: auto;
  padding-right: 4px;
}

.nd-ep-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.16s;
  text-align: left;
  color: #fff;
}

.nd-ep-item:hover {
  border-color: rgba(255, 42, 75, 0.45);
  background: rgba(255, 42, 75, 0.1);
}

.nd-ep-item.active {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  border-color: transparent;
  color: #fff;
}

.nd-ep-item.watched:not(.active) {
  border-left: 3px solid var(--emerald);
}

.nd-ep-name {
  font-size: 0.83rem;
  font-weight: 700;
}

.nd-ep-date {
  font-size: 0.71rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.nd-ep-item.active .nd-ep-date {
  color: rgba(255, 255, 255, 0.85);
}

/* ===== Watch Player View ===== */
.nd-watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  align-items: start;
}

@media (max-width: 1060px) {
  .nd-watch-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.nd-player-stage {
  position: relative;
  z-index: 65;
}

.nd-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 26px 68px rgba(0, 0, 0, 0.8);
}

.nd-video-frame video,
.nd-video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}

.nd-watermark {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 5;
  pointer-events: none;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.35);
}

.nd-resume-banner {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 64px;
  z-index: 8;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(10, 13, 21, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(251, 191, 36, 0.45);
}

.nd-seek-flash {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.75);
  font-weight: 700;
  font-size: 0.86rem;
  pointer-events: none;
  z-index: 7;
}
.nd-seek-flash.left { left: 24px; }
.nd-seek-flash.right { right: 24px; }

.nd-player-controls-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.nd-server-panel {
  margin-top: 14px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.nd-server-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.nd-cinema-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 60;
}

/* ===== Shared Form Controls ===== */
.nd-form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 13px;
}

.nd-form-row label {
  font-size: 0.76rem;
  font-weight: 600;
  color: #cbd5e1;
}

.nd-input,
.nd-select,
.nd-textarea {
  width: 100%;
  padding: 9px 13px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-size: 0.85rem;
}

.nd-input:focus,
.nd-select:focus,
.nd-textarea:focus {
  outline: none;
  border-color: var(--accent-bright);
}

.nd-mode-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.nd-mode-option {
  padding: 13px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  text-align: left;
  color: #fff;
  transition: border-color 0.18s, background 0.18s;
}

.nd-mode-option.active {
  border-color: var(--accent-bright);
  background: rgba(255, 42, 75, 0.14);
}

.nd-mode-option strong {
  display: block;
  font-size: 0.84rem;
  margin-bottom: 4px;
}

.nd-mode-option small {
  font-size: 0.74rem;
  color: var(--text-secondary);
  line-height: 1.4;
  display: block;
}

.nd-table-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 380px;
  overflow-y: auto;
}

.nd-table-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

/* ===== A-Z & API Inspector ===== */
.nd-az-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(38px, 1fr));
  gap: 6px;
  margin-bottom: 24px;
}

.nd-api-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 20px;
  margin-bottom: 28px;
}

@media (max-width: 960px) {
  .nd-api-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.nd-endpoint-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  margin-bottom: 10px;
}

.nd-method-get {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.16);
  color: var(--emerald);
}

.nd-code-box {
  background: rgba(7, 10, 17, 0.94);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.77rem;
  line-height: 1.55;
  color: #e2e8f0;
  max-height: 540px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ===== Pagination ===== */
.nd-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.nd-pager-info {
  font-size: 0.84rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* ===== Skeletons ===== */
.nd-skel-hero {
  height: 390px;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, #101420 25%, #192033 50%, #101420 75%);
  background-size: 200% 100%;
  animation: ndShimmer 1.4s infinite;
  margin-bottom: 26px;
}

.nd-skel-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 16px;
}

.nd-skel-card {
  aspect-ratio: 3 / 4.2;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, #101420 25%, #192033 50%, #101420 75%);
  background-size: 200% 100%;
  animation: ndShimmer 1.4s infinite;
}

@keyframes ndShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== Floating Glassmorphic Bottom Navigation Bar ===== */
.nd-bottom-dock-wrap {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  margin-inline: auto;
  width: min(530px, calc(100% - 20px));
  max-width: calc(100vw - 20px);
  z-index: 98;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.nd-bottom-dock-wrap.cinema-dimmed {
  opacity: 0.15;
}

.nd-bottom-dock-wrap.cinema-dimmed:hover {
  opacity: 1;
}

.nd-bottom-bar {
  pointer-events: auto;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: center;
  gap: 3px;
  padding: 5px 6px;
  border-radius: 18px;
  background: rgba(10, 13, 22, 0.9);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.78),
    0 0 20px rgba(255, 255, 255, 0.04);
}

.nd-bnav-item {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 5px 2px;
  border-radius: 13px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.66rem;
  font-weight: 600;
  line-height: 1.15;
  cursor: pointer;
  transition: color 0.18s, background 0.18s, transform 0.15s;
}

.nd-bnav-item span {
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nd-bnav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.nd-bnav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nd-bnav-item.active {
  color: #fff;
  background: rgba(255, 42, 75, 0.16);
}

.nd-bnav-item.active svg {
  stroke: var(--accent-bright);
  filter: drop-shadow(0 0 8px rgba(255, 42, 75, 0.6));
}

.nd-bnav-icon-wrap {
  position: relative;
  display: inline-flex;
}

.nd-bnav-badge {
  position: absolute;
  top: -5px;
  right: -9px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: var(--radius-pill);
  background: var(--accent-bright);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Pop-up Sheet "Lainnya" di Atas Bottom Bar */
.nd-bottom-sheet {
  pointer-events: auto;
  margin-bottom: 8px;
  padding: 14px;
  max-height: min(65vh, 420px);
  max-height: min(65dvh, 420px);
  overflow-y: auto;
  border-radius: 18px;
  background: rgba(12, 15, 25, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-strong);
  box-shadow: 0 -18px 54px rgba(0, 0, 0, 0.82);
  animation: sheetPopUp 0.18s ease-out;
}

@keyframes sheetPopUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.nd-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 9px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
}

.nd-sheet-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.16s, border-color 0.16s;
}

.nd-sheet-close:hover {
  background: rgba(255, 42, 75, 0.2);
  border-color: rgba(255, 42, 75, 0.45);
}

.nd-sheet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

@media (max-width: 540px) {
  .nd-sheet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nd-sheet-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

.nd-sheet-item {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.035);
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s, background 0.16s;
}

.nd-sheet-item:hover,
.nd-sheet-item.active {
  border-color: rgba(255, 42, 75, 0.5);
  background: rgba(255, 42, 75, 0.12);
}

.nd-sheet-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-bright);
  flex-shrink: 0;
}

.nd-player-unavailable {
  width: 100%;
  height: 100%;
  min-height: 280px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  background:
    radial-gradient(circle at 50% 25%, rgba(255, 42, 75, 0.16), transparent 60%),
    rgba(9, 12, 20, 0.96);
}

.nd-player-unavailable-poster {
  width: 72px;
  height: 98px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65);
}

.nd-ep-ready-pill {
  font-size: 0.64rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.16);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.nd-sheet-item strong {
  display: block;
  font-size: 0.8rem;
}

.nd-sheet-item small {
  display: block;
  font-size: 0.69rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ===== Footer ===== */
.nd-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border-subtle);
  background: rgba(6, 8, 15, 0.76);
  backdrop-filter: blur(12px);
  padding: 32px 0 116px;
}

.nd-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nd-footer-brand {
  margin-bottom: 10px;
}

.nd-footer-desc {
  margin: 0;
  max-width: 580px;
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.nd-footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nd-tech-pill {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.73rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #e2e8f0;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ===== Toast ===== */
.nd-toast-root {
  position: fixed;
  bottom: 98px;
  right: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nd-toast {
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(12, 16, 26, 0.96);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--accent-bright);
  color: #fff;
  font-size: 0.83rem;
  font-weight: 600;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.72);
}

.nd-empty-state {
  text-align: center;
  padding: 54px 20px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px dashed var(--border-strong);
  color: var(--text-secondary);
}

.nd-muted-center {
  padding: 20px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.82rem;
}

@media (max-width: 640px) {
  .nd-bottom-dock-wrap {
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    width: calc(100% - 14px);
    max-width: calc(100vw - 14px);
  }
  .nd-bottom-bar {
    padding: 4px 5px;
    gap: 2px;
    border-radius: 16px;
  }
  .nd-bnav-item {
    padding: 5px 1px;
    gap: 2px;
    font-size: 0.6rem;
    border-radius: 11px;
  }
  .nd-bnav-item svg {
    width: 17px;
    height: 17px;
  }
}

/* ===== Penyemangat Admin — Traktir Kopi (QRIS) & Anti-Quishing UI ===== */
.nd-qris-top-btn {
  border-color: rgba(255, 42, 75, 0.38);
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.2), rgba(255, 42, 75, 0.08));
  color: #fff;
}

.nd-qris-top-btn:hover {
  border-color: rgba(255, 42, 75, 0.72);
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.34), rgba(255, 42, 75, 0.16));
}

.nd-sheet-item-qris {
  border-color: rgba(255, 42, 75, 0.35);
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.16), rgba(255, 255, 255, 0.04));
}

.nd-sheet-icon-qris {
  background: rgba(229, 9, 20, 0.22);
  color: #ff5670;
}

.nd-qris-footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 42, 75, 0.45);
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.22), rgba(255, 42, 75, 0.08));
  color: #fff;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s, border-color 0.16s, background 0.16s;
}

.nd-qris-footer-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 42, 75, 0.8);
  background: linear-gradient(135deg, #e50914, #ff2a4b);
}

.nd-support-card {
  margin-top: 14px;
  padding: 15px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 42, 75, 0.34);
  background:
    radial-gradient(circle at top right, rgba(255, 42, 75, 0.16), transparent 56%),
    rgba(13, 17, 29, 0.86);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.nd-support-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 240px;
}

.nd-support-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.25), rgba(255, 42, 75, 0.12));
  border: 1px solid rgba(255, 42, 75, 0.42);
  color: #ff4d67;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nd-support-card-copy {
  min-width: 0;
}

.nd-support-card-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
}

.nd-support-card-meta {
  margin: 3px 0 0;
  font-size: 0.74rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nd-support-qris-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: 0.83rem;
  font-weight: 700;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Modal QRIS */
.nd-qris-backdrop {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: rgba(3, 5, 12, 0.82);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}

.nd-qris-backdrop[hidden] {
  display: none !important;
}

.nd-qris-modal {
  width: 100%;
  max-width: 460px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: linear-gradient(180deg, rgba(15, 20, 34, 0.98), rgba(8, 11, 20, 0.99));
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.82);
  color: #fff;
}

.nd-qris-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 13px;
  border-bottom: 1px solid var(--border-subtle);
}

.nd-qris-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-width: 0;
}

.nd-qris-title-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, #e50914, #ff2a4b);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(229, 9, 20, 0.35);
}

.nd-qris-title {
  margin: 0;
  font-family: "Outfit", sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.nd-qris-subtitle {
  margin: 3px 0 0;
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.42;
}

.nd-qris-modal-body {
  padding: 14px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.nd-qris-preset-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.nd-qris-presets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.nd-qris-preset {
  min-width: 0;
  padding: 8px 6px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.nd-qris-preset strong {
  font-size: 0.8rem;
  font-weight: 800;
}

.nd-qris-preset small {
  font-size: 0.66rem;
  color: var(--text-secondary);
}

.nd-qris-preset:hover {
  border-color: rgba(255, 42, 75, 0.5);
  background: rgba(255, 42, 75, 0.1);
}

.nd-qris-preset.active {
  border-color: #ff2a4b;
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.3), rgba(255, 42, 75, 0.14));
  box-shadow: 0 6px 18px rgba(229, 9, 20, 0.24);
}

.nd-qris-preset.active small {
  color: #ffd6dc;
}

.nd-qris-custom-form {
  display: flex;
  gap: 8px;
}

.nd-qris-custom-input {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.8rem;
  padding: 8px 12px;
}

.nd-qris-apply-btn {
  padding: 8px 14px;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.nd-qris-stage-card {
  border-radius: 16px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.nd-qris-merchant-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.nd-qris-verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.42);
  color: #34d399;
  font-size: 0.69rem;
  font-weight: 700;
}

.nd-qris-verified-pill.is-error {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.6);
  color: #fca5a5;
}

.nd-qris-merchant-name {
  font-family: "Outfit", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #fff;
  margin-top: 2px;
}

.nd-qris-nmid {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.nd-qris-amount-tag {
  margin-top: 2px;
  padding: 3px 10px;
  border-radius: 8px;
  background: rgba(229, 9, 20, 0.18);
  border: 1px solid rgba(255, 42, 75, 0.35);
  color: #ffd3da;
  font-size: 0.74rem;
  font-weight: 700;
}

.nd-qris-visual-box {
  width: 100%;
  max-width: 280px;
  min-height: 248px;
  border-radius: 14px;
  background: #ffffff;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.nd-qris-visual-box img {
  width: 100%;
  height: auto;
  max-height: 330px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.nd-qris-visual-box svg {
  width: 100%;
  max-width: 236px;
  height: auto;
  display: block;
}

.nd-qris-loading {
  color: #1e293b;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 20px 12px;
}

.nd-qris-tamper-alert {
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #f87171;
  border-radius: 10px;
  padding: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.45;
}

.nd-qris-helper-text {
  margin: 0;
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.nd-qris-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.nd-qris-action-btn {
  width: 100%;
  padding: 9px 10px;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nd-qris-security-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.07);
  border: 1px solid rgba(16, 185, 129, 0.24);
  font-size: 0.71rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.nd-qris-security-note svg {
  color: #34d399;
  flex-shrink: 0;
  margin-top: 2px;
}

.nd-qris-security-note code {
  font-size: 0.69rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 4px;
  border-radius: 4px;
}

@media (max-width: 520px) {
  .nd-support-card {
    padding: 13px 14px;
  }
  .nd-support-qris-btn {
    width: 100%;
  }
  .nd-qris-actions {
    grid-template-columns: minmax(0, 1fr);
  }
  .nd-qris-modal {
    border-radius: 18px;
  }
}

/* ===== Hubungi Admin — Lapor Kendala, Bug & Request Fitur (Telegram @nodata_store) ===== */
.nd-sheet-item-telegram {
  border-color: rgba(56, 189, 248, 0.36);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.16), rgba(255, 255, 255, 0.04));
}

.nd-sheet-item-telegram:hover {
  border-color: rgba(56, 189, 248, 0.65);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.24), rgba(255, 255, 255, 0.06));
}

.nd-sheet-icon-telegram {
  background: rgba(14, 165, 233, 0.22);
  color: #38bdf8;
}

.nd-telegram-footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.44);
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.22), rgba(56, 189, 248, 0.08));
  color: #f0f9ff;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s, border-color 0.16s, background 0.16s;
}

.nd-telegram-footer-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.85);
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  color: #fff;
}

.nd-comm-admin-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(14, 165, 233, 0.09);
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  font-size: 0.74rem;
  color: #cbd5e1;
  flex-wrap: wrap;
}

.nd-comm-admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.45);
  background: rgba(14, 165, 233, 0.18);
  color: #7dd3fc;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.16s, color 0.16s, border-color 0.16s;
}

.nd-comm-admin-btn:hover {
  background: #0284c7;
  border-color: #38bdf8;
  color: #fff;
}

.nd-report-pill-btn {
  border-color: rgba(56, 189, 248, 0.42);
  background: rgba(14, 165, 233, 0.12);
  color: #bae6fd;
}

.nd-report-pill-btn:hover {
  border-color: rgba(56, 189, 248, 0.78);
  background: rgba(14, 165, 233, 0.24);
  color: #fff;
}

.nd-btn-telegram {
  border: 1px solid rgba(56, 189, 248, 0.5);
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  color: #fff;
  box-shadow: 0 8px 22px rgba(14, 165, 233, 0.3);
}

.nd-btn-telegram:hover:not(:disabled) {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #0369a1, #0284c7);
  box-shadow: 0 12px 26px rgba(14, 165, 233, 0.42);
}

.nd-btn-telegram-outline {
  border: 1px solid rgba(56, 189, 248, 0.42);
  background: rgba(14, 165, 233, 0.1);
  color: #e0f2fe;
}

.nd-btn-telegram-outline:hover:not(:disabled) {
  border-color: rgba(56, 189, 248, 0.78);
  background: rgba(14, 165, 233, 0.22);
  color: #fff;
}

.nd-help-admin-card {
  margin-top: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(56, 189, 248, 0.3);
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.15), transparent 58%),
    rgba(11, 16, 28, 0.86);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.nd-help-admin-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.28), rgba(56, 189, 248, 0.12));
  border: 1px solid rgba(56, 189, 248, 0.42);
  color: #38bdf8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nd-help-admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: 0.83rem;
  font-weight: 700;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.nd-admin-title-icon {
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.36);
}

.nd-admin-topics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.nd-admin-topic-btn {
  min-width: 0;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-family: inherit;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 3px;
  cursor: pointer;
  transition: border-color 0.16s, background 0.16s;
}

.nd-admin-topic-btn strong {
  font-size: 0.8rem;
  font-weight: 800;
}

.nd-admin-topic-btn small {
  font-size: 0.68rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

.nd-admin-topic-btn:hover {
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(14, 165, 233, 0.1);
}

.nd-admin-topic-btn.active {
  border-color: #38bdf8;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.3), rgba(56, 189, 248, 0.12));
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.22);
}

.nd-admin-topic-btn.active small {
  color: #bae6fd;
}

.nd-admin-context-box {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(14, 165, 233, 0.09);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #bae6fd;
  font-size: 0.75rem;
  line-height: 1.42;
}

.nd-admin-context-box svg {
  color: #38bdf8;
  flex-shrink: 0;
  margin-top: 2px;
}

.nd-admin-context-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nd-admin-context-copy span {
  font-size: 0.69rem;
  color: var(--text-secondary);
}

.nd-admin-context-copy strong {
  color: #fff;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.nd-admin-note-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nd-admin-note-input {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: rgba(8, 11, 20, 0.88);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.45;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.nd-admin-note-input::placeholder {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.nd-admin-note-input:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16);
}

.nd-admin-send-btn {
  width: 100%;
  justify-content: center;
  padding: 11px 16px;
  font-size: 0.86rem;
  font-weight: 800;
}

.nd-admin-secondary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.nd-admin-sec-btn {
  justify-content: center;
  padding: 9px 12px;
  font-size: 0.78rem;
  text-align: center;
}

.nd-admin-safety-note {
  background: rgba(14, 165, 233, 0.08);
  border-color: rgba(56, 189, 248, 0.25);
}

.nd-admin-safety-note svg {
  color: #38bdf8;
}

@media (max-width: 520px) {
  .nd-help-admin-card {
    padding: 13px 14px;
  }
  .nd-help-admin-btn {
    width: 100%;
  }
  .nd-admin-topics,
  .nd-admin-secondary-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}
