:root {
  --bg: #1a1b26;
  --card: #24283b;
  --fg: #c0caf5;
  --muted: #a9b1d6;
  --accent: #7dcfff;
  --accent-2: #bb9af7;
  --warn: #f7768e;
  --border: #2b3045;
  --sidebar-gap: 76px;
  --sidebar-w: 350px;
  --grid-gap: 20px;
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: "Quicksand", "Poppins", system-ui, -apple-system, Segoe UI,
    Roboto, Inter, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  padding-bottom: 76px;
  padding-left: var(--sidebar-gap);
  padding-right: 3px;
  overflow-x: hidden;
  user-select: none;
  -webkit-user-select: none;
}

body::-webkit-scrollbar {
  width: 9px;
}

body::-webkit-scrollbar-track {
  background: transparent;
}

body::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(125, 207, 255, 0.5),
    0 0 12px rgba(187, 154, 247, 0.4), 0 0 16px rgba(125, 207, 255, 0.3);
}

body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 12px rgba(125, 207, 255, 0.7),
    0 0 16px rgba(187, 154, 247, 0.6), 0 0 20px rgba(125, 207, 255, 0.5);
}

body::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

body::-webkit-scrollbar-button:start:decrement,
body::-webkit-scrollbar-button:end:increment {
  display: none;
}

html {
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}
input,
textarea {
  user-select: text;
  -webkit-user-select: text;
}

.hero {
  position: relative;
  border-bottom: none;
  background: none;
  overflow: visible;
  min-height: 0;
  padding: 0;
  margin-left: calc(-1 * var(--sidebar-gap));
  margin-right: calc(-1 * (100vw - 100%));
  width: 100vw;
}
.hero > .bg-gif {
  position: absolute;
  filter: blur(3px) saturate(75%);
  top: -72px;
  left: 0;
  right: 0;
  width: 100%;
  z-index: -1;
  pointer-events: none;
  background: none;
  display: none;
}
.hero > .bg-gif::after {
  content: none;
}

.auth-card.to-login .back .signup-fields .field {
  animation: collapseUp 0.36s ease forwards;
}
.auth-card.to-login .back .signup-fields .field:nth-child(1) {
  animation-delay: 0s;
}
.auth-card.to-login .back .signup-fields .field:nth-child(2) {
  animation-delay: 0.06s;
}
.auth-card.to-login .back .signup-fields .field:nth-child(3) {
  animation-delay: 0.12s;
}
@keyframes collapseUp {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-18px);
  }
}
.auth-card:not(.flip).slime .front .field input {
  animation: slimeIn 0.38s cubic-bezier(0.22, 0.82, 0.24, 1) both;
}
@keyframes slimeIn {
  0% {
    transform: scaleY(0.85);
    filter: saturate(1.1) blur(0.2px);
  }
  60% {
    transform: scaleY(1.04);
  }
  100% {
    transform: scaleY(1);
  }
}

.auth-actions.signup {
  margin-top: 8px;
}
.btn.primary.signup.warn {
  background: #f7768e;
  box-shadow: 0 0 0 3px rgba(247, 118, 142, 0.25),
    0 0 24px rgba(247, 118, 142, 0.35);
  animation: pulseWarn 0.8s ease;
}
@keyframes pulseWarn {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
  100% {
    transform: scale(1);
  }
}

