#hero-container .hero-slide img {
    transition: transform 6s ease-out;
}
#hero-container .hero-slide.opacity-100 img {
    transform: scale(1.05);
}
#hero-container .hero-dot {
    cursor: pointer;
    border: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}
.anime-card img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.anime-card:hover img {
    transform: scale(1.08);
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #000000; }
::-webkit-scrollbar-thumb { background: #27272a; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #3f3f46; }
.spa-page {
    display: block;
    animation: pageIn 0.26s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.spa-page--hidden {
    display: none;
}
@keyframes pageIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
#bottom-navbar {
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
.nav-item {
    color: #52525b;
    cursor: pointer;
    background: transparent;
    border: none;
    outline: none;
    transition: color 0.18s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.nav-item .nav-icon {
    transition: color 0.18s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: inherit;
}
.nav-item .nav-label {
    color: inherit;
    transition: color 0.18s ease;
}
.nav-item:hover {
    color: #ec4899;
}
.nav-item:hover .nav-icon {
    transform: translateY(-2px) scale(1.1);
}
.nav-item.active {
    color: #ec4899;
}
.nav-item.active .nav-icon {
    transform: translateY(-2px) scale(1.1);
    filter: drop-shadow(0 0 5px rgba(236, 72, 153, 0.35));
}
.nav-item.active .nav-label {
    font-weight: 700;
}
.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #ec4899;
    border-radius: 50%;
    box-shadow: 0 0 6px #ec4899;
    display: block;
}
.nav-item {
    position: relative;
}
.dev-btn {
    display: flex;
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}
.dev-btn:active {
    transform: scale(0.97);
}
@media (max-width: 640px) {
    main { padding-bottom: 96px; }
}
#menu-toggle-btn {
    -webkit-tap-highlight-color: transparent;
}
.menu-icon {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
}
.nav-dropdown {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-8px);
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease,
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-dropdown.open {
    max-height: 720px;
    opacity: 1;
    transform: translateY(0);
}
#nav-dropdown-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 30;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
#nav-dropdown-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
.nav-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    text-align: left;
    background: rgba(24, 24, 27, 0.6);
    border: 1px solid #27272a;
    border-radius: 0.85rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
    -webkit-tap-highlight-color: transparent;
}
.nav-menu-item:hover {
    background: rgba(39, 39, 42, 0.7);
    border-color: #ec4899;
}
.nav-menu-item:active {
    transform: scale(0.98);
}
.nav-menu-icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.65rem;
    background: #18181b;
    border: 1px solid #27272a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ec4899;
}
.coming-soon-badge {
    flex-shrink: 0;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fbbf24;
    background: rgba(120, 53, 15, 0.35);
    border: 1px solid rgba(217, 119, 6, 0.4);
    padding: 3px 8px;
    border-radius: 999px;
}
.logo-showcase {
    padding: 10px;
    border-radius: 1.25rem;
    background: rgba(24, 24, 27, 0.6);
    border: 1px solid rgba(220, 38, 38, 0.45);
    box-shadow: 0 0 24px rgba(220, 38, 38, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.logo-showcase:hover {
    border-color: rgba(220, 38, 38, 0.8);
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.32);
}
.unduh-app-btn {
    position: relative;
    animation: undhuBtnPulse 2.6s ease-in-out infinite;
}
.unduh-app-btn:hover {
    animation-play-state: paused;
    box-shadow: 0 0 22px rgba(236, 72, 153, 0.35);
}
.unduh-app-btn:active {
    transform: scale(0.96);
}
.unduh-app-btn .unduh-icon {
    animation: undhuIconBounce 1.8s ease-in-out infinite;
}
.unduh-app-btn[disabled] {
    opacity: 0.5;
    animation: none;
    cursor: not-allowed;
}
.unduh-app-btn[disabled] .unduh-icon {
    animation: none;
}
@keyframes undhuBtnPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.45); }
    50%      { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
}
@keyframes undhuIconBounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(2px); }
}
.app-toast {
    position: fixed;
    left: 50%;
    bottom: 96px;
    transform: translate(-50%, 20px);
    background: #18181b;
    border: 1px solid #3f3f46;
    color: #e4e4e7;
    font-size: 12.5px;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    z-index: 60;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    white-space: nowrap;
    max-width: 90vw;
    overflow: hidden;
    text-overflow: ellipsis;
}
.app-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}
@media (min-width: 641px) {
    .app-toast { bottom: 28px; }
}
.bookmark-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e4e4e7;
    backdrop-filter: blur(4px);
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.12s ease;
    -webkit-tap-highlight-color: transparent;
}
.bookmark-btn:hover {
    border-color: #ec4899;
    color: #f87171;
}
.bookmark-btn:active {
    transform: scale(0.9);
}
.bookmark-btn.is-active {
    background: rgba(220, 38, 38, 0.9);
    border-color: #ec4899;
    color: #ffffff;
}
.bookmark-btn--labeled {
    width: auto;
    height: auto;
    padding: 0.6rem 1.1rem;
    border-radius: 0.75rem;
    background: rgba(24, 24, 27, 0.8);
    border: 1px solid #3f3f46;
}
.bookmark-btn--labeled .bookmark-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.bookmark-btn--labeled.is-active {
    background: rgba(220, 38, 38, 0.15);
    border-color: #ec4899;
    color: #f87171;
}