body::before {
  content: none;
  position: fixed;
  inset: -15%;
  z-index: -2;
  pointer-events: none;
  background: none;
  filter: none;
  animation: none;
}
body::after {
  content: none;
  position: fixed;
  width: 1400px;
  height: 1400px;
  left: -18%;
  top: -20%;
  z-index: -3;
  pointer-events: none;
  background: none;
  filter: none;
  transform: translate3d(0, 0, 0) scale(1);
  animation: none;
  will-change: auto;
}
@keyframes bgCanvas {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(2%, -1%, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}
@keyframes blobA {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  25% {
    transform: translate3d(6%, 4%, 0) scale(1.04);
  }
  50% {
    transform: translate3d(1%, 9%, 0) scale(0.98);
  }
  75% {
    transform: translate3d(-5%, 3%, 0) scale(1.03);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after {
    animation: none;
  }
}
a {
  color: inherit;
  text-decoration: none;
}
.container {
  max-width: calc(100vw - var(--sidebar-gap));
  margin: 0 auto;
  padding: 0 20px;
}
header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: rgba(26, 27, 38, 0.95);
  border-bottom: none;
  box-sizing: border-box;
  padding-left: var(--sidebar-gap);
  width: calc(100vw + var(--sidebar-gap));
  margin-left: calc(-1 * var(--sidebar-gap));
  transition: backdrop-filter 0.3s ease;
}
header.search-expanded {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(26, 27, 38, 0.98);
  transition: backdrop-filter 0.3s ease, background 0.3s ease;
}
header:not(.search-expanded) {
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  background: rgba(26, 27, 38, 0.95);
  transition: backdrop-filter 0.3s ease, background 0.3s ease;
}
body.search-mode main {
  filter: blur(8px);
  pointer-events: none;
  transition: filter 0.3s ease;
}
body:not(.search-mode) main {
  filter: blur(0px);
  pointer-events: auto;
  transition: filter 0.3s ease;
}
body.search-mode footer {
  filter: blur(8px);
  pointer-events: none;
  transition: filter 0.3s ease;
}
body:not(.search-mode) footer {
  filter: blur(0px);
  pointer-events: auto;
  transition: filter 0.3s ease;
}
body.search-mode .sidebar {
  filter: none !important;
  pointer-events: auto !important;
  position: fixed !important;
  left: 16px !important;
  transform: translateY(-50%) !important;
}
.search-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 99;
  cursor: pointer;
  transition: opacity 0.3s ease, backdrop-filter 0.3s ease, visibility 0.3s ease;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.search-backdrop.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
header .container {
  max-width: 100vw;
  padding-left: 0px;
  padding-right: 145px;
}
header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, #7dcfff, #bb9af7, #7dcfff);
  box-shadow: 0 0 16px rgba(125, 207, 255, 0.55),
    0 0 24px rgba(187, 154, 247, 0.45);
  pointer-events: none;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  position: relative;
  z-index: 101;
}
header.search-expanded .nav {
  justify-content: center;
}
header.search-expanded .nav .brand {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  width: 0;
  overflow: hidden;
}
header.search-expanded .nav .brand-logo {
  opacity: 1;
  pointer-events: auto;
}
header.search-expanded .nav .account {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  width: 0;
  overflow: hidden;
}
header.search-expanded .nav .search {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 1600px;
  justify-content: flex-start;
  transition: all 0.3s ease;
  opacity: 1;
}
header:not(.search-expanded) .nav .search {
  position: relative !important;
  left: auto !important;
  transform: none !important;
  width: auto !important;
  max-width: none !important;
  justify-content: flex-start;
  transition: width 0.2s ease, max-width 0.2s ease;
  opacity: 1;
}
header.search-expanded .nav .search input {
  flex: 1;
  min-width: 0;
  margin-right: 10px;
  transition: all 0.3s ease;
  width: auto;
}
header:not(.search-expanded) .nav .search input {
  width: clamp(650px, 40vw, 380px) !important;
  flex: none !important;
  min-width: auto !important;
  margin-right: 0 !important;
  transition: width 0.2s ease, flex 0.2s ease, margin-right 0.2s ease;
}
header.search-expanded .nav .search button {
  flex: 0 0 auto;
  margin-left: 0;
  transition: all 0.3s ease;
  transform: none;
}
header:not(.search-expanded) .nav .search button {
  flex: 0 0 auto !important;
  margin-left: 0 !important;
  transition: flex 0.2s ease, margin-left 0.2s ease;
  transform: none !important;
}
.brand-logo {
  position: absolute;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  z-index: 100;
  left: 0;
  text-decoration: none;
  color: inherit;
}
.brand-logo-img {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}
.brand-logo-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(125, 207, 255, 0.3));
  position: relative;
  z-index: 1;
}
.brand-logo::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 14px;
  background: radial-gradient(
    circle at center,
    rgba(125, 207, 255, 0.25) 0%,
    rgba(187, 154, 247, 0.15) 40%,
    transparent 70%
  );
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
}
.brand-logo::after {
  content: none;
}
.brand {
  font-family: "Orbitron", sans-serif;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex-wrap: nowrap;
  letter-spacing: 0.8px;
  background: linear-gradient(90deg, #bb9af7, #7dcfff);
  -webkit-background-clip: text;
  background-clip: text;
  margin-left: 64px;
  font-size: 43px;
  line-height: 1;
  position: relative;
  display: inline-flex;
}
.brand-char {
  display: inline-block;
  position: relative;
  opacity: 1;
  transform: scale(1) translateX(0);
  transition: all 0.15s ease-out;
  text-shadow: 0 0 8px rgba(125, 207, 255, 0.5),
    0 0 16px rgba(187, 154, 247, 0.4);
}
.brand-char.hiding {
  opacity: 0;
  transform: scale(0.7) translateX(30px);
  text-shadow: none;
  transition: all 0.15s ease-out;
}
.brand-char.showing {
  animation: charShowSoft 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes brandLogoFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-3px) rotate(2deg);
  }
  50% {
    transform: translateY(0px) rotate(0deg);
  }
  75% {
    transform: translateY(-2px) rotate(-2deg);
  }
}
@keyframes charShowSoft {
  0% {
    opacity: 0;
    transform: scale(0.7) translateX(-30px);
    text-shadow: none;
  }
  60% {
    opacity: 0.9;
    transform: scale(1.05) translateX(0);
    text-shadow: 0 0 10px rgba(125, 207, 255, 0.6),
      0 0 20px rgba(187, 154, 247, 0.5);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateX(0);
    text-shadow: 0 0 8px rgba(125, 207, 255, 0.5),
      0 0 16px rgba(187, 154, 247, 0.4);
  }
}
@keyframes brandLogoGlow {
  0%,
  100% {
    filter: drop-shadow(0 0 8px rgba(125, 207, 255, 0.4))
      drop-shadow(0 0 16px rgba(187, 154, 247, 0.3))
      drop-shadow(0 0 24px rgba(125, 207, 255, 0.2))
      drop-shadow(0 0 32px rgba(125, 207, 255, 0.1));
  }
  50% {
    filter: drop-shadow(0 0 12px rgba(125, 207, 255, 0.6))
      drop-shadow(0 0 24px rgba(187, 154, 247, 0.5))
      drop-shadow(0 0 36px rgba(125, 207, 255, 0.4))
      drop-shadow(0 0 48px rgba(125, 207, 255, 0.2));
  }
}
@keyframes brandLogoGlowPulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}
@keyframes brandLogoGlowSoft {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.15);
  }
}
.search {
  display: flex;
  gap: 10px;
  margin-left: 0;
  align-items: center;
  position: relative;
  z-index: 100;
  transition: all 0.3s ease;
}
.search.expanded {
  width: 100%;
  max-width: 100%;
}
.search.expanded input {
  width: 100%;
  max-width: 100%;
}
.search input {
  background: rgba(36, 40, 59, 0.9);
  border: 1px solid rgba(125, 207, 255, 0.2);
  color: var(--fg);
  padding: 10px 14px;
  border-radius: 12px;
  width: clamp(650px, 40vw, 380px);
  font-size: 14px;
  transition: all 0.3s ease;
}
.search input::placeholder {
  color: var(--muted);
  opacity: 0.7;
}
.search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(125, 207, 255, 0.2),
    0 4px 16px rgba(125, 207, 255, 0.15);
  background: rgba(36, 40, 59, 0.95);
}
.search button {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #0b0f16;
  border: none;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.35s ease;
  box-shadow: 0 4px 12px rgba(125, 207, 255, 0.25);
  letter-spacing: 0.3px;
}
header.search-expanded .nav .search button {
  transition: none;
}
.search button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(125, 207, 255, 0.35);
}

@keyframes brandShine {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .brand {
    animation: none;
  }
}
.hero {
  padding: 18px 0 12px;
  border-bottom: none;
  background: none;
  margin-top: 16px;
}
.hero h1 {
  font-size: 28px;
  margin: 0 0 8px;
}
.hero p {
  margin: 0;
  color: var(--muted);
}
.section {
  padding: 22px 0;
}
.section h2 {
  font-size: 18px;
  letter-spacing: 0.2px;
  margin: 0 0 12px;
}
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  gap: 12px;
  padding: 12px;
  align-items: center;
}
.card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  padding: 2px;
  background-size: 300% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: neonBorder 6s linear infinite;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
  will-change: auto;
}
.card:hover::before {
  opacity: 1;
}
.card:hover {
  border-color: rgba(125, 207, 255, 0.4);
  transform: translateY(-1.3px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), 0 0 16px rgba(125, 207, 255, 0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  background: #24283b;
  border: 1px solid var(--border);
  flex: none;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.title {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.info {
  color: var(--muted);
  font-size: 13px;
}
.tag {
  display: inline-block;
  background: #2b3045;
  color: var(--fg);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 12px;
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}
.more {
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
}
footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  border-top: 1px solid var(--border);
  padding: 14px 0;
  color: var(--muted);
  font-size: 14px;
  background: rgba(26, 27, 38, 0.95);
  z-index: 150;
}
footer a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
  margin: 0 4px;
}
footer a:hover {
  color: var(--accent-2);
}

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

.footer-copyright {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.footer-links a {
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 4px;
  margin: 0;
}

.footer-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-2);
  transition: width 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-2);
}

.footer-links a:hover::after {
  width: 100%;
}

@media (max-width: 720px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
    gap: 12px;
  }

  .footer-links a {
    font-size: 13px;
  }

  .footer-copyright {
    flex-direction: column;
    gap: 8px;
  }
}
.actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
.btn {
  background: var(--bg);
  margin-left: 0;
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease,
    transform 0.15s ease;
}
.btn:hover {
  background: #343a52;
  border-color: #3a4060;
}

.btn.primary {
  background: var(--accent);
  color: #0b0f16;
  border-color: transparent;
  font-weight: 600;
}

.btn.primary:hover {
  background: var(--accent-2);
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: grid;
  place-items: center;
  z-index: 200;
  padding: 16px;
}
.dialog {
  width: min(720px, 96vw);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.dialog-title {
  font-weight: 600;
  color: var(--fg);
}
.dialog-body {
  padding: 14px;
  color: var(--muted);
}
.dialog-body input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(125, 207, 255, 0.15);
}
.dialog-body button {
  background: var(--accent);
  color: #0b0f16;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}
.dialog-body button:hover {
  background: var(--accent-2);
}
.dialog-body .card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  gap: 12px;
  padding: 12px;
  align-items: center;
}
.dialog-body .card:hover {
  border-color: #3a4060;
  transform: translateY(-1px);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
@media (min-width: 720px) {
  .hero {
    padding: 42px 0 24px;
  }
  .hero h1 {
    font-size: 34px;
  }
  .section {
    padding: 28px 0;
  }
  .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  nav {
    display: flex;
  }
}

@media (min-width: 520px) and (max-width: 719.98px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .hide-sm {
    display: none;
  }
  .brand {
    font-size: clamp(20px, 6vw, 43px);
    margin-left: clamp(48px, 12vw, 64px);
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 0;
  }
  .brand-char {
    display: inline-block;
    white-space: nowrap;
  }
}

@media (max-width: 520px) {
  .container {
    padding: 0 12px;
  }
  .nav {
    flex-wrap: wrap;
    gap: 8px;
  }
  .brand-logo {
    width: 40px;
    height: 40px;
  }
  .brand {
    font-size: clamp(18px, 7vw, 32px);
    margin-left: 48px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .brand-char {
    display: inline-block;
    white-space: nowrap;
  }
  .search {
    margin-left: 0;
    flex: 1 1 100%;
    order: 3;
    width: 100%;
  }
  .search input {
    width: 100%;
  }
  .sidebar {
    width: 48px;
  }
  .sidebar.open {
    width: 200px;
  }
}

.sidebar {
  position: fixed;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 70vh;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 15px;
  overflow: hidden;
  transition: width 0.25s ease;
  z-index: 100;
  box-shadow: 0 0 18px rgba(125, 207, 255, 0.1), 0 8px 20px rgba(0, 0, 0, 0.18);
  display: flex;
}
.sidebar::before {
  content: none;
}
.sidebar.open::before {
  content: none;
}
.sidebar::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(125, 207, 255, 0.22) 45%,
        transparent 100%
      )
      left center/2px 100% no-repeat,
    linear-gradient(
        to bottom,
        transparent 0%,
        rgba(187, 154, 247, 0.2) 45%,
        transparent 100%
      )
      right center/2px 100% no-repeat;
}
.sidebar.open {
  width: 220px;
}
.sidebar-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 68px 12px 12px;
  width: 100%;
  background: rgba(22, 22, 22, 0.596);
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
.sidebar .logo {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 38px;
  height: 38px;
  border-radius: 12px;
  margin: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.sidebar .logo:hover {
  transform: translateX(-50%) scale(1.05);
}
.sidebar .logo:active {
  transform: translateX(-50%) scale(0.95);
}
.sidebar .logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(125, 207, 255, 0.3));
  animation: logoGlow 5s ease-in-out infinite;
  position: relative;
  z-index: 1;
}
.sidebar .logo::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 12px;
  background: radial-gradient(
    circle at center,
    rgba(125, 207, 255, 0.25) 0%,
    rgba(187, 154, 247, 0.15) 40%,
    transparent 70%
  );
  opacity: 0.5;
  z-index: -1;
  animation: logoGlowPulse 5s ease-in-out infinite;
  pointer-events: none;
}
.sidebar .logo::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 16px;
  background: radial-gradient(
    ellipse at center,
    rgba(125, 207, 255, 0.12) 0%,
    rgba(187, 154, 247, 0.08) 50%,
    transparent 80%
  );
  opacity: 0.35;
  z-index: -2;
  animation: logoGlowSoft 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes logoGlow {
  0%,
  100% {
    filter: drop-shadow(0 0 6px rgba(125, 207, 255, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 8px rgba(125, 207, 255, 0.4));
  }
}
@keyframes logoGlowPulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.05);
  }
}
@keyframes logoGlowSoft {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.08);
  }
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  width: 100%;
  align-items: stretch;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
.sidebar-nav a {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-align: left;
  background: transparent;
  box-shadow: none;
  height: 44px;
}
.sidebar-nav a span {
  display: inline-block;
  line-height: 1;
  margin: 0;
}
.sidebar-nav a .icon {
  align-self: center;
}