/* Animax design system — layered overrides preserve existing app behavior. */
:root {
  color-scheme: light;
  --ax-primary: #E85D9E;
  --ax-secondary: #C96A91;
  --ax-bg: #FFF8FB;
  --ax-surface: #FFFFFF;
  --ax-text: #30232B;
  --ax-muted: #796773;
  --ax-border: #F0DCE6;
  --ax-hover: #D94B8C;
  --ax-shadow: 0 8px 28px rgba(76, 35, 56, .07);
}
html { background: var(--ax-bg); scroll-behavior: smooth; }
body {
  background: var(--ax-bg) !important;
  color: var(--ax-text) !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: rgba(232, 93, 158, .2); color: var(--ax-text); }
::-webkit-scrollbar-track { background: var(--ax-bg); }
::-webkit-scrollbar-thumb { background: #E5C8D7; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--ax-secondary); }
a { text-underline-offset: .18em; }
button, a, input, select, textarea { touch-action: manipulation; }
button, [role="button"], a { -webkit-tap-highlight-color: transparent; }
:where(button, a, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid rgba(232, 93, 158, .58);
  outline-offset: 3px;
}
#intro-overlay {
  background: var(--ax-bg) !important;
  transition-duration: .45s !important;
}
#intro-overlay::before { display: none !important; }
.intro-title {
  background: none !important;
  color: var(--ax-primary) !important;
  -webkit-text-fill-color: currentColor !important;
  filter: none !important;
  animation: revealText .6s ease-out both !important;
}
.intro-line {
  background: var(--ax-primary) !important;
  box-shadow: none !important;
  height: 2px;
}
.intro-subtitle { color: var(--ax-muted) !important; }
#bottom-navbar {
  background: rgba(255, 255, 255, .96) !important;
  border-color: var(--ax-border) !important;
  box-shadow: 0 -5px 22px rgba(76, 35, 56, .05);
  backdrop-filter: blur(12px);
}
.nav-item { color: #9A8792; min-width: 44px; min-height: 44px; }
.nav-item:hover, .nav-item.active { color: var(--ax-hover) !important; }
.nav-item.active .nav-icon { filter: none !important; }
.nav-item.active::after { background: var(--ax-primary) !important; box-shadow: none !important; }
#nav-dropdown-overlay { background: rgba(48, 35, 43, .25) !important; backdrop-filter: blur(1px); }
.nav-menu-item {
  background: var(--ax-surface) !important;
  border-color: var(--ax-border) !important;
  color: var(--ax-text) !important;
  min-height: 44px;
}
.nav-menu-item:hover { border-color: var(--ax-primary) !important; background: #FFF4F8 !important; }
.nav-menu-icon { background: #FFF0F6 !important; border-color: var(--ax-border) !important; color: var(--ax-primary) !important; }
.logo-showcase { background: #FFF4F8 !important; border-color: var(--ax-border) !important; box-shadow: none !important; }
.dev-btn { border-radius: 12px; }
.owner-contact { color: var(--ax-hover); font-weight: 650; text-decoration: none; }
.owner-contact:hover { text-decoration: underline; }
.footer-separator { color: var(--ax-muted); }
.anime-card { border-radius: 14px; overflow: hidden; }
.anime-card img { transition: transform .22s ease; }
.anime-card:hover img { transform: scale(1.035); }
input, select, textarea {
  accent-color: var(--ax-primary);
  border-color: var(--ax-border);
}
:where(.rounded-xl, .rounded-2xl, .rounded-3xl) { scroll-margin-top: 1rem; }
@media (hover: hover) {
  button:not(:disabled), [role="button"], .dev-btn { transition: transform .18s ease, background-color .2s ease, border-color .2s ease, color .2s ease; }
  button:not(:disabled):active, [role="button"]:active { transform: scale(.985); }
}
@media (max-width: 640px) {
  main { padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
  #bottom-navbar { padding-bottom: env(safe-area-inset-bottom, 0px); }
  .owner-contact { display: inline-block; padding: 5px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  #particle-canvas { display: none !important; }
}


/* Animax Premium Dark System */
:root {
  color-scheme: dark;
  --ax-black: #000000;
  --ax-deep: #080808;
  --ax-surface: #111111;
  --ax-soft: #181818;
  --ax-pink: #FF1493;
  --ax-pink-soft: #FF69B4;
  --ax-text: #F5F5F5;
  --ax-muted: #A1A1AA;
  --ax-border: #262626;
  --ax-radius-sm: 8px;
  --ax-radius-md: 12px;
  --ax-radius-lg: 16px;
  --ax-motion: 180ms cubic-bezier(.2,.7,.2,1);
}
html { background: var(--ax-black); color-scheme: dark; scroll-behavior: smooth; }
body {
  background: var(--ax-black) !important;
  color: var(--ax-text) !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: rgba(255,20,147,.32); color: #fff; }
::-webkit-scrollbar-track { background: var(--ax-deep); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #555; }
:where(button, a, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--ax-pink-soft);
  outline-offset: 3px;
}
a { text-underline-offset: .2em; }
button, a, input, select, textarea { touch-action: manipulation; }
#site-header {
  background: rgba(0,0,0,.88) !important;
  border-color: #1d1d1d !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
#site-header a:hover, #site-header button:hover { color: var(--ax-pink-soft); }
#bottom-navbar {
  background: rgba(8,8,8,.96) !important;
  border-color: var(--ax-border) !important;
  box-shadow: 0 -8px 28px rgba(0,0,0,.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.nav-item { color: #77777f; min-width: 44px; min-height: 44px; }
.nav-item:hover, .nav-item.active { color: var(--ax-pink) !important; }
.nav-item.active .nav-icon { filter: none !important; transform: none; }
.nav-item.active::after { background: var(--ax-pink) !important; box-shadow: none !important; }
.nav-menu-item {
  background: var(--ax-surface) !important;
  border-color: var(--ax-border) !important;
  color: var(--ax-text) !important;
  border-radius: var(--ax-radius-md);
  min-height: 44px;
}
.nav-menu-item:hover { border-color: #4a2538 !important; background: var(--ax-soft) !important; }
.nav-menu-icon { background: #1c1118 !important; border-color: #38202d !important; color: var(--ax-pink) !important; }
#nav-dropdown-overlay { background: rgba(0,0,0,.68) !important; backdrop-filter: blur(2px); }
.logo-showcase { background: #0b0b0b !important; border-color: #262626 !important; box-shadow: none !important; }
.logo-showcase:hover { border-color: #4a2538 !important; box-shadow: none !important; }
.coming-soon-badge { color: #d4d4d8; background: #18181b; border-color: #333; }
.unduh-app-btn { animation: none !important; }
.unduh-app-btn:hover { box-shadow: none !important; }
.unduh-app-btn .unduh-icon { animation: none !important; }
#hero-container {
  border-color: #242424 !important;
  background: #080808 !important;
  border-radius: var(--ax-radius-lg);
  isolation: isolate;
}
#hero-container .hero-slide img {
  transition: transform 5s ease-out;
}
#hero-container .hero-slide.opacity-100 img { transform: scale(1.025); }
.anime-card {
  border: 1px solid transparent;
  border-radius: var(--ax-radius-md);
  overflow: hidden;
  background: transparent;
  transition: transform var(--ax-motion), border-color var(--ax-motion), filter var(--ax-motion);
}
.anime-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform var(--ax-motion), filter var(--ax-motion);
}
@media (hover:hover) {
  .anime-card:hover { transform: translateY(-2px); border-color: #292929; }
  .anime-card:hover img { transform: scale(1.025); filter: brightness(1.06); }
}
.anime-card:active { transform: scale(.985); }
input, select, textarea {
  background-color: #111 !important;
  color: var(--ax-text) !important;
  border-color: var(--ax-border) !important;
  accent-color: var(--ax-pink);
}
input::placeholder, textarea::placeholder { color: #71717a !important; }
button, .dev-btn, .bookmark-btn, .nav-menu-item {
  transition: color var(--ax-motion), background-color var(--ax-motion), border-color var(--ax-motion), transform var(--ax-motion);
}
.bookmark-btn { border-color: #383838; color: #e4e4e7; }
.bookmark-btn:hover { border-color: var(--ax-pink); color: var(--ax-pink-soft); }
.bookmark-btn.is-active { background: var(--ax-pink); border-color: var(--ax-pink); color: #fff; }
.bookmark-btn--labeled { background: #111; border-color: #333; }
.bookmark-btn--labeled.is-active { background: #24101b; border-color: var(--ax-pink); color: var(--ax-pink-soft); }
.app-toast { background: #181818; border-color: #383838; color: #f5f5f5; border-radius: 10px; }
.owner-contact { color: var(--ax-pink-soft); font-weight: 600; text-decoration: none; }
.owner-contact:hover { color: #fff; text-decoration: underline; }
.footer-separator { color: #52525b; }
#pages-wrapper { min-height: 70vh; }
.spa-page { animation-duration: 180ms; }
@media (max-width: 640px) {
  main { padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
  #bottom-navbar { padding-bottom: env(safe-area-inset-bottom, 0px); }
  #hero-container { border-radius: 12px; }
  .app-toast { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 1280px) {
  #pages-wrapper > .spa-page > main { padding-top: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; } }