.sidebar *:not(.logo):not(a)::before,
.sidebar *:not(.logo):not(a)::after {
  content: none !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  -webkit-mask: none !important;
  mask: none !important;
}
.sidebar-nav a .icon {
  width: 20px;
  height: 20px;
  flex: none;
  color: currentColor;
}
.sidebar.open .sidebar-nav a {
  grid-template-columns: 36px 1fr;
  align-items: center;
  height: 44px;
}
.sidebar.open .sidebar-nav a .icon {
  justify-self: start;
}
.sidebar:not(.open) .sidebar-nav {
  align-items: center;
}
.sidebar:not(.open) .sidebar-nav a {
  grid-template-columns: 41px 0fr;
  justify-items: center;
  width: 44px;
  height: 44px;
  padding: 0 0;
  border-radius: 12px;
  text-align: center;
  overflow: visible;
  position: relative;
}
.sidebar:not(.open) .sidebar-nav a .icon {
  justify-self: center;
}
.sidebar:not(.open) .sidebar-nav a .icon {
  margin: 0;
}
.sidebar-nav a:hover:not(.clicked-link) {
  background: rgba(189, 197, 230, 0.1);
  color: #d8e0ff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) inset;
}
.sidebar-nav a.clicked-link:hover {
  background: transparent !important;
  color: var(--muted) !important;
  box-shadow: none !important;
}
.sidebar-nav a.sidebar-link-active {
  background: rgba(189, 197, 230, 0.1) !important;
  color: #d8e0ff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) inset !important;
  transition: none !important;
}
.sidebar:not(.open) .sidebar-nav a.sidebar-link-active {
  background: rgba(189, 197, 230, 0.1) !important;
  color: #d8e0ff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) inset !important;
  transition: none !important;
}
.sidebar-nav a.sidebar-link-active:hover {
  background: rgba(189, 197, 230, 0.1) !important;
  color: #d8e0ff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) inset !important;
}
.sidebar-nav a[aria-current="page"] {
  background: transparent !important;
  color: var(--muted) !important;
  box-shadow: none !important;
}
.sidebar:not(.open) .sidebar-nav a:hover:not(.clicked-link) {
  background: transparent;
  box-shadow: none;
  color: #d8e0ff;
}
.sidebar:not(.open) .sidebar-nav a.clicked-link:hover {
  background: transparent !important;
  box-shadow: none !important;
  color: var(--muted) !important;
}
.sidebar:not(.open) .sidebar-nav a:active {
  background: transparent;
  box-shadow: none;
  color: #e9f6ff;
}
.sidebar:not(.open) .sidebar-nav a:focus-visible {
  outline: none;
  box-shadow: none;
}
.sidebar:not(.open) .sidebar-nav a[aria-current="page"] {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  color: var(--muted) !important;
}
.sidebar-nav a span {
  overflow: hidden;
  white-space: nowrap;
  max-width: 0;
  opacity: 0;
  transform: translateX(6px);
  transition: max-width 0.22s ease, opacity 0.22s ease, transform 0.22s ease;
}
.sidebar.open .sidebar-nav a span {
  max-width: 160px;
  opacity: 1;
  transform: translateX(0);
}
.sidebar:not(.open) .sidebar-nav a span {
  max-width: 0 !important;
  opacity: 0 !important;
  transform: translateX(0);
  transition: none;
}
.sidebar:not(.open) .sidebar-nav a {
  position: relative;
}
.sidebar:not(.open) .sidebar-nav a:hover span {
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  pointer-events: none;
  display: block;
  max-width: none;
  opacity: 1 !important;
  white-space: nowrap;
  padding: 6px 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
}
.logo-tooltip {
  position: absolute;
  left: 50%;
  top: calc(100% + 12px);
  transform: translateX(-50%) translateY(-4px);
  z-index: 10;
  pointer-events: none;
  display: none;
  white-space: nowrap;
  padding: 8px 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  font-size: 12px;
  font-weight: 600;
  color: var(--fg);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.logo-tooltip::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: var(--border);
}
.logo-tooltip::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-bottom-color: var(--card);
  margin-bottom: -1px;
}
.sidebar .logo:hover .logo-tooltip {
  display: block;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.sidebar-nav a {
  min-height: 44px;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: grid;
  place-items: center;
  z-index: 200;
  padding: 16px;
}
.dialog {
  width: min(720px, 96vw);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.dialog-title {
  font-weight: 600;
  color: var(--fg);
}
.dialog-body {
  padding: 14px;
  color: var(--muted);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.controls {
  margin: 10px 0 12px;
  flex-wrap: wrap;
  gap: 10px;
}
.chips {
  display: flex;
  gap: 8px;
}
.chip {
  background: #1e2336;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.chip:hover {
  color: var(--fg);
  border-color: #3a4060;
}
.chip.active {
  background: var(--accent-2);
  color: #0b0f16;
  border-color: var(--accent-2);
}
.select {
  background: var(--card);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
}
.select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(125, 207, 255, 0.15);
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}
.page-info {
  color: var(--muted);
  font-size: 13px;
}

.account {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1e2336;
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--fg);
}
.account .icon {
  width: 18px;
  height: 18px;
}

.tabs {
  display: inline-flex;
  gap: 8px;
  background: #1e2336;
  border: 1px solid var(--border);
  padding: 6px;
  border-radius: 12px;
  position: relative;
}
.tab-btn {
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
  font-weight: 500;
}
.tab-btn:hover {
  color: var(--fg);
  background: rgba(189, 197, 230, 0.06);
}
.tab-btn.active {
  background: var(--accent-2);
  color: #0b0f16;
}
.form-card {
  margin-top: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}
.field {
  display: grid;
  gap: 6px;
  min-width: 0;
  flex: 1;
}
.field label {
  color: var(--muted);
  font-size: 13px;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="file"] {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 10px 12px;
  border-radius: 8px;
}
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(125, 207, 255, 0.15);
}
.fade {
  animation: fadeUp 0.24s ease both;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bg-anim {
  display: none !important;
}
.bg-anim::before,
.bg-anim::after {
  display: none !important;
}
@keyframes blob1 {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  25% {
    transform: translate3d(8%, 6%, 0) scale(1.05);
  }
  50% {
    transform: translate3d(2%, 12%, 0) scale(0.98);
  }
  75% {
    transform: translate3d(-6%, 4%, 0) scale(1.03);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}
@keyframes blob2 {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  25% {
    transform: translate3d(-8%, -4%, 0) scale(1.06);
  }
  50% {
    transform: translate3d(-3%, -10%, 0) scale(0.97);
  }
  75% {
    transform: translate3d(6%, -2%, 0) scale(1.02);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}
@keyframes bgShift {
  0% {
    background-position: 0% 0%, 100% 100%, 30% 120%;
  }
  50% {
    background-position: 8% 6%, 92% 80%, 28% 118%;
  }
  100% {
    background-position: 0% 2%, 98% 86%, 32% 122%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bg-anim {
    animation: none;
  }
  .bg-anim::before,
  .bg-anim::after {
    animation: none;
  }
}
.flip-toggle {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #1e2336;
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  font-size: 12px;
}
.flip-toggle:hover {
  border-color: #3a4060;
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #0f1320;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}
.carousel-track {
  display: flex;
  width: 100%;
  transition: transform 0.5s ease;
}
.slide {
  position: relative;
  min-width: 100%;
  aspect-ratio: 16/5;
  min-height: clamp(220px, 28vw, 360px);
  background: #111528;
}
.slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.05);
}
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 12, 20, 0.78),
    rgba(10, 12, 20, 0.4) 38%,
    rgba(10, 12, 20, 0) 64%
  );
  display: flex;
  align-items: center;
}
.slide-meta {
  padding: 24px;
  max-width: min(560px, 90%);
}
.slide-title {
  font-size: clamp(20px, 3.5vw, 32px);
  font-weight: 800;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.slide-sub {
  color: var(--muted);
  margin-top: 6px;
  font-size: 14px;
}
.slide-actions {
  margin-top: 12px;
}
.carousel:hover .carousel-nav {
  opacity: 1;
  pointer-events: auto;
}
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(30, 35, 54, 0.95);
  color: var(--fg);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease;
  font-size: 18px;
  font-weight: 700;
}
.carousel-nav:hover {
  background: rgba(40, 46, 72, 0.95);
  transform: translateY(-50%) scale(1.1);
}
.carousel-nav.prev {
  left: 12px;
}
.carousel-nav.next {
  right: 12px;
}
.carousel-indicators {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(189, 197, 230, 0.35);
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}
.dot:hover {
  transform: scale(1.2);
}
.dot.active {
  background: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(187, 154, 247, 0.3),
    0 0 12px rgba(187, 154, 247, 0.4);
  transform: scale(1.15);
}
@media (max-width: 520px) {
  .slide {
    aspect-ratio: 16/9;
    min-height: 0;
  }
}

.tabs-wrap {
  display: grid;
  gap: 12px;
}
.tab-panels {
  background: transparent;
}
.tab-panel {
  animation: fadeUp 0.22s ease both;
}

.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sidebar-w);
  gap: var(--grid-gap);
  align-items: start;
  margin-top: 24px;
}
.home-main {
  display: grid;
  gap: 14px;
}
.home-side {
  position: sticky;
  top: calc(76px + 10px);
  align-self: start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  max-height: calc(100vh - 86px - 10px);
  display: grid;
  grid-template-rows: auto 1fr;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.side-header {
  padding: 14px 16px;
  font-weight: 800;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.3px;
  font-size: 16px;
}
.side-list {
  overflow: auto;
  display: grid;
  gap: 10px;
  padding: 10px;
}
.side-list::-webkit-scrollbar {
  display: none;
}
.side-list {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.side-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  background: #1e2336;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  color: var(--fg);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.side-item:hover {
  border-color: rgba(125, 207, 255, 0.5s);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.side-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  background: #24283b;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
}
.side-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.side-meta {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.side-title {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.side-info {
  color: var(--muted);
  font-size: 12px;
}

.anime-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.anime-card {
  position: relative;
  background: var(--card);
  border: 1.25px solid var(--border);
  border-radius: 16px;
  overflow: visible;
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  color: var(--fg);
  transition: 0.2s ease;
}
.anime-card:hover {
  transform: translateY(-3px);
  border-color: rgba(125, 207, 255, 0.4);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.anime-card.lg {
  grid-template-columns: 150px 1fr;
  padding: 14px;
}
.anime-thumb {
  width: 130px;
  height: 90px;
  border-radius: 12px;
  overflow: hidden;
  background: #24283b;
  border: 1px solid var(--border);
  position: relative;
}
.anime-card.lg .anime-thumb {
  width: 150px;
  height: 110px;
}
.anime-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.anime-card:hover .anime-thumb img {
  transform: scale(1.05);
}
.anime-meta {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.anime-title {
  font-weight: 800;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.2px;
}
.anime-card.lg .anime-title {
  font-size: 17px;
}
.anime-info {
  color: var(--muted);
  font-size: 13px;
}

@keyframes neonSpin {
  to {
    transform: none;
  }
}
@keyframes hueMove {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}
@keyframes neonBorder {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 300% 50%;
  }
}

@media (min-width: 1400px) {
  :root {
    --sidebar-w: 400px;
  }
  .anime-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1020px) {
  .home-layout {
    grid-template-columns: 1fr;
  }
  .home-side {
    position: static;
    max-height: none;
  }
  .anime-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.watch-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 80px;
  align-items: start;
}
.watch-player {
  display: grid;
  gap: 13px;
}
.player-box {
  background: #0f1320;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/9;
  max-height: calc(125vh - 200px);
}
.player-box video {
  width: 100%;
  height: 100%;
  display: block;
  background: #0b0f16;
  object-fit: contain;
}
.player-placeholder {
  aspect-ratio: 16/9;
  min-height: 240px;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.player-box {
  position: relative;
}
.player-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: linear-gradient(
    180deg,
    rgba(10, 12, 20, 0) 0%,
    rgba(10, 12, 20, 0.65) 70%
  );
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.player-box:hover .player-controls,
.player-controls:focus-within {
  opacity: 1;
  transform: translateY(0);
}
.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(
    closest-side,
    rgba(0, 0, 0, 0.35),
    rgba(0, 0, 0, 0) 70%
  );
  border: none;
  cursor: pointer;
}
.play-overlay:focus {
  outline: none;
}
.play-overlay .triangle {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(
    145deg,
    rgba(187, 154, 247, 0.35),
    rgba(125, 207, 255, 0.35)
  );
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 2px 12px rgba(255, 255, 255, 0.08),
    0 10px 30px rgba(0, 0, 0, 0.35);
  transform: scale(1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.play-overlay .triangle::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 22px solid #0b0f16;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  margin-left: 6px;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.25));
}
.play-overlay .triangle::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 999px;
  border: 2px solid rgba(187, 154, 247, 0.35);
  opacity: 0;
  animation: pulseRing 1.4s ease-out infinite;
}
.play-overlay:hover .triangle {
  transform: scale(1.06);
  box-shadow: inset 0 2px 16px rgba(255, 255, 255, 0.1),
    0 14px 40px rgba(125, 207, 255, 0.25);
}
@keyframes pulseRing {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}
.pc-btn {
  background: rgba(36, 40, 59, 0.75);
  color: var(--fg);
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
}
.pc-btn:hover {
  background: rgba(44, 50, 74, 0.9);
  border-color: #3a4060;
}
.pc-time {
  color: var(--muted);
  font-size: 12px;
  padding: 0 4px;
  white-space: nowrap;
}
.pc-seek {
  flex: 1;
  min-width: 120px;
}
.pc-seek,
.pc-vol {
  appearance: none;
  height: 6px;
  background: #1e2336;
  border-radius: 999px;
  outline: none;
  border: 1px solid var(--border);
}
.pc-seek::-webkit-slider-thumb,
.pc-vol::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-2);
  border: 1px solid #8a72d8;
  box-shadow: 0 0 0 3px rgba(187, 154, 247, 0.18);
  cursor: pointer;
}
.pc-seek::-moz-range-thumb,
.pc-vol::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-2);
  border: 1px solid #8a72d8;
  box-shadow: 0 0 0 3px rgba(187, 154, 247, 0.18);
  cursor: pointer;
}
@media (max-width: 720px) {
  .player-controls {
    flex-wrap: wrap;
    gap: 6px;
  }
  .pc-time {
    order: 5;
  }
}
.pc-settings-wrap {
  position: relative;
}
.pc-menu {
  position: absolute;
  right: 0;
  bottom: 40px;
  background: rgba(36, 40, 59, 0.98);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  display: grid;
  gap: 6px;
  min-width: 160px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}
.pc-menu::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: -6px;
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  background: rgba(36, 40, 59, 0.96);
  border-left: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.pc-menu-group {
  display: grid;
  gap: 6px;
}
.pc-menu-title {
  font-size: 12px;
  color: var(--muted);
  padding: 2px 6px;
}
.pc-menu-item {
  text-align: left;
  background: #1e2336;
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px;
  cursor: pointer;
  font-size: 13px;
}
.pc-menu-item:hover {
  border-color: #3a4060;
}
.pc-menu-item.active {
  background: var(--accent-2);
  color: #0b0f16;
  border-color: var(--accent-2);
  font-weight: 700;
}
.pc-menu-empty {
  color: var(--muted);
  font-size: 12px;
  padding: 4px 6px;
}
.watch-meta {
  display: grid;
  gap: 6px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}
.watch-title {
  font-weight: 700;
  letter-spacing: 0.2px;
}
.watch-info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.watch-credits {
  color: var(--muted);
  font-size: 13px;
}

.watch-side {
  position: sticky;
  top: 76px;
  align-self: start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  max-height: calc(100vh - 120px);
  display: grid;
  grid-template-rows: auto 1fr;
}
.episodes-header {
  padding: 10px 12px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.episode-list {
  overflow: auto;
  padding: 8px;
  display: grid;
  gap: 9px;
}
.episode-item {
  text-align: left;
  width: 100%;
  background: #1e2336;
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 10px;
  cursor: pointer;
  transition: all 0.35s ease;
}
.episode-item:hover {
  border-color: #3a4060;
}

.episode-item.active {
  background: var(--accent-2);
  color: #0b0f16;
  border-color: var(--accent-2);
  font-weight: 700;
}

.comments {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.comments-header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}
.comments-list {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  max-height: 320px;
  overflow: auto;
}
.comment {
  background: #1e2336;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  display: grid;
  gap: 4px;
}
.comment-user {
  font-weight: 600;
}
.comment-text {
  color: var(--fg);
}
.comment-date {
  color: var(--muted);
  font-size: 12px;
}
.comment-box {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
}
.comment-box input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 8px 10px;
  border-radius: 8px;
}
.comment-cta {
  padding: 12px 14px;
  border-top: 1px solid var(--border);
}

@media (max-width: 900px) {
  .watch-layout {
    grid-template-columns: 1fr;
  }
  .watch-side {
    position: static;
    max-height: none;
  }
}

.split-gate {
  position: absolute;
  inset: 0;
  z-index: 9999;
  display: block;
  overflow: hidden;
  background: #0b0f16;
  pointer-events: auto;
}
.split-gate .gate {
  position: absolute;
  top: 0;
  bottom: 0;
  overflow: hidden;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: filter 0.2s ease;
}
.split-gate .side.left {
  left: 0;
  width: var(--split, 50%);
  background: #0e1022;
}
.split-gate .side.right {
  right: 0;
  width: calc(100% - var(--split, 50%));
  background: #101227;
}
.split-gate .side.left::before,
.split-gate .side.right::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(110%) contrast(102%);
  opacity: 0.45;
}
.split-gate .side.left::before {
  background: none;
}
.split-gate .side.right::before {
  background: none;
}
.split-gate .gate-content {
  position: relative;
  z-index: 1;
  text-align: center;
  display: grid;
  gap: 8px;
  transform: translateZ(0);
  transition: transform 0.25s ease, opacity 0.25s ease;
  padding: 20px;
}

.split-gate .side.left .gate-content {
  padding: 36px 48px !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 16px !important;
  background: rgba(42, 48, 69, 0.75) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  z-index: 2 !important;
  min-width: 360px;
}
.split-gate .gate-logo {
  font-family: "Orbitron", sans-serif;
  font-weight: 400;
  font-size: clamp(22px, 4vw, 38px);
  letter-spacing: 0.6px;
  background: linear-gradient(90deg, #bb9af7, #7dcfff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.12);
}

.split-gate .gate-logo-img {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  position: relative;
}

.split-gate .gate-logo-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(125, 207, 255, 0.3));
  position: relative;
  z-index: 1;
}

.split-gate .gate-logo-img::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 14px;
  background: radial-gradient(
    circle at center,
    rgba(125, 207, 255, 0.25) 0%,
    rgba(187, 154, 247, 0.15) 40%,
    transparent 70%
  );
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
}
.split-gate .gate-title {
  font-weight: 800;
  font-size: clamp(16px, 2.4vw, 22px);
}
.split-gate .gate-sub {
  color: var(--muted);
  font-size: 14px;
  opacity: 0.9;
}
.split-gate .side.left .gate-title {
  color: #e9f6ff;
}
.split-gate .side.right .gate-title {
  color: #e9f6ff;
}

.split-gate .gate-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  left: var(--split, 50%);
  transform: translateX(-2px);
  display: grid;
  place-items: center;
  z-index: 2;
  pointer-events: auto;
}
.split-gate .gate-divider::before {
  content: "";
  position: absolute;
  top: -10%;
  bottom: -10%;
  width: 4px;
  background: linear-gradient(180deg, #7dcfff, #bb9af7, #7dcfff);
  background-size: 100% 200%;
  animation: beamFlow 3.2s linear infinite;
  box-shadow: 0 0 14px rgba(125, 207, 255, 0.8),
    0 0 28px rgba(187, 154, 247, 0.7), 0 0 46px rgba(125, 207, 255, 0.55);
  border-radius: 2px;
}
.split-gate .gate-divider::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  width: 18px;
  filter: blur(16px);
  background: radial-gradient(
    closest-side,
    rgba(125, 207, 255, 0.55),
    rgba(125, 207, 255, 0) 70%
  );
  opacity: 0.9;
}
.split-gate .gate-divider span {
  position: absolute;
  width: 14px;
  height: 140px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(30, 35, 54, 0.9);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.38),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.split-gate .gate-divider-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  z-index: 10;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(42, 48, 69, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: 6px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.split-gate .gate-divider-logo:hover {
  transform: translate(-50%, -50%) scale(1.1);
  border-color: rgba(125, 207, 255, 0.5);
  box-shadow: 0 6px 20px rgba(125, 207, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.split-gate .gate-divider-logo:active {
  transform: translate(-50%, -50%) scale(1.05);
}

.split-gate .gate-divider-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 4px rgba(125, 207, 255, 0.4));
}

.split-gate .gate-top-triangle {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(600px, 50%);
  height: 180px;
  z-index: 101;
  cursor: pointer;
  background: url(img/maına.png);
  background-size: cover;
  background-position: center calc(15% + 3px);
  background-repeat: no-repeat;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center center;
  border: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.split-gate .gate-top-triangle:hover {
  transform: translateX(-50%) scale(1.1);
}

.split-gate .gate-top-triangle:active {
  transform: translateX(-50%) scale(1.05);
}

.split-gate .gate-pull-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(11, 15, 22, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99;
  overflow: hidden;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  display: grid;
  place-items: center;
  transform: translateY(-100%);
}

.split-gate .gate-pull-screen.open {
  transform: translateY(0);
}

.split-gate .gate-pull-content {
  opacity: 0;
  transform: translateY(-50px);
  transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s;
  text-align: center;
  display: grid;
  gap: 16px;
}

.split-gate .gate-pull-screen.open .gate-pull-content {
  opacity: 1;
  transform: translateY(0);
}

.split-gate .gate-top-triangle.clicked {
  transform: translateX(-50%) translateY(100vh);
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.split-gate .side.left:hover .gate-content {
  transform: scale(1.04);
}
.split-gate .side.right:hover .gate-content {
  transform: scale(1.04);
}

.split-gate .gate-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(30, 35, 54, 0.8);
  color: var(--fg);
  border: 1px solid var(--border);
  cursor: pointer;
}
.split-gate .gate-close:hover {
  background: rgba(40, 46, 72, 0.95);
}

@media (prefers-reduced-motion: reduce) {
  .split-gate .gate-content {
    transition: none;
  }
}

.auth2 {
  position: relative;
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
  padding: 40px 16px;
}

.auth2-bg {
  position: fixed;
  left: -125px;
  right: 235px;
  rotate: 8deg;
  top: 50%;
  transform: translateY(-50%);
  z-index: -1;
  pointer-events: none;
  background: url("img/logo.png") center center / cover no-repeat;
  filter: saturate(110%);
  opacity: 0.05;
  animation: auth2-bg 6s infinite;
  width: 1437px;
  height: 1437px;
  min-width: 1437px;
  min-height: 1437px;
}

@keyframes auth2-bg {
  0% {
    transform: translateY(-50%) translate3d(0, 0, 0);
  }
  50% {
    transform: translateY(-50%) translate3d(0, 2%, 0);
  }
  100% {
    transform: translateY(-50%) translate3d(0, 0, 0);
  }
}

@keyframes authBgDrift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(2%, -1%, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}
.auth2-card {
  width: min(460px, 96vw);
  background: rgba(36, 40, 59, 0.95);
  border-radius: 15px 15px 0px 0px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.38), 0 8px 18px rgba(0, 0, 0, 0.25);
  padding: 20px;
  display: grid;
  gap: 12px;
  transform: perspective(1200px) rotateY(-10deg) rotateX(2deg);
  transform-style: preserve-3d;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.auth2-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, #7dcfff, #bb9af7, #7dcfff);
  box-shadow: 0 0 16px rgba(125, 207, 255, 0.55),
    0 0 24px rgba(187, 154, 247, 0.45);
  pointer-events: none;
}

.auth2-card:hover {
  transform: perspective(1200px) rotateY(0deg) rotateX(0deg);
  box-shadow: 0 0px 56px rgba(0, 0, 0, 0.42), 0 0px 33px rgba(0, 0, 0, 0.28);
}
.auth2-tabs {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  gap: 8px;
  background: #1e2336;
  border: 1px solid var(--border);
  padding: 6px;
  border-radius: 12px;
  overflow: visible;
}
.auth2-tabs .indicator {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 6px;
  width: calc(50% - 6px);
  border-radius: 8px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  box-shadow: 0 6px 20px rgba(125, 207, 255, 0.25);
  transition: transform 0.28s ease;
  z-index: 0;
}
.auth2-tabs .indicator::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  opacity: 0;
  filter: blur(8px);
  box-shadow: 0 0 20px rgba(125, 207, 255, 0.6);
  pointer-events: none;
}
.auth2-tabs .indicator.dir-right::before {
  right: -55px;
  left: auto;
  opacity: 1;
  animation: slideGlowRight 0.35s ease forwards;
}
.auth2-tabs .indicator.dir-left::before {
  left: -55px;
  right: auto;
  opacity: 1;
  animation: slideGlowLeft 0.35s ease forwards;
}
@keyframes slideGlowRight {
  0% {
    opacity: 0;
    transform: translateX(0) scale(0.8);
  }
  50% {
    opacity: 0.9;
    transform: translateX(-15px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-30px) scale(0.8);
  }
}
@keyframes slideGlowLeft {
  0% {
    opacity: 0;
    transform: translateX(0) scale(0.8);
  }
  50% {
    opacity: 0.9;
    transform: translateX(15px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(30px) scale(0.8);
  }
}
.auth2-tabs button {
  position: relative;
  z-index: 1;
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0.25px;
  transition: background 0.3s ease, color 0.3s ease;
}
.auth2-tabs button:hover {
  color: var(--fg);
  background: rgba(189, 197, 230, 0.06);
}

.auth2-tabs button.active {
  color: #0b0f16;
}

.auth2-tabs button.active:hover {
  color: #0b0f16;
}

.auth2-form {
  display: grid;
  gap: 10px;
  animation: fadeUp 0.22s ease both;
}

.auth2-form label {
  display: grid;
  gap: 6px;
}

.auth2-form label span {
  font-size: 12px;
  color: var(--muted);
}
.auth2-form input {
  background: rgba(10, 12, 20, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--fg);
  padding: 12px 14px;
  border-radius: 12px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  font-weight: 700;
}
.auth2-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(125, 207, 255, 0.18);
}
.auth2-form input[readonly] {
  cursor: text;
}
.auth2-form .input-wrap {
  position: relative;
  display: grid;
}
.auth2-form .eye-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  color: var(--muted);
  border: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  cursor: pointer;
}
.auth2-form .eye-btn:hover {
  color: var(--fg);
}
.auth2-form .eye-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}
.auth2-form input:-webkit-autofill,
.auth2-form input:-webkit-autofill:hover,
.auth2-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--fg);
  box-shadow: 0 0 0px 1000px rgba(10, 12, 20, 0.9) inset;
  transition: background-color 5000s ease-in-out 0s;
}
.auth2 .btn.primary {
  width: 100%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  color: #0b0f16;
  border: none;
  box-shadow: 0 8px 24px rgba(125, 207, 255, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.auth2 .btn.primary:hover {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.auth2 .btn.primary.warn {
  box-shadow: 0 0 0 3px rgba(247, 118, 142, 0.28),
    0 0 26px rgba(247, 118, 142, 0.35);
  animation: pulseWarn 0.8s ease;
}

.auth2 .auth2-card,
.auth2 .auth2-form,
.auth2-tabs button {
  font-family: "Poppins", "Quicksand", system-ui, -apple-system, Segoe UI,
    Roboto, Inter, Arial, sans-serif;
}
.auth2 .auth2-card {
  border-radius: 18px 18px 0px 0px;
}
.auth2-form.in-left .auth2-field {
  opacity: 0;
  transform: translateX(-12px);
  animation: slideInL 0.34s ease forwards;
}
.auth2-form.in-right .auth2-field {
  opacity: 0;
  transform: translateX(12px);
  animation: slideInR 0.34s ease forwards;
}
.auth2-form .auth2-field:nth-child(1) {
  animation-delay: 0.02s;
}
.auth2-form .auth2-field:nth-child(2) {
  animation-delay: 0.06s;
}
.auth2-form .auth2-field:nth-child(3) {
  animation-delay: 0.1s;
}
.auth2-form .auth2-field:nth-child(4) {
  animation-delay: 0.14s;
}
@keyframes slideInL {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes slideInR {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.agreements2 {
  display: grid;
  gap: 8px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}
.agree2 {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  background: rgba(30, 35, 54, 0.6);
  border: 1px solid var(--border);
  padding: 8px 10px;
  border-radius: 10px;
}
.agree2-left {
  display: flex;
  gap: 8px;
  align-items: center;
}
.agree2 input {
  accent-color: var(--accent-2);
  width: 16px;
  height: 16px;
}
.agree2-actions {
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.agree2-btn {
  background: #1e2336;
  color: var(--fg);
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}
.agree2-btn.accept.active {
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  color: #0b0f16;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.06) inset,
    0 6px 18px rgba(125, 207, 255, 0.25);
}
.agree2-btn.reject.active {
  background: linear-gradient(90deg, #f7768e, #ffca85);
  color: #0b0f16;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.06) inset,
    0 6px 18px rgba(255, 160, 160, 0.25);
}
.auth2-error {
  background: rgba(247, 118, 142, 0.15);
  color: #ffd9df;
  border: 1px solid rgba(247, 118, 142, 0.35);
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
}
.auth2-error {
  background: rgba(247, 118, 142, 0.15);
  color: #ffd9df;
  border: 1px solid rgba(247, 118, 142, 0.35);
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
}

@media (max-width: 520px) {
  .auth2 {
    padding: 28px 12px;
    min-height: calc(100vh - 100px);
  }
}

.terms-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(11, 15, 22, 0.85);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.terms-modal {
  width: min(600px, 90vw);
  max-height: 85vh;
  background: rgba(36, 40, 59, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  animation: slideUp 0.3s ease;
  transform: translateZ(0);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.terms-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(30, 35, 54, 0.6);
}

.terms-modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--fg);
  font-family: "Poppins", "Quicksand", system-ui, sans-serif;
}

.terms-modal-close {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(30, 35, 54, 0.8);
  border: 1px solid var(--border);
  color: var(--fg);
  cursor: pointer;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.terms-modal-close:hover {
  background: rgba(40, 46, 72, 0.95);
  border-color: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

.terms-modal-content {
  padding: 24px;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.terms-modal-content::-webkit-scrollbar {
  width: 8px;
}

.terms-modal-content::-webkit-scrollbar-track {
  background: rgba(30, 35, 54, 0.4);
  border-radius: 4px;
}

.terms-modal-content::-webkit-scrollbar-thumb {
  background: rgba(125, 207, 255, 0.3);
  border-radius: 4px;
}

.terms-modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(125, 207, 255, 0.5);
}

.terms-modal-content h4 {
  margin: 24px 0 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
  font-family: "Poppins", "Quicksand", system-ui, sans-serif;
}

.terms-modal-content h4:first-child {
  margin-top: 0;
}

.terms-modal-content p {
  margin: 0 0 16px 0;
  color: var(--muted);
}

.terms-modal-footer {
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(30, 35, 54, 0.6);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.terms-modal-footer.scrolled {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.terms-modal-accept {
  width: 100%;
  max-width: 300px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 15px;
}

@media (max-width: 520px) {
  .terms-modal {
    width: 95vw;
    max-height: 90vh;
    border-radius: 16px;
  }

  .terms-modal-header {
    padding: 16px 20px;
  }

  .terms-modal-header h3 {
    font-size: 18px;
  }

  .terms-modal-content {
    padding: 20px;
    font-size: 13px;
  }

  .terms-modal-content h4 {
    font-size: 15px;
    margin: 20px 0 10px 0;
  }

  .terms-modal-footer {
    padding: 16px 20px;
  }

  .terms-modal-accept {
    max-width: 100%;
  }
}
